Yii Framework Forum: Yiic generate webapp at root? - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yiic generate webapp at root? Rate Topic: -----

#1 User is offline   miamisoftware 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 18-September 09

Posted 08 October 2009 - 03:14 PM

Hi all,
New to Yii, think it's a great framework from what I can see. Can anyone tell me how to generate an app at the site root? I'm following the Yii Guide and instead of http://mydomain.com/testdrive, I want yiic to generate the app at http://mydomain.com.

In the user guide, it has yiic webapp WebRoot/testdrive, is there anything wrong if I did yiic webapp / while in the root directory of the website?

Thanks in advance,
Carl
0

#2 User is offline   imehesz 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 699
  • Joined: 13-June 09
  • Location:Jacksonville, FL

Posted 08 October 2009 - 03:20 PM

View Postmiamisoftware, on 08 October 2009 - 03:14 PM, said:

Hi all,
New to Yii, think it's a great framework from what I can see. Can anyone tell me how to generate an app at the site root? I'm following the Yii Guide and instead of http://mydomain.com/testdrive, I want yiic to generate the app at http://mydomain.com.

In the user guide, it has yiic webapp WebRoot/testdrive, is there anything wrong if I did yiic webapp / while in the root directory of the website?

Thanks in advance,
Carl


hello,

yiic can generate the sceleton app wherever you like, testdrive is just a name of the folder. (are you on Linux or MS?)

--iM
It’s done, the great act of creation.
The maker rests. The wheel’s in motion.
-- Imre Madách

check out Yii Theme Factory at http://yii.themefactory.net
0

#3 User is offline   Alex Muir 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 96
  • Joined: 25-April 09

Posted 08 October 2009 - 05:12 PM

I used:
yiic webapp ./

My sites: The Big Eat and The Big Space
0

#4 User is offline   miamisoftware 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 18-September 09

Posted 08 October 2009 - 09:17 PM

Sorry for the extended delay but had some client meetings that only wrapped up a short while ago.

Thanks for the input from you Imre and the solution Alex. I realized that testdrive was only a suggested or example, sorry for lack of my clarity Imre. By the way, you're upstate from me huh? I'm in Miami.

Hope I can be of some help later down the road to other newbies.
0

#5 User is offline   datashaman 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 56
  • Joined: 27-September 09
  • Location:Cape Town, South Africa

Posted 09 October 2009 - 12:21 AM

I was also wondering how you do this, then realized it's as simple as changing your DocumentRoot variable in apache2 conf. Point your DocumentRoot to the application subfolder instead of the Yii root, and your app will be served on the root domain.
0

#6 User is offline   imehesz 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 699
  • Joined: 13-June 09
  • Location:Jacksonville, FL

Posted 09 October 2009 - 06:35 AM

View Postdatashaman, on 09 October 2009 - 12:21 AM, said:

I was also wondering how you do this, then realized it's as simple as changing your DocumentRoot variable in apache2 conf. Point your DocumentRoot to the application subfolder instead of the Yii root, and your app will be served on the root domain.

[datashaman]
- yes, that's my way too (since I have access to my apache config)

[miamisoftware]
- yes, I'm only ~350 miles away from you :) Hopefully I'm gonna make it down there next year. http://barcampmiami.org/

--iM
It’s done, the great act of creation.
The maker rests. The wheel’s in motion.
-- Imre Madách

check out Yii Theme Factory at http://yii.themefactory.net
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users