Share » Forums » Developer » How to pass varaibles from php to...

How to pass varaibles from php to templates

How to pass varaibles from php to templates

Friday 16 December 2005 2:14:16 am - 7 replies

Modified on Friday 16 December 2005 2:17:03 am by Felix Laate

Author Message

Gabriel Ambuehl

Friday 16 December 2005 7:33:50 am

The way described in the docs works for me. Are you seeing the rest of the template?

Visit http://triligon.org

Felix Laate

Friday 16 December 2005 9:32:55 am

Hi Gabriel!

Yes, the title im the <H1> tag is shown..

A bit strange isn't it?

Felix

PS! I run 3.7.1

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Xavier Dutoit

Friday 16 December 2005 9:52:52 am

I use the same code you describe and it works.

Do you have errors/warning on the debug (set it on, clear all caches and run your module again).

X+

http://www.sydesy.com

Felix Laate

Friday 16 December 2005 10:23:51 am

Hi Xavier!

Unfortunatly it only says the module started and the module ended. No further messages..

I'm working on a module for integration of ez and openlaszlo (dynamic flash). Actually there will be two modules: a designer and a packagemanager. Currently I'm working on the latter.

I can get the php-script(s) to do things in the background, but when it comes to feedback it just won't do it..

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Norman Leutner

Thursday 29 December 2005 7:59:52 am

Silly question:
cleared all caches?

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Felix Laate

Thursday 29 December 2005 9:26:09 am

Hi Norman!

Not a silly question.. done that error a million times, but not this time..

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Petter Arneson

Thursday 29 December 2005 11:58:46 am

I don't know if this helps, but another silly question: did you enable the extension in admin? and in the settings?

It probably doesn't mather, but try

$Result['content'] = $tpl->fetch( "design:mymodule/feedback.tpl" );

instead of

$Result['content'] =& $tpl->fetch( "design:mymodule/feedback.tpl" );

Or have you tried the full path to the template?

$Result['content'] =& $tpl->fetch( "extension/mymodule/design/standard/templates/mymodule/feedback.tpl" );

www.vzt.no

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

36 542 Users on board!

Forums menu