public function main() { $menuArr = $this->authModel->queryAuth('1'); //$leftMenu = new LeftMenu($menuArr); $_SESSION['menuArr'] = $menuArr; $this->view = View::build('admin/MainView'); }
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'); } }
function index() { $this->view = View::build('admin/LoginView'); }
public function orderDetail() { $this->view = View::build('order/OrderDetailView'); }
public function mod() { $_REQUEST['aaa'] = array('Lucy' => '21', 'Lily' => '19'); $this->view = View::build("testview"); }
public function index() { $_REQUEST['proTypeArr'] = $this->productModel->getProductType(); $_REQUEST['productArr'] = $this->productModel->getAllProduct(); $this->view = View::build('product/ProductView'); }