You are not logged in.

Announcement

Forum database was corrupt and an old backup was restored as temporary replacement. Registrations closed until the database is recovered. Please ask questions using the Contact form

#1 04-09-2013 22:10:58

dcaplan
Contributors
Registered: 05-06-2013
Posts: 6

PHP in tile

Hello, I am trying to add a php script into one of my tiles. I am newer at PHP so I am having a little trouble. Here is what I am trying:

$tile[] = array("type"=>"simple","group"=>0,"x"=>1,"y"=>1,'width'=>1,'height'=>1,"background"=>"#db582e url('img/graph.png') no-repeat","url"=>"water.php",
"title"=>"Water","text"=>$echo "Hello world!";"liters used yesterday");

Any advise?

Offline

#2 09-09-2013 19:00:40

Infopath
Contributors
Registered: 22-03-2013
Posts: 27
Website

Re: PHP in tile

Wouldn't "text" => "Hello world!" be easier? Why echo?

Offline

#3 09-09-2013 19:31:06

Thomas
Administrator
Registered: 10-03-2013
Posts: 897

Re: PHP in tile

This question was doubleposted and was answered here: http://metro-webdesign.info/forum/viewtopic.php?id=459

Anyway, this only applies for V4 of the template.

Offline

Board footer

Powered by FluxBB