In this wiki I will show how could forcing login for all pages and users must be logged in to access almost all of the site’s content.
In this wiki I will show how could forcing login for all pages and users must be logged in to access almost all of the site’s content.
Translation from .txt file Note:
I wanted to customize the CJuiAutoComplete, so that it displays a thumb image before the label like the one shown in the following image:
Create param.php file in protected/config
Yii::app()->params['TEXT_ACTIVE'] = 'Active'; //1 for active
In this wiki I will show how to create own custom global function. It may be save the space and reduce the time.
In Yii, we can define an action class and ask the controller to instantiate it. And we always create ourselves actions class in rootPath/protected/extensions, and the view file we called in the actions class always are located in rootPath/protected/views/ControllerNAME or rootPath/themes/ThemeNAME/ControllerNAME, then when we use the same actions class in different controllers, we have to copy it...
Hi Friends, In this tutorial I write a code display dependent drop-down value using ajax call.
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.
This behavior will automatically set timestamp fields to the row creation and modification times.
login links will be
>Highslide JS is an open source JavaScript software, offering a Web 2.0 approach to popup windows. It streamlines the use of thumbnail images and HTML popups on web pages. > > + No plugins like Flash or Java required. > + Popup blockers are no problem. The content expands within the active browser window. > + Single click. After opening the image or HTML popup, the user can scroll further down...
According to the manual http://jp.php.net/manual/en/memcache.installation.php;
One of the common tasks the web application might be required to perform, especially the app using some kind of a CMS, is to save the history of data changes. Your client for sure will want the answer to this simple question - If I mess this up or delete by accident can we bring it back? Well, DB backup is one thing and quick recovery is another - let's talk about latter one.
Followings are the simple steps to put an analogue clock widget on your skeleton application that is just generated by yiic.
In this tutorial we will try to save cgridview filter(search) with title etc. basically we want to save two forms data i.e one represents filters and other data about filters like title, description etc. You can define your own structure for filter saving table here are some basic steps
But in the supposedly small share of webapps that don't ask users to activate their accounts, you can end up with a number of bounce messages and non-accessible active accounts.
These are functions that I used very often, may helps you!
How to profile user requests so you can determine which actions need an enhancements and optimizations? This wiki going to show you a step by step how to do it.
首先我们需要下载好Yii tinymce扩展,放入你的extensions目录下,
In this wiki I will show you how to save/update a model with many related model For example: How to set a product to multiple categories only in one post form ?