EllisLab text mark
Advanced Search
     
/application/controllers/page.php question   Trying to add new pages
Posted: 14 November 2012 06:36 PM   [ Ignore ]
Joined: 2012-11-14
2 posts

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

 

 

 

 
Posted: 14 November 2012 06:44 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Joined: 2012-11-14
2 posts

Anyone?

 
Posted: 14 November 2012 11:40 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Avatar
Joined: 2007-11-28
2435 posts

You should ask whoever developed the CMS. Without knowing how they’ve customized CodeIgniter, it’s hard to give a definitive answer.