Skip to content

Instantly share code, notes, and snippets.

@hemache
Created November 24, 2012 12:50
Show Gist options
  • Select an option

  • Save hemache/4139544 to your computer and use it in GitHub Desktop.

Select an option

Save hemache/4139544 to your computer and use it in GitHub Desktop.
// Error
// -----
Parse error: syntax error, unexpected T_STRING, expecting ']' in /home/localhost/www/application/cache/106a6c241b8797f52e1e77317b96a201.tpl on line 3
// Php: home.php
// -------------
$home = $this->template->load('home');
$home->assign('name', 'FOOBAR');
$home->assign('me', array('good'=>'LAKA'));
$home->render();
// Source: home.tpl
// ----------------
you can simply integrate PHP codes
{name}
ask for a variable
<br>
{me.good}
call for a lang text
// Cache: home.tpl
// --------
you can simply integrate PHP codes
<?php echo $this->vars["na$this->vars["me"]"]; ?>
ask for a variable
<br>
<?php echo $this->vars["me"].good; ?>
call for a lang text
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment