PHP Classes

File: App/Components/welcome/routes.php

Recommend this page to a friend!
  Classes of Muhammad Umer Farooq   Zest   App/Components/welcome/routes.php   Download  
File: App/Components/welcome/routes.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Zest
Application to show the use of the Zest framework
Author: By
Last change: Apply fixes from StyleCI
Date: 6 years ago
Size: 298 bytes
 

Contents

Class file image Download
<?php


//namespace required to define your component you can add many routes in one component as well
$namespace = "App\Components\welcome\Controllers";

// Its create the url localhost/blog/helloworld'
$com->add('welcome', ['controller' => 'Home', 'action' => 'index', 'namespace'=>$namespace]);