CodeIgniter Forums
scaffolding page not showing up - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: scaffolding page not showing up (/showthread.php?tid=20064)



scaffolding page not showing up - El Forum - 06-26-2009

[eluser]Unknown[/eluser]
Hey Guy,
I'm having trouble getting scaffolding page to show up. when i put in my secret word, all i see is the blog index page, that i made in the first video tutorial. Also, I'm not getting any error, I just can't get the page to show up. Please let me know what I am doing wrong.

Here my code:

Code:
$route['scaffolding_trigger'] = 'scaffolding';

Code:
class Blog extends Controller {

    function Blog()
    {
        parent::Controller();
        $this->load->scaffolding('entries');    
        
    }
    

function index()
{
  $data['title'] = "My Blog Title";
  $data['heading'] = "My Blog Heading";
  $data['query'] = $this->db->get('entries');;
  
  $this->load->view('blog_view', $data);
}

}



scaffolding page not showing up - El Forum - 06-26-2009

[eluser]Jondolar[/eluser]
This is sort of off-topic but I never really understood the benefit of using scaffolding. Aren't there much better and more powerful tools out there that you are probably already using to create your databases and tables that you could use to directly manage your table data while you build the app?


scaffolding page not showing up - El Forum - 06-26-2009

[eluser]Colin Williams[/eluser]
Hey guy, scaffolding has long been deprecated. What version of CI are you running?


scaffolding page not showing up - El Forum - 06-26-2009

[eluser]Marcelo Lipienski[/eluser]
You should use: BASE_URL/index.php/blog/scaffolding
even though you have setup your .htaccess to rewrite the url, using scaffolding requires that you put the index.php, although you don't need it to access the rest of your application, being able to use: BASE_URL/blog to access your main page.


scaffolding page not showing up - El Forum - 06-28-2009

[eluser]Unknown[/eluser]
Thanks guys


scaffolding page not showing up - El Forum - 06-28-2009

[eluser]Marcelo Lipienski[/eluser]
What solved your problem?