Wiki

Sorted by date (updated)X
Displaying 391-400 of 468 result(s).

To configure Yii path in Windows platform

Updated 2 years ago by CodaTutorials2 comments – viewed 16,607 times – ( +1 / -6 )
I can see many questions regarding configuring the path using Windows OS. I could hardly get the right information about it. The cook book has defined for Linux. So I would like to share my idea on it. To configure the Yii path using Windows OS,

Actions code reuse with CAction

Updated 2 years ago by Antonio RamirezHow-tos13 comments – viewed 17,297 times – ( +30 )
We all know how good 'gii' automates the code for us and we normally tend to be happy with what that tool offers at the beginning of our Yii learning curve. But as soon as you start working in larger and larger projects, you realize that its code is too repetitive to maintain and having a small pitfall in general actions means to go over and over through them to fix the issues.
tags: CAction, Tutorial

Extending common classes to allow better customization

Updated 2 years ago by Steve FriedlTips0 comments – viewed 13,977 times – ( +38 )
The two most commonly-used base classes in most Yii applications are CController and CActiveRecord, each extended to your own particular models and controllers.

caching controllers with filters()

Updated 2 years ago by Maurizio DombaHow-tos0 comments – viewed 6,710 times – ( +2 )
Hello, this article will describe some aspects about caching controllers with filters() method in your controller. And I will describe some problems I meet when using this approach for caching, the main problem was

Updating fields on a form with Ajax and Json

Updated 2 years ago by Russell EnglandHow-tos4 comments – viewed 31,010 times – ( +12 / -1 )
I'm developing a website that has an option to look up a car's registration number via SOAP and return additional details such as make, model, colour etc.

CGridView and AjaxForm Connect

Updated 2 years ago by PinkBrainPlanHow-tos2 comments – viewed 13,968 times – ( +1 )
As I'm new to the framework (2 weeks) - I tried to build a functionallity I already use a lot in my old framework (PRADO). This means combining a GridView with a form. And this in one page, what allows you to select a record from the grid and view the values in the same page without jumping to a new page.
tags: Ajax, Form, CGridView

How to use Smarty renderer in Yii

Updated 2 years ago by dongbetaHow-tos2 comments – viewed 11,232 times – ( +3 )
At first, create a class named SmartyRenderer under application/components or any directory you want.
tags: smarty, renderer

URL component access functions

Updated 2 years ago by Steve FriedlTips1 comment – viewed 7,765 times – ( +28 )
Many applications wish to obtain parts of the URL for the current page (the hostname, the query string, etc.), and the CHttpRequest class wraps various $_SERVER variables to break down the URL into its constituent parts.
tags: URL, request

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

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

Impersonate Users within Yii Framework

Updated 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".