Created
November 24, 2012 12:50
-
-
Save hemache/4139544 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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