Wiki

Sorted by commentsX
Displaying 381-390 of 482 result(s).

Disable login page if user is logged in

Created about a month ago by freezingbananaTutorials1 comment – viewed 3,541 times – ( +3 / -11 )
This is a very simple tutorial that demonstrates how to redirect user back to the returnUrl if he is already logged in.

Cron Jobs in Yii

Created about a month ago by aarondfrancisHow-tos1 comment – viewed 3,838 times – ( +4 )
I've gotten Yii running cron jobs, and wanted to explain briefly how I did it.

Force a User to Change Their Password (ChangePasswordFilter)

Created about a year ago by waterloomattTutorials1 comment – viewed 8,980 times – ( +14 )
Sometimes you need to force a user to change their password after x number of days. This article describes how to implement this using a filter, ChangePasswordFilter.

Using CListView to display items next to each other (in columns)

Created 28 days ago by thyseusTips1 comment – viewed 2,011 times – ( +3 )
When using CListView to display multiple views next to each other, we can use the $index variable inside the viewFile to achieve this. As far as i know there is no extension or out-of-the-box functionality for this, so we need to apply a little hack:

How to provide a fallback or mapping for translation messages?

Created 13 days ago by schmunkHow-tos1 comment – viewed 1,063 times – ( +5 )
Sometimes you want to use exisiting translations for locales, which do not directly match. An example would be a website targeting Germany (de_de), Austria (de_at) and Switzerland (de_ch, fr_ch, it_ch). Although you may have exisiting translations for German (de), French (fr) and Italian (it), there are problems using it directly.

Integrating ZF2 into Yii - use case demonstrated

Created 10 days ago by BoazHow-tos1 comment – viewed 1,446 times – ( +7 )
I needed to use a class from ZF2 in my Yii project. I've read probably all there is about this subject and still I needed lots of trial & errors to get it working, probably due to my lack of experience working with namepsaces and ZF2 in general. Also, the resources on the web are all partial, at best. Most simply refer to ZF1 where things are technically different. When I got it all working I decided to record my findings and that's how this article was born. The below recipe is what worked for me, accompanied by relevant comments. References: This article is partially based on this guide page. Be sure also to consult Zend Framework 2 documentation.
tags: ZF2, 3rd party

model rules depended by user roles-permissions

Created a day ago by KonApazHow-tos0 comments – viewed 432 times – ( +2 )
This is a reference about model validators and user roles. In many cases we want model validators to applied only for some privileged users or not

Mantis Manager: An Asset Manager that minifies, combines, and publishes

Created about 21 hours ago by aarondfrancisTutorials0 comments – viewed 308 times – ( +2 )
Hello everybody.
tags: heroku, assets

How to filter data using a dropdown list?

Created 4 years ago by qiangTutorials0 comments – viewed 17,843 times – ( +6 )
A dropdown list can be used to select a value, based on which we can filter the data to be displayed. For example, the extension page has a dropdown list to filter the displayed extensions according to the selected category.