Author Topic: ...dot's in variable names  (Read 1464 times)

0 Members and 1 Guest are viewing this topic.

JSPASH

  • Guest
...dot's in variable names
on: Tue, 21. October 2003 - 19:34:13
Would it be possible to allow periods or dots in the template variable names? I've noticed in vlibTemplate.php on or around line 210, 216 the code preg_match('/^[A-Za-z_]+[A-Za-z0-9_]*$/', $k) prohibits this. But i am at a loss on how to alter the code reliably.

I'm currently porting some Perl code to PHP (for the sake of my sanity) and would like to keep the templates as they are. with dots. the reason for this is that all db queries return variables in the format: TABLE_NAME.COLUMN_NAME.  In the case of a join where two tables have identical names, this is imperative.

Anyone???

releasedj

  • Guest
...dot's in variable names
Reply #1 on: Wed, 22. October 2003 - 18:19:15
I'll see what I can do.