Welcome, Guest
Username: Password: Remember me

TOPIC: DS constant (joomla 3.0)

DS constant (joomla 3.0) 28 Sep 2012 09:02 #4118

  • liubov
  • liubov's Avatar
  • Offline
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 279
  • Thank you received: 36
  • Karma: 22
Hi Joce,

I'am actually testing my 2.5 extension on a brand new Joomla! 3.0beta2.

The MVC structure and native code generate with j-cook match with the 3.0 API.
The main thing is that the DS contant is used everywhere in the files of the component. DS contant was still supported in joomla! 2.5 but as been removed in 3.0.

Source :Potential backward compatibility issues in Joomla 3.0

Solution is to add the following code to use a 2.5 extension under 3.0 :
if(!defined('DS')){
define('DS',DIRECTORY_SEPARATOR);
}

Marc
Last Edit: 03 Oct 2012 13:27 by admin.
The administrator has disabled public write access.
The following user(s) said Thank You: admin, VeCrea, Tomaselli
Time to create page: 0.072 seconds

Get Started