Wiki

Articles in category "how-tos", sorted by commentsX
Displaying 161-170 of 189 result(s).

Simple Share Widget for Facebook, twitter and google+

Created about a year ago by softarkHow-tos0 comments – viewed 9,959 times – ( +9 )
This widget will show a Facebook "like" button and "comments" box together with "tweet" button and "google plusone" button on your page.

Adding Bash Command Completion for Yii Commands

Created about a year ago by Dustin OpreaHow-tos0 comments – viewed 4,165 times – ( +2 )
This article discusses the installation/configuration of the YiiBash project (https://github.com/dsoprea/YiiBash).

Using the jamselect widget with min and max values

Created 2 years ago by got 2 doodleHow-tos0 comments – viewed 6,427 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 11 months ago by zeroByteHow-tos0 comments – viewed 7,333 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 21,165 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.

Alternative wildcard characters CDbCriteria

Created 11 months ago by maigretHow-tos0 comments – viewed 3,074 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:

Extending CJuiDialog

Created 10 months ago by dstudioHow-tos0 comments – viewed 5,485 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:

Changing Controllers Name

Created 2 years ago by TrejderHow-tos0 comments – viewed 8,304 times – ( +4 )
This very short how-to presents steps required to change controller name. It is oriented for less experienced users, which are starting their journey with Yii, to avoid common newbie pitfalls.

Entire Messages into javascript object

Created 9 months ago by markuxHow-tos0 comments – viewed 2,670 times – ( +1 )
I needed all messages with their translation into javascript. This is my solution:

Setting up PHPUnit and Selenium with IntelliJ IDEA/PhpStorm

Created 9 months ago by rAWTAZHow-tos0 comments – viewed 9,880 times – ( +5 )
This article intends to summarize the steps taken to set up PHPUnit and Selenium for a Yii project, with IntelliJ IDEA Ultimate (the IDE). It was done on Mac OS X 10.6.