Codeigniter main View Controller logic Tips Best Technices in Codeigniter Php Framework for use Start Php Framwork in Codeigniter.
How to Use Codeigniter Php view file?
Open application Folder Click view folder and open your Best text editor and create new php file in view folder.
Index.php file
<html>
<head>
<title>
</title>
<style>
</style>
</head>
<body>
<div calss="container">
<div class="row">
<div class="col-12">
<h1> Hello India </h1>
</div>
</div>
</div>
</body>
</html>
How to Create Controller File in Codeigniter Php Framework?
Open Application Folder and Open your Best text editor and Create controller file and start your codeing.
<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class My_controller extends CI_Controller {
function __construct(){
parent::__construct();
$this->load->helper('url');
$this->load->library('cart');
$this->load->model('User_model');
$this->get_session = $this->session->userdata('session_user_id');
}
public function index()
{
$this->load->view('inc/header');
$this->load->view('inc/nav');
$this->load->view('index');
$this->load->view('inc/footer');
}
}
Dear Freinds Ish trah se app sabi Codeigniter main php file create kar sakte hai aur apna php project start kar sakte hai.
agar app koi question puchna chata hgai toh app mughe comment kar sakte ho
Agar app ko aor bhi jankaari chiye toh toh app codeigniter main User gudie ko read kar sakte hai
link here click now Codeigniter User Guide