![]() |
Help with queries / eval() / templates
I am writing some of my own pages and have a simple question regarding the interaction of the script and the templates.
i have this on test.php PHP Code:
HTML Code:
<tr> Thanks, eric |
Thats the variable you want to use for your template inside a "main" template....so for instance I would have a template called
hack_main PHP Code:
then you would have another hack for named hack_bits... hack_bits PHP Code:
eval('$hackbits .= "' . fetch_template('hack_bits') . '";'); To make it it show in the hack_main template... So, when the script is finished the html would be parsed as... <html> <body> <table> <tr> <td> <tr> <td>$row[field1]</td> <td>$row[field2]</td> </tr> </td> </tr> </table> </body> </html> sorry if this is confusing. I am still learning, so I hope im explaining it right.. |
ok, that makes sense. i am totally missing the bits part. back to the admincp for me...
thanks eric |
It's just a name.
The code used to parse the template PHP Code:
|
cool, thanks!
|
All times are GMT. The time now is 03:33 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|