Articles in category "tutorials", sorted by date (updated)X
Displaying 191-200 of 255 result(s).

How to add a named scope to ActiveRecords with a behavior

Updated 6 years ago by yiqing95Tutorials2 comments – viewed 23,391 times – ( +4 / -1 ) – version 1.1
Since Yii 1.0.5 you can use named scopes with ActiveRecords. They are a great help in simplifying your query calls.

How to use Flash, Zend AMF and Yii Framework

Updated 6 years ago by janistoTutorials0 comments – viewed 12,024 times – ( +3 / -1 ) – version 1.1
This is a simple demo how to use Zend_AMF with Yii.
tags: flash, zend, Zend_AMF, AMF

Manage application configuration in different modes

Updated 6 years ago by 张 迪Tutorials5 comments – viewed 39,846 times – ( +17 / -1 ) – version 1.1
Info: This tutorial references the idea presented in Jonah's excellent blog article.

How to work with flash messages

Updated 6 years ago by François GannazTutorials12 comments – viewed 293,390 times – ( +60 / -1 ) – version 1.1
Set your messages in a controller:

Force a User to Change Their Password (ChangePasswordFilter)

Updated 6 years ago by waterloomattTutorials2 comments – viewed 19,849 times – ( +16 / -3 ) – 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.

Understanding Virtual Attributes and get/set methods

Updated 6 years ago by GOshaTutorials20 comments – viewed 153,121 times – ( +80 / -2 ) – version 1.1
When you define or extend a class, you can create class variables and methods in Yii just like you can in any other PHP system:

Understanding Autoloading, Helper Classes and Helper Functions

Updated 6 years ago by GOshaTutorials4 comments – viewed 103,120 times – ( +29 / -1 ) – version 1.1
Many Yii users ask how to create helper classes and functions, and though there are numerous approaches spread out among the forum and wiki articles, this Tutorial tries to bring it all together in one place.

Understanding "Assets"

Updated 6 years ago by GOshaTutorials12 comments – viewed 169,955 times – ( +57 / -1 ) – version 1.1
Many newcomers to Yii ask about the assets/ directory found under the webroot, and this article means to explain why it's there and how to work with it.

TDD with PHPUnit_Story and Yii

Updated 6 years ago by sidewinderTutorials1 comment – viewed 18,397 times – ( +7 / -1 ) – 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.

Autocomplete in console command

Updated 6 years ago by StammTutorials1 comment – viewed 10,647 times – ( +3 / -1 ) – version 1.1
Missed of autocomplete in bash console commands yii make me sad.