1) include the fancybox extesion otherwise fancybox js
1) include the fancybox extesion otherwise fancybox js
I installed phpseclib because I needed to do some AES encryption in my project. After all the hassle of installing php lib, I found out that Yii already has a security module (securityManager). I finally decided to keep using phpseclib because it has one big advantage over Yii securityManager module, it does...
A simple trick to get the localized version of a model field is to add this little method to your models.
Suppose you have Products,Categories and each product belongs in many categories
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.
When someone want to send formatted HTML mails from a console application she/he will probably come across the problem of rendering view files.
As you know, the CDetailView widget displays details of a single model. If no formatting is specified, boolean values that are stored in the database as 0 and 1, are represented in the detail view as 0 and 1. If formatted as boolean, they are represented as 'No' and 'Yes'. We want to add i18n support, so that Yes and No appear in the current language.
Please join the party by adding your own favorite Yii programming errors. Be sure to leave at least a hint at the correction.
Yii's CArrayDataProvider is very helpful to display model relation data's directly on it.But it is truely a confusing one because by default it will assume a table field named “id” as primary key for its pagination purpose and what if you dont have field named “id” as primary key on your table? so its truely confusing and if you tried to display without an “id” field on ur table you will get an...
This page is created to supply short directions and general tips for managing a Yii application in Codelobster PHP Edition.
Hi friends,
First of all this is a very common problem, for more details see this post http://www.yiiframework.com/forum/index.php/topic/52052-upload-file-with-any-charset/
This tutorial describes how to connect to a remote service via tunnel when only most basic software is available on the remote server. It is not directly related to Yii. It could be hovewer useful for web developers working with shared hosting sites with limited access.
In this wiki I will show how to Disallowing login from multi places. User can login or access their account at time, only single place.
Since version 5.4 PHP can work as a simple webserver so you can develop Yii applications without installing Apache. That's how to use it:
In application development we often have to choose how to mange recurrent values.
All the basic functionality for an action used by the xupload extension. Check resources for the source code of this action
To get null
from database instead of empty strings you need to set up your DB connection as follows:
If you are lucky enough and have the privilege to develop on a Linux based environment, this little tip might boost-up your TDD process (at least the Unit Testing part). Please note, that this should work just fine with Apple computers also, but not tested!