1
Hasanibrahim
how can i use theme.php ?

our theme files are html files but i need to use php for somethings.

when i try to use theme.php, all smarties are not working as normally. So i couldn't use theme.php, so i tried to use php codes in html file but it didn't work again normally. you will say "change .htaccess" but server is IIS web server..

So how can i use php in theme.html or if i do theme.php, how will smarty codes work ?

2
Hasanibrahim
Re: how can i use theme.php ?

or i an ask how can use if ($_GET with smarty ?

3
ghia
Re: how can i use theme.php ?
  • 2009/6/21 13:34

  • ghia

  • Community Support Member

  • Posts: 4953

  • Since: 2008/7/3 1


Use the Smarty PHP tags to enclose PHP code in your theme.html template as eg in this example.

4
Hasanibrahim
Re: how can i use theme.php ?

i tried to use these codes but they didn't effect in theme.html

<{php}>
if ($_GET['idedito'] == 3) {
echo '<img src="source.jpeg" />';
}
else if ($_GET['idedito'] == 2) {
echo '<img src="source2.jpeg" />';
}
else {
echo '<img src="source3.jpg"/>';
<{/php}>

5
Hasanibrahim
Re: how can i use theme.php ?

i solved my problem :) Thanks all helpers :)

Login

Who's Online

160 user(s) are online (97 user(s) are browsing Support Forums)


Members: 0


Guests: 160


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits