Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

help im new to smarty

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup
View previous topic :: View next topic  
Author Message
jrgaril
Smarty n00b


Joined: 11 Sep 2019
Posts: 1

PostPosted: Wed Sep 11, 2019 7:42 am    Post subject: help im new to smarty Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1568

PostPosted: Sat Sep 14, 2019 5:37 am    Post subject: Reply with quote

https://www.php.net/langref

Your error is on the previous line.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Installation and Setup All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP