Welcome Guest, Not a member yet? Register   Sign In
Correct or Incorrect?
#1

[eluser]Lazos[/eluser]
I have been thinking something for a while and I do not know if is correct or not.

I am developing a CMS and I would like the administrators to be able to apply and upload different templates and style sheets.
If everything is in one folder is more organize you know...

I can have a controller that reads the file names or the directory names and write to the admin panel you have the following templates and style sheets.

For example all my files will have the following urls...
Code:
base_url().'application/views/templates/{template_name}/images/themes/'
base_url().'application/views/templates/{template_name}/template.tpl'
base_url().'application/views/templates/{template_name}/css/styles.css'
The file names will be constants for CSS and templates the only thing that will change will be the template name directory.

Now to the important question.
Is it correct or good practice to put images,css and templates inside the views folder?




Theme © iAndrew 2016 - Forum software by © MyBB