SetParameters deprecated in 1.10

The members of the Dev team will place issues here that they consider to be solved.
Post Reply
Foaly*
Translator
Translator
Posts: 150
Joined: Sun Mar 29, 2009 3:32 pm
Location: London

SetParameters deprecated in 1.10

Post by Foaly* »

hey guys,

I'm wondering how to make my modules backward-compatible to CMSms < 1.10. As SetParameters() method shouldn't be used to register routes anymore, I either have to distribute a version of my module for each the "old" CMSms and 1.10. Any suggestions?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: SetParameters deprecated in 1.10

Post by Rolf »

Foaly* wrote:As SetParameters() method shouldn't be used to register routes anymore
I asked Calguy1000:
SetParameters() is deprecated, but it still works in 1.10
So no problem at this moment.

Hope this helps.

Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
tomphantoo
Forum Members
Forum Members
Posts: 15
Joined: Mon Apr 11, 2011 7:33 am

Re: SetParameters deprecated in 1.10

Post by tomphantoo »

This works for me: after re-crafting module initialization for 1.10

Code: Select all

	//setup for pre-1.10
	function SetParameters()
	{
		$this->InitializeAdmin();
		$this->InitializeFrontend();
	}
Post Reply

Return to “Closed Issues”