Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

  • liubov
  • liubov's Avatar Topic Author
  • Offline
  • Elite Member
  • Elite Member
  • (=) 10 mn and it's ready!
  • Posts: 279
  • Thank you received: 36
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
The following user(s) said Thank You: admin, VeCrea, Tomaselli

Please Log in or Create an account to join the conversation.

Last edit: by admin.
  • Page:
  • 1
Time to create page: 0.085 seconds

  Excellent Tool ! This tool will save you a lot of time writing the same old structure. I've used others but this is really nice for a quick start. Makes a 3 hour task a 15 minute one. Thanks for this extension
dickrundell (JED)
         

Get Started