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

Search found 5 matches
Smarty Forum Index
Author Message
  Topic: There's something wrong with my if/else condition in index.p
makamo66

Replies: 6
Views: 24227

PostForum: General   Posted: Tue Jul 20, 2021 12:24 am   Subject: There's something wrong with my if/else condition in index.p
I commented out the stylesheet at localhost and I didn't have the same problem so my stylesheet is the problem, not the old version of Smarty.
  Topic: There's something wrong with my if/else condition in index.p
makamo66

Replies: 6
Views: 24227

PostForum: General   Posted: Mon Jul 19, 2021 11:51 pm   Subject: There's something wrong with my if/else condition in index.p
I'm having problems with my Smarty version on my localhost but it works for the website. My HTML is messed up on the localhost but I don't have the same stylesheet at the website so I don't know if my ...
  Topic: There's something wrong with my if/else condition in index.p
makamo66

Replies: 6
Views: 24227

PostForum: General   Posted: Thu Jun 24, 2021 11:48 am   Subject: There's something wrong with my if/else condition in index.p
Thanks, AnrDaemon, your idea was correct.

I had a whole bunch of elseif conditions in my template that didn't check whether the variable had been set or not. So I changed:

{if isset($fo ...
  Topic: There's something wrong with my if/else condition in index.p
makamo66

Replies: 6
Views: 24227

PostForum: General   Posted: Wed Jun 23, 2021 9:17 pm   Subject: There's something wrong with my if/else condition in index.p
Why do I need to upgrade my Smarty version if it's otherwise working fine? I think I found the problem based on your insight but I can't check it right now because I have to prepare for my bootcamp pr ...
  Topic: There's something wrong with my if/else condition in index.p
makamo66

Replies: 6
Views: 24227

PostForum: General   Posted: Mon Jun 21, 2021 12:36 pm   Subject: There's something wrong with my if/else condition in index.p
in index.php in the root directory I have:
if (isset($_REQUEST['form']) && !empty($_REQUEST['form']) ){
$form = $_REQUEST['form'];
$smar ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP