Пример #1
0
 public function actionRegister()
 {
     $account = new User();
     //$account->name = $_POST['name'];
     $account->email = $_POST['email'];
     $account->createUser();
     $account->setPassword($_POST['password']);
     View::display('main.tmpl');
 }
Пример #2
0
 public function actionShow()
 {
     $services = (new Service())->getAllServices();
     View::display('services.tmpl', $services);
 }
Пример #3
0
 public function actionShow()
 {
     $products = (new Product())->getAllProducts();
     View::display('products.tmpl', $products);
 }
Пример #4
0
 public function actionShow()
 {
     $model = new Article();
     View::display('main.tmpl', null);
 }
Пример #5
0
 public function actionShow()
 {
     View::display('admin.tmpl', null);
 }
Пример #6
0
 public function actionShow()
 {
     $productId = $_GET['productid'];
     $product = (new Product())->getProductById($productId);
     View::display('productsummary.tmpl', $product);
 }