[prev in list] [next in list] [prev in thread] [next in thread]
List: midgard-user
Subject: [midgard-user] Re: calling mgd_xxx from included files
From: Pascal Mayer <pma () simple ! ch>
Date: 2004-02-17 13:12:33
Message-ID: 1389961564.20040217141233 () simple ! ch
[Download RAW message or body]
thanks alot - I'll try it.
pascal
> > > 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
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@midgard-project.org
For additional commands, e-mail: user-help@midgard-project.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic