Author Topic: Common errors - vlibTemplate beginners  (Read 774 times)

0 Members and 1 Guest are viewing this topic.

Offline ClausVB

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
    • Homepage: clausvb.de
Common errors - vlibTemplate beginners
on: Mon, 11. November 2002 - 17:54:58
This post describes
PEBKAU (Problem Exists Between Keyboard And User)
(or was it PEBKAC ... C = Chair???)

However if you encounter:

Fatal error: vlibTemplate Error: Parse error!
To debug this file, use vlibTemplateDebug instead of vlibTemplate in the class instantiation(i.e. new vlibTemplateDebug). in /usr/local/www/htdocs/vLib/vlibTemplate/error.php on line 84

it could be
Code: [Select]
tmpl_loop name='tr'

  tr

      tdtmpl_var name='name'/td

      tdtmpl_var name='city'/td

  tr

tmpl_loop // wrong


if your template variables are not set ...

it could be
=> {tmpl_var_name='name'} // wrong
instead of
{tmpl_var name='name'} // right

---

Explanation: I lead a training in Templating (with vlibTemplate).

I never imagined what people can do wrong.

In Germany we use to say:

"A person, who can read, has an advantage."

A collegue of mine (participating in the training) said: "It's too complicated."

I just thought: "No, you're too stupid." (He made both mistakes twice! :evil: .)

Best regards,
Claus

@Kelvin: Now I know what happens if Frontpage-Users meet vlibTemplate.
*crying, tears, throwing my head against the wall*

releasedj

  • Guest
Common errors - vlibTemplate beginners
Reply #1 on: Mon, 11. November 2002 - 19:01:38
I feel for you.

I don't think I would ever risk the torment of leading a training session on templating.

Well done for trying anyway!


Kelvin
PS: I can't help but laugh, I'm still laughing now  :lol:

Offline ClausVB

  • Administrator
  • Hero Member
  • *****
  • Posts: 566
    • Homepage: clausvb.de
Common errors - vlibTemplate beginners
Reply #2 on: Wed, 13. November 2002 - 00:21:38
Guess what he did today ...

Code: [Select]
tmpl_var name='name'

"Did we wrote '{tmpl_var ...' yesterday? I think there was something like that ... Let's not ask or read the docs, .. no let's try and cry for help later."

RAAAAAAHHHHH!

(My other participants are quite good though.)

Best regards,
Claus