Wiki

Sorted by ratingX
Displaying 111-120 of 677 result(s).

CJuiDialog and AjaxSubmitButton

Created 4 years ago by tydeas_drTutorials21 comments – viewed 82,656 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

Simple RBAC

Created 2 years ago by hasanaviTutorials16 comments – viewed 60,795 times – ( +44 / -3 ) – version 1.1
If you need simple Role based access control without the long RBAC process then this article is just for you. Lets jump to the point.

How to use PHPExcel external library with Yii

Created 3 years ago by Antonio RamirezHow-tos13 comments – viewed 56,420 times – ( +28 / -1 ) – version 1.1
Trying to learn and help some other programmers to find their solutions on the Yii Forum (I think is a superb way to learn the framework), I was facing one challenge with an external library that a fellow programmer wanted to use -quite good indeed: PHPExcel. And what is PHPExcel?

Implementing a User Level Access System

Created 3 years ago by Antonio RamirezTutorials12 comments – viewed 40,558 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 set up Unicode

Created 5 years ago by MikeHow-tos10 comments – viewed 59,116 times – ( +18 ) – version 1.1
To fix issues with display of special language characters once and for all there's a solution: use Unicode UTF-8 everywhere. If everything is set up to use Unicode, you can use mostly every language in your application.
tags: i18n, unicode

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

Created 2 years ago by marcanuyTutorials5 comments – viewed 22,214 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.

Using International Dates

Created 3 years ago by Russell EnglandHow-tos4 comments – viewed 27,928 times – ( +18 ) – version 1.1
I needed British (dd/mm/yyyy) formatted dates throughout my application but found it very difficult to find examples of how to do this - until I found this excellent forum post http://www.yiiframework.com/forum/index.php?/topic/3649-dealing-with-i18n-date-formats/

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

Created 2 years ago by c@cbaTutorials3 comments – viewed 35,550 times – ( +27 / -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...

How to log changes of ActiveRecords?

Created 5 years ago by pfthTutorials7 comments – viewed 31,033 times – ( +34 / -2 ) – version 1.1
A simple and effective way to keep track what your users are doing within your application is to log their activities related to database modifications. You can log whenever a record was inserted, changed or deleted, and also when and by which user this was done. For a CActiveRecord Model you could use a behavior for this purpose. This way you will be able to add log functionality to ActiveRecords very easily.
tags: Logging

Accessing data in a join table with the related models

Created 2 years ago by fsbHow-tos8 comments – viewed 64,896 times – ( +26 / -1 ) – version 1.1
Sometimes the right place to store application data is in a join table. For example, movie viewers either like or don’t like the movies they watched.