Including PHP removes template?
First unread post • 1 post
• Page 1 of 1
Including PHP removes template?
Hi all!
I have an article with: {jumi [*1]}
I then edit the content of component #1.
When I have something simple like echo "Hello World!", it works fine and outputs the Hello World! within the main article body.
But, when I use an include like require('includes/loader.php');, the loader output is correctly shown but without the template "frame". Only the PHP output is displayed. And viewing the source confirms its only the PHP-generate code.
The loader.php includes a couple other PHP files, as well as a JS and CSS file.
The output is perfect - except its not framed within the template.
Help? :0
Also, including {jumi [includes/loader.php]} in the article (vs the component id) gives the same result - only PHP output/no template <sigh>
I have an article with: {jumi [*1]}
I then edit the content of component #1.
When I have something simple like echo "Hello World!", it works fine and outputs the Hello World! within the main article body.
But, when I use an include like require('includes/loader.php');, the loader output is correctly shown but without the template "frame". Only the PHP output is displayed. And viewing the source confirms its only the PHP-generate code.
The loader.php includes a couple other PHP files, as well as a JS and CSS file.
The output is perfect - except its not framed within the template.
Help? :0
Also, including {jumi [includes/loader.php]} in the article (vs the component id) gives the same result - only PHP output/no template <sigh>
- Ahhk
- Posts: 1
- Joined: Fri Apr 22, 2011 4:03 am
1 post
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 1 guest