Jump to content

How to return .html instead .php from $smarty.server.PHP_SELF


Recommended Posts

OK. I've managed to do this using smart plugin:


function smarty_modifier_php2html($string)
return str_replace(".php",".html",$string);


which I named modifier.php2html.php and placed inside /include/smarty/plugins directory. I had to replace all occurences of "{$smarty.server.PHP_SELF}" and change them to "{$smarty.server.PHP_SELF|php2html}"

Edited by webio
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated