Welcome Guest, Not a member yet? Register   Sign In
Question Regarding Views (New to CI)
#1

[eluser]kaisama[/eluser]
I have been working on a personal project for quite some time now (nearly two years), jumping from one system to another, and soon finally giving a shot at writing my own CMS framework. That is, until I found codeigniter. I wish I found this a lot sooner, as it's exactly what I've been looking for in a PHP framework.

I do have a question though after searching the forums for the answer and coming out empty handed. So, sorry if this has been asked before and answered.

My website will use multiple themes that logged in users may choose from. My question is, do I have to have the css, images, etc folders separate from the views folder? I'd like to have the scheme as:

Code:
views/
  theme_name/
    css/
    images/
    header.php
    footer.php
    test_page.php

I found that I wasn't able to call any of the images or css files when they were within the application/views folder.

I've had to lay it out as

Code:
themes/
  theme_name/
    css/
    images/

application/
  views/
    theme_name/
      header.php
      footer.php
      test_page.php

Is it possible to work around that? And if it is, could you give me an example? Just seems weird to have things so separated like that.

Thanks for your time~


Messages In This Thread
Question Regarding Views (New to CI) - by El Forum - 08-22-2009, 08:16 PM
Question Regarding Views (New to CI) - by El Forum - 08-23-2009, 12:22 AM
Question Regarding Views (New to CI) - by El Forum - 08-23-2009, 01:51 AM
Question Regarding Views (New to CI) - by El Forum - 08-23-2009, 06:56 AM
Question Regarding Views (New to CI) - by El Forum - 08-23-2009, 07:55 AM
Question Regarding Views (New to CI) - by El Forum - 08-24-2009, 02:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB