예제 #1
0
 public function usersTest($params)
 {
     $user = new Users();
     $model = $user->getAll();
     var_dump($model);
     return View::make($model);
 }
 public function index()
 {
     $products = new Products();
     $productsArray = $products->getUserProducts();
     $productsHelper = new viewhelpers\ProductList();
     $viewHelperResult = $productsHelper->listProducts($productsArray);
     $model = new ProductsViewModel($viewHelperResult);
     return View::make($model);
 }
 public function Index()
 {
     $user = new \IdentitySystem\IdentityUser();
     $session = new \IdentitySystem\IdentityRepository\IdentitySessionRepository();
     $sessions = $session->findAll();
     $registeredUserInfo = $user->UserLogin('admin', 'admin');
     //            $user->UserLogout('admin');
     return View::make();
 }
 /**
  * @Route(customTestContact/customTestAction)
  * @GET
  */
 public function Contact()
 {
     var_dump("TestContactController");
     return View::make();
 }
 /**
  * @Route(AnotherTestController/customAnotherAction)
  */
 public function Index()
 {
     var_dump('AnotherTest');
     return View::make();
 }