Wiki

Articles in category "how-tos"X
Displaying 231-240 of 350 result(s).

Entire Messages into javascript object

Created 3 years ago by markuxHow-tos0 comments – viewed 6,019 times – ( +2 ) – version 1.1
I needed all messages with their translation into javascript. This is my solution:

How to use Multiple instances of the same model in the same form

Created 3 years ago by kiran sharmaHow-tos21 comments – viewed 49,918 times – ( +22 / -6 ) – version 1.1
When i had created this functionality then i found some difficulties and not got much idea from wiki and forums. so, i think this will be useful for newbie users and save time of other developers when create related functionality. I refer Collecting Tabular Input tutorial but not got clear idea for create/update.

Extending CJuiDialog

Created 3 years ago by dstudioHow-tos0 comments – viewed 10,688 times – ( +2 / -2 ) – version 1.1
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

Created 3 years ago by rix.rix.How-tos1 comment – viewed 21,870 times – ( +7 ) – version 1.1
Sometimes you want to render a view in Fancybox.
tags: fancybox, ajax, views

How to create front and admin side login form

Created 3 years ago by vibhaJadwaniHow-tos8 comments – viewed 71,219 times – ( +6 ) – version 1.1
In this WIKI you can learn how to create front and admin login form, using database.

Alternative wildcard characters CDbCriteria

Created 3 years ago by maigretHow-tos0 comments – viewed 7,082 times – ( +3 ) – version 1.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

Created 3 years ago by rootbearHow-tos6 comments – viewed 10,700 times – ( +2 ) – version 1.1
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

ACL and RBAC

Created 4 years ago by zeroByteHow-tos0 comments – viewed 17,235 times – version 1.1
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

Created 4 years ago by pheadeauxHow-tos5 comments – viewed 13,759 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.

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

Created 4 years ago by sensorarioHow-tos1 comment – viewed 12,249 times – ( +8 ) – version 1.1
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