Wiki

Sorted by commentsX
Displaying 391-400 of 467 result(s).

i18n for your model in just 1 line

Created 3 years ago by mintaoTutorials0 comments – viewed 8,495 times – ( +12 )
A simple trick to get the localized version of a model field is to add this little method to your models.
tags: i18n

Widget Personalizado

Created about a year ago by CálcioTutorials0 comments – viewed 4,001 times – ( +5 )
Nesse wiki vou tentar exemplificar de forma mais clara e objetiva o uso de widget com o CDataProvider.

MVC primer and 5 minute form walkthrough

Created about a year ago by rix.rix.Tutorials0 comments – viewed 11,584 times – ( +8 )
This tutorial assumes some basic knowledge of Yii and a functional development environment.
tags: Forms, tutorial, mvc

Named scope - Get orphan AR without losing primary key

Created 2 years ago by cmaTutorials0 comments – viewed 3,867 times
Sometime, in a many-to-many relation, you need to retrieve AR that aren't linked. In practice, AR with null value in the join table. So you implements a criteria like this :

Adding Bash Command Completion for Yii Commands

Created 11 months ago by Dustin OpreaHow-tos0 comments – viewed 3,955 times – ( +1 )
This article discusses the installation/configuration of the YiiBash project (https://github.com/dsoprea/YiiBash).

How to add an analogue clock widget on your skeleton application

Created 2 years ago by mocapapaTutorials0 comments – viewed 4,648 times – ( +1 )
Followings are the simple steps to put an analogue clock widget on your skeleton application that is just generated by yiic.

Reading the doc

Created 2 years ago by zaccariaTips0 comments – viewed 5,253 times – ( +21 )
Almost all the information you need whilst working with yii is written in the Class Reference.
tags: doc

Using the jamselect widget with min and max values

Created 2 years ago by got 2 doodleHow-tos0 comments – viewed 6,255 times – ( +2 )
I needed to have users select from a list of keywords, in this example they must select at least two keywords but they cannot select more than six.

ACL and RBAC

Created 10 months ago by zeroByteHow-tos0 comments – viewed 6,781 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 the jqueryslidemenu plugin with CMenu

Created 2 years ago by Antonio RamirezHow-tos0 comments – viewed 20,593 times – ( +18 / -1 )
Yii makes it really easy for all to use their already made objects that automate everything we do. It provides also great power of flexibility and styling but hey, we programmers tend to complicate our lives and push a little more the power of our tools.