It seems that I didn't have my ID field set to auto increment and that caused it to keep overwriting the row. Now that I fixed that, I do get the successfully saved message as well.
I deleted that record and restarted my server and it still does the same thing. Also, when I click the save button, I don't a message that tells me it was saved successfully or anything as it does when you create a page.
The value of the ID field is 0. The data is showing up now when I click the module. Not sure why it wasn't before. It's still overwriting the existing row in the db.
Also, when I click the edit link, it takes me to a page that has the main template…
I just saw the method in the documentation and figured that if i'm using render(), that I could use render_divs() and it would render it with divs rather than table format. I know that I can set the render_format to divs when loading the class, but …
I'm using the default "main" layout. I think that i'm missing some code in my view file that allows them to be editable in the admin, but i'm not sure if that's actually true.
Different computer, different FuelCMS setup. I'm on mamp right, I was on xampp earlier. I'll try messing with the .htaccess file on xampp on Monday to see if that's what my problem was.
Ok so i'm on a different computer now and I can echo content from the controller and the view loads just fine. I'm not sure why it's not working on my other computer.
If I browse to index.php/something I get the main template with a 404 error for the content. Yes I have the .htaccess file setup that comes with the fuel package.
Yes I've added an echo statement in my index function. I've worked many CI projects on my pc and they work fine. Any other ideas?
p.s. how do you make your code have the yellow backround like that in this forum??
I completely agree with shinokada. I've noticed a few typo's/errors/helpful things missing from the documentation. How do you want us to point out things that are missing in the documentation?
I created a new controller and copied the same code from above and called it 'Something' so the URL should be /something . Still no echo'd content showing up.
Interesting....Well i've created the controller I posted above, created a view file with the same name, have NOT added it to the admin and when I go to the url, I get a 404 error with the main template. I haven't added the page to the admin side.
So if I use this snippet in my controller
//load the fuel_page library class and passit the view file you want to load
$this->load->module_library(FUEL_FOLDER, 'fuel_page', array('location' => 'aboutTest'));
$this->fuel_page->add_var…
So are you saying that if I have a file controllers/aboutTest.php and in that file I have <?php
Class AboutTest extends CI_Controller {
function __construct()
{
parent::__construct();
}
function index()
{
$vars = array('page_title' =&…
I had the template set to none so it turns out I wasn't merging the page title in the html. What is the different between what I found in the template <?php echo fuel_var('page_title', '')?> and <?php fuel_var('page_title') ?> ?
I found this page http://www.getfuelcms.com/user_guide/modules/fuel/pages which helped me out. If you create an opt-in controller and want to make it editable via "pages" link in the admin panel, you need to go to pages, click create, and give the l…