Wiki

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

Drills : Search by a HAS_MANY relation in Yii 2.0

Updated 5 days ago by softarkTutorials0 comments – viewed 1,181 times – ( +3 ) – version 2.0
This article tries to describe the practical techniques of searching by a HAS_MANY relation using ActiveRecord of Yii 2.0.

Drills : Search by a HAS_MANY relation in Yii 1.1

Updated 7 days ago by softarkTutorials12 comments – viewed 28,611 times – ( +30 ) – version 1.1
Sometimes we get lost trying to search by a HAS_MANY relation using CActiveRecord or CActiveDataProvider in Yii 1.1. This article is a series of drills that try to describe the practical techniques of searching by a HAS_MANY relation.

Creating a dependent dropdown

Updated 16 days ago by Paul_KishTutorials51 comments – viewed 258,253 times – ( +108 / -3 ) – version 1.1
Often you'll need a form with two dropdowns, and one dropdown's values will be dependent on the value of the other dropdown. Using Yii's built-in AJAX functionality you can create such a dropdown.

Widget Personalizado

Updated 16 days ago by CálcioTutorials0 comments – viewed 6,085 times – ( +6 ) – version 1.1
Here I will explain with the clear way and objective an use the widget with CDataProvider.

Clean JavaScript code in your views

Updated 22 days ago by David NewcombTutorials6 comments – viewed 17,443 times – ( +19 ) – version all
This tutorial presents a way of separating JS code from views and passing to it values from PHP.

By Example: CHtml

Updated 23 days ago by Rohit SutharTutorials15 comments – viewed 573,743 times – ( +107 / -1 ) – version 1.1
"By Example" cookbook pages will provide coding examples for many of the commonly used classes within Yii. We will try to provide as many usage examples as possible for keep these pages as helpful as possible.

Create Excel File with PHPExcel Plugin (Insert Image in Excel Sheet ,Use Template to Create Excel File, Create New Sheet)

Updated about a month ago by codesutraTutorials5 comments – viewed 36,052 times – ( +7 ) – version 1.1
This is an example for how to create Excel File with PHPExcel library.This article is inspired by Wikki Article return by Antonio Ramirez and extension created by marcovtwout for PHPExcel library.

Use crypt() for password storage

Updated about a month ago by fsbTutorials16 comments – viewed 62,631 times – ( +24 ) – version 1.1
Update: This wiki has been rewritten to be in line with Yii 1.1.14. Since many of the detailed complexities are now handled by Yii, the article focuses on how the crypt() built-in function works and why it's important to use it correctly.

Gettext and Poedit HOWTO

Updated about a month ago by Maug LeeTutorials0 comments – viewed 1,044 times – version 1.1
Example settings when using Gettext for i18n.

RBAC Super Simple with Admin and User

Updated about a month ago by evercodeTutorials4 comments – viewed 4,723 times – ( +5 / -2 ) – version 2.0
One of the common requests I see in the forum is how to implement RBAC. While you can implement Yii 2's built-in RBAC, that might be too much for developers who are just starting with Yii 2 or have simpler needs. Sometimes you are looking for a fast solution and just want two flavors, user and admin. And even if you will eventually need more, you can use these methods as a starting point for developing your own features or move on to Yii 2's RBAC.