Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Html checkboxes problem

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
cage
Smarty Rookie


Joined: 24 Apr 2003
Posts: 8
Location: Toronto .ca

PostPosted: Tue Sep 02, 2003 3:51 pm    Post subject: Html checkboxes problem Reply with quote

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
View user's profile Send private message
cage
Smarty Rookie


Joined: 24 Apr 2003
Posts: 8
Location: Toronto .ca

PostPosted: Wed Sep 03, 2003 6:27 pm    Post subject: Reply with quote

figured it out Smile
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General 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