Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 21-30 of 354 result(s).

Yii2cdn Component

Updated about a year ago by junaidatariHow-tos0 comments – viewed 9,983 times – ( +1 / -1 ) – version 2.0
Yii2cdn
tags: yii2, cdn, assets

How to avoid rendering entire page on AJAX call for CGridView and CListView

Updated about a year ago by VINAY Kr. SHARMAHow-tos6 comments – viewed 24,610 times – ( +5 / -1 ) – version 1.1
CGridView and CListView are great widget to populate records and also provides features like ajax update, column sort, search, drop-down filter, ajax content load and many more...

Yii 2 Advanced Project Template using Shared Hosting

Updated about a year ago by marciocamelloHow-tos0 comments – viewed 6,499 times – ( -1 ) – version 2.0
https://github.com/marciocamello/yii2-app-advanced-sh

How to translate and do the translations the easy way

Updated about a year ago by Roman SolomatinHow-tos3 comments – viewed 68,877 times – ( +28 / -3 ) – version 1.1
I wanted to keep all the I18N related translations in separate files, so that I would not need to modify the view files or the model files every time I need to update or fix the translations of application's source language.

Escape from Default's Yii2 Delete Confirm Box

Updated about a year ago by CozumelHow-tos8 comments – viewed 25,233 times – ( +9 / -2 ) – version 2.0
If you started playing with Yii2's new GridView, you will soon realize that some things have improved quite a lot, but I am sure its going to be a bit confusing at first glance when you try to modify certain javascript behaviors like for example, its delete confirmation dialog box.

Handling recursive deletion in Yii

Updated about a year ago by JamesBarnsleyHow-tos3 comments – viewed 10,419 times – ( +3 / -1 ) – version 1.1
I www.jamesbarnsley.com was tasked to find a way to do recursive deletion in Yii. As I asked other developers and looked around the internet the usual answers all came up, use a plugin or use cascade delete at the DB level, but I did not want to do either of these.

Handling Bootstrap active tabs in Yii via URL

Updated about a year ago by JamesBarnsleyHow-tos17 comments – viewed 28,016 times – ( +7 / -1 ) – version 1.1
I (www.jamesbarnsley.com) found that when using the Yii Bootstrap tabs component you will sometimes want to direct the user to a specific tab and not necessarily the first tab. Yii Bootstrap already provides the "active" variable so you can define whether the tab is the active tab or not in PHP. I generally find though that a PHP solution to this problem is rather cumbersome as every tab component will need the PHP code inserted or you will have to extend the tab component somehow to do it.

How to implement form events

Updated about a year ago by deacsHow-tos4 comments – viewed 18,222 times – ( +6 / -1 ) – version 2.0
You have that, when a product is on development they can change its API anytime. This change is quite important though, its related on how to set the events of your form, for example, the useful beforeSubmit.
tags: yii2, forms, how to

MySQL migration environment

Updated about a year ago by Fabrizio CaldarelliHow-tos0 comments – viewed 5,950 times – ( -1 ) – version 2.0
It can happen that you work in development environment and you make changes to database tables structures, adding tables, or changing fields.

How to use a Widget as an Action Provider

Updated about a year ago by stinkytofuHow-tos15 comments – viewed 43,206 times – ( +27 / -1 ) – version 1.1
As written on the API docs: An Action Provider Widget is a widget that has declared several actions by using its 'public static function actions()'. After, a Controller can easily import all its declared actions on its 'public function actions()'.
tags: Widgets, CAction