Welcome Guest, Not a member yet? Register   Sign In
conditional structure in template parcer

Hi all,
i have a problem on what I currently frottte, this is the use of the library Parcer with "if".In fact , in the support of Framwork i see how it's simple to use it, but how oabout a conditionnal structure?.FOr exemple, if in the controller I took the telephone number of a user in the database and then I want to display this number in the view only if the user is a moderator, how should I do knowing that the phone number is in this form: {phone}. should I do such "<moderator if> {phone} <endif moderator>."It'is the first time I am trying to use the template method and it's been 2 hours that I seek to Resolve my problem without succes.Please remember: I just want to know how you one uses the conditional structure with template. I know that the principle is not to put php in the view to separate the work of all disigners.thank's and sorry for my english

Theme © iAndrew 2016 - Forum software by © MyBB