HosipLan

Untitled

Nov 9th, 2014
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. $front[] = new Locale\Route("[!<presenter>/]<page .+>", array(
  2.     "presenter" => array(
  3.         Locale\Route::VALUE => "Static",
  4.         Locale\Route::TRANSLATION_TABLE => array(
  5.             'cs' => array(
  6.                 "stranka" => "Static",
  7.             ),
  8.             'sk' => array(
  9.                 "stranka" => "Static",
  10.             ),
  11.             'en' => array(
  12.                 "page" => "Static",
  13.             )
  14.         ),
  15.     ),
  16.     'action' => 'default',
  17.     'page'  => array(
  18.         Locale\Route::FILTER_IN => [$this, 'existsPage'], # v téhle metodě se sahá na databázi
  19.         Locale\Route::FILTER_OUT => [$this, 'existsPage'],
  20.     ),
  21. ), $flags);
Advertisement
Add Comment
Please, Sign In to add comment