CodeIgniter Forums
Bootstap 4.4 intergration with codeigniter 3.11 - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: Installation & Setup (https://forum.codeigniter.com/forum-9.html)
+--- Thread: Bootstap 4.4 intergration with codeigniter 3.11 (/thread-75671.html)



Bootstap 4.4 intergration with codeigniter 3.11 - shewolf255 - 03-03-2020

Hi to you all.

I am currently busy with a my own little cms / mvs project for my business to handle online & off line sales and stock.

Now the home page loads nicely and works as per instruction manual. 

1) But I have also created a About-Us page as about.php file and nothing happens when I click on that file icon on the main menu. It still shows the home.php content with this example( http://localhost/tulbachcomputers.co.za/#) # at the end. Please see the attached jpg file.

2) Also I want to able to click on each and every menu item such as home, about-us, monitors etc. The menus must work together.   

3) Is it also possible to connect my database with a search like google and ens in codeigniter ? 

4) And get external data fees from my suppliers website ?

I would appreciate all the help.

Regards Big Grin


RE: Bootstap 4.4 intergration with codeigniter 3.11 - InsiteFX - 03-03-2020

Did you go to the CodeIgniter Users Guide and do the News tutorial?

Read that tutorial and do the code you should then be alright.


RE: Bootstap 4.4 intergration with codeigniter 3.11 - shewolf255 - 03-03-2020

Yes I did follow those instructions.

But when i click on my about page it only shows # at the end of the url, and still shows the content of the home page.

And also then I click on my home page it doesn't go to the home page.


RE: Bootstap 4.4 intergration with codeigniter 3.11 - mjrampai - 03-04-2020

(03-03-2020, 11:27 PM)shewolf255 Wrote: Yes I did follow those instructions.

But when i click on my about page it only shows # at the end of the url, and still shows the content of the home page.

And also then I click on my home page it doesn't go to the home page.

What I normally do is place About page and other client facing pages like contact and servces on the Default controller. And to simplify routing in the navigation, have a look attached screenshots for reference. I hope this helps.


RE: Bootstap 4.4 intergration with codeigniter 3.11 - shewolf255 - 03-04-2020

Thank's but can you make your screen shot a bit larger please ?


RE: Bootstap 4.4 intergration with codeigniter 3.11 - mjrampai - 03-04-2020

(03-04-2020, 05:52 AM)shewolf255 Wrote: Thank's but can you make your screen shot a bit larger please ?
Attached


RE: Bootstap 4.4 intergration with codeigniter 3.11 - tweenietomatoes - 03-04-2020

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.


RE: Bootstap 4.4 intergration with codeigniter 3.11 - shewolf255 - 03-07-2020

Thank you so much.