Blame view

src/app/frontend/controllers/EventsController.php 690 Bytes
ef60cd4d   Administrator   first commit
1
2
3
4
5
6
  <?php
  
  namespace controllers;
  
  ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
  
f7818cdf   Administrator   change request to...
7
8
  use MyMailer\EventAdder;
  
ef60cd4d   Administrator   first commit
9
10
11
  class EventsController extends \Phalcon\Mvc\Controller
  {
  
ef60cd4d   Administrator   first commit
12
  
ef60cd4d   Administrator   first commit
13
14
  
  
ef60cd4d   Administrator   first commit
15
16
17
18
19
20
21
      public function eventMailerAction()
      {
          header('Access-Control-Allow-Origin: *');
          $this->view->disableLevel(\Phalcon\Mvc\View::LEVEL_MAIN_LAYOUT);
          session_write_close();
  
          try{
ef60cd4d   Administrator   first commit
22
  
ef60cd4d   Administrator   first commit
23
  
f7818cdf   Administrator   change request to...
24
              $EventAdder = new EventAdder($this->request->get());
ef60cd4d   Administrator   first commit
25
  
f7818cdf   Administrator   change request to...
26
              $EventAdder->callEventFactory();
ef60cd4d   Administrator   first commit
27
28
29
30
31
32
33
34
35
36
37
38
  
  
          }
          catch(\Exception $e){
              die($e);
          }
  
  
      }
  
  
  }