Avatar of designersx
designersx
 asked on

Smarty Installation problem

while installation i am getting an error

Smarty error: unable to read resource: "test.conf"

all the paths in my index.php file are correct, but i m stucked here

i m totally new to smarty plz help
PHP

Avatar of undefined
Last Comment
Parag_t567

8/22/2022 - Mon
Parag_t567

Can you post the code of index.php?
designersx

ASKER

<?php
// load Smarty library
require('Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = 'C:/xampplite/htdocs/smarty/templates/';
$smarty->config_dir = 'C:/xampplite/htdocs/smarty/config/';
$smarty->cache_dir = 'C:/xampplite/smarty/cache/';
$smarty->compile_dir = 'C:/xampplite/smarty/templates_c/';
$smarty->assign('name','Penguin !!');
$smarty->display('index.tpl');
?>
index.tpl
<html>
<body>
Hello, {$name}
<body>
<html>

Open in new window

ASKER CERTIFIED SOLUTION
Parag_t567

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes