• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
conditional structure in template parcer

#1
[eluser]Unknown[/eluser]
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.