Installation into subdir with wrapper

Having trouble installing serendipity?
Post Reply
dotxp
Posts: 3
Joined: Wed Oct 01, 2003 5:32 pm

Installation into subdir with wrapper

Post 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
dand
Regular
Posts: 18
Joined: Wed Sep 17, 2003 4:23 am
Contact:

Post 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
tomsommer
Core Developer
Posts: 240
Joined: Tue Sep 02, 2003 6:43 pm
Location: Denmark
Contact:

Post 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...
Tom Sommer (Serendipity Core Developer)
http://blog.dreamcoder.dk
Post Reply