I really don't have a clue how to resolve this -- been working on it for two days now..
I am using the Smarty Template Engine to separate presentation from Logic. I reuse code initially written for PHP5, which works just fine, but I am trying to scale it back to PHP 4.3 and the trouble starts. I made my code PHP4 compatible but I am having trouble with the Smarty framework. I am using a componentized template search_box.tpl and assigning it to the function plugin file function smarty_function_load_search_box($params, $smarty);
In the template file search_box.tpl I have :
{* search_box.tpl *}
{load_search_box assign="search_box"}
<br />
<table border="0" cellpadding="0" cellspacing="1" width="200">
<tr>
<td class="SearchBoxHead"> Search the Catalog </td>
</tr>
<tr>
.
.
.
and I receive the following error:
ERRNO: 256
TEXT: Smarty error: [in search_box.tpl line 2]: syntax error: unrecognized tag 'load_search_box' (Smarty_Compiler.class.php, line 565)
LOCATION: /customers/myweb318045/ftp/www.casacollections.com/public_html/libs/smarty/Smarty.class.php, line 1088, at March 22, 2005, 12:07 am
Everything worked fine while testing on localhost PHP5, then I found out that I had to host it on PHP 4.3 and this happened.
Does anybody know how to resolve this, I am really stuck. I've been on number of forums - searched and talked for hours - but no solution. 🙁
Please help!