PHP Classes

File: app/sts/routes.php

Recommend this page to a friend!
  Classes of Marcelo Telles   CRUD PHP MVC   app/sts/routes.php   Download  
File: app/sts/routes.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: CRUD PHP MVC
Application that uses the MVC Design Pattern
Author: By
Last change:
Date: 5 months ago
Size: 557 bytes
 

Contents

Class file image Download
<?php
/**
 * define routes with its controllers and actions
 * fazer
 */
const routes = array(
   
'/' => array('HomeController', 'index'),
   
'/home' => array('HomeController', 'index'),
   
'/users' => array('UserController', 'index'),
   
'/users/load' => array('UserController', 'load'),
   
'/users/show' => array('UserController', 'getDetail'),
   
'/users/add' => array('UserController', 'add'),
   
'/users/edit' => array('UserController', 'edit'),
   
'/users/delete' => array('UserController', 'delete'),
);