Wiki

Sorted by date (updated)X
Displaying 551-560 of 702 result(s).

Understanding Virtual Attributes and get/set methods

Updated 2 years ago by GOshaTutorials19 comments – viewed 92,191 times – ( +77 / -1 ) – 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 2 years ago by GOshaTutorials4 comments – viewed 68,232 times – ( +29 ) – 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 2 years ago by GOshaTutorials11 comments – viewed 114,548 times – ( +57 ) – 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.

File uploads in CForm (Form builder)

Updated 2 years ago by Luke JurgsHow-tos2 comments – viewed 33,902 times – ( +12 ) – version 1.1
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 2 years ago by sidewinderTutorials1 comment – viewed 14,058 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.

Autocomplete in console command

Updated 2 years ago by StammTutorials1 comment – viewed 7,129 times – ( +3 ) – version 1.1
Missed of autocomplete in bash console commands yii make me sad.

Functional Testing in Yii using Goutte and PHPUnit

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

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

Updated 3 years ago by Darwin WenHow-tos5 comments – viewed 25,102 times – ( +44 ) – version 1.1
Original source code and idea are from: PHP, PDO & Nested Transactions.

How to use single form to collect data for two or more models (CActiveForm and Ajax Validation edition)

Updated 3 years ago by Darwin WenHow-tos9 comments – viewed 39,744 times – ( +22 ) – version 1.1
With Yii you can use one CActiveForm for collecting data for two or more models with ajax validation and client validation.

How to hide index.php on nginx

Updated 3 years ago by Darwin WenTutorials3 comments – viewed 40,067 times – ( +4 ) – version 1.1
For a complete sample Nginx+PHP-FPM config, view this how-to: Nginx & PHP-FPM
tags: URL