Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class OrdersController
- {
- public function httpGetMethod(Http $http, array $queryFields)
- {
- // Sukuriame modelio objekta
- $ordersModel = new OrdersModel();
- /*
- * Kreipiames i
- modelio klases funkcija ir
- priskiriame reiksmei
- */
- $orders = $ordersModel->listAll();
- // Perduodame reiksmes i vei
- return [
- 'orders' => $orders,
- ];
- }
- public function httpPostMethod(Http $http, array $queryFields)
- {
- }
- }
Add Comment
Please, Sign In to add comment