View Single Post

Old 08-30-2005, 07:57 PM   #2
ve9gra
Support Team
 
ve9gra's Avatar
 
ve9gra is offline
Join Date: Jun 2003
Location: New Brunswick, Canada
Posts: 4,965
Default

By using the ob_start() and ob_get_clean(), yes you can acheive this. PHP.net provides all the information you'd need, but I'll try to describe it in a somewhat consise manner.

This would be the generic way for every section that you want seperated on the template.
PHP Code:
ob_start();
//** Put required code here **//
$template_variable ob_get_clean(); 
And here's the sections that you could use as a "plug-and-play"

PHP Code:
ob_start();
$CSS=1; require("calendar/calendar.php");
$epc_css ob_get_clean(); 
PHP Code:
ob_start();
$OL=1; require("calendar/calendar.php");
$epc_ol ob_get_clean(); 
PHP Code:
ob_start();
require(
"calendar/calendar.php");
$epc_calendar ob_get_clean(); 
PHP Code:
ob_start();
$TOC=1;
require (
"calendar/calendar.php");
$epc_toc ob_get_clean(); 
PHP Code:
ob_start();
$LIST=1;
$DF "D - M d";
$template="monthly.php";
require (
"calendar/calendar.php");
$epc_list ob_get_clean(); 
And from there you can use epc_css, epc_ol, epc_calendar, epc_toc, and epc_list in your template. Note that you should still follow the proper implementation instructions (ie: have the epc_css included in the <head> section of your page, etc...).

Hope this helps.
__________________
-- Gervais
EPC Tutorials... We're here to help!
Offering custom integration services. Contact me here.
* Not affiliated with EasyPHPCalendar or NashTech Inc.

Last edited by ve9gra; 04-18-2006 at 07:31 AM.