Page 1 of 1

SetParameters deprecated in 1.10

Posted: Sun Sep 04, 2011 12:14 pm
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?

Re: SetParameters deprecated in 1.10

Posted: Sat Sep 17, 2011 2:58 pm
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

Re: SetParameters deprecated in 1.10

Posted: Mon Sep 19, 2011 11:28 pm
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();
	}