Directory in Yii

Discussion for various published PHP frameworks, including Zend Framework, CodeIgniter, Kohana, CakePHP, Yii, Symfony, and others.

Moderator: General Moderators

Post Reply
User avatar
gautamz07
Forum Contributor
Posts: 331
Joined: Wed May 14, 2014 12:18 pm

Directory in Yii

Post by gautamz07 »

well i have a small question as to where to place my app file . I.E should i place them inside the YII framework folder or outside .

now if i place them outside the folder and in my browser i type this in my URL (look below) :

http://localhost/yii/trackstar/ - it all works fine .

now if i place the app inside the directory and type the following in the browser URL :

http://localhost/yii/framework/trackstar/.

i get the following error :

Access forbidden!

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

You don't have permission to access the requested object. It is either read-protected or not readable by the server.

If you think this is a server error, please contact the webmaster.

Error 403

localhost
Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.9

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Where should i really be placing the app file ??
User avatar
Celauran
Moderator
Posts: 6427
Joined: Tue Nov 09, 2010 2:39 pm
Location: Montreal, Canada

Re: Directory in Yii

Post by Celauran »

What do you mean by your app file? What does the Yii documentation say?
Post Reply