Note the upgraded forum! If you are experiencing issues logging in, you may need to reset your password which should send an email. If the email doesn't arrive, be sure to check your spam folder just in case.
Using CMS Pages w/ Module Data too?
So I have a bunch of pages created through the CMS.
I also have a few modules to input data through the CMS.
I would like some of these pages to display body copy entered through the CMS, along with data that has been entered through the modules.
Just as an example, we'll use a page called Partners, which will display some body copy along with information about each partner.
This page lives at 'about-us/partners'.
So I enter the body copy through the CMS, and that works fine.
It's when I try to bring in the module data that I run into trouble.
I created a view file that lives at 'applications/views/about-us/partners.php'
In it, I put:
<?php $partners = fuel_model('partners', array('find' => 'all', 'precedence desc')); ?>
<?php foreach($partners as $partner) : ?>
// do stuff
<?php endforeach; ?>
However, because the page exists in the CMS, I never seem to make it to 'about-us/partners.php' view file.
Ideally I would like to use the fuel_model() function, along with my standard fuel variables, like:
<?php echo fuel_var('body', ''); ?>
Which would be inputted through the CMS.
What am I doing wrong?
Also, when I created the module, a file called 'partners_model.php' was created.
I assume this is the file that the fuel_model() function is hitting.
How do I tell fuel_model with method that I want to use?
IE- How does it know what to return?