On Wed, 24 May 2000, Frank Boehme wrote:
> Hi,
>
> Could someone please explain what is the actual benefit of, lets say for
> an active page having the code
>
> <? $id = $argv[0] ?>
>
> in <[code-init]> (or friends) as opposed to the begin of the page? I
> know that the former is parsed before the root page is being fetched,
> but what difference does it actually make?
While I can't comment on your specific example without further context,
setting up variables in the code-init element allows them to be used in
the styles and page templates from which you don't know where they'll be
coming from yet. IOW: you're setting up a context for the layout phase.
> Also, does it make sense to have <[code-init>] marked as "inherit", i.e.
> can active pages have sub-pages?
Yes thay can. Whether marking some element as inheritable is useful would
depend on what the element does.
Emile
--
This is The Midgard Project's mailing list. For more information,
please visit the project's web site at http://www.midgard-project.org
To unsubscribe the list, send an empty email message to address
[EMAIL PROTECTED]