Wiki

Articles in category "tutorials", sorted by viewsX
Displaying 31-40 of 230 result(s).

Dynamic parent and child CGridView on single view. Using $.ajax to update child gridview via controller, after row in parent gridview was clicked.

Created 2 years ago by Gerhard LiebenbergTutorials20 comments – viewed 61,538 times – ( +25 / -1 ) – version 1.1
This wiki is a step-by-step example explaining how the controller, model and the view's CGridView work together. It explains simple things - as well as more complex things that you will anyway quickly have to know. So, even if you don't use dynamic gridviews, take a morning off and thoroughly work through this tutorial. It should save you lots of struggling.

Organize directories for applications with front-end and back-end

Created 5 years ago by qiangTutorials10 comments – viewed 60,777 times – ( +28 ) – version 1.1
Large applications are often divided into front-end and back-end (or even more ends) depending on the target user groups. The front-end should be used by common users, while the back-end mainly the administrators or staff members. The two ends usually have dramatically different appearance, even though they may share a lot of code underneath. In this tutorial, we describe a way of organizing directories of the code for both ends.

Working with CGridView in Admin Panel

Created 2 years ago by vibhaJadwaniTutorials18 comments – viewed 59,309 times – ( +42 / -1 ) – version 1.1
This is a tutorial for how to add input text-Field, check-box, buttons in CGridView.

Using search engine and user friendly URLs

Created 4 years ago by qiangTutorials7 comments – viewed 59,203 times – ( +22 / -1 ) – version 1.1
The Definitive Guide introduces the fundamentals of managing URLs in a Yii application. In this tutorial, we introduce a practical technique that can quickly turn your application into using search-engine-friendly URLs.
tags: SEO, URL

How to customize the error message of a validation rule

Created 5 years ago by qiangTutorials4 comments – viewed 58,458 times – ( +17 / -1 ) – version 1.1
Validators extending from CValidator all have a property named message. You can set this property in the corresponding validation rule to customize the error message. For example, the following validation rule uses an error message that is different from the default one:

Adding search to Yii blog example (using Zend Lucene)

Created 2 years ago by dckurushinTutorials21 comments – viewed 57,775 times – ( +33 / -3 ) – version 1.1
For this tutorial I will add a search to the blog demo. The search would be based on Zend Lucene.

Use crypt() for password storage

Created about a year ago by fsbTutorials16 comments – viewed 56,914 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.

Installing Yii Users and Rights to Newly Created Yii app

Created about a year ago by Rajith RTutorials25 comments – viewed 56,723 times – ( +20 / -10 ) – version 1.1
After creating an yii app . we need to implement permission, Authentication and Authorization .so the best way is to use the Yii users and Rights modules.

How to create a breadcrumb widget

Created 5 years ago by knutTutorials4 comments – viewed 56,524 times – ( +12 ) – version 1.1
Here's a simple way to create a breadcrumb widget to be used in your templates. The idea is just to isolate how the breadcrumb is generated based on an array of crumbs.

Update/delete model with CJuiDialog (works in CGridView)

Created 3 years ago by ifdatticTutorials6 comments – viewed 53,742 times – ( +15 ) – version 1.1
This is based on this article.