Create the folder structure/Skelton in Yii

Create the folder structure/Skelton in Yii

05/14/20140 Comments

This is our third lecture and in this I am going to show you how to create the folder sturcture of Yii or a skelton i Yii.

Folow me.

I am using the WAMP server and go to the following directory and copy the path.

C:\wamp\bin\php\php5.3.13

Then you need to go to the folowing directory…

Control Panel\All Control Panel Items\System[in windows 7] and select ‘advanced system settings’ and press ‘Environment variable’.

Then click on the ‘path’ under ‘System variable’ and paste the above coppied path in it.

See the below image and you will understand what I have done.

6075

1.jpg

Now we have to create the folder stucture or the skelton using cmd.

Open the cmd and access the yii framework typing below codes in cmd.

cd C:\wamp\www\yii\framework

Now you are in the C:\wamp\www\yii\framework directory.Now we need to create the folder stucture or skelton.

Type the below codes in cmd and press enter.

yiic webapp ../myyii

Then you will see the below thing in cmd.

6076

2.jpg

And type ‘yes’ in cmd.And press Enter.

Now it is ok…Go to the followig directory…

C:\wamp\www\yii

you will see that folder called myyii has been cretaed.

6077

3.jpg

That is all… :)

Visit the C:\wamp\www\yii\myyii\protected directory and you will see all the MVC file floders at there. :lol:

-Manuja Sudasingha-

Should’nt this be on “Tips, Snippets and Tutorials” topic?