示例#1
0
Route::post('password/reset/{token}', array('uses' => 'RemindersController@postReset', 'as' => 'password.update'));
/*
|--------------------------------------------------------------------------
| Former
|--------------------------------------------------------------------------
|
*/
Route::post('formr/{modelId?}', array('as' => 'formr', 'uses' => 'FormerController@storeResult'));
/*
|--------------------------------------------------------------------------
| Router in the end
|--------------------------------------------------------------------------
|
|
*/
$locale = Localizr::initLocale();
Route::group(array('prefix' => $locale), function () {
    Route::get('/', array('as' => 'home', 'uses' => Config::get('core::route.root')));
    Route::get('{slug}', array('uses' => 'PagerController@getSlug'));
});
/*
|--------------------------------------------------------------------------
| Error...
|--------------------------------------------------------------------------
|
|
*/
/*App::error(function($exception, $code)
{
    switch ($code)
    {
示例#2
0
文件: Nav.php 项目: Metrakit/dynamix
 /**
  * Additional Method
  *
  * @var string
  */
 public function url()
 {
     return ($this->navigable_type != 'NavLink' && Locale::countEnable() > 1 ? Localizr::getURLLocale() : '') . $this->navigable->url();
 }