Welcome Guest, Not a member yet? Register   Sign In
/application/controllers/page.php question Trying to add new pages
#1

[eluser]Unknown[/eluser]
Hi,

I am very new to code igniter.

I am trying to add new pages and I've went through all of the steps that I found in a tutorial and I've wen through the sites files and am trying to duplicate the setup but when I add new php files for my new page names, I login to the CMS and do not see the new page to add content to.

I posted a screenshot of the cms that I am working on. Right now there are 8 pages. I am trying to add 6 more.

I added the code below to the application/controllers/page.php file thinking the page name gazebo would show in my cms

function gazebos()
{
//display header
$this->header->title("Gazebos");
$this->header->printView();
//dashboard view
$this->load->view('page_gazebos', array('page'=>$this->pages_model->get(9)));
//footer
$this->footer->printView();
}



then I made two new files in the /application/views/ folder named

page_gazebos.php
page_gazebos1.php


This is how all of the other pages are setup. I am trying to figure out why the page is not showing up in CMS. Does anyone know what I am doing wrong???

Thanks





#2

[eluser]Unknown[/eluser]
Anyone?
#3

[eluser]Aken[/eluser]
You should ask whoever developed the CMS. Without knowing how they've customized CodeIgniter, it's hard to give a definitive answer.




Theme © iAndrew 2016 - Forum software by © MyBB