Welcome Guest, Not a member yet? Register   Sign In
Bootstap 4.4 intergration with codeigniter 3.11
#7

CI is MVC framework. You should follow MVC concept.

Using controllers would solve your problem.

Anyway i can't remember what was default controller's name was so i use DefaultController.

PHP Code:
<?php
class DefaultController extends CI_Controller {

        public function index()
        {
               $this->load->view('home');
        }

        public function 
about() 
        {
               
$this->load->view('about');
        }


Then you should create home.php and about.php under views folder.

I strongly recommend you to use CI4 instead of CI3.
Reply


Messages In This Thread
RE: Bootstap 4.4 intergration with codeigniter 3.11 - by tweenietomatoes - 03-04-2020, 07:59 AM



Theme © iAndrew 2016 - Forum software by © MyBB