|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
jrgaril Smarty n00b
Joined: 11 Sep 2019 Posts: 1
|
Posted: Wed Sep 11, 2019 7:42 am Post subject: help im new to smarty |
|
|
I'm gettin this error when trying to launch smarty via xampp http://localhost/smarty
error
Parse error: syntax error, unexpected '$smarty' (T_VARIABLE) in C:\xampp\htdocs\smarty\index.php on line 6
index.php content
<?php
// load Smarty library
require('Smarty.class.php');
$smarty = new Smarty;
$smarty->templates_dir = 'C:/xampp/htdocs/smarty/templates'
$smarty-»config_dir = 'C:/xampp/htdocs/smarty/config';
$smarty-»cache_dir = 'C:/xampp/smarty/cache';
$smarty-»compile_dir = 'C:/xampp/smarty/templates_c';
$smarty-»assign('name','Penguin !!');
$smarty-»display('index.tpl');
?> |
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|