Posted 21 November 2013 - 07:25 AM
you could use either protected/extensions or protected/components (Personally Used components for this type of class)
check also this
I agree with Gustavo
It is also powerful and flexible for large scale websites
find our demo Yii extension on www.webkit.gr
Is it post useful? please v++ ;)
Posted 02 January 2014 - 07:19 PM
Thanks for you'r reply.
When I put my custom validation file under yii/validators directory and use fully qualified name this work. but when I put under another directory doesn't work.
I dont know how and where I add Yii::setAlias to auto load that file.
Posted 03 January 2014 - 12:06 PM
but this not work but if I put PhoneValidator.php under yii/validators it work.
For first situation realy not nead use setalias?
Again excuse me for my bad english.
Posted 03 January 2014 - 04:01 PM
Posted 03 January 2014 - 07:25 PM
Yii::setAlias('@myproject', realpath(__DIR__ . '/../../myproject'));
to params.php file
also in official document