Saturday 8 December 2018

php - Yii Understanding model creation

Im wondering if someone could give me some help.



I'm very new to the Yii framework and im taking over some code for a friend.



Would someone be kind enough to tell me what the following lines do.



$variable = new ModuleModel('search');
$another->columns = $variable->search()->data;



I've never seen something passed when creating a new model instance and im not sure what the 'data' call does.



Any help would be greatly appreciated.



Cheers,

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...