[PHP] Smarty Website down?

[PHP] Smarty Website down?

Post by marti » Wed, 28 Mar 2007 20:32:25



Excelent connection here.

--
21:50:04 up 2 days, 9:07, 0 users, load average: 0.92, 0.37, 0.18
---------------------------------------------------------
Lic. Mart Marqu | SELECT 'mmarques' ||
Centro de Telemica | '@' || 'unl.edu.ar';
Universidad Nacional | DBA, Programador,
del Lit *** | Administrador
---------------------------------------------------------
 
 
 

1. [PHP] PHP, Smarty, and Text

2. X-Cart/Smarty Custom PHP Scripts

i have what may be a very simple question for someone who has worked
with X-Cart or Smarty.

I am adding a rollover image next to the category names in the main
navigation. The following is my stripped down for this post version.
[php]
{foreach from=$categories item=c}

<div>

<div><img name="{$c.category}_" src="{$ImagesDir}/custom/
paw.gif"></div>
<div><a href="home.php?cat={$c.categoryid}">{$c.category}</
a></div>

</div>

{/foreach}
[/php]I need to remove spaces in the names given at
[code]name="{$c.category}_"[/code]I want to make it
[code]name="{str_replace(" ","_",$c.category)}_"[/code]My attempts
don't work and I get this error
[quote]Error: Smarty error: [in customer/categories.tpl line 26]:
syntax error: unrecognized tag: str_replace(" ","_",$c.category)
(Smarty_Compiler.class.php, line 436) in C:\apache2triad\htdocs\clients
\sitename.com\www\Smarty-2.6.12\Smarty.class.php on line 1095[/
quote]My question is.. How can I make PHP functions work in X-Cart/
Smarty?

I cant even find where $c.category is set. Thanks much.

3. PHP Session Variables and smarty Templates

4. How should I add php code in a smarty template?

5. php smarty

6. Problem printing out numbers (currency) with commas (using Smarty or PHP)

7. [PHP] Smarty Question

8. [PHP] Smarty problem

9. [PHP] Magis_qoutes + linux + smarty

10. Getting PHP/Smarty template functionality from Ruby or Ruby on Rails

11. PHP, Smarty and XAJAX

12. php readfile() function - how to implement on smarty web page

13. PHP/Smarty - Going crazy (slowly)

14. [PHP] how can i use zend framework view helper in smarty?

15. [PHP] Looks like a bug with Smarty