Пример #1
0
 public function __construct()
 {
     parent::__construct();
     $this->loadClass(array('JobRequestModel'));
     Shortcodes::register('cv_form', array($this, 'cv_form'));
     Event::listen('cv_form', array($this, 'cv_form_ev'));
     Route::post('job/apply', array($this, 'cv_form_submit'));
 }
Пример #2
0
 public function __construct()
 {
     parent::__construct();
     $this->loadClass(array('PollModel'));
     Template::registerViewMethod('page', 'pollList', 'Lista de sondaje', array($this, 'pollList'), true);
     Route::post('poll/register', array($this, 'pollRegister'));
     \WebAPL\Shortcodes::register('poll', array($this, 'pollShortcode'));
 }
Пример #3
0
 public function __construct()
 {
     parent::__construct();
     $this->loadClass(array('SComplaintsModel'));
     // Set settings page
     Shortcodes::register('complaint_form', array($this, 'complaint_form'));
     Route::post("create_complaint", array($this, 'create_complaint'));
     Template::registerViewMethod('page', 'secial_complaints_list', 'Lista cu plingeri', array($this, 'secial_complaints_list'), true);
 }
Пример #4
0
 public function __construct()
 {
     parent::__construct();
     $this->loadClass(array('SComplaintsModel'));
     // Set settings page
     Shortcodes::register('scomplaint', array());
     Route::get('socialcomplaints/list', array('before' => 'auth', array($this, 'soclist')));
     Route::post('socialcomplaints/getlist', array('before' => 'auth', array($this, 'getlist')));
     Route::post('socialcomplaints/edititem', array('before' => 'auth', array($this, 'edititem')));
     Template::registerViewMethod('page', 'secial_complaints_list', 'Lista cu plângeri', null, true);
     Event::listen('construct_left_menu', array($this, 'left_menu_item'));
     // Set layout
     $this->layout = Template::mainLayout();
 }
Пример #5
0
 public static function fullView($data)
 {
     $data['page']->text = \WebAPL\Shortcodes::execute($data['page']->text);
     return View::make('sections.pages.fullw')->with($data);
 }
Пример #6
0
 public static function init()
 {
     \WebAPL\Shortcodes::register('contact', array('PostResources', 'blockContact'));
     \WebAPL\Shortcodes::register('harta', ['PostResources', 'insertMap']);
 }
Пример #7
0
 public static function mapPage($data)
 {
     $data['page']->text = \WebAPL\Shortcodes::execute($data['page']->text);
     $data['tree'] = Post::treePosts(0, array('general_node' => 1));
     return View::make('sections.pages.sitemap')->with($data);
 }