Welcome Guest, Not a member yet? Register   Sign In
How to set this up?
#1

[eluser]jaswinder_rana[/eluser]
Hi:

i am planning on adding a feature to my site where users can select which template they want.

What I am not sure about is where to put templates and directory structure?

I could use include() statements and create it but I was hoping to stick with CI structure. Right now (if nothing works) then my plan was

Code:
-system
--application
---views
----templates
-----template_1
------template_1.php

-public_html
--assets
---modules  (Using http://codeigniter.com/wiki/Asset_Helper/)
----template_1
-----css
-----image
-----js

Is that right way to go?


Also, when users select templates, right now, they select it from drop down which is populated after reading templates directory in views.
Is that right method or should I store template list in table?


Messages In This Thread
How to set this up? - by El Forum - 12-23-2008, 12:30 PM
How to set this up? - by El Forum - 12-24-2008, 07:01 PM
How to set this up? - by El Forum - 12-24-2008, 08:53 PM
How to set this up? - by El Forum - 12-24-2008, 09:06 PM



Theme © iAndrew 2016 - Forum software by © MyBB