CActiveDataProvider With Custom Query

| Last Updated: | In: Yii framework


default

In This post i will explain the CActiveDataProvider With Custom Query. CActiveDataProvider everytime to retrieve the data for CGridView. But one of my project needed custom query in criteria and have to show the result in CGridView. Below is the source code for you that is enable the custom query in the model. Component MyActiveDataProvider …

Integrate ckeditor with Yii framework

| Last Updated: | In: Yii framework


Yii

This extension is used to widget uses CHtml:activeTextArea to create a textarea, and also creates a CKEditor instance and then replaces the textarea with a CKEditor. Download CKEditor from CKEditor extension Requirements This extension was created using Yii 1.1.9, but I would expect it to run on most 1.1 frameworks. Installation Use of this extension …

Ajax request and json response array in Yii framework

| Last Updated: | In: Yii framework


default

In this post i will explain the easy way to get the Ajax request and json response array in Yii framework. The controller will get and process the data then finally It will return the json encoded array.Using this response we can update the database tables. In view/_form.php page

In Your controller page

Model rules and validation in Yii framework

| Last Updated: | In: Yii framework


Yii

In this tutorial i explain the Model rules and validation in Yii framework which will understand the yii model rules, user defined functions. In yii rules function I added code (of yiiframework) for unique,email,password comparison, date, phone number, trim etc. Default Validation

Compare Validation

Date/Time Validation

Email Validation

Unique Validation

Url Manager Configuration in Yii framework

| Last Updated: | In: Yii framework


Yii

To change the URL format, we should configure the urlManager application component so that createUrl can automatically switch to the new format and the application can properly understand the new URLs. The complete URL management in yii framework for a Web application involves two aspects: When a user request comes in terms of a URL, …

Best PHP Frameworks for web developer

| Last Updated: | In: Freebies, PHP Tutorial, Yii framework


Zend-Framework

In this article, we collected some best PHP frameworks. These frameworks which help you develop a web applications. PHP is a server-side scripting language designed for web development but also used as a general-purpose programming language. Symfony Symfony is an Open Source PHP Web applications development framework. It was originally conceived by the interactive agency …

How to enable the authentication through the mysql database

| Last Updated: | In: Yii framework


authentication-200

In this tutorialsi explain the easy steps with code snipats which describe How to enable the authentication through the mysql database. The basic skeleton provided by the YII command line application, already includes a rudimentary authentication mechanism. This will check if the details entered matches the one specificed in the controller. Now what we want …