I am very pleased to announce the release of my video training course through Packt Publishing called "Beginning Yii".
Learn the Yii framework in minutes
The course is designed for anyone wanting to learn Yii, whether new to frameworks or converting from another.
Eight chapters, each having five videos of between 3 and 5 minutes, take you through the basics of the Yii Framework, building a web application step-by-step.
Save 60% - introductory offer $14 / £8.80 / €10.80
I bought the course yesterday and am working my way through it now and I must say it is really well put together. I am learning more than I would in hours of reading books.
On video 3.3 at 3:27, you add a private variable on line 29 of the photo model.
However, that is in between the PHPdoc and the function for the model function:
class Photo extends CActiveRecord
{
/**
* Returns the static model of the specified AR class.
* @param string $className active record class name.
* @return Photo the static model class
*/
private $_uploads;
public static function model($className=__CLASS__)
{
return parent::model($className);
}
I’m sure you’ll agree that’s not very good practice