|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Calendar called by SSI?
I'm trying to set up a calendar within a template page so I can keep the navbar & look of the existing site. I tried including it with SSI and it works fine:
http://www.ecg.com/Robyn/calendar/calendar.shtml But changing the month calls up calendar.php as opposed to calendar.shtml. I've been looking all through the code and can't figure out how to get it to call calendar.shtml. I'm not really very experienced with PHP. Is this even possible? Or is there some php syntax I could put in there rather than the SSI? Thanks |
|
#2
|
|||
|
|||
|
RE: Calendar called by SSI?
It looks like the line
Code:
$this->php_self = $_SERVER['PHP_SELF']; A workaround would be to hardcode this line to something like Code:
$this->php_self = '/Robyn/calendar/calendar.shtml' I'm a bit new to php (but not to programming) so there may be a more elegant way around this. |
|
#3
|
|||
|
|||
|
RE: Calendar called by SSI?
I'm including the calendar.php, but I understand that it pulls in the header and footer. I'm not sure how to call it differently with SSI. On the other hand:
"A workaround would be to hardcode this line to something like code: ------------------------------------------------------------$this->php_self = '/Robyn/calendar/calendar.shtml' ------------------------------------------------------------" This looks good. Thanks, I'm going to try it. The calendar will be hardcoded in place, so it shouldn't matter. rturner |
![]() |
| Viewing: Codewalkers Forums > Projects > ltwCalendar > Calendar called by SSI? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|