Wiki

Sorted by date (updated)X
Displaying 311-320 of 469 result(s).

Understanding series articles

Updated about a year ago by GOshaTips0 comments – viewed 6,217 times – ( +16 )
Here are all wiki articles from "Understanding" series by Yii wiki contributors:

Understanding Virtual Attributes and get/set methods

Updated about a year ago by GOshaTutorials16 comments – viewed 46,412 times – ( +64 )
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 about a year ago by GOshaTutorials4 comments – viewed 36,832 times – ( +23 )
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 about a year ago by GOshaTutorials11 comments – viewed 63,964 times – ( +52 )
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.

File uploads in CForm (Form builder)

Updated about a year ago by Luke JurgsHow-tos2 comments – viewed 20,976 times – ( +8 )
While there is a reasonable amount of documentation regarding CForm (form builder) and file uploads seperately, there really is not any coverage of both in combination.

TDD with PHPUnit_Story and Yii

Updated about a year ago by sidewinderTutorials1 comment – viewed 9,253 times – ( +7 )
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 about a year ago by StammTutorials1 comment – viewed 5,300 times – ( +3 )
Missed of autocomplete in bash console commands yii make me sad.

Implementing a User Level Access System

Updated about a year ago by Darwin WenTutorials9 comments – viewed 26,319 times – ( +27 )
I would like to provide you a quick tip on how to implement user level access to your Yii applications.

Functional Testing in Yii using Goutte and PHPUnit

Updated about a year ago by puteraTutorials2 comments – viewed 10,889 times – ( +5 )
Functional Testing in Yii using Goutte and PHPUnit

How to use nested DB transactions (MySQL 5+, PostgreSQL)

Updated about a year ago by Darwin WenHow-tos4 comments – viewed 13,041 times – ( +32 )
Original source code and idea are from: PHP, PDO & Nested Transactions.