Welcome Guest, Not a member yet? Register   Sign In
external view folder ?
#4

[eluser]Avatar[/eluser]
if you use linux you can do this from command prompt and it will just work.
Code:
cd /path/to/docroot
ln -sf /path/to/system/views templates
nootice it's creating a link called templates in docroot pointing to your view templates
in my application folder and my system folder (if you moved application out of system, otherwise just system)I have a h.taccess file with this in it:
Code:
option -indexes
RewriteEngine on
deny from all
this effectively blocks any entry to the system and application folders and if you have a folder in your application/views/assets you can add an htaccess file with the same as above only
Code:
Allow from all
this does everything you would want if I understand correctly with barely any code at all. Hope this helps. Have a wonderful day.


Messages In This Thread
external view folder ? - by El Forum - 03-07-2008, 04:20 AM
external view folder ? - by El Forum - 03-07-2008, 10:45 AM
external view folder ? - by El Forum - 03-08-2008, 12:37 AM
external view folder ? - by El Forum - 03-08-2008, 01:04 AM
external view folder ? - by El Forum - 03-08-2008, 02:12 AM
external view folder ? - by El Forum - 03-08-2008, 10:10 AM



Theme © iAndrew 2016 - Forum software by © MyBB