Transfer or Migrate existing git repository to GitHub.

As we know that GitHub announced free private repositories/projects for everyone and also lower down the prices for paid accounts as well. Now organization can make private repositories for development without paying any fees. So many users and organizations are thinking to move or migrate existing git repository to GitHub. Migrate project with git history …

Transfer or Migrate existing git repository to GitHub. Read More »

Yii2: How to setup pagination style and other labels

In Yii2 some time we need to setup pagination style according to our need or according to our theme. So setup style of pagination in Yii2 is very easy. Its same as in Yii.   <?= ListView::widget([    ‘dataProvider’ => $dataProvider,    ‘itemView’ => ‘_view’,    ‘pager’ => [        ‘options’=>[‘class’=>’pagination’],   // set clas name used in ui list …

Yii2: How to setup pagination style and other labels Read More »

How to use calendar to filter list data in CGridView

Some time there is need to filter data in CGridView list in Yii framework. So fill date by required format is not a good choice. So use CJuiDatePiker widget of Yii to select date and filter list. So How to add a calendar in filter area, see sample code. Sample Code <?php $this->widget(‘zii.widgets.grid.CGridView’, array(   …

How to use calendar to filter list data in CGridView Read More »

How to setup drop down for page size in CGridView in Yii Framework

I needed to create drop down for page size in CGridView. So I decided to share this code with all of you.  Here is the view of drop down in CGridView.   So to create drop down as shown above, Below is the code inserted in admin.php where CGridView is used. code in view/category/admin.php <?php …

How to setup drop down for page size in CGridView in Yii Framework Read More »

How to create listview page in Yii2

In Yii2 there no default listview page. So if you need to create list view page, then its not a difficult task. It is very easy. You need to do following steps. Step 1 First of all create your list action like public function actionList()    {        $dataProvider = new ActiveDataProvider([            ‘query’ => YourModelName::find();,         ]);        return …

How to create listview page in Yii2 Read More »

How to manage website/application name in Yii2

If your are looking for “How to manage website/application name in Yii2” or you want to manage your web application name from one place, then you need to do following configuration in your yii2 application, You need to update web.php config file $config = [ ‘id’ => ‘basic’, ‘name’=>’My Application’,   Then you can use it wherever with …

How to manage website/application name in Yii2 Read More »