Wiki

Articles in category "tutorials", sorted by date (updated)X
Displaying 31-40 of 250 result(s).

RBAC Super Simple with Admin and User

Updated about a year ago by evercodeTutorials10 comments – viewed 46,417 times – ( +15 / -3 ) – 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.

Drills : Search by a HAS_MANY relation in Yii 1.1

Updated about a year ago by softarkTutorials13 comments – viewed 44,437 times – ( +33 ) – 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 about a year ago by Paul_KishTutorials53 comments – viewed 315,569 times – ( +111 / -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 about a year ago by CálcioTutorials0 comments – viewed 7,501 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 about a year ago by David NewcombTutorials6 comments – viewed 28,806 times – ( +20 ) – version all
This tutorial presents a way of separating JS code from views and passing to it values from PHP.

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

Updated about a year ago by codesutraTutorials5 comments – viewed 64,711 times – ( +8 ) – 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 year ago by fsbTutorials16 comments – viewed 88,856 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 year ago by Maug LeeTutorials0 comments – viewed 4,989 times – version 1.1
Example settings when using Gettext for i18n.

How to display page on fancybox...using CHtml::ajaxlink with yii validation

Updated about a year ago by Rohit SutharTutorials2 comments – viewed 11,486 times – ( +2 ) – version 1.1
1) include the fancybox extesion otherwise fancybox js

Simple Way to Upload and Save File

Updated about a year ago by Misbahul D MunirTutorials0 comments – viewed 14,636 times – ( -2 ) – version 2.0
This tutorial need extension mdmsoft/yii2-upload-file. Follow the intruction to install. After installation done, create controller and action