I’ve encountered a problem regarding using accessing class using variable…
Says I have a model class name Post. And supposed I want to use like this:
$model = "Post"; $model::model()->findAll();
In PHP 5.3 I’ve got no problem, because it run perfectly. After uploading to my hosting it then throw error which state something like parse error T_PAAMAYIM_NEKUDOTAYIM…Later I google a little and found out that PHP version under 5.3 doesn’t support this kind of code yet. So what should I do, if I want to access class using variable?