Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 1-10 of 348 result(s).

How to send POST data from CActiveForm with a CListView inside

Updated 23 days ago by oligalmaHow-tos0 comments – viewed 4,079 times – ( +1 ) – version 1.1
If you want to see a live demonstration of what I mean by "how to send POST data from CActiveForm with a CListView inside" you can take a quiz from here and you will understand.

How to have truly multilingual URLs

Updated about a month ago by oligalmaHow-tos1 comment – viewed 2,815 times – version 1.1
We can easily have a multilingual site if we put a "lang" parameter that comes via GET. For example:

How to implement form events

Updated 2 months ago by deacsHow-tos4 comments – viewed 8,705 times – ( +6 ) – 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

How to install Yii 2 advanced on a shared hosting environment

Updated 2 months ago by oligalmaHow-tos1 comment – viewed 5,337 times – ( +1 ) – version 2.0
I've read many comments that it's not possible to install Yii 2 advanced on a shared hosting environment, as it has two webroots. This is partially true.

MySQL migration environment

Updated 2 months ago by Fabrizio CaldarelliHow-tos0 comments – viewed 3,431 times – 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 2 months ago by stinkytofuHow-tos14 comments – viewed 38,344 times – ( +27 ) – 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

Cron Jobs in Yii

Updated 3 months ago by Roman SolomatinHow-tos1 comment – viewed 18,899 times – ( +4 ) – version 1.1
I've gotten Yii running cron jobs, and wanted to explain briefly how I did it.

How to use nested DB transactions (MySQL 5+, PostgreSQL)

Updated 3 months ago by BoazHow-tos6 comments – viewed 36,502 times – ( +46 ) – version 1.1
Original source code and idea are from: PHP, PDO & Nested Transactions.

Simple Google Maps object for use with ajax maps

Updated 4 months ago by Chris BackhouseHow-tos1 comment – viewed 3,474 times – ( +1 ) – version 2.0
The Google mapping extension by Dos Amigos (link) is really great but there are difficulties with Google maps when you want to manipulate your map object with Ajax.
tags: googlemap, maps

Execute migration on server/linux using shell

Updated 4 months ago by dariooHow-tos2 comments – viewed 2,881 times – version 2.0
It's easy to execute migration locally on XAMPP using cmd, but on server where you script is it's little bit harder.