kalebweb
4/27/2014 - 3:28 AM

Add CakePHP

Add CakePHP

	public function add() {
		if (!empty($this->data)) {
			if ($this->ControllerSingular->save($this->data)) {
				$this->Session->setFlash('Your post has been saved.');
				$this->redirect(array('action' => 'index'));
			}
		}
	}