title: Migrating from Joomla 2.5 to 3x Generating Errors
body: <p>Trying to migrate some of the custom components which works well in Joomla 2.5.14 to Joomla 3.1.5, however getting some errors like - 404 component not found in Joomla Backend &amp; other errors in frontend</p>
  
  <p>Is there any migration guide from Jooma 2.5 to 3x series, of what changes need to be done in custom components</p>
  
  <p>Front End Section of Site
  1st error</p>
  
  <pre><code>   Notice: Use of undefined constant DS - assumed 'DS' in forms.php
  </code></pre>
  
  <p>2nd error</p>
  
  <pre><code>   Warning: require_once(com_formsDScontroller.php) [&lt;a href='function.require-once'&gt;function.require-once&lt;/a&gt;]: failed to open stream: No such file or directory in forms.php
  </code></pre>
  
  <p>3rd error</p>
  
  <pre><code>  Fatal error: require_once() [&lt;a href='function.require'&gt;function.require&lt;/a&gt;]: Failed opening required 'com_formsDScontroller.php' (include_path='.;C:\php\pear') in forms.php
  </code></pre>
  
  <p>Been all errors showing forms.php, it is</p>
  
  <pre><code>   &lt;?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-&gt;execute( JRequest::getVar( 'layout' ) );
     $controller-&gt;redirect();
      ?&gt;
  </code></pre>