Example #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');
 }
Example #2
0
 public function actionShow()
 {
     $services = (new Service())->getAllServices();
     View::display('services.tmpl', $services);
 }
Example #3
0
 public function actionShow()
 {
     $products = (new Product())->getAllProducts();
     View::display('products.tmpl', $products);
 }
Example #4
0
 public function actionShow()
 {
     $model = new Article();
     View::display('main.tmpl', null);
 }
Example #5
0
 public function actionShow()
 {
     View::display('admin.tmpl', null);
 }
Example #6
0
 public function actionShow()
 {
     $productId = $_GET['productid'];
     $product = (new Product())->getProductById($productId);
     View::display('productsummary.tmpl', $product);
 }