PDA

View Full Version : Can't Display Monthly Template


signature16
12-20-2007, 06:59 AM
I want to include a list view of the calendar on a page on the website outside of the install folder. This is the code I have:



<html>
<head>
</head>
<body>
<div class="contentheader">
Seminar Schedule
</div>

<div>
<?php
$LIST=1;
$listMonths = 19;
$DF = "D - M d";
$template="monthly.php";

require ("http://www.example.com/calendar/calendar.php");
?>


</body>
</html>


When I use that code inside the calendar folder where easyphpcalendar is installed, it works. When I use it outside of the that folder it just shows an unformated month. What am I doing wrong?

ve9gra
12-20-2007, 08:00 AM
I suggest you read up on the Integration instructions in the Online Documentation (http://docs.easyphpcalendar.com/). Don't forget the Important section.

And in your requires, don't put a URL in... put the actual filesystem path relative to where your page is.

Example: If you have a page named test.php and the calendar installation like this

/home/test.php
/home/calendar/calendar.php

then you'll put "calendar/calendar.php" in the require.

If you have

/home/test.php
/calendar/calendar.php

then you'll have to use "../calendar/calendar.php"... an so on and so forth.