I have a class Helper in protected/components … and i want to call this method in main layout … is it possible to call this method in main layout…
I have a class Helper in protected/components … and i want to call this method in main layout … is it possible to call this method in main layout…
There is, I use a class with static methods
yes it is possible. if that classs extended from capplicationcomponent you have to register that component in components array at main.php and the you can call your component like this
Yii::app()->component->someMethod()
ok i try it … thanks for help…!!!
and it will work like cWebUser … checkAcsess()… got it…!!!