Sometimes you need to convert a json string to CSV in PHP. For example we want to get the names Norrmalm and Liljeholmen (cities names at Sweden) from the following json string: ‘{“Norrmalm”:”502″,”Liljeholmen”:”491″}’; Here is the simplest solution: $jsonStr='{“Norrmalm”:”502″,”Liljeholmen”:”491″}’; $csv = str_replace(array(‘[‘,’]’), ”, json_encode(array_keys(json_decode($jsonStr, true)))) echo $csv; It will print out : “Norrmalm”,”Liljeholmen” How it

This error will occur when make the 2nd time filter in the TbGridView / TbExtendedGridView after the 1st time filter with ‘no result found’. Solution: Open and goto line 257 and add this coding: if ( url == undefined ) url = window.location.href;

While using Yii framework yiibooster TbJsonGridView we usually face the problem of “Parser error!” when deleting a row from admin view. The problem arises because, after deletion of a row the controller/admin action is called which sends the complete HTML page instead of Json of the table. The solution is very simple and you need

  download extension from paste all bootstrap extensions folders what you have download under extensions/bootstrap config/main.php Add before starting of array Yii::setPathOfAlias(‘bootstrap’, dirname(__FILE__).’/../extensions/bootstrap’); add under return array `’theme’=>’bootstrap’, ‘modules’=>array( ‘gii’=>array( ‘generatorPaths’=>array( ‘bootstrap.gii’, ), ), ), ` add in under componentes ‘bootstrap’=>array( ‘class’=>’bootstrap.components.Bootstrap’, extensions/boostrap/components/Bootstrap.php paste code in class public function init() { $this->registerAllCss(); $this->registerJs(); parent::init();

Locate your version of the languages.phtml file (C:xampphtdocsjew_storeappdesignfrontenddefaultjewelry-storetemplatepageswitch) and make a backup copy i.e. languages.phtml.old. Copy and paste the following code into languages.phtml replacing the existing code. <div class=”form-language”>     <label for=”select-language”><?php echo $this->__(‘Your Language:’) ?> </label> <!– Google Element Translator Styling–>         <style>             .goog-te-combo{width: px !important;}             .goog-te-balloon-frame{display: none !important;}             font{background: transparent !important;}             a font:hover{ color:  !important;}             #google_translate_element{height: