Welcome Guest, Not a member yet? Register   Sign In
I can't view the add or view blog page according to the tutorial
#1

[eluser]Pokhara[/eluser]
Dear friends. I am a new member and just installed the code igniter and I was doing as it was showing in 20 mins video introduction. I reached till the page http://localhost/codeigniter/index.php/blog/scaffolding. However, when I click add blog or view blog, below error comes up. Please help me. Thank you
Code:
Not Found

The requested URL /index.php/blog/scaffolding/add was not found on this server.
#2

[eluser]therealmaloy[/eluser]
@Pokhara

i think the good way to start this would be to post your controller code here

where you able to run and configure properly?
#3

[eluser]Pokhara[/eluser]
Thank you very much, I did as it was shown in tutorial video, I have not changed any settings other than what has said in the tutorial video. However , I can't see view and add page. Here is a Blog Controller code. Thanks

Code:
<?php

class Blog extends Controller {
    
    function Blog() {
        
        parent :: Controller();
        
        $this->load->scaffolding('entries'); //table name is entries
    }
    
    
    
    function index(){
        
        $data['title']= "My blog ";
        $data['heading']= "Howdy Guys' what's up";
        $data['todo'] = array('abd','london','pagal','sssst', 'jjjj');
        
        $this->load->view('blog_view', $data);
        
    }
}
?>
#4

[eluser]Adi Setiawan[/eluser]
have you set secret word in application/config/routes.php ?
then access it using secret world i.e: http://localhost/codeigniter/index.php/blog/secretword/

http://ellislab.com/codeigniter/user-gui...lding.html
#5

[eluser]therealmaloy[/eluser]
@Pokhara

your controller is fine and you should take @adi Setiawan's solution. The problem is on how you tried to use scaffolding, check-out the guide for clearer idea..
#6

[eluser]Pokhara[/eluser]
Thank you it looks silly but it was my silly mistake, when i added 'http://localhost/codeigniter' in the baseurl of config.php it worked.

Thank y ou so much.




Theme © iAndrew 2016 - Forum software by © MyBB