Wiki

Displaying 351-360 of 597 result(s).

TDD with PHPUnit_Story and Yii

Created 2 years ago by sidewinderTutorials1 comment – viewed 12,697 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.

Serve jQuery and jQuery-UI from Google's CDN

Created 2 years ago by YetiTutorials15 comments – viewed 18,688 times – ( +13 / -1 ) – version 1.1
There are good reasons to use Google's Content Delivery Network (CDN) to serve jQuery and jQuery UI on your site:

Common Yii questions

Created 2 years ago by dckurushinFAQs2 comments – viewed 31,579 times – ( +21 ) – version 1.1
Here I suggest to list the most common questions you meet in the forum or freenode irc. Feel free to edit this wiki article, and add another question with answer

Windows Web Development With AMPPS, NetBeans and XDebug

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

Using events with CAction classes

Created 2 years ago by Antonio RamirezTips0 comments – viewed 9,978 times – ( +9 ) – version 1.1
There are some good guides out there explaining how to work with events and the ways to attach them to your components, but none (that I know) explain the following way to configure your events with CAction classes on your controllers the following way.

Como trasponer una lista creada con CHtml::checkBoxList

Created 2 years ago by rdjteamTips3 comments – viewed 7,674 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:

CPhpAuthManager - how it works, and when to use it

Created 2 years ago by dckurushinHow-tos5 comments – viewed 17,486 times – ( +1 / -4 ) – version 1.1
Before reading this article, you should first learn this How to setup RBAC with a php file

Special $variables in CGridView and CListView

Created 2 years ago by Steve FriedlTips10 comments – viewed 36,935 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.

Reliable Alternative For Yii::app()->request->isAjaxRequest AND Adding Data To Ajax Form With JS

Created 2 years ago by ibo_sHow-tos2 comments – viewed 29,898 times – ( +15 / -1 ) – version 1.1
In this How-To I'll show you:

Yii for beginners

Created 2 years ago by rackyczTutorials13 comments – viewed 186,388 times – ( +91 ) – version 1.1
Hi. This is first article with my Yii tutorial. I had to split it into more articles as there's limited length of texts on Wiki. So once you understand basics, you can read next article here: Yii for beginners 2.