File: app/config/route.php

Recommend this page to a friend!
  Classes of Dimitri Sitchet  >  dframework  >  app/config/route.php  >  Download  
File: app/config/route.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: dframework
Framework to build PHP applications
Author: By
Last change:
Date: 2 months ago
Size: 1,038 bytes
 

Contents

Class file image Download
<?php

/*
| -------------------------------------------------------------------
| ROUTE SETTINGS OF APPLICATION
| -------------------------------------------------------------------
| This file will contain the routing settings of your application.
|
| For complete instructions please consult the 'Route Configuration' in User Guide.
|
| -------------------------------------------------------------------
| EXPLANATION OF VARIABLES
| -------------------------------------------------------------------
|
| ['default_controller']
| This route indicates which controller class should be loaded if the
| URI contains no data. In the above example, the "Home" class would be loaded.
|
*/


$route['default_controller'] = 'Home';

/*
$route['/works/([a-z-]+)/?$'] = 'Works::work';

$route['/posts']['GET'] = function () {
    echo 'dimitri ';
};

$route['/posts/([0-9]+)-([a-z\-0-9]+)'] = function ($a, $b) {
    echo "Article $a : $b";
};*/


/**
 * DON'T TOUCH THIS LINE. IT'S USING BY CONFIG CLASS
 */
return compact('route');


For more information send a message to info at phpclasses dot org.