Rugma
Rugma

Reputation: 31

Yii framework installation

I am new with yii framework. I have downloaded yii-1.1.14.f0fee9.zip file, I extracted and renamed it as yii and placed to my wamp root directory. For creating sample skeleton application, first I created test_project folder in wamp root and then run folling lines to cmd prompt.

cd c:\wamp\www\yii\framework yiic webapp ..\test_project

these lines executed in cmd prompt without error. But, could it see create any sample or skeleton files under test_project folder. I have also tried to run it with browser. It showing blank. Anybody can please help me to start a skeleton project in yii ? Iam really interesting to develop projects in yii. please help me guys.

Upvotes: 2

Views: 1318

Answers (2)

Gergely Hajcsák
Gergely Hajcsák

Reputation: 11

I've never used wamp but as I see it has a WWW directory. You should place your projects in this directory, otherwise it won't be available for browsers. (Never take the framework files here, just leave there than you placed before)

Using yiic. It is a command line tools (doesn't work from browser) for making skeleton app, migrations etc.

try:

  1. cd (c:....... framework) [enter]
  2. yiic webapp c:\......\www\test_project [enter]

The main are points the WWW and the separated command

I guess it will work.

Greg

Upvotes: 1

zzlalani
zzlalani

Reputation: 24384

Follow the steps

  1. cd c:\wamp\bin\php\phpx.x.xx
  2. c:\wamp\www\yii\framework\yiic webapp c:\wamp\www\test_project

Note that in step 1. is your php directory that has php.exe file

Update:

For detail you can have a look at this link http://www.larryullman.com/series/learning-the-yii-framework/

This is a very good tutorial for Yii application initiation.

hope this will help

Upvotes: 1

Related Questions