Wiki

Sorted by viewsX
Displaying 431-440 of 601 result(s).

Yet another implementation of CPhpAuthManager.

Created about a year ago by seenivasanHow-tos3 comments – viewed 7,055 times – ( +8 / -1 ) – version 1.1
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 main application level to controller level. This way we have pulverised auth data for entire site into smaller units. Finally we are going to look at couple of examples.

i18n All-in-one format and timezone conversions for date, time, timestamp and datetime.

Created 7 months ago by Gerhard LiebenbergHow-tos3 comments – viewed 7,038 times – ( +7 / -1 )
Most of the currently available functions/extensions/behaviors directly or indirectly use timestamps to perform "format" and "timezone" conversions. This creates problems for dates falling outside the timestamp range; and the two forms of conversions must often be done in separate processes. However, by using php's DateTime class (instead of timestamps), we can do both conversions on a single DateTime object (only 2 lines of code) for date, time, timestamp and datetime types - while php takes care of nightmares such as daylight saving times and more importantly, historical changes in timezones and daylight saving times.

How to make use of a fragment cache

Created 5 years ago by dalipTutorials0 comments – viewed 7,023 times – ( +1 ) – version 1.1
According to the manual http://jp.php.net/manual/en/memcache.installation.php;
tags: cache, memcache

yii vim eclimd how it works

Created 3 years ago by RusAlexHow-tos1 comment – viewed 6,996 times – ( +10 ) – version 1.1
I want to create a wiki page, and therefore im opening this discussion on this forum, for answering all questions and see other opinions, how do you use vim with yii.
tags: vim, eclimd, vimrc

Functional tests independing from your urlManager settings

Created 3 years ago by RusAlexTips1 comment – viewed 6,961 times – version 1.1
If you are testing your app and use urlManager in your config, sometimes you will find a problem: you want to test your site independing from urlManager settings. in that way you need to extend your WebTestCase class by this method:

Using recaptchlib in your projects

Created 3 years ago by Antonio RamirezHow-tos2 comments – viewed 6,948 times – ( +5 ) – version 1.1
It is good when someone writes extensions for us but trust, sometimes we forget about other approaches that, if we know the library, we shouldn't forget.

CGridView keep focus on the control after filtering

Created 2 years ago by jayalaHow-tos2 comments – viewed 6,946 times – ( +5 ) – version 1.1
You can find the reason why I wrote this article here.
tags: CGridView, filter

Adding a link to a CDataColumn

Created about a year ago by le_topTips6 comments – viewed 6,944 times – ( +3 ) – version 1.1
Backoffice Grid Views often list information like Posts for a blog while showing at the same time linked information like the User who wrote that post. For more efficiency, it is appropriate that the User is displayed as a link to the User detail page.

How to use EzComponents in Yii

Created 2 years ago by EhsanjsHow-tos0 comments – viewed 6,921 times – ( +5 ) – version 1.1
change your index.php

belajar AR : part 1 (learn AR : part 1)

Created 3 years ago by riandayTutorials0 comments – viewed 6,904 times – version 1.1
hai teman yii... apa kabar.. kembali lagi bersama catatan saya..
tags: indonesia