Try adding a function_exists('get_instance') around the logic in MY_fuel_modules.php. That file also gets included very early on to create routes and before the $CI object is created.
What line number does that reference? And I'm assuming the session library is loaded? Also, there is a "session_flashdata" function you can use instead along with a "session_userdata" helper function new to 1.0.
That error is because of the route I think and it's defaulting to the module.php controller which in this case we don't want since Flexi cart has it's own controllers.
I did a quick test to see if I can get this installed and got pretty far along w…
No problem. The documentation is under the Fuel Pages Class in the 1.0 user guide. If you don't have the 1.0 user guide, you can download it on GitHub here and install it as a module in your FUEL installation:
https://github.com/daylightstudio/FUEL-…
I think the issue is because you need to specify the table name as the first parameter before specifying the $values since you are using the CI active record insert. If you use the model's built in insert method, it already makes that assumption:
fu…
There's a third parameter you can use on the render method to pass in the render_mode value:
$this->fuel->pages->render('Contact', $vars, array('render_mode' => 'cms'));
I'm not quite sure why that may not be getting passed to you. However, you can try adding the following to the controller to get passed in the add_variables method:
$vars['js'] = 'masked.js';
You could load the view as a variable of $body and pass it to the layout that would merge in that $body variable:
$vars['body'] = $this->load->module_view('my_module', 'my_view', $vars, TRUE); $this->fuel->pages->render('my_uri', $var…
Try adding the following to the top of your model:
public $boolean_fields = array('comments_allowed');
The issue has to do with boolean fields actually being tinyint fields. Specifying the above makes sure they are treated as boolean fields instead …
This is a page created in the CMS correct? If so, I would turn off page caching for that page in the CMS (select "no" for the published radio button). If there are parts of the page you do need to cache, you can use the Cache library object to do th…
I believe this issue has been addressed in the 1.0 beta where it grabs the final uploaded file name from the Upload classes data function before saving:
https://github.com/daylightstudio/FUEL-CMS/tree/1.0
How are you loading the view files? Are none of these working from your controller?
// explicitly pulls from module #1 $this->load->module_view('my_module', 'my_view, $vars); // explicitly pulls from module #2 $this->load->view( 'my_mo…
Did you perhaps download the newer 1.0 beta branch?
https://github.com/daylightstudio/FUEL-CMS/tree/1.0
If so, that includes the latest CI core which move the Security library to the core.
Is your view being served up by a custom controller or through the default page router controller (fuel/modules/fuel/controllers/views/page_router.php)? Also, can you browse to that view file normally as well like at mysite.com/news?
FUEL is under the Apache 2.0 license (there site looks to be down at the moment). This basically means you can use it as you see fit, you just need to retain the original copyright information.
http://www.apache.org/licenses/LICENSE-2.0
I'm recommending it now. We are using it for our projects internally for the last several months and provides a number of bug fixes and features not in 0.93. We are hoping to release the 1.0 version soon.
If you are using 0.93 (the master branch), you can follow the directions here:
http://www.getfuelcms.com/user_guide/modules/advanced
Basically, all you really need to do is create a new folder under the fuel/modules folder that has your controllers…
FUEL does not have anything out of the box unfortunately.
If you are comfortable with the CodeIgniter framework, you could perhaps create an "advanced module" in FUEL, and use a library like the one below to help you upload the files. Think of adv…
There is in the 1.0 beta branch (along with a slew of other new features):
https://github.com/daylightstudio/FUEL-CMS/tree/1.0
public $foreign_keys = array('page_id' => array(FUEL_FOLDER => 'pages_model'), 'where' => array('layout' => '…