МОЙ код контроллера
class MY_Controller extends CI_Controller{
public function aheadsidecontfooter($view,$data){
$this->load->view('admin/adminassect/header.php',$data);
$this->load->view('admin/adminassect/sidebar.php');
$this->load->view($view,$data);
$this->load->view('admin/adminassect/footer.php');
}
public function chkauthadmin()
{
if($this->session->userdata("session-admin-id") == "")
{
redirect(base_url()."admin/admin_stuff/login_admin");
}
}
}
Другой код контроллера
class Admin_Controller extends MY_Controller {
public function gettestpgedata(){
$this->load->library('form_validation');
$this->form_validation->set_rules('txtUsername', 'User Name', 'trim|required|min_length[3]|max_length[12]|alpha_numeric_spaces');
$this->form_validation->set_rules('txtUseraddress', 'User Address', 'trim|required|alpha_numeric_spaces|min_length[10]|max_length[200]');
}
}
Как я могу получить доступ к методу Admin_Controller из My_controller