Welcome Guest, Not a member yet? Register   Sign In
scaffolding page not showing up
#1

[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);
}

}
#2

[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?
#3

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

[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.
#5

[eluser]Unknown[/eluser]
Thanks guys
#6

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




Theme © iAndrew 2016 - Forum software by © MyBB