|
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 |
Manga27 Smarty n00b
Joined: 26 Jun 2004 Posts: 3
|
Posted: Sat Jun 26, 2004 5:35 am Post subject: Absolutely nothing is happening with Smarty? |
|
|
System: Apache
I have installed Smarty into a subdirectory off of my web root, and chmod all of the directories to 777. I created an 'index.php' and an 'index.tpl', just like the basic setup documentation showed and using the same code that is in the docs. Everything looks set up correctly, but nothing shows up when I call the 'index.php' file. Here is what it looks like:
Code: |
<?php
// load Smarty library
require('/hsphere/local/home/myaccount/domain.com/Smarty/2.6.2/libs/Smarty.class.php');
$smarty = new Smarty;
$smarty->template_dir = '/hsphere/local/home/myaccount/domain.com/Smarty/templates/';
$smarty->compile_dir = '/hsphere/local/home/myaccount/domain.com/Smarty/templates_c/';
$smarty->config_dir = '/hsphere/local/home/myaccount/domain.com/Smarty/configs/';
$smarty->cache_dir = '/hsphere/local/home/myaccount/domain.com/Smarty/cache/';
$smarty->assign('name','Ned');
$smarty->display('index.tpl');
?>
|
I run the page, but I get nothing on the screen or in the source. I can't understand it, I'm not a PHP newbie and I've checked all of the permissions, directories, documentation etc etc. I don't even get an error message!
Any help would be greatly appreciated.
Take care,
... Christopher |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Sat Jun 26, 2004 5:39 am Post subject: |
|
|
Nothing in the error logs either? |
|
Back to top |
|
Manga27 Smarty n00b
Joined: 26 Jun 2004 Posts: 3
|
Posted: Sat Jun 26, 2004 5:41 am Post subject: |
|
|
Nada in the logs either. And when I change the top require (so it is wrong) then I get a fatal error, so I know that the paths are correct.
Weird eh?
Take care,
... Christopher |
|
Back to top |
|
Manga27 Smarty n00b
Joined: 26 Jun 2004 Posts: 3
|
Posted: Sun Jun 27, 2004 12:57 pm Post subject: Will pay for Smarty install... |
|
|
Regarding this previous message:
I will pay anyone $15 through PayPal immediately, if they can view and diagnose the problem with the aforementioned script.
E-Mail here: trance at ufl dot edu
and I will tell you where it is located.
Any takers?
[MODS: Sorry, I know this message is in the wrong category now... ]
Take care,
... Christopher |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Sun Jun 27, 2004 4:38 pm Post subject: |
|
|
hmmm. I'm curious. PM me with the info and I'll check it out, no charge. |
|
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
|