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

(This post was last modified: 03-03-2020, 05:01 AM by shewolf255.)

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

Attached Files Thumbnail(s)
           
Reply
#2

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.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#3

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.
Reply
#4

(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.

Attached Files Thumbnail(s)
           
Reply
#5

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

(03-04-2020, 05:52 AM)shewolf255 Wrote: Thank's but can you make your screen shot a bit larger please ?
Attached
Reply
#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
#8

Thank you so much.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB