PHP Classes

File: core/routes.php

Recommend this page to a friend!
  Packages of Alvaro Talavera   PHP Light MVC   core/routes.php   Download  
File: core/routes.php
Role: Configuration script
Content type: text/plain
Description: Configuration script
Class: PHP Light MVC
MVC framework to implement PHP Web applications
Author: By
Last change:
Date: 3 months ago
Size: 638 bytes
 

Contents

Class file image Download
<?

# Custom routes here

# Examples
$map->connect("/example/show/:id", array('controller' => 'example', 'action' => 'show'));
$map->connect("/mostrar/:id", array('controller' => 'example', 'action' => 'show'));
$map->connect("/mostrar/:id/otra/:other", array('controller' => 'example', 'action' => 'show'));
$map->connect("/mostrar_otro/:id/:other/*", array('controller' => 'example', 'action' => 'show'));


$map->connect("/login", array('controller' => 'example', 'action' => 'login'));

# Defaults
$map->connect("/", array('controller' => 'example', 'action' => 'index')); # Define an INDEX
$map->connect(":controller/:action/*");

?>