* @see https://codeigniter.com/user_guide/general/urls.html */ public function __construct() { parent::__construct(); //calling model $this->load->database(); $this->load->helper(array('form', 'url')); $this->load->library('form_validation'); $this->load->model("NewPenkraft/TeachRegistrationModel", "register"); } public function index() { $this->load->model('NewPenkraft/TeachRegistrationModel'); $data['country'] = $this->TeachRegistrationModel->fetch_country(); $this->load->view('pages/Student_module/header'); $this->load->view('pages/Student_module/teacher_register',$data); $this->load->view('pages/Student_module/footer'); } public function fetch_state() { $this->load->model('NewPenkraft/TeachRegistrationModel'); // console.log($this->input->post('country')); $id= $this->input->post('country'); if($this->input->post('country')) { echo $this->TeachRegistrationModel->fetch_state($this->input->post('country')); } } public function fetch_city() {$this->load->model('NewPenkraft/TeachRegistrationModel'); if($this->input->post('state')) { echo $this->TeachRegistrationModel->fetch_city($this->input->post('state')); } } public function register() { $config = array( array( 'field' => 'teachname', 'label' => 'Name', 'rules' => 'required' ), array( 'field' => 'teachemail', 'label' => 'Email Id', 'rules' => 'required' ), array( 'field' => 'teachpass', 'label' => 'Password', 'rules' => 'required' ), array( 'field' => 'teachmob', 'label' => 'Contact Number', 'rules' => 'required' ), array( 'field' => 'teachAddress', 'label' => 'Address', 'rules' => 'required' ), array( 'field' => 'country', 'label' => 'Country', 'rules' => 'required' ), array( 'field' => 'state', 'label' => 'State', 'rules' => 'required' ), array( 'field' => 'city', 'label' => 'City', 'rules' => 'required' ), array( 'field' => 'pincode', 'label' => 'Pincode', 'rules' => 'required' ) ); $this->form_validation->set_rules($config); $this->form_validation->set_error_delimiters('
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 303
Backtrace:
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once
Severity: Warning
Message: session_set_cookie_params(): Session cookie parameters cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 328
Backtrace:
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 355
Backtrace:
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 365
Backtrace:
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 366
Backtrace:
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 367
Backtrace:
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 368
Backtrace:
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once
Severity: Warning
Message: ini_set(): Session ini settings cannot be changed after headers have already been sent
Filename: drivers/Session_files_driver.php
Line Number: 109
Backtrace:
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once
Severity: Warning
Message: session_set_save_handler(): Session save handler cannot be changed after headers have already been sent
Filename: Session/Session.php
Line Number: 110
Backtrace:
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once
Severity: Warning
Message: session_start(): Session cannot be started after headers have already been sent
Filename: Session/Session.php
Line Number: 137
Backtrace:
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 6
Function: __construct
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once
Severity: Warning
Message: Cannot modify header information - headers already sent by (output started at /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/NewPenkraft/Teacherregisteration.php:1)
Filename: core/Common.php
Line Number: 571
Backtrace:
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/application/controllers/Custom404.php
Line: 11
Function: set_status_header
File: /home/jpoqodnrydmi/public_html/online.penkraft.in/index.php
Line: 323
Function: require_once
The page your looking for might have been removed or
had its name changed or is temporarily unavailable.