1 2 3 4 5 6 |
ob_start(); // Start output buffer capture. include("yourtemplate.php"); // Include your template. $output = ob_get_contents(); // This contains the output of yourtemplate.php // Manipulate $output... ob_end_clean(); // Clear the buffer. echo $output; // Print everything. |
1 |
https://stackoverflow.com/questions/18190386/php-file-get-contents-a-php-file-with-include?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa |
İnclude ile Template i değişkene atama