Wiki

Sorted by viewsX
Displaying 341-350 of 692 result(s).

A simple class to use a different db for a module

Created 3 years ago by tydeas_drTips2 comments – viewed 12,638 times – ( +9 ) – version 1.1
What would you do if you want/need to have a different than the main database connection in an module's models?

Rendering Views and Updating them with Ajax

Created 10 months ago by Manish GuptaTips4 comments – viewed 12,579 times – ( +2 )
I wanted to implement a widget that could refresh itself through Ajax without refreshing the whole page. CGridView and CListView are excellent examples of such widgets.

Impersonate Users within Yii Framework

Created 3 years ago by WoilTutorials5 comments – viewed 12,508 times – ( +22 ) – version 1.1
For some applications it can be advantageous for administration reasons to allow site administrators to login as other users. This is sometimes called user impersonation or "becoming that user".

Auto TDD - How to auto-run PHPUnit

Created 3 years ago by imeheszTips3 comments – viewed 12,426 times – ( +3 / -1 ) – version 1.1
If you are lucky enough and have the privilege to develop on a Linux based environment, this little tip might boost-up your TDD process (at least the Unit Testing part). Please note, that this should work just fine with Apple computers also, but not tested!
tags: PHPUnit, testing, TDD

ACL and RBAC

Created 2 years ago by zeroByteHow-tos0 comments – viewed 12,419 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.

How to use the official Yii installer for Composer (**DEPRECATED**)

Created about a year ago by br0skHow-tos9 comments – viewed 12,355 times – ( +3 ) – version 1.1
This wiki shall be considered deprecated since the Yii installer for composer has been discontinued.

How to log context information to logger (session id, user, ...)

Created 5 years ago by olafureTutorials0 comments – viewed 12,274 times – ( +2 ) – version 1.1
Logging context information (session, user, ...) to the logfile can be of great help tracking down problems with specific users.
tags: Logging

The MrFisk IRC Bot

Created 2 years ago by rAWTAZOthers0 comments – viewed 12,219 times – ( +5 ) – version 1.1
MrFisk is a sleek little bot hanging out in the official #yii IRC channel on freenode, meant to serve Yii users with documentation lookups and other things. This document intends to provide a summary of what MrFisk can do for you and how to use his fin^H^Heatures.
tags: MrFisk, YiiBot, IRC, bot

Open bootstrap modal and load content via Ajax

Created 4 months ago by JbalTeroHow-tos1 comment – viewed 12,208 times – ( +2 ) – version 1.1
My goal here is to Open bootstrap modal and load ANY content using ajax response.