1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
/**
* @link http://github.com/zendframework/ZendSkeletonApplication for the canonical source repository
* @copyright Copyright (c) 2005-2016 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
*/
namespace Application\Controller;
use Application\Master;
use Zend\View\Model\ViewModel;
class PluginuserController extends \Application\Master\GlobalActionController
{
public function __construct($headScript)
{
$this->headScript = $headScript;
}
public function indexAction() {
// $view = new ViewModel();
// $this->layout('layout/menu');
// return $view;
return $this->redirect()->toRoute('login');
}
// public function loginAction(){
// $view = new ViewModel();
// $uri = $this->getRequest()->getUri();
// // $baseurl = sprintf('//%s', $uri->getHost());
// // //$this->headLink->appendStyleSheet('/template/vendor/fontawesome-free/css/fonts.css');
// // $this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
// // $this->headScript->appendFile("/action-js/index-js/login-user-action.js");
// $this->layout("layout/login");
// return $view;
// }
// public function registrationAction(){
// $view = new ViewModel();
// $uri = $this->getRequest()->getUri();
// $baseurl = sprintf('//%s', $uri->getHost());
// $this->headScript->appendScript(' var baseURL = "' . $baseurl . '"');
// $this->headScript->appendFile('/action-js/index-js/register-user-action.js');
// $this->layout("layout/login");
// return $view;
// }
}