This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/includes/kohana/modules/userguide/init.php

30 lines
776 B
PHP
Raw Normal View History

2010-08-21 04:43:03 +00:00
<?php defined('SYSPATH') or die('No direct script access.');
// Static file serving (CSS, JS, images)
Route::set('docs/media', 'guide/media(/<file>)', array('file' => '.+'))
->defaults(array(
'controller' => 'userguide',
'action' => 'media',
'file' => NULL,
));
2011-05-13 06:00:25 +00:00
// API Browser, if enabled
2010-08-21 04:43:03 +00:00
if (Kohana::config('userguide.api_browser') === TRUE)
{
Route::set('docs/api', 'guide/api(/<class>)', array('class' => '[a-zA-Z0-9_]+'))
->defaults(array(
'controller' => 'userguide',
'action' => 'api',
'class' => NULL,
));
}
2011-05-13 06:00:25 +00:00
// User guide pages, in modules
Route::set('docs/guide', 'guide(/<module>(/<page>))', array(
2010-08-21 04:43:03 +00:00
'page' => '.+',
))
->defaults(array(
'controller' => 'userguide',
'action' => 'docs',
2011-05-13 06:00:25 +00:00
'module' => '',
));