I am using Yii 1.1.12 I have a class something like this:
project_folder/protected/components/myfolder/ClassA.php
class ClassA {
public function getData() {
return 'data';
}
}
How to call getData() of ClassA from controller or from any other Class?
Here example:
How to use:
This should work Yii::import('application.components.myfolder.ClassA'); echo ClassA::getData();