Wiki

Sorted by date (updated)X
Displaying 411-420 of 483 result(s).

Updating fields on a form with Ajax and Json

Updated 2 years ago by Russell EnglandHow-tos4 comments – viewed 31,964 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 14,340 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,600 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,990 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 13,125 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 9,255 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".

CJuiDialog for create new model

Updated 2 years ago by Maurizio DombaTutorials40 comments – viewed 51,872 times – ( +57 )
In this tutorial we will learn how to realize a create interface using a dialog.

Using jQuery UI 1.8.10 themes with Yii 1.1.6

Updated 2 years ago by samdarkTips7 comments – viewed 12,282 times – ( +2 )
When using the latest stable jQuery UI themes (1.8.10) with Yii 1.1.6 (which uses 1.8.6) the widgets don't appear (they're invisible but they're there). In order to make them visible you need to change the following line:

Functional tests independing from your urlManager settings

Updated 2 years ago by RusAlexTips1 comment – viewed 5,512 times
If you are testing your app and use urlManager in your config, sometimes you will find a problem: you want to test your site independing from urlManager settings. in that way you need to extend your WebTestCase class by this method:

Preventing CJuiTabs from hiding drop-down CMenu items

Updated 2 years ago by RusAlexTips1 comment – viewed 6,393 times – ( +4 )
Almost all Yii applications use CMenu at the top of each page to show options available to the user, and many include drop-down components to allow more fine-grained selection.