Wiki

Sorted by viewsX
Displaying 291-300 of 483 result(s).

Advanced CTabView using CClipWidget

Created 4 years ago by krillzipTutorials1 comment – viewed 8,157 times – ( +2 )
Here is a way to dynamically extend tabs based on clips. Probably even more complex things could be done.

Caching the config main.php

Created about a year ago by dckurushinTutorials10 comments – viewed 8,127 times – ( +4 / -1 )
The config long array included every time, and it's not cached at all!

URL component access functions

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

Show captcha after <N> unsuccessfull attempts

Created about a year ago by zitterHow-tos6 comments – viewed 7,965 times – ( +14 / -3 )
In this mini howto I would like to show how to add a required captcha field in the login form, after a defined number of unsuccessfull attempts. To do this, I will use the blog demo that you have in default Yii download package (path/to/yii/demos/blog).

How to make customizable Db Table prefixes using ActiveRecord

Created 3 years ago by killermonkTutorials0 comments – viewed 7,917 times
Note: As of Yii 1.1.x this functionality is integrated into the framework. If you are using 1.1.x please disregard this article and use the built-in functionality.

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

Created 9 months ago by bluezedTutorials5 comments – viewed 7,867 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:

adding class and links to Ctreeview node

Created about a year ago by bingjie2680Tips2 comments – viewed 7,798 times – ( +4 )
This article will show you how to add links and class to each node in ctreeview. so you can attach events in js by obtaining handler on anchor or class.
tags: ctreeview, link, class

Using events with CAction classes

Created about a year ago by Antonio RamirezTips0 comments – viewed 7,772 times – ( +8 )
There are some good guides out there explaining how to work with events and the ways to attach them to your components, but none (that I know) explain the following way to configure your events with CAction classes on your controllers the following way.

Auto set model fields values

Created 11 months ago by vibhaJadwaniTutorials3 comments – viewed 7,742 times – ( +7 )
This is a tutorial for how to auto set model values without any code.

Integrating Wordpress and Yii,Working Out The Details.

Created 9 months ago by drumaddictHow-tos3 comments – viewed 7,738 times – ( +7 )
This article is based on fr0d0z's article Integrating Wordpress and Yii: still another approach, using Yii as the router/controller and provides more details on how to set up this integration.To be more specific,the idea is not to use any main.php layout in Yii's controllers.This gives the advantage that we do not need to modify any Yii code when we switch a theme in WordPress admin panel,provided we have done a very basic setup which I explain below.
tags: wordpress