|
|||
|
There's plenty of sites out there with instructions how to do this...
4WebHelp - Password Protection |
|
|||
|
is not exatly what i ment
i know i protect with .htaccess but if in a normal sttructure i can have /publicwebsite /cms /common /images and i would put my .htaccess in the /cms directory in a MVC structur where do you put the .haccess? let say i create a CMS and i want to password protect by .htaccess where would i put it? in the directory /application/viewers/cms/ ? |
|
|||
|
ZF Project outline should look something like this:
Code:
+application
bootstrap.php
+controllers
+models
+views
+scripts
...
+public // server www root should be set here
index.php // this file should require_once bootstrap.php file from application directory
.htaccess // RewriteEngine on
RewriteRule !\.(js|ico|gif|jpg|png|css)$ index.php
+styles
+images
+someotherdate
+protectedfolder
.htaccess // RewriteEngine off and some other authentication logic
other thing is when you want to build application with protected area only for admin/users and authenticate them with login site - then you will propably use Zend_Authenticate which will check wheter user exists in database and supplied password is correct Please read more in manual on ZF official site ![]() |
![]() |
| Thread Tools | |
| Display Modes | |
|
|