Wiki

Sorted by viewsX
Displaying 451-460 of 774 result(s).

Using SQLite and CDbMessageSource as a module

Created 4 years ago by pheadeauxHow-tos5 comments – viewed 13,843 times – ( +5 ) – version 1.1
There are scenarios when you work with DVCS (like Mercurial or Git) and CDbMessageSource. To my experience keeping the development database and production database in sync can be very time consuming. Plus, when working in a team, you never know when the database was updated.

Using events with CAction classes

Created 4 years ago by Antonio RamirezTips0 comments – viewed 13,833 times – ( +10 ) – version 1.1
There are some good guides out there explaining how to work with events and the ways to attach them to your components, but none (that I know) explain the following way to configure your events with CAction classes on your controllers the following way.

How to create a wrapper for a js library

Created 5 years ago by zaccariaHow-tos2 comments – viewed 13,785 times – ( +16 / -1 ) – version 1.1
This wiki will explain how to include a javascript library in a widget.
tags: wrapper, js, uploadify

Use CGridview to sort and filter CSqlDataProvider - when used with UNRELATED tables (or complex queries)

Created about a year ago by Gerhard LiebenbergHow-tos6 comments – viewed 13,778 times – version 1.1
I have two tables called hospitals and departments. I have a junction table between them which holds the departments in each hospital. But sometimes I need a list of "All hospitals with All possible departments" - regardless of whether they are linked in the junction table or not.

How to use bizRules in standard accessControl filter

Created 3 years ago by Maciej Li┼╝ewskiHow-tos8 comments – viewed 13,689 times – ( +3 ) – version 1.1
I assume you are familiar with accessControl standard filter. It allows you to separate privileges to run some action from action code itself. There is however one problem with most common usage - you cannot use bizRules, at least based on some parameters passed to 'checkAccess' just because it is hard to pass them in accessRules() result.

Remove Byte Order Mark (BOM) from files recursively

Created 2 years ago by Kostas Apazidis (KonApaz)How-tos3 comments – viewed 13,687 times – ( +5 / -1 ) – version all
Ok, this wiki is not only for yii projects.

How to create the custom Drop-down using CHtml::dropDownList

Created 2 years ago by Ankit ModiHow-tos1 comment – viewed 13,684 times – version all
Hi Friends, This tutorial may be help us create the custom drop-down menu using CHtml::dropDownList

Create image thumbnails with php_img_preview

Created 3 years ago by Anas AbuDayahTutorials6 comments – viewed 13,628 times – ( +3 ) – version 1.1
This is another way to view images in your application and I like this way because it's simple and I think it's better performance than other.
tags: images, views

Using MBMenu and Rights to automatically create menu item for your modules

Created 5 years ago by dinhtrungTips2 comments – viewed 13,468 times – ( +1 / -1 ) – version 1.1
Using Rights generator component, we can easily create a dynamic menu, in which we scan every modules' controllers, to access the index page of them.

More security in your applications with Yii and PHPIDS

Created 5 years ago by Rafael GarciaHow-tos1 comment – viewed 13,439 times – ( +8 ) – version 1.1
PHPIDS is a well known project that can be found in php-ids.org.
tags: phpids, security