| | |
PHP and TPL file, variable doesn't work
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Dec 2007
Posts: 9
Reputation:
Solved Threads: 0
HI,
I have a tpl file which use the {php}{/php} to excute php file inside it. The problem is that in that tpl file, is a string and i want to set it's value to use in php excutions so it looks like this:
NOTE: $article_title is the variable set in tpl not PHP
I have a tpl file which use the {php}{/php} to excute php file inside it. The problem is that in that tpl file,
PHP Syntax (Toggle Plain Text)
$article_title
PHP Syntax (Toggle Plain Text)
{php} $var1==$article_title; {/php}
NOTE: $article_title is the variable set in tpl not PHP
![]() |
Other Threads in the PHP Forum
- Previous Thread: Array echoing problem
- Next Thread: javascript and php
Views: 598 | Replies: 0
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic echo email error execution file files folder form forms function functions google href htaccess html htmlspecialchars image include insert integration ip java javascript joomla jquery limit link links login loop mail menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote replace script search select server session sessions sms soap source space speed sql structure syntax system table tutorial update updates upload url validation validator variable video web xml youtube





