|
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 |
cage Smarty Rookie
Joined: 24 Apr 2003 Posts: 8 Location: Toronto .ca
|
Posted: Tue Sep 02, 2003 3:51 pm Post subject: Html checkboxes problem |
|
|
I have smarty setup properly to my knowledge but I receive errors when I try to use any plugin. I seem to get an error on line 27 of function.html_checkboxes.php, here's the line.
require_once $smarty->get_plugin_filepath'shared','escape_special_chars');
I get the following output in my browser:
Fatal error: smarty_function_html_checkboxes(): Failed opening required ''
I'm simply trying to run the example of html_checkbox usage in the online documentation.
Here's the code:
test.php
require_once("SmartyClass.php");
$smarty = new SmartyClass;
$smarty->assign('cust_ids', array(1000,1001,1002,1003));
$smarty->assign('cust_names', array('Joe Schmoe','Jack Smith','Jane Johnson','Charlie Brown'));
$smarty->assign('customer_id', 1001);
$smarty->display('test.tpl');
test.tpl
<html>
<body>
{html_checkboxes values=$cust_ids checked=$customer_id output=$cust_names separator="<br />"}
</body>
</html>
SmartyClass.php
require_once('/home/e-smith/files/webincludes/Smarty-2.4.2/Smarty.class.php');
class SmartyClass extends Smarty {
function SmartyClass() {
$this->Smarty();
$this->template_dir = '/home/e-smith/files/ibays/login/html/templates/';
$this->compile_dir = '/home/e-smith/files/ibays/login/html/templates_c/';
$this->config_dir = '/home/e-smith/files/ibays/login/html/configs/';
$this->cache_dir = '/home/e-smith/files/ibays/login/html/cache/';
$this->caching = FALSE;
$this->debugging = FALSE;
}
}
Any help would be most appreciated. |
|
Back to top |
|
cage Smarty Rookie
Joined: 24 Apr 2003 Posts: 8 Location: Toronto .ca
|
Posted: Wed Sep 03, 2003 6:27 pm Post subject: |
|
|
figured it out |
|
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
|