Skip to content
Browse files

adding updates to the ExampleController for example7 and example8

  • Loading branch information...
1 parent c3fbecd commit 751582c901561f0f5e32836fcc4600f7ea1c1cdc @enygma committed
Showing with 26 additions and 0 deletions.
  1. +26 −0 zfapp/application/controllers/ExampleController.php
View
26 zfapp/application/controllers/ExampleController.php
@@ -39,6 +39,7 @@ public function init()
->addActionContext('example5', array('xml', 'json'))
->addActionContext('example5update', array('xml', 'json'))
->addActionContext('example6submit', array('xml', 'json'))
+ ->addActionContext('example8submit', array('xml', 'json'))
->setAutoJsonSerialization(true)
->initContext();
}
@@ -219,6 +220,31 @@ public function example6submitAction()
$this->view->message = $message;
}
+ public function example7Action()
+ {
+ // unit testing with Jasmine
+ }
+
+ public function example8Action()
+ {
+ // chat application
+ }
+
+ public function example8submitAction()
+ {
+ // gets the submit of the chat message
+ error_log(__FUNCTION__);
+
+ error_log($this->getRequest()->getParam('username'));
+
+ $users = new Application_Model_Chatuser();
+ //$db = $users::getDefaultAdapter();
+ //$users->
+
+ $this->view->success = true;
+ $this->view->message = 'okay!';
+ }
+
private function _checkDbLogin($values)
{
$dbAdapter = Zend_Db_Table::getDefaultAdapter();

0 comments on commit 751582c

Please sign in to comment.
Something went wrong with that request. Please try again.