mirror of
https://github.com/e107inc/e107.git
synced 2025-08-22 22:25:31 +02:00
Core URL configuration initial commit
This commit is contained in:
41
e107_core/url/system/rewrite/e_url.php
Normal file
41
e107_core/url/system/rewrite/e_url.php
Normal file
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
class core_system_rewrite_url extends eUrlConfig
|
||||
{
|
||||
public function config()
|
||||
{
|
||||
return array(
|
||||
|
||||
'config' => array(
|
||||
'format' => 'path', // get|path - notify core for the current URL format, if set to 'get' rules will be ignored
|
||||
'defaultRoute' => 'error/notfound', // [optional] default empty; route (no leading module) used when module is found with no additional controller/action information e.g. /news/
|
||||
|
||||
),
|
||||
|
||||
// rule set array
|
||||
'rules' => array(
|
||||
'error404' => 'error/notfound',
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Admin callback
|
||||
* Language file not loaded as all language data is inside the lan_eurl.php (loaded by default on administration URL page)
|
||||
*/
|
||||
public function admin()
|
||||
{
|
||||
// static may be used for performance
|
||||
static $admin = array(
|
||||
'labels' => array(
|
||||
'name' => LAN_EURL_CORE_SYSTEM, // Module name
|
||||
'label' => LAN_EURL_SYSTEM_REWRITE_LABEL, // Current profile name
|
||||
'description' => LAN_EURL_SYSTEM_REWRITE_DESCR, //
|
||||
),
|
||||
'form' => array(), // Under construction - additional configuration options
|
||||
'callbacks' => array(), // Under construction - could be used for e.g. URL generator functionallity
|
||||
);
|
||||
|
||||
return $admin;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user