[Extension] extendeddbcriteria
Allows us the ability to create nested conditions in a single criteria
View Article[Wiki] How to use Expression in default AccessControl to allow only the owner...
Hi Everyone You can use 'expression' option in default accessControl in any controller to allow only the owner to do some action in the controller. You do not need to set up complex RBAC for simple...
View Article[Extension] yiifilemanagerfilepicker
online file manager for web users. allows multiple ajax uploads, progress bar, file management.
View Article[Extension] capplicationsettings
Read / write config settings from the DB like ActiveRecord
View Article[Wiki] CGridView Date Range Without Cookies or Session (External Filtering)
Here's a tutorial on how to create a CGridView with external date filters the trick is to create hidden columns within the CGridView Filters something like in the example below: first we have to create...
View Article[Wiki] Yii HMVC
Introduction Right now we can use widgets + action provider like in this tutorial: How to use a Widget as an Action Provider what i am going to introduce is a coding style that will result into a...
View Article[Wiki] Multiple Database Connection : Select database based on login user id,...
Create a component create a class file under protected\components named RActiveRecord.php using this code <?php class RActiveRecord extends CActiveRecord { private static $dbadvert = null; protected...
View Article[Wiki] Display image on CGridView column and open a fancy-box
First write your code on admin.php file $height='30px'; $width='30px'; array( 'name'=>'image', 'type'=>'html',...
View Article[Wiki] Useful Multilanguage extensions collection and use.
What I am want? 1,to use multi language url like this: http://www.your-domain-example.com/en/some-action/ http://www.your-domain-example.com/cn/some-action/ 2,different url with different views/text...
View Article[Wiki] Visualization tree-multi subcategories as listbox or dropdownlist
Do you want to make a listbox or dropdownlist to select one or more categories or sub categories ? I am sure you have seen that in cms like drupal-wordpress-joomla etc on administrator panel For...
View Article[Wiki] How to display page on fancybox...using CHtml::ajaxlink with yii...
first create the CHtml::ajaxlink echo CHtml::ajaxlink('Request New Liquor', array('liquor/addnewliquor'), array( "type" => "GET", "data" => array("vid" => $vid, "ajax" => true), "success"...
View Article[Wiki] make chart from custome queries using amcharts widget
Use this code in your view,make sure to put EAmChartWidget in your extension folder. here is the url of widget http://www.yiiframework.com/extension/eamchartwidget/ <?php $query ="SELECT count(*) as...
View Article