public function actionRegister() { $account = new User(); //$account->name = $_POST['name']; $account->email = $_POST['email']; $account->createUser(); $account->setPassword($_POST['password']); View::display('main.tmpl'); }
public function actionShow() { $services = (new Service())->getAllServices(); View::display('services.tmpl', $services); }
public function actionShow() { $products = (new Product())->getAllProducts(); View::display('products.tmpl', $products); }
public function actionShow() { $model = new Article(); View::display('main.tmpl', null); }
public function actionShow() { View::display('admin.tmpl', null); }
public function actionShow() { $productId = $_GET['productid']; $product = (new Product())->getProductById($productId); View::display('productsummary.tmpl', $product); }