Does all code has to be defined within Midgard objects (i.e. snippets) to be able to call mgd_xxx functions?


Exactly :-)


This is not true.


You can include() anything from the filesystem as long as you are only using real Midgard API functions. The only problem is with preparser-handled stuff: mainly <[elements]>, &(variables), and mgd_include_snippet. If your filesystem-based code includes those things, you can use

eval('?>' . mgd_preparse(file_get_contents($file)) . '<?');

David

--
David Schmitter, Software Developer, [EMAIL PROTECTED]
Dataflow Solutions GmbH - Pappelweg 48 - 3013 CH-Bern
[EMAIL PROTECTED] - +41 31 332 01 01


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



Reply via email to