Wiki

Articles in category "tutorials", sorted by ratingX
Displaying 51-60 of 239 result(s).

CJuiDialog and AjaxSubmitButton

Created 4 years ago by tydeas_drTutorials22 comments – viewed 91,234 times – ( +37 / -2 ) – version 1.1
Hello ppl. Even though i have a small experience with yii I though of writing this to help people which want to do something similar.
tags: AJAX

CGridView: Use special variable $data in the htmlOptions of a column (i.e. evaluate htmlOptions attribute)

Created 3 years ago by c@cbaTutorials3 comments – viewed 45,323 times – ( +28 / -1 ) – version 1.1
    For each column of the CGridView, we can specify name, value, htmlOptions, cssClassExpression etc. In the declarations of the attributes value and cssClassExpression we can use the "special" variable $data, for example like this: 'value'=>'$data->author->username',.     Now we might want to use $data in the declaration of the htmlOptions attribute, which is normally not possible, to generate for example the tag <td id="3" class="name_3">, where 3 is the id of the data model for the current row, i.e. $data->id. That is, we want to be able to use: 'htmlOptions'=>array('id'=>'$data->id', 'class'=>'"name_{$data->id}"')     Here's a way to accomplish this...

Implementing a User Level Access System

Created 3 years ago by Antonio RamirezTutorials12 comments – viewed 46,066 times – ( +28 / -1 ) – version 1.1
I would like to provide you a quick tip on how to implement user level access to your Yii applications.

How to customize Yii core messages?

Created 6 years ago by qiangTutorials7 comments – viewed 45,510 times – ( +18 ) – version 1.1
Yii core messages refer to static text strings in the core Yii framework code which are meant to be displayed to end-users (e.g. core exception messages, default validation error messages). Customization of these core messages is needed in two circumstances:

Starting your Yii Project Reference Guide (with Git VCS in Linux)

Created 3 years ago by marcanuyTutorials5 comments – viewed 25,685 times – ( +18 ) – version 1.1
I've found useful to have a step by step reference guide to work with Git with most used commands, feel free to update it with useful information you may find interesting too.

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

Created 3 years ago by Gerhard LiebenbergTutorials20 comments – viewed 72,509 times – ( +27 / -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.

Filter & Sort by calculated/related fields in GridView Yii 2.0

Created about a year ago by Kartik VTutorials21 comments – viewed 35,000 times – ( +49 / -4 ) – version 2.0
This wiki explains how to add calculated fields into your Yii Framework 2.0 gridview with filtering and sorting.

CListView AJAX filtering

Created 3 years ago by DragaTutorials17 comments – viewed 52,294 times – ( +17 ) – version 1.1
This tutorial shows how to filter CListView items by AJAX, and it's compatible with disabled JavaScript users In my case this has been done to filter users list

Manage application configuration in different modes

Created 5 years ago by qiangTutorials5 comments – viewed 32,426 times – ( +16 ) – version 1.1
Info: This tutorial references the idea presented in Jonah's excellent blog article.

Using search engine and user friendly URLs

Created 5 years ago by qiangTutorials7 comments – viewed 64,733 times – ( +23 / -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