Esempio n. 1
0
<?php

use Core\Routing\Route;
Route::get('/', 'Controller@index');
Route::get('/get/user/info/:name/:email', 'Controller@userInfo');
Route::get('/america/newyour/test/:id', 'Controller@testAction');
Route::get('/america/newyour/:id', 'Controller@usaAction');
Route::get('/america/newyour/test/google/:id/:test', 'Controller@last');
Route::get('/test1', 'Controller@smallGoogle');
Route::get('/ma', 'Controller@bigTester');
Route::get('/admin/add/video/:cat_id/:video_id/:authName', 'Controller@test');
Route::post('/email/send', 'Controller@emailSend');
Esempio n. 2
0
<?php

use Core\Routing\Route;
Route::get('/', 'Controller@main');
Route::get('/admin/index', 'AdminProfileController@index');
/*
Route::get('/', 'Controller@index');
Route::get('/get/user/info/:name/:email', 'Controller@userInfo');
Route::get('/america/newyour/test/:id', 'Controller@testAction');
Route::get('/america/newyour/:id', 'Controller@usaAction');
Route::get('/america/newyour/test/google/:id/:test', 'Controller@last');
Route::get('/test1', 'Controller@smallGoogle');
Route::get('/ma', 'Controller@bigTester');
Route::get('/admin/add/video/:cat_id/:video_id/:authName', 'Controller@test');
Route::post('/email/send', 'Controller@emailSend');
*/
Esempio n. 3
0
<?php

require_once '../core/autoload.php';
require_once '../core/routes.php';
use Core\Config\AppConfig;
use Core\Routing\Route;
use App\Models\Users;
AppConfig::setDebugFlag(true);
AppConfig::setLogFlag(true);
$route = new Route();
$route->run();
Esempio n. 4
0
<?php

/**
 * Created by IntelliJ IDEA.
 * User: max
 * Date: 19-Dec-15
 * Time: 16:50
 */
use core\routing\Route;
//Todo: home different
//Todo: set default regex consts
return [Route::get(":page", "Index")->setConstraints(["page" => "any"]), Route::get("", "Index")];