[eluser]dpgtfc[/eluser]
Regarding the user guide as quoted below my main post body, how would I set it up so each of these applications shares the same template (using the template parser). Do I use the base application/views file? How do I specify this when I use the template parser? Would I do:
Code:
$this->parser->parse('mytemplate',$myarray);
Or would that not work?
Initially I was considering having my setup as:
system
application1
application2
application3
rather than as recommended below, but there didn't seem to be anyway to share views..
Quote:If you would like to share a common CodeIgniter installation to manage several different applications simply put all of the directories located inside your application folder into their own sub-folder.
For example, let's say you want to create two applications, "foo" and "bar". You will structure your application folder like this:
system/application/foo/
system/application/foo/config/
system/application/foo/controllers/
system/application/foo/errors/
system/application/foo/libraries/
system/application/foo/models/
system/application/foo/views/
system/application/bar/
system/application/bar/config/
system/application/bar/controllers/
system/application/bar/errors/
system/application/bar/libraries/
system/application/bar/models/
system/application/bar/views/
To select a particular application for use requires that you open your main index.php file and set the $application_folder variable. For example, to select the "foo" application for use you would do this:
$application_folder = "application/foo";