Archive for April 14th, 2009

You can build new variable strings inside a smarty template using the capture feature. You can concatenate variables and strings using this technique:
1234567// Pseudo code
$result->seo_url = ‘barn-project’;

// Smarty template code
{capture assign=project_url}/projects/{$result->seo_url}/{/capture}

{$project_url} /* Output: /projects/barn-project/ */


top