Wiki

Articles in category "tutorials", sorted by commentsX
Displaying 61-70 of 172 result(s).

Use different environments (development, production, etc) in your app with EASY Environment Class

Created 2 years ago by nancoderTutorials5 comments – viewed 12,402 times – ( +6 )
Info: An extension was created based on this wiki page. See: http://www.yiiframework.com/extension/yii-environment/

Create image thumbnails with php_img_preview

Created 9 months ago by Anas AbuDayahTutorials5 comments – viewed 5,561 times – ( +3 )
This is another way to view images in your application and I like this way because it's simple and I think it's better performance than other.
tags: images, views

CButtonColumn: Use special variable $data for the 'id' in the 'options' of a button

Created 8 months ago by bluezedTutorials5 comments – viewed 7,049 times – ( +6 )
In an application I had a CGridView with a CButtonColumn and for an Ajax-Request I needed to make sure that the IDs of the buttons would not change when the GridView was updated so in effect I wanted to link them to the $data->id. So I tried:

Create Yii Project In Cloud9

Created 8 months ago by BenTutorials5 comments – viewed 7,668 times – ( +3 )
This tutorial will guide you through the process of creating a yii application using Cloud9. We will use a git workspace to enable version control and also show how to link the Cloud9 workspace to GitHub.

Impersonate Users within Yii Framework

Created 2 years ago by WoilTutorials5 comments – viewed 8,999 times – ( +20 )
For some applications it can be advantageous for administration reasons to allow site administrators to login as other users. This is sometimes called user impersonation or "becoming that user".

Manage application configuration in different modes

Created 4 years ago by qiangTutorials4 comments – viewed 20,884 times – ( +14 )
Info: This tutorial references the idea presented in Jonah's excellent blog article.

Integrating with other frameworks

Created 3 years ago by KJediTutorials4 comments – viewed 10,228 times – ( +3 / -1 )
When you need to integrate with other frameworks (e.g. Zend Framework), you have to follow these steps:

Setting application parameters dynamically in the back-end

Created about a year ago by PablovpTutorials4 comments – viewed 16,705 times – ( +10 / -1 )
I was wondering how to set-up the application parameters in the back-end to use them all around the application without the need of using the database and I came up with this solution, I hope it helps somebody else.

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

Created about a year ago by marcanuyTutorials4 comments – viewed 13,361 times – ( +15 )
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.

Simple access control

Created 11 months ago by szfjozsefTutorials4 comments – viewed 13,971 times – ( +2 / -6 )
For those who feel, the Controller->accessRules() or RBAC (Role-Based Access Control) is too complicated or doesn't want the username(s) to be hard-coded in accessRules(), here is a very simple, easy-to-implement solution.