Quote:
Originally Posted by Sergio68
Quite clear, can you please make an example ?
Suppose I have some pages I need to execute and show : page1.php, page2.php, page3.php
I should create some templates : template1, template2, template3
Then insert the variables : $show1 (containing the html execution of page1.php) into template1, $show2 (containing the html execution of page2.php) into template2 and so on.
But how can I generate/fill (for example) the variables and insert them into the template when I link the user to mysite.com/forums/page2.php ?
--------------- Added [DATE]1216770050[/DATE] at [TIME]1216770050[/TIME] ---------------
Found, may be, I should add a plugin :
Code:
ob_start();
include('./page2.php');
$show2 = ob_get_contents();
ob_end_clean();
Is it ?
|
And.... what about a change in my page1.php :
PHP Code:
eval('print_output("' . fetch_template('test') . '");');
with
PHP Code:
Direct execution of template+php code
It's most probably not safe, but, is it working ?
--------------- Added [DATE]1216816873[/DATE] at [TIME]1216816873[/TIME] ---------------
Ok, I apologize for all this asking and answering by myself

, I've tried and it's working.
Can be a big shortcut, no templates, no plugins, but it's obviously less safe.