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

Awards for the best Joomla app. This product is gonna win an award for this amazing job. Cook Self Service is the the best application from all over the Joomla universe ! It brings Joomla to a professional level really advanced for developers. It is a real fun to develop with it. The ACL part and security checks implementation are just... so much hours saved. I can now concentrate myself more on the design part and the creative works. Thank you so much. Guys I offer you all my congratulation ! Keep up the works because Joomla is needing it to increase the quality of extensions availables on the JED. I also learned a lot because I can see how to code at the proper place and I found all my answers reading the forum.
lack_hanson (JED)
          

Get Started