Commit 31b6dfca84d4f2f17bd25cdf841ef7179b0aba08
1 parent
4de96497
change request to massage
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
src/app/frontend/controllers/EventsController.php
| ... | ... | @@ -271,6 +271,11 @@ class EventsController extends \Phalcon\Mvc\Controller |
| 271 | 271 | |
| 272 | 272 | } |
| 273 | 273 | |
| 274 | + | |
| 275 | + private function subscribeNewCustomer(){ | |
| 276 | + print_r($this->post); | |
| 277 | + } | |
| 278 | + | |
| 274 | 279 | public function eventMailerAction() |
| 275 | 280 | { |
| 276 | 281 | header('Access-Control-Allow-Origin: *'); |
| ... | ... | @@ -327,6 +332,11 @@ class EventsController extends \Phalcon\Mvc\Controller |
| 327 | 332 | $this->saveSpyOrder($spyID, 'added'); |
| 328 | 333 | |
| 329 | 334 | break; |
| 335 | + case 'add_subscribe': | |
| 336 | + $this->subscribeNewCustomer($this->project_model->getProjectId($this->host)); | |
| 337 | + | |
| 338 | + | |
| 339 | + break; | |
| 330 | 340 | case 'order_delete': |
| 331 | 341 | $spyID = $this->getSpyData(); |
| 332 | 342 | $this->saveSpyOrder($spyID, 'deleted'); | ... | ... |