policybot/application/controllers/Orders.php
2021-11-30 16:26:55 +05:30

22 lines
431 B
PHP

<?php
defined('BASEPATH') OR exit('No direct script access allowed');
class Orders extends CI_Controller {
public function __construct()
{
parent::__construct();
$this->load->model('Orders_model');
}
function list_orders()
{
if($this->session->userdata('id')==""){redirect('admin/login');}
$data['ord']=$this->Orders_model->show_quote_of_all();
$this->load->view('admin/orders/list',$data);
}
}
?>