Thursday, May 15, 2014

Step to create Yii framework project skeleton using command prompt on Windows

Step to create Yii framework project skeleton using command prompt on Windows:

  •  Set PHP path under environment variables path for e.g. C:\xampp\php.
  •  From command prompt locate yii framework directory for e.g. C:\xampp\htdocs\yiiframework 
  • Now execute command yiic with webapp parameter and application path with project name for e.g. C:\xampp\htdocs\yiiframework\yiic webapp ../myyiiproject

Friday, February 28, 2014

PHP - List of india cities in array


Sunday, December 15, 2013

CGridView is striping out the HTML tags : Solved

The solution is to specify the column type as "raw":


$this->widget('zii.widgets.grid.CGridView', array(
    'dataProvider'=>$dataProvider,
    'columns'=>array(
        array(            
            'name'=>'column1',
            // call the method 'getLink' from a model.
            'value'=>array($model, 'getLink'), 
            'type'=>'raw',
        ),
    ),
));

Thursday, May 16, 2013

PHP - Delete all files from a folder excluding current date file name

Friday, March 29, 2013

How to save unchecked value of checkbox - HTML

Working with form check boxes can be a bit of a pain on sites with dynamic content. Saving the checked data is easy, but how do you easily save the unchecked value without manually adding it to an array from inside your code.
Read Full Article and solution here http://bit.ly/6laVc

Wednesday, March 6, 2013

In Magento, whenever you change the searchable attributes of product from admin panel, you need to re-index data




Magento Gyaan !

In Magento, whenever you change the searchable attributes of product from admin panel, you need to re-index data using following step system->index management otherwise it will not work.

Thursday, February 28, 2013

Best way to add Google Analytics code snippet placement in web page

The Google Analytics code snippet placement in web page.
The tracking code is designed to read data from your page after the content for the page has finished loading. For this reason, the snippet should be located just before the closing </body> tag for your web page. For more story read here http://bit.ly/Y3klGn