Wiki

Sorted by commentsX
Displaying 421-430 of 687 result(s).

How to Setting Layouts in Yii

Created about a year ago by ruderbytesHow-tos2 comments – viewed 35,220 times – ( +2 / -5 )
usually someone confused to make layouts in yii.

Yii registry, how to use it, does it exist at all?

Created 2 years ago by dckurushinHow-tos2 comments – viewed 17,410 times – ( +7 / -1 ) – version 1.1
From time to time people ask about registry...

CGridView. Add custom class to table rows preserving original „odd“ and „even“

Created about a year ago by Maug LeeHow-tos2 comments – viewed 18,137 times – ( +4 ) – version 1.1
Lets say we have such a CGridView widget showing a list of users for administrator. Users have status „active“ or „disabled“. Grid widget puts class „odd“ or „even“ to rows and we want to preserve this. So we want to add a class „disabled“ to rows with disabled users.

Integrating ZF2 into Yii - use case demonstrated

Created about a year ago by BoazHow-tos2 comments – viewed 4,546 times – ( +9 ) – version 2.0
I needed to use a class from ZF2 in my Yii project. I've read probably all there is about this subject and still I needed lots of trial & errors to get it working, probably due to my lack of experience working with namepsaces and ZF2 in general. Also, the resources on the web are all partial, at best. Most simply refer to ZF1 where things are technically different. When I got it all working I decided to record my findings and that's how this article was born. The below recipe is what worked for me, accompanied by relevant comments. References: This article is partially based on this guide page. Be sure also to consult Zend Framework 2 documentation.

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 33,481 times – ( +15 / -1 ) – version 1.1
In this How-To I'll show you:

Windows Web Development With AMPPS, NetBeans and XDebug

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

Mantis Manager: An Asset Manager that minifies, combines, and publishes

Created about a year ago by aarondfrancisTutorials1 comment – viewed 3,463 times – ( +7 )
Hello everybody.
tags: heroku, assets

TDD with PHPUnit_Story and Yii

Created 2 years ago by sidewinderTutorials1 comment – viewed 13,654 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 5 years ago by meanpenguinTutorials1 comment – viewed 17,044 times – ( -2 ) – version 1.1
Once you are completed with the "Creating First Yii Application", the following can be done.

How to add more information to Yii::app()->user

Created 5 years ago by qiangTutorials1 comment – viewed 114,849 times – ( +26 ) – version 1.1
By default, the expression Yii::app()->user returns a CWebUser application component which represents the information that are closely related with the current user. Some information can be persistent throughout the current user session. For example, CWebUser already comes with a name property that stores the username of the current user.