Welcome Guest, Not a member yet? Register   Sign In
Relocate views folder
#1

[eluser]rolandpish[/eluser]
Hello.
First, I will explain our scenario.
Our web design developers use the following directory structure:
Code:
index.php
view_1.php
view_2.php
view_n.php
includes--/
          /include_header.php
          /include_footer.php
          /include_news.php
css-------/
          /css_1.css
          /css_2.css
js--------/
          /js1.js
          /jquery.js

We are thinking on migrating our projects to CodeIgniter keeping the same directory structure and I have a couple of questions:

1. Is it possible to relocate views so they reside at the root of the site instead of application/views folder?

2. Let's say that view_1.php has <? include_once('includes/include_header.php'); ?> and <? include_once('includes/include_footer.php'); ?>. This allows our web design developers to view view_1.php entirely (with header and footer) in their IDE.
Is it possible to keep the "include_once" commands in order to let them still have this "entire view" or do we have to use $this->load->view('includes/include_header') instead?

Thanks in advance


Messages In This Thread
Relocate views folder - by El Forum - 05-22-2009, 11:49 AM
Relocate views folder - by El Forum - 05-22-2009, 12:03 PM
Relocate views folder - by El Forum - 05-22-2009, 12:09 PM
Relocate views folder - by El Forum - 05-22-2009, 12:29 PM
Relocate views folder - by El Forum - 05-22-2009, 12:41 PM
Relocate views folder - by El Forum - 05-22-2009, 12:56 PM
Relocate views folder - by El Forum - 05-29-2009, 04:10 PM
Relocate views folder - by El Forum - 05-30-2009, 03:05 PM



Theme © iAndrew 2016 - Forum software by © MyBB