Showing 141-160 of 652 items.

Fixing extensions without modifying their code

Created 13 years ago by schmunk schmunk, updated 13 years ago by schmunk schmunk. 3 comments

If you're working a lot with extensions you often stumble upon problems, when you want to include them into your custom web application, like hardcoded or absolute path aliases or classes extended from core application components, which implement addiditonal features.

6 0
10
Viewed: 22 444 times
Version: 1.1
Category: Tips

Yet another implementation of CPhpAuthManager.

Created 13 years ago by seenivasan seenivasan, updated 13 years ago by seenivasan seenivasan. 3 comments

In this wiki, I try to implement a simple authorization schema without putting much logic inside a file or into database table. We are constructing authorization hierarchy inside the controller. We are getting roles for the current user from database table and assigning only roles to user that are declared in the particular controller. We have brought down the work of loading of auth data at ma...

5 1
7
Viewed: 22 955 times
Version: 1.1
Category: How-tos

Auto TDD - How to auto-run PHPUnit

Created 15 years ago by imehesz imehesz, updated 15 years ago by imehesz imehesz. 3 comments

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!

3 0
6
Viewed: 23 265 times
Version: 1.1
Category: Tips

An important tip when you are using CArrayDataProvider.

Created 14 years ago by sirin k sirin k, updated 9 years ago by Maurizio Domba Cerin Maurizio Domba Cerin. 0 comments

Yii's CArrayDataProvider is very helpful to display model relation data's directly on it.But it is truely a confusing one because by default it will assume a table field named “id” as primary key for its pagination purpose and what if you dont have field named “id” as primary key on your table? so its truely confusing and if you tried to display without an “id” field on ur table you will get an...

5 1
5
Viewed: 23 354 times
Version: 1.1
Category: Tips