Wiki

Sorted by ratingX
Displaying 321-330 of 599 result(s).

Include Yii framework in a Joomla module

Created 3 years ago by zaccariaHow-tos7 comments – viewed 18,153 times – ( +8 / -1 ) – version 1.1
Delploying anything using joomla's framework is quite difficult. The framework don't provide a good MVC structure and the documentation is very poor.

Yet another implementation of CPhpAuthManager.

Created about a year ago by seenivasanHow-tos3 comments – viewed 7,019 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.

Update two models with one view

Created 2 years ago by sensorarioTips10 comments – viewed 27,869 times – ( +10 / -2 ) – version 1.1
Suppose to have two models: Users and Emails. You do not want to store email in a Users model. And User can have 0 or many emails. This is the form generated to create a new user (just username).
tags: database, model, view, form

Installing and configuring the Yii User Management Module under a fresh skeleton application generated by yiic

Created 4 years ago by thyseusTutorials4 comments – viewed 58,682 times – ( +12 / -3 ) – version 1.1
p.s. latest version of this tutorial is always available unter the docs/ folder of the User Management Module.

Show captcha after <N> unsuccessfull attempts

Created about a year ago by zitterHow-tos7 comments – viewed 12,105 times – ( +14 / -4 ) – version 1.1
In this mini howto I would like to show how to add a required captcha field in the login form, after a defined number of unsuccessfull attempts. To do this, I will use the blog demo that you have in default Yii download package (path/to/yii/demos/blog).

How to write a simple application component

Created 2 years ago by zaccariaHow-tos5 comments – viewed 32,956 times – ( +19 / -7 ) – version 1.1
An application component is a confortable way for share information among all component of the application

multiple CActiveDataProviders in one CGridView

Created 9 months ago by KonApazHow-tos5 comments – viewed 7,875 times – ( +7 / -1 )
There is a few cases that you want more of one CActiveDataProvider displayed in one CGrideView How to do that?

Popup AJAX DialogBox without any extension

Created 9 months ago by KonApazHow-tos6 comments – viewed 9,610 times – ( +7 / -1 )
In this wiki I explain how to show a default popup dialogbox (like Gii does) using an existing module.

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

Created 7 months ago by Gerhard LiebenbergHow-tos3 comments – viewed 6,934 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.

Yii registry, how to use it, does it exist at all?

Created 2 years ago by dckurushinHow-tos2 comments – viewed 16,166 times – ( +7 / -1 ) – version 1.1
From time to time people ask about registry...