PHP Classes

File: src/Prime/Console/stubs/config/routes.php

Recommend this page to a friend!
  Classes of Tom Sailor   Prime PHP Framework   src/Prime/Console/stubs/config/routes.php   Download  
File: src/Prime/Console/stubs/config/routes.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Prime PHP Framework
Implement Web applications using MVC
Author: By
Last change:
Date: 7 years ago
Size: 723 bytes
 

Contents

Class file image Download
<?php

use Prime\Server\Routing\RouteCollection;

/*
  |-------------------------------------------------------------------------
  | RouteCollection
  |-------------------------------------------------------------------------
  |
  | Objeto no qual serão definidas as rotas utilizadas na aplicação
  |
 */
$routes = new RouteCollection();

/*
  |-------------------------------------------------------------------------
  | Rota para o método GET
  |-------------------------------------------------------------------------
  |
  | Define o local aonde serão armazenados os templates que serão utilizados na aplicação
  |
 */
$routes->setGet('/', 'App\Modules\Home\HomeController::indexAction');


return
$routes;