MVC-Pro/application/controllers/registercontroller.php
/**
	 * Description:
	 * This basically adds a new user and adds data into userObjects.
	 */
This basically adds a new user and adds data into userObjects.
This basically adds a new user and adds data into userObjects .
public function add()
	{
		$data = array(
						'first_name' => $_POST['first_name'],
						'last_name'  => $_POST['last_name'],
						'email'      => $_POST['email'],
						'password'   => crypt($_POST['password']),
						'active'     => 0
					  );
		$this->userObject = new User();
		$this->userObject->addUser($data);
		$this->set('message','Thanks for registering!');
		$this->set('task','add');
	}
public function add ( ) { $ data = array ( 'first_name' => $ _POST [ 'first_name' ] , 'last_name' => $ _POST [ 'last_name' ] , 'email' => $ _POST [ 'email' ] , 'password' => crypt ( $ _POST [ 'password' ] ) , 'active' => 0 ) ; $ this -> userObject = new User ( ) ; $ this -> userObject -> addUser ( $ data ) ; $ this -> set ( 'message' , 'Thanks for registering!' ) ; $ this -> set ( 'task' , 'add' ) ; }
Description:
 This basically adds a new user and adds data into userObjects.
Description : This basically adds a new user and adds data into userObjects .