Page 1 of 1

Installation into subdir with wrapper

Posted: Wed Oct 01, 2003 5:40 pm
by dotxp
Hi all!

I tried installing the blog into a subdirectory of my website (applications/blog/). But I'd like to include the blog into my site-structure, which uses a controllerfile in the webroot (index.php).

I tried using the wrapper method top cope with the inclusion and created a file in content/ to wrap the blog. This file looks as follows:

<snip>
<?php

require 'applications/blog/index.php';

?>
</snip>

When I call my controller through the browser, following message is displayed everytime:

<snip>
Serendipity ist noch nicht eingerichtet. Bitte jetzt installieren.
</snip>

Is it possible with S9Y to run it as described??

Regards,
Toby

Posted: Wed Oct 01, 2003 7:05 pm
by dand
I think I read somewhere that you have to include/require the layout.php file at blog/templates/<your_template>/layout.php instead of including the blog/index.php file.

Daniel

Posted: Wed Oct 01, 2003 8:10 pm
by tomsommer
You might want to have a look at the 'embed' option, Garvin is a big fan of it :)

The way you are approaching it is not correct, and will in the end do more hard than good...