试图迁移其中一些在的Joomla 2.5.14行之有效到Joomla 3.1.5自定义组件,然而越来越像一些错误 - 404成分中的Joomla后端和前端中的其他错误未找到
难道有Jooma 2.5任何迁移指南3X系列,有什么需要自定义组件做改变
网站第一次错误的前端部
Notice: Use of undefined constant DS - assumed 'DS' in forms.php
第二个错误
Warning: require_once(com_formsDScontroller.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in forms.php
第三个错误
Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'com_formsDScontroller.php' (include_path='.;C:\php\pear') in forms.php
被所有的错误显示forms.php,它是
<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
require_once( JPATH_COMPONENT.DS.'controller.php' );
if ($controller = JRequest::getWord('controller')) {
$path = JPATH_COMPONENT.DS.'controllers'.DS.$controller.'.php';
if (file_exists($path)) {
require_once $path;
} else {
$controller = '';
}
}
$classname = 'FormsController'.$controller;
$controller = new $classname();
$controller->execute( JRequest::getVar( 'layout' ) );
$controller->redirect();
?>