plz help me getting strange error with smarty

Discussion in 'PHP' started by octalsystems, Dec 19, 2008.

  1. #1
    Hi firends,

    i was working on a clipshare script page name view_video.php
    i was trying to put some smarty if else statement i am 100% sure that every if else statement is properly closed but every time smarty giving the mismatched if statement error

    so i just put these few lines of code in view_video.tpl

    {if "true" eq "true"}
    (if "fruit" eq "apple"}
    1
    {/if}

    {if "apple" eq "banana"}
    2
    {/if}

    {if "apple" neq "apple"}
    3
    {/if}

    {/if}



    as u can see that it is just a simple if statements but it still gives the error of mismatched if statement i spent 3 hrs to figure out this error

    either i am gone blind or i lost my mind plz help me to figure out what is the error here

    you can just put this few line of codes in any .tpl file and ask the smarty to display it hopefully u will also get the error i was using the smarty engine that comes with the clipshare 4

    I will appreciate any help

    Thankx for ur time for reading these


    Rajneesh
     
    octalsystems, Dec 19, 2008 IP
  2. catchmeifyoucan

    catchmeifyoucan Banned

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    if you look carefully (if "fruit" eq "apple"}

    it should be like {if "fruit" eq "apple"}
     
    catchmeifyoucan, Jun 28, 2009 IP