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.144 seconds

Les générateurs de code je les connais presque tous pour les avoir essorés en long en large et en travers ... mais celui ci c'est vraiment un outil formidable de simplicité et d'efficacité !
Marc. (liubov - Forum)

Get Started