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

Freakin' Awesome!!! J-Cook is simply awesome - whether you're a highly experienced developer or complete novice whether you're building a small inventory component or a complete community solution! The beauty comes from a fast slick and reliable platform that readily provides developers with everything they'll need to build the backbone of a solid and secure component with wizards for authoring access publishing aliasing created/modified by dates... you name it COOK provides it! J-Cook really surpasses all of the 'competition' as far as MVC tools are concerned! Try love it and get cooking!
learnthrusong (JED)
          

Get Started