HOW TO CREATE MENU AND CONNECT IT USING CODEIGNITOR
Unsolved
General and Desktop
-
Im new using codeignitor. So icreate menu page but i don't know how to connect it to my other pages. This is my code for
VIEWS (menu_form) : <center> <body bgcolor="#C0C0C0"> <header> <img src="<?= base_url();?>images/imagelogo.png"/> <H1>HOME</H1> </table></header> <head> <button class="tablink" onclick="openPage('STAFF')">STAFF</button> <button class="tablink" onclick="openPage('ITEM')" >ITEM</button> </head> Controller (menupage) : <?php defined('BASEPATH') OR exit('No direct script access allowed'); class menupage extends CI_Controller { public function index() { $this->load->view('menu_form'); } } Models(M_menu) :<?php defined('BASEPATH') OR exit('No direct script access allowed'); class M_menu extends CI_Model { // function __construct() // { // parent::__construct(); // }
-
Hi
This is not the forum you are looking for. ;)
Seems to be here
https://codeigniter.com/community