Wednesday, 15 September 2010

Slim PHP Templates and passing parameters as strings within DOM attributes -



Slim PHP Templates and passing parameters as strings within DOM attributes -

i'm trying utilize addthis widget share content, want include test scores dynamic string when sharing twitter. using page partials templating.

<div addthis-toolbox class="addthis_toolbox addthis_default_style addthis_32x32_style social-width" style="width: 150 px" addthis:url="http://www.ourclient.com/quiz/score" addthis:title="i took iq quiz, got {{totalpoints}} points!" ></a>

however, totalpoints populating {{totalpoints}} instead of passing variable. ideas on how can convert string easily? i'm using slim php framework.

php dom parameters templating slim

No comments:

Post a Comment