Wiki

Sorted by ratingX
Displaying 541-550 of 688 result(s).

Auto TDD - How to auto-run PHPUnit

Created 3 years ago by imeheszTips3 comments – viewed 12,312 times – ( +3 / -1 ) – version 1.1
If you are lucky enough and have the privilege to develop on a Linux based environment, this little tip might boost-up your TDD process (at least the Unit Testing part). Please note, that this should work just fine with Apple computers also, but not tested!
tags: PHPUnit, testing, TDD

Instantiate a child class that depends a type field from parent model class (CActiveRecord)

Created about a year ago by robregonmHow-tos2 comments – viewed 6,359 times – ( +3 / -1 ) – version 1.1
[EN] [ES]

My Own Components Folder in Yii2

Created 3 months ago by CTalaTips0 comments – viewed 1,547 times – ( +3 / -1 ) – version 2.0
In Yii1 I used to have my own components under the components folder of the structure, now with namespacing this is a little bit different.

I18n / localised routes in Yii

Created 2 months ago by ElecenHow-tos1 comment – viewed 1,165 times – ( +3 / -1 ) – version 1.1
So, you need localised urls made simple that follow the Yii framework guidelines?
tags: i18n, Routing

How to prevent Login from two places?

Created 2 months ago by Rohit SutharTutorials0 comments – viewed 2,465 times – ( +3 / -1 ) – version 1.1
In this wiki I will show how to Disallowing login from multi places. User can login or access their account at time, only single place.

defaultScope

Created about a year ago by Gerhard LiebenbergHow-tos4 comments – viewed 10,879 times – ( +3 / -1 ) – version 1.1
This example includes a composite condition as well as an empty condition - as if you bypass or disable defaultScope without using resetScope().

Ativando temas no Zii Widgets

Created 3 years ago by Ivan WilhelmTutorials3 comments – viewed 7,167 times – ( +4 / -2 ) – version 1.1
Um aspecto do design da interface de usuário tem a ver com a coerência do design e da utilização das cores entre os diferentes componentes da interface do usuário utilizada.

Caching the config main.php

Created 2 years ago by dckurushinTutorials11 comments – viewed 11,387 times – ( +4 / -2 ) – version 1.1
The config long array included every time, and it's not cached at all!

YII SaaS Multi Tenant application with single database

Created about a year ago by Rajith RTutorials5 comments – viewed 8,626 times – ( +10 / -10 ) – version 1.1
Lots of people are asking how to solve it with YII,We think its difficult with YII. But its easy to solve . There is no database triggers needed . we can simply sove it by extending a class(say "RActiveRecord") from CActiveRecord .Then extend all our model classes from that class.

Simple Ajax popup

Created 11 months ago by Rajith RTutorials1 comment – viewed 19,647 times – ( +10 ) – version 1.1
Simple Ajax popup view with Ajax link