Commit e22db2b7cff62a79872682495c8afdcbdf5cf031
1 parent
d0f33a64
change request to massage
Showing
4 changed files
with
27 additions
and
7 deletions
Show diff stats
1 | +<?php | |
2 | + | |
3 | +namespace controllers; | |
4 | + | |
5 | +/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | |
6 | + | |
7 | +class SeriesOfLetters extends \Phalcon\Mvc\Controller | |
8 | +{ | |
9 | + public function initialize() | |
10 | + { | |
11 | + $this->view->setTemplateAfter('common'); | |
12 | + } | |
13 | + | |
14 | + public function indexAction(){ | |
15 | + $data = \eventEmail::query() | |
16 | + ->where("email_type = 'standard'") | |
17 | + ->andWhere("project_id = {$this->session->get('project-id')}") | |
18 | + ->execute(); | |
19 | + | |
20 | + $this->view->setVars([ | |
21 | + | |
22 | + ]); | |
23 | + } | |
24 | +} | |
0 | 25 | \ No newline at end of file | ... | ... |
src/app/frontend/controllers/StandardEmailController.php
... | ... | @@ -251,10 +251,5 @@ class StandardEmailController extends \Phalcon\Mvc\Controller |
251 | 251 | } |
252 | 252 | |
253 | 253 | |
254 | - public function seriesOfLettersAction(){ | |
255 | - $this->view->pick( 'series_of_letters/index' ); | |
256 | - $this->view->setVars([ | |
257 | 254 | |
258 | - ]); | |
259 | - } | |
260 | 255 | } |
261 | 256 | \ No newline at end of file | ... | ... |
src/lib/security.php
... | ... | @@ -106,6 +106,7 @@ use Phalcon\Events\Event, |
106 | 106 | "user"=>array("account"), |
107 | 107 | "event_email" => array("checkAjaxData","index", "delete", "update", "add"), |
108 | 108 | "standard_email" => array("index", "delete", "update", "add", "getuserslike","seriesOfLetters"), |
109 | + "series_of_letters" => array("index", "delete", "update", "add"), | |
109 | 110 | "customers_email" => array( "index","delete", "update"), |
110 | 111 | "delivery" => array("index", "add", "update", "moreinfo", "delete", "getCampaignList","customers_add_one"), |
111 | 112 | "price_parser" => array("index", "sort", "deleteLink", | ... | ... |
www/index.php