Last active
August 29, 2015 13:57
-
-
Save aikchun/9636588 to your computer and use it in GitHub Desktop.
Revisions
-
aikchun revised this gist
Mar 19, 2014 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -15,6 +15,9 @@ $this->set('data', $data); } /** * in HashResult controller */ public function inputPlaintext() { // how do I access $data. } -
aikchun created this gist
Mar 19, 2014 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,20 @@ public function view() { if($this->request->is('post')) { $data = $this->request->data['HashAlgorithm']; $this->log($data); $this->redirect(array('controller' => 'HashResults' ,'action' => 'inputPlaintext', $data)); } $conditions = array( 'fields' => array('name'), 'order' => array('name ASC') ); $this->Session->destroy(); $data = $this->HashAlgorithm->find('all', $conditions); $this->set('data', $data); } public function result() { // how do I access $data. }