Wiki

Articles in category "tutorials", sorted by ratingX
Displaying 111-120 of 253 result(s).

Force a User to Change Their Password (ChangePasswordFilter)

Created 5 years ago by waterloomattTutorials2 comments – viewed 18,063 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 5 years ago by Antonio RamirezTutorials2 comments – viewed 19,259 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.

Multiple Databases and Multiple Domains

Created 6 years ago by got 2 doodleTutorials2 comments – viewed 38,959 times – ( +15 / -2 ) – version 1.1
Add these lines in /config/main.php
tags: database

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

Created 3 years ago by aarondfrancisTutorials1 comment – viewed 6,044 times – ( +7 )
Hello everybody.
tags: heroku, assets

TDD with PHPUnit_Story and Yii

Created 5 years ago by sidewinderTutorials1 comment – viewed 17,218 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 5 years ago by puteraTutorials2 comments – viewed 21,657 times – ( +7 ) – version 1.1
Functional Testing in Yii using Goutte and PHPUnit

Running applications with Docker

Created about a year ago by schmunkTutorials1 comment – viewed 15,946 times – ( +7 ) – version 2.0
When building PHP web applications you usually have to take care about defining and providing a consistent development and production environment for your team. This includes your application packages, PHP-extensions, database servers and often further components such as a mail server or workers.

Encapsulate db and module configurations

Created 7 years ago by ricardogranaTutorials3 comments – viewed 12,435 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 7 years ago by Y!!Tutorials6 comments – viewed 27,949 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

SQL Logging and Profiling in FireBug (Yii 1.1)

Created 6 years ago by mindplayTutorials3 comments – viewed 25,764 times – ( +7 ) – version 1.1
During development, it's often very handy to have SQL logging and profiling.
tags: Logging