Wiki

Articles in category "how-tos", sorted by date (updated)X
Displaying 91-100 of 183 result(s).

Multiple-database support in Yii

Updated 9 months ago by phazeiHow-tos8 comments – viewed 36,091 times – ( +20 )
The customary configuration of a Yii application includes just a single database section in the protected/config/main.php file, but it's easy to extend this to support more than one, tying each Model to one of the databases.
tags: Database

Extending CJuiDialog

Updated 9 months ago by Maurizio DombaHow-tos0 comments – viewed 5,203 times – ( +2 / -2 )
Sometimes you have CJuiDialog with different content but same buttons (or width, height). If you don't want to repeat yourself this is a great solution:

How to render a view in Fancybox using ajax

Updated 10 months ago by 张 迪How-tos1 comment – viewed 10,129 times – ( +5 / -1 )
Sometimes you want to render a view in Fancybox.
tags: fancybox, ajax, views

How to create front and admin side login form

Updated 10 months ago by vibhaJadwaniHow-tos6 comments – viewed 21,357 times – ( +4 )
In this WIKI you can learn how to create front and admin login form, using database.

Alternative wildcard characters CDbCriteria

Updated 10 months ago by maigretHow-tos0 comments – viewed 2,949 times – ( +1 )
In SQL, wildcard characters can be used in "LIKE" expressions; the percent sign (%) matches zero or more characters, and underscore (_) a single character. Sometimes users are not familiar with these or they are using different ones like (*) and (+) similar to regular expressions. My colleages do so and then i decided to add this feature by extending CbCriteria. Especially adding a new parameter $wildcard_chars to the method addSearchCondition to replace them if needed with standard SQL characters:

Publish yii webapp using Git push

Updated 10 months ago by rootbearHow-tos6 comments – viewed 3,634 times – ( +2 )
I did not invent this instructions, I read it somewhere and re-organized in my way as I was trying and it works for me;
tags: git

Model password confirmation field.

Updated 10 months ago by PashaLHow-tos5 comments – viewed 24,464 times – ( +7 )
I had some troubles with the password confirmation field for when adding updating user records, so i thought that i should share the way i got it working.

ACL and RBAC

Updated 10 months ago by kevinkorbHow-tos0 comments – viewed 6,891 times
This HowTo assumes that you have a smattering of ACL in general and of how the acl-extension works basically. It will introduce you into the abstract and give you a hint on how to use Business-Rules. If you have in-depth questions, please refer to the extension documentation. Using ACL in an RBAC-manner cannot and should never obscure the fact that the underlying system is still ACL-based. In fact, the Business-Rules are just another layer in the permission-check plan.

Using SQLite and CDbMessageSource as a module

Updated 11 months ago by pheadeauxHow-tos4 comments – viewed 4,434 times – ( +4 )
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.

How to: use github for download yii, create new app, and store our modules or extensions.

Updated 11 months ago by Maurizio DombaHow-tos1 comment – viewed 4,714 times – ( +7 )
Yesterday I've written a module for myself. Just an experiment. When I was feeling satisfied, I've created a repository on github, and pushed my code. My module and yii are on github. So I'll show you a "new" way to start our yii projects.
tags: github, git