예제 #1
0
파일: Add.php 프로젝트: microlefes/Game
 function execute($caveID, $caves)
 {
     // get model
     $model = new Contacts_Model($caveID, $caves);
     // init error
     $error = CONTACTS_NOERROR;
     // add contact
     $contact = Request::getVar('contact', '');
     $error = $model->addContact($contact);
     // return Show Controller
     $controller = new Contacts_Show_Controller($error);
     return $controller->execute($caveID, $caves);
 }
예제 #2
0
파일: Add.php 프로젝트: agatho/uaenhanced
 function execute($caveID, $caves)
 {
     global $params, $config;
     // get model
     $model = new Contacts_Model($caveID, $caves);
     // init error
     $error = CONTACTS_NOERROR;
     // add contact
     $contact = $params->POST->contact;
     $error = $model->addContact($contact);
     // return Show Controller
     $controller = new Contacts_Show_Controller($error);
     return $controller->execute($caveID, $caves);
 }