Beginning Yii Video Training Course


(Chrisb) #1

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

see: http://www.packtpub.com/beginning-yii-php-framework/video


(Gugoan) #2

[size=2]Nice! Video format is one the best! [/size]:D


(Chrisb) #3

Thanks Gustavo !


(Steve Baker) #4

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.

Top job Chris!


(Rickyspires) #5

Hello.

I have been following along with the yii course but i am stuck because the theme supplied does not seem to work.

i have been over and over the code and can not see the problem.

you set up the theme half way through video 3-2 .

i have added the code in to the main.php file


'theme'=>'photoGal',

and copied all the files bt i am having no luck solving the issue.

please help

kind regards

ricky


(B Destrube) #6

Hello Ricky,

I’ve found some info on this post

As stated, what I did to get it working was to copy the main.php layout file to the layout folder of the theme.

Then, I added


<link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/screen.css" media="screen, projection" />

to reference the theme’s screen.css

Chris : how do you get it to work without this hassle ?

Cheers


(B Destrube) #7

Another thing I just noticed Chris :

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 :)

Cheers