Share » Forums » Developer » Passing Variables between different...

Passing Variables between different views within a module

Passing Variables between different views within a module

Sunday 23 April 2006 5:55:11 am - 2 replies

Modified on Sunday 23 April 2006 5:59:01 am by Daniel Scheiner

Author Message

Präßler Sven

Monday 24 April 2006 1:44:51 am

Yes define a param in the Module.php file for view2.

$ViewList['view2'] = array(
	'script' 	=> 	'view2.php',
	'params'		=>	array('keyword')
);

1. Pass the variable with the url like:

www.mysite.de/intranet/mymodule/view2/myvariable

2.Access the variable by using:

$view2Keyword = $Params['keyword'];

Nabil Alimi

Wednesday 26 April 2006 6:43:22 am

You can also use session vars depending on what your aim is.

My blog : http://www.starnab.com/ezpublish / http://www.starnab.com/ / http://www.assiki-consulting.com
eZ Publish Freelance developper. Feel free to contact me +33 674 367 057
nabil at assiki d0t fr

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu