2014-02-16 11:09:10
	public function loadAllDocumentbyUser()
	{
		$id = $this->Auth->user('id');
        $this->layout = "ajax";
        $this->autoRender = false;  
        $allDocument = $this->Document->find('all',
        array(
            'conditions' => array(
               'Document.userid' => $id,
            )            
        ));
        echo json_encode($allDocument);
	}
Invalid Email or Password