Wiki

Displaying 331-340 of 482 result(s).

Understanding "Safe" Validation Rules

Created 2 years ago by Steve FriedlFAQs8 comments – viewed 41,854 times – ( +74 )
A common source of confusion among new Yii users is how the 'safe' validator works, how it works with other validators, and why it's necessary in the first place. This article means to clear up this confusion, as well as explain the notion of Massive Assignment.

CGridView and AjaxForm Connect

Created 2 years ago by PinkBrainPlanHow-tos2 comments – viewed 14,352 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

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

Keeping a running total in a CGridView

Created 2 years ago by Steve FriedlHow-tos3 comments – viewed 15,738 times – ( +21 )
This tip created in conjunction with IRC #yii channel users emilsedgh and tydeas - thanks!
tags: CGridView

URL component access functions

Created 2 years ago by Steve FriedlTips1 comment – viewed 7,995 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

The directory structure of the Yii project site

Created 2 years ago by qiangOthers28 comments – viewed 70,818 times – ( +76 )
In this article, we describe the directory structure used by yiiframework.com - the official Yii framework website. While this structure may look overly complicated for small projects or may not be optimal in some sense, we believe it is appropriate for medium or large projects in a team development environment. In fact, we have successfully used the similar structure in some other big projects.
tags: directory, config

Impersonate Users within Yii Framework

Created 2 years ago by WoilTutorials5 comments – viewed 9,259 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".

Using Yii with Nginx and PHP-FPM

Created 2 years ago by LericHow-tos10 comments – viewed 26,780 times – ( +17 )
This config is built on an Ubuntu 11.04 server. Software is nginx, php-fpm (php5-fpm). For performance, it's recommended to run php-fpm in SOCKET mode, instead of accessing via IP:PORT. That is the method shown below.

Cookie management in Yii

Created 2 years ago by TrejderHow-tos4 comments – viewed 45,563 times – ( +39 / -1 )
Cookie management in Yii is easy, but may not be so obvious for the beginners to this framework, so I wrote this simple article to clear some doubts out.

yii vim eclimd how it works

Created 2 years ago by RusAlexHow-tos1 comment – viewed 5,559 times – ( +10 )
I want to create a wiki page, and therefore im opening this discussion on this forum, for answering all questions and see other opinions, how do you use vim with yii.
tags: vim, eclimd, vimrc