The issue is covered in "The Definite Guide to Yii" (Error Handling - Handling Errors Using an Action).
The issue is covered in "The Definite Guide to Yii" (Error Handling - Handling Errors Using an Action).
This method was inspirated on the excellent text about different environments available at http://www.yiiframework.com/doc/cookbook/32/
The Definitive Guide introduces the fundamentals of managing URLs in a Yii application. In this tutorial, we introduce a practical technique that can quickly turn your application into using search-engine-friendly URLs.
The purpose of this post is to let anyone quickly find how to accomplish a configuration task, and list here all the posibilities of the config.php file and also link to pages that explain how is each thing implemented.
This little tutorial explains a way how you can retrieve more parameters from Yii::app()->user by adding a component that extends CWebUser and retrieves the user information from database table named User.
Below I have created an Html helper with methods to help me locate directories of my assets dynamically. Such assets may include CSS, JavaScript and images.
The easiest way to update content in AJAX is to use the renderPartial method.
This is a tutorial to work with radioButtonList which will handle enum datatype. Form design and validation both are detailed here.
Next to do is to download the Yii FCKeditor extension, created by Ascomae. Extract the downloaded file, and place the fckeditor/ widget folder in your web applications protected/extensions/ directory.
This is a tutorial for how to auto set model values without any code.
This is a tutorial for how to add input text-Field, check-box, buttons in CGridView.
To start with you need to download the latest stable release of CKeditor. Extract the downloaded file and place the ckeditor/ folder in your applications webroot directory. (beside "protected" and "css" and other directories)
There are good reasons to use Google's Content Delivery Network (CDN) to serve jQuery and jQuery UI on your site:
Have you ever wanted to use an auto-complete field to look up a user or some other data, but want the database ID of that user or data returned as well so that you can more easily perform some function when the form is submitted? Thanks to Yii's CAutoComplete widget and [jQuery's Autocomplete plugin](http://plugins.jquery.com/project/jq-autocomp...
Usually when we use AutoComplete in a project, We need to show "title" or "name" in the list, while when the form is posted, we need some sort of integer ID referring to the selected value. Out of the Box, CJuiAutoComplete widget doesn't provides different display text and post values.
By default, the decimal separator in php (also in mysql) is a dot (.). So when we work with floats in Yii (in calculations, validation, sql statements etc.), the decimal separator has to be a dot. If we want to use for example a comma (,) as the decimal separator, that is if we want to display numbers and enable users to enter numbers with a comma before the decimals, we have to...
How many of us wonder how we can upgrade the website without hurting the operation of our WebApp?
Inspired by it I extended the CButtonColumn class like this:
If you need simple Role based access control without the long RBAC process then this article is just for you. Lets jump to the point.
This tutorial will guide you through the process of creating a yii application using Cloud9. We will use a git workspace to enable version control and also show how to link the Cloud9 workspace to GitHub.