Wiki

Articles in category "tutorials", sorted by ratingX
Displaying 101-110 of 230 result(s).

Force a User to Change Their Password (ChangePasswordFilter)

Created 3 years ago by waterloomattTutorials2 comments – viewed 14,197 times – ( +16 / -2 ) – version 1.1
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.

Avoiding duplicate script download when using CActiveForm on Ajax calls

Created 3 years ago by Antonio RamirezTutorials2 comments – viewed 15,494 times – ( +12 / -1 ) – version 1.1
Sometimes the active form we wish to use to edit/add a new element on our database is too small and we believe that is much better to use an AJAX'ed dialog/slide form rather than reloading the page to just display one or two fields.

Setting application parameters dynamically in the back-end

Created 2 years ago by PablovpTutorials6 comments – viewed 28,424 times – ( +11 / -1 ) – version 1.1
I was wondering how to set-up the application parameters in the back-end to use them all around the application without the need of using the database and I came up with this solution, I hope it helps somebody else.

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

Created about a year ago by aarondfrancisTutorials1 comment – viewed 3,596 times – ( +7 )
Hello everybody.
tags: heroku, assets

TDD with PHPUnit_Story and Yii

Created 2 years ago by sidewinderTutorials1 comment – viewed 13,845 times – ( +7 ) – version 1.1
Unfortunately Sebastian Bergmann decided to remove PHPUnit_Story from future PHPUnit versions. Thanks to elvan for pointing me to the relevant comment. As an alternative Behat has been suggested but it seems too bloated for me TBH. There is also PHPSpec but it's non flexible enough for me and tightly bound with English language (What's the purpose of using DSL if customers can't speak English). Since both frameworks are quite young I think I'll just stick to PHPUnit and see what's going on on the BDD frameworks arena. Even PHPUnit_Story parts of this entry are going to be deprecated soon, rest is still valid! When doing TDD, please write tests with design and behaviour of application in mind instead of testing single functions.

Functional Testing in Yii using Goutte and PHPUnit

Created 2 years ago by puteraTutorials2 comments – viewed 16,436 times – ( +7 ) – version 1.1
Functional Testing in Yii using Goutte and PHPUnit

Log Activity in DataBase

Created about a year ago by mahdi1986Tutorials6 comments – viewed 9,545 times – ( +7 ) – version 1.1
In this article i will explain how to customize log activity in database, Imaging you need to save IP user, Url request and user_name in database,But table created by default with Yii only have id,level,category,logtime and message

Tabular Input, Validating and Saving related models

Created about a year ago by Xavier JohnTutorials4 comments – viewed 14,616 times – ( +7 ) – version 1.1
This tutorial shows how to use a model to save and validate related (MANY_MANY) models.

Encapsulate db and module configurations

Created 4 years ago by ricardogranaTutorials3 comments – viewed 9,421 times – ( +7 ) – version 1.1
This method was inspirated on the excellent text about different environments available at http://www.yiiframework.com/doc/cookbook/32/
tags: module

I18n subdomains and url-rules

Created 4 years ago by Y!!Tutorials6 comments – viewed 21,937 times – ( +7 ) – version 1.1
This guide is for more or less advanced users. If you just started with Yii or didn't worked with any web-framework before, you may should come back later :-)
tags: i18n, URL