Sorted by date (updated)X
Displaying 451-460 of 598 result(s).

TDD with PHPUnit_Story and Yii

Updated 2 years ago by sidewinderTutorials1 comment – viewed 12,711 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 6,598 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 2 years ago by puteraTutorials2 comments – viewed 14,911 times – ( +7 ) – version 1.1
Functional Testing in Yii using Goutte and PHPUnit

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

Updated 2 years ago by Darwin WenHow-tos5 comments – viewed 20,501 times – ( +41 ) – 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 2 years ago by Darwin WenHow-tos9 comments – viewed 34,732 times – ( +21 ) – 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 2 years ago by Darwin WenTutorials3 comments – viewed 33,086 times – ( +4 ) – version 1.1
For a complete sample Nginx+PHP-FPM config, view this how-to: Nginx & PHP-FPM
tags: URL

Creating a database-driven hierarchical Structure combined with CMenu and superfish

Updated 2 years ago by thyseusTutorials9 comments – viewed 37,064 times – ( +15 ) – version 1.1
Note: Please also take a look at the newer EMenu extension. This works even better that the deprecated CDropDownMenu!
tags: menu

Windows Web Development With AMPPS, NetBeans and XDebug

Updated 2 years ago by macinvilleTutorials1 comment – viewed 17,776 times – ( +4 ) – version 1.1
This article will discuss how to setup your web development environment with the following specifications:

Como trasponer una lista creada con CHtml::checkBoxList

Updated 2 years ago by rdjteamTips3 comments – viewed 7,686 times – ( +2 ) – version 1.1
En ciertas ocasiones tenemos que lidiar con el tema de colocar una lista de checkboxes para hacer una seleccion especifica como es el caso de los dias de la semana para un calendario, para esta labor tenemos el comando CHtml::checkBoxList(), revisando un poco el funcionamiento de este temos los siguientes parametros:

Special $variables in CGridView and CListView

Updated 2 years ago by Steve FriedlTips10 comments – viewed 37,013 times – ( +23 / -1 ) – version 1.1
The popular CListView and CGridView widgets each take a data provider and iterate over each data object produced, calling the user's code to render each row one at a time, and most are familiar with the use of the $data variable to represent the current model object or array.