Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Dispatcher extends DispatcherCore
- {
- public function __construct()
- {
- $this->default_routes['blog-route'] =
- [
- 'controller' => 'blog',
- 'rule' => 'blog/{id_blog}_{rewrite}.html',
- 'keywords' =>
- [
- 'id_blog' =>
- [
- 'regexp' => '[0-9]+',
- 'param' => 'id_blog',
- ],
- 'rewrite' =>
- [
- 'regexp' => self::REWRITE_PATTERN,
- ],
- 'meta_keywords' =>
- [
- 'regexp' => '[_a-zA-Z0-9-\pL]*'
- ],
- 'meta_title' =>
- [
- 'regexp' => '[_a-zA-Z0-9-\pL]*'
- ],
- ],
- ];
- parent::__construct();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement