Jump to content

class CI_Controller ?


w3schoon

Recommended Posts

Nice be with you everyone! I'm a beginner in CodeIgniter framework and I'm really interested to explore its classes, methods, properties, etc... May I know what is the usage of CI_Controller, load, helper, library, form,_validation, run & view ? I found these here...

<?phpclass Form extends CI_Controller {function index(){  $this->load->helper(array('form', 'url'));  $this->load->library('form_validation');  if ($this->form_validation->run() == FALSE)  {   $this->load->view('myform');  }  else  {   $this->load->view('formsuccess');  }}}?>

Thanks in advance!

Link to comment
Share on other sites

it is the components of MVC framework. there is plenty of resource if you google about model-view-controller. It is mainly used to keep seperate the data and visual layer.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...