Arnaud ASSAD wrote:

> When migrating a php site to midgard I face a problem which is obviously
> bound to my lack of knowledge about Midgard :
> 
> I've got a page : cv.php3
> this page includes 2 class files connexion.php3 and form.php3 (both are
> private classes)
> cv.php3 do some stuff before the body is printed and eventually either
> display a form
> or redirect to another page...

You can do several things: put it in a snippet, copy it into a page
body, or include the file verbatim into a rather simple midgard page.
Our bugtracking syste, for example, includes an existing application.
The page code looks largely like:

<? include("/path/to/bugs.php"); ?>

> Worse I don't know where by code elements should go ? code-init ?

Or a regular includable file.

> As a 'bonus' question what is the clean way to do it knowing that few pages
> will include those 2 includes ???

Either a snippet, a style element or a include file.

Emile


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to