Yii Framework Forum: Yii directory structure - Yii Framework Forum

Jump to content

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

Yii directory structure Rate Topic: -----

#1 User is offline   sohdubom 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 10
  • Joined: 09-March 09

Posted 12 March 2009 - 07:03 AM

hi. the current directory structure protects protected folders using the deny permission .htaccess directive, but i was wondering in a better approach by separating the index.php front controller and its .hstaccess file in a' let's say, folder named: webroot or webapp or root or something like.

webroot
..index.php
..htaccess

application
..controllers
..views
..models
..etc

system
..yii framework here


this would be a much nicer dir structure i think.
0

#2 User is offline   qiang 

  • Yii Project Lead
  • Yii
  • Group: Yii Dev Team
  • Posts: 5,880
  • Joined: 04-October 08
  • Location:DC, USA

Posted 12 March 2009 - 08:48 AM

Yes, you can use this directory. You just need to set the basePath in app config as you like.
0

#3 User is offline   iqbalconsulting 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 04-March 09

Posted 14 March 2009 - 07:11 AM

We can do that way, but if you are really worried, you could put an index.php with nothing in it on all directories. Existing settings work the way they are.
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