Hey,
I'm working on a new site based on CI, it's not finished yet but it won't take long to do so.
Doing this with some friends I woud like to "change" our current version to Fuel, so we don't have to create a new function for every page; that's really annoying. I've got a very simple question: At the moment we're using the folder structure of CodeIgniter, was it possible to have something like this using Fuel, too?
- index.php
- assets/
- application/
- system/
- - codigniter/
- - modules/
...
Hope you get what I want to ask
Thanks
Comments
fuel_constants.php
define('FUEL_VERSION', '0.9.3'); define('MODULES_FOLDER', 'fuel/modules'); define('FUEL_FOLDER', 'fuel'); define('MODULES_PATH', MODULES_FOLDER.'/'); define('FUEL_PATH', MODULES_PATH.FUEL_FOLDER.'/'); define('WEB_ROOT', str_replace('\\', '/', realpath(dirname(SELF)).DIRECTORY_SEPARATOR)); // replace \ with / for windows
index.php
$application_folder = 'application';
But now I get this error:
Fatal error: Call to undefined function base_url() in C:\xampp\htdocs\fuel\application\views\_blocks\header.php on line 10
Any idea on how to fix this?
To debug, I would open up the fuel/codeigniter/core/CodeIgniter.php file and see where it may be throwing the 404 (there are 3 calls to the show_404()) function in that file to check).
// CodeIgniter.php - line 157 $RTR =& load_class('Router', 'core'); echo 'test'; // works $RTR->_set_routing(); echo 'test2'; // doesn't work
// Router.php - line 332 // If we got this far it means we didn't encounter a // matching route so we'll set the site default route echo 'test'; // works $this->_set_request($this->uri->segments); echo 'test'; // doesn't
// Router.php - line 175 function _set_request($segments = array()) { echo 'test'; // doesn't work! $segments = $this->_validate_request($segments);
This doesn't make any sence, does it?
And base_url() is from a helper, too?! Sorry for posting that much, I just want to continue programming - It's driving me nuts :P
Modules::$locations = array( APPPATH.'../system/modules/' => '../../system/modules/', );