Re: PHP Template Global Variables
[email protected] (David Wheeler) Wed, 26 Oct 2005 20:54:46 -0700
| Newsgroups | perl.php.sandwich.dev |
|---|---|
| Message-ID | <[email protected]> |
On Oct 26, 2005, at 8:46 PM, George Schlossnagle wrote:
>> I have to know too much about the internals. Any chance you could
>> add the methods we'd discussed before to make this more idiomatic?
>
> Could you remind me what the syntax we discussed is/was?
You suggested:
$perl->method('DateTime', 'now');
That works for me. A use() or require() method (probably the latter,
given that it's runtime) would be welcome, to:
$perl = Perl::getInstance();
$perl->require('DateTime');
$now = $perl->method('DateTime', 'now');
Thanks!
David