Wiki

Sorted by commentsX
Displaying 51-60 of 470 result(s).

Searching and Sorting by Count of Related Items in CGridView

Created about a year ago by softarkHow-tos10 comments – viewed 16,234 times – ( +21 )
Let's say we have two models and relation between them:

Importing CSV file to mysql table using "LOAD DATA" command.

Created 11 months ago by sirin kTips10 comments – viewed 14,146 times – ( +5 )
hi, Here i am giving you some simple step to import huge data from a csv file to your mysql table.this is useful when you have a very huge data to import from csv format.
tags: csv, mysql, import

How to filter CGridView with From Date and To Date datepicker

Created 11 months ago by kiran sharmaTips10 comments – viewed 13,649 times – ( +11 )
This artical is related to allow user to filter CGridView with date range using datepicker on submit button. Here I use Yii Cookie to preserve date in datepicker textbox after submitting the form.

Getting to Understand Hierarchical RBAC Scheme

Created 2 years ago by daemonsTutorials10 comments – viewed 44,269 times – ( +50 )
Authentication and Authorization is a good tutorial. Among other topics, it describes basic aspects of Yii's RBAC implementation. But however hard I read the tutorial, I couldn't understand how exactly the hierarchy works. I found how to define authorization hierarchy, how business rules are evaluated, how to configure authManager, but almost nothing about how I should build my hierarchy, in what sequence its nodes are checked, when the checking process stops and what would be the checking result.

Using Yii with Nginx and PHP-FPM

Created 2 years ago by LericHow-tos10 comments – viewed 25,849 times – ( +17 )
This config is built on an Ubuntu 11.04 server. Software is nginx, php-fpm (php5-fpm). For performance, it's recommended to run php-fpm in SOCKET mode, instead of accessing via IP:PORT. That is the method shown below.

Caching the config main.php

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

Understanding the view rendering flow

Created about a year ago by dckurushinFAQs10 comments – viewed 68,464 times – ( +66 / -1 )
There is a lot of confusion surrounding what is happening behind the scenes when you render a view.

Understanding Scenarios

Created about a year ago by Luke JurgsTutorials9 comments – viewed 35,418 times – ( +21 )
Scenarios are an extremely useful tool for separating validation tasks on any class you use derived from CModel. In this tutorial we will use CActiveRecord.

How to set up Unicode

Created 4 years ago by MikeHow-tos9 comments – viewed 35,965 times – ( +16 )
To fix issues with display of special language characters once and for all there's a solution: use Unicode UTF-8 everywhere. If everything is set up to use Unicode, you can use mostly every language in your application.
tags: i18n, unicode

How to work with flash messages

Created 4 years ago by pfthTutorials9 comments – viewed 84,419 times – ( +48 )
Set your messages in a controller: