Example #1
0
 public function main()
 {
     $menuArr = $this->authModel->queryAuth('1');
     //$leftMenu = new LeftMenu($menuArr);
     $_SESSION['menuArr'] = $menuArr;
     $this->view = View::build('admin/MainView');
 }
Example #2
0
 public function submitProduct()
 {
     $proName = _get('proName');
     $description = _get('description');
     $proPrice = _get('proPrice');
     $proType = _get('proType');
     $proStatus = _get('proStatus');
     $imagePath = _get('imagePath');
     $res = $this->productModel->submitProduct($proName, $description, $proPrice, $proType, $proStatus, $imagePath);
     if ($res) {
         parent::redirect("login/main");
     } else {
         $this->view = View::build('failure');
     }
 }
Example #3
0
 function index()
 {
     $this->view = View::build('admin/LoginView');
 }
Example #4
0
 public function orderDetail()
 {
     $this->view = View::build('order/OrderDetailView');
 }
Example #5
0
 public function mod()
 {
     $_REQUEST['aaa'] = array('Lucy' => '21', 'Lily' => '19');
     $this->view = View::build("testview");
 }
Example #6
0
 public function index()
 {
     $_REQUEST['proTypeArr'] = $this->productModel->getProductType();
     $_REQUEST['productArr'] = $this->productModel->getAllProduct();
     $this->view = View::build('product/ProductView');
 }