Sorted by commentsX
Displaying 501-510 of 779 result(s).

TDD with PHPUnit_Story and Yii

Created 5 years ago by sidewinderTutorials1 comment – viewed 17,077 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.

First Yii App: CTabView

Created 7 years ago by meanpenguinTutorials1 comment – viewed 19,818 times – ( -2 ) – version 1.1
Once you are completed with the "Creating First Yii Application", the following can be done.

Q: My yiic tool cannot run model and crud commands. Why?

Created 7 years ago by qiangTutorials1 comment – viewed 8,922 times – version 1.1
Some PHP installations may use a different php.ini file for CLI PHP (command line PHP parser). As a result, when running the model or crud command in yiic shell, you may encounter errors like "YiiBase::include(PDO.php): failed to open stream..." or "...could not find driver", even though the requirement checker confirms you have PDO and the corresponding database driver.

Advanced CTabView using CClipWidget

Created 7 years ago by krillzipTutorials1 comment – viewed 12,239 times – ( +2 ) – version 1.1
Here is a way to dynamically extend tabs based on clips. Probably even more complex things could be done.

Autocomplete in console command

Created 5 years ago by StammTutorials1 comment – viewed 9,113 times – ( +3 ) – version 1.1
Missed of autocomplete in bash console commands yii make me sad.

Customizing the CMenu Widget

Created 3 years ago by mistrybTips1 comment – viewed 46,984 times – ( +5 / -1 ) – version 1.1
The CMenu class provides some useful features for generating menus in your web application.


Created 7 years ago by jonahTutorials1 comment – viewed 13,291 times – ( +2 / -2 ) – version 1.1
Note: currently a variant of this class CTimestampBehavior is included into Yii distribution package.

Building Page Specific Menus using CMenu

Created 3 years ago by mistrybHow-tos1 comment – viewed 11,303 times – version 1.1
The Yii Framework provides a sweet functionality that allows you to easily create page specific menus. What does this mean? This allows you to create one layout or CSS styling for your menu, and when each page is loaded, a new set of menu items is loaded in. This is useful for context specific sidebars within your application.
tags: CMenu

How to validate the uniqueness of multiple columns

Created about a year ago by oligalmaHow-tos1 comment – viewed 3,667 times – ( +1 ) – version 1.1
I am going to show you an effective way to validate the uniqueness of multiple columns.

Running applications with Docker

Created about a year ago by schmunkTutorials1 comment – viewed 14,791 times – ( +7 ) – version 2.0
When building PHP web applications you usually have to take care about defining and providing a consistent development and production environment for your team. This includes your application packages, PHP-extensions, database servers and often further components such as a mail server or workers.