Welcome Guest, Not a member yet? Register   Sign In
Simple View Controller for beginners.
#1

First thing to post in this forum should be how to create a simple view which is the appearance of your web application. I had tried so many tutorials on Internet for making a MVC and always succeeded but when i try to make my own home page of site my myself i always failed.

The only thing that showed up is:

"404 Page Not Found

The page you requested was not found.
"
 Angry
I just want a simple thing. When anyone open www.mywebsite.com my home page will be open.  Blush

Is this necessary to make a model if there is no database work in needed?  Dodgy

Now i tell you what i did myself to make my home page.
1. First of all i made a file 'index.php' in view folder (Simple HTML file).
2. I added a file 'index_controller.php' in controller folder. (see code below)

Code:
class Index_controller extends CI_Controller{
    public function __construct()
    {
        parent::__construct();
    }
    
    public function index()
    {
        $this->load->view('index');
    }
}

What more should i do to make my code working?? Huh
Reply


Messages In This Thread
Simple View Controller for beginners. - by dragonabv - 03-04-2015, 11:37 PM



Theme © iAndrew 2016 - Forum software by © MyBB