backup_cdi - SPLessons

CodeIgniter Model View Controller

Home > Lesson > Chapter 6
SPLessons 5 Steps, 3 Clicks
5 Steps - 3 Clicks

CodeIgniter Model View Controller

CodeIgniter Model View Controller

CodeIgniter uses MVC architectural behavior. Controller is the key of the application where the controlling is taken cares. Model is responsible for database manipulations. View act like as user interface which will under the control of controller. To start with CodeIgniter open file 'welcome.php' from the location '\application\controllers\'. You could see there is one function written 'index', this will load the view file 'welcome_message.php'(Index method will call by default). [php] public function index() { $this->load->view('welcome_message'); } [/php]