Пример #1
0
 function __construct()
 {
     parent::__construct();
     $this->_name = get_class($this);
     $this->_action = $this->_model('action')->get(array('action' => $this->_name));
     $this->module_enabled = isset($this->_action['module_enabled']) ? $this->_action['module_enabled'] : $this->module_enabled;
     $this->load->helper('app');
 }
Пример #2
0
 function __construct()
 {
     parent::__construct();
     $this->_validation = array('add' => array('name' => array('required'), 'province_id' => array('required', l('province'))), 'edit' => array(array('field' => 'name', 'label' => l('name'), 'rules' => 'required'), array('field' => 'province_id', 'label' => l('province'), 'rules' => 'required')));
 }
Пример #3
0
 public function __construct()
 {
     parent::__construct();
     $this->_validation = array('add' => array(array('field' => 'title', 'label' => l('Title'), 'rules' => 'required'), array('field' => 'post_name', 'label' => l('Post Name'), 'rules' => 'required|callback__unique_post_name'), array('field' => 'body', 'label' => l('Body'), 'rules' => 'required')), 'edit' => array(array('field' => 'title', 'label' => l('Title'), 'rules' => 'required'), array('field' => 'post_name', 'label' => l('Post Name'), 'rules' => 'required|callback__unique_post_name'), array('field' => 'body', 'label' => l('Body'), 'rules' => 'required')));
 }
Пример #4
0
 function __construct()
 {
     parent::__construct();
     $this->_validation = array('add' => array(array('field' => 'name', 'label' => l('Company Name'), 'rules' => 'required'), array('field' => 'email', 'label' => l('Email'), 'rules' => 'valid_email')));
 }
Пример #5
0
 function __construct()
 {
     parent::__construct();
     $this->_validation = array('add' => array('first_name' => array('trim|required'), 'last_name' => array('trim|required'), 'email' => array('trim|required|valid_email|callback__unique_email'), 'username' => array('trim|required|callback__unique_username'), 'password' => array('trim|required'), 'password2' => array('trim|required|callback__retypepassword_check', l('Retype Password'))), 'edit' => array('first_name' => array('trim|required'), 'last_name' => array('trim|required'), 'email' => array('trim|required|valid_email|callback__unique_email'), 'username' => array('trim|required|callback__unique_username'), 'password' => array('trim|required'), 'password2' => array('trim|required|callback__retypepassword_check', l('Retype Password'))), 'change_password' => array('password' => array('trim|required'), 'old_password' => array('trim|required|callback__old_password_check'), 'password2' => array('trim|required|callback__retypepassword_check', l('Retype Password'))));
 }
Пример #6
0
 function __construct()
 {
     parent::__construct();
     $this->_validation = array('invite_me' => array(array('field' => 'full_name', 'label' => l('Full Name'), 'rules' => 'required'), array('field' => 'gender', 'label' => l('Gender'), 'rules' => 'required'), array('field' => 'email', 'label' => l('Email'), 'rules' => 'required|valid_email|callback__unique_email'), array('field' => 'store_type', 'label' => l('Store Type'), 'rules' => 'required'), array('field' => 'reason', 'label' => l('Reason'), 'rules' => 'required')));
 }
Пример #7
0
 function __construct()
 {
     parent::__construct();
     $this->_validation = array('add' => array(array('field' => 'first_name', 'label' => l('First Name'), 'rules' => 'required'), array('field' => 'last_name', 'label' => l('Last Name'), 'rules' => 'required'), array('field' => 'email', 'label' => l('Email'), 'rules' => 'required|valid_email|callback__unique_email'), array('field' => 'username', 'label' => l('Username'), 'rules' => 'required|callback__unique_username'), array('field' => 'password', 'label' => l('Password'), 'rules' => 'required'), array('field' => 'password2', 'label' => l('Retype Password'), 'rules' => 'required|callback__retypepassword_check')), 'register' => array(array('field' => 'first_name', 'label' => l('First Name'), 'rules' => 'required'), array('field' => 'last_name', 'label' => l('Last Name'), 'rules' => 'required'), array('field' => 'email', 'label' => l('Email'), 'rules' => 'required|valid_email|callback__unique_email'), array('field' => 'username', 'label' => l('Username'), 'rules' => 'required|callback__unique_username'), array('field' => 'password', 'label' => l('Password'), 'rules' => 'required'), array('field' => 'password2', 'label' => l('Retype Password'), 'rules' => 'required|callback__retypepassword_check')), 'change_password' => array(array('field' => 'password', 'label' => l('Password'), 'rules' => 'required'), array('field' => 'old_password', 'label' => l('Old Password'), 'rules' => 'required|callback__old_password_check'), array('field' => 'password2', 'label' => l('Retype Password'), 'rules' => 'required|callback__retypepassword_check')));
 }
Пример #8
0
 function __construct()
 {
     parent::__construct();
     $this->_validation = array('add' => array(array('field' => 'title', 'label' => l('Title'), 'rules' => 'required')), 'edit' => array(array('field' => 'title', 'label' => l('Title'), 'rules' => 'required')));
 }
Пример #9
0
 function __construct()
 {
     parent::__construct();
     $this->_validation = array('add' => array('name' => array('trim|required')), 'edit' => array('name' => array('trim|required')));
 }