Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Bricolage: users

PHP Utility Template

 

 

Bricolage users RSS feed   Index | Next | Previous | View Threaded


smith_t at denison

Jul 21, 2008, 1:21 PM

Post #1 of 4 (232 views)
Permalink
PHP Utility Template

Hey Guys,

I've been trying to use the new PHP Templating to our advantage
however I can not figure out how to use PHP to create a utility
template. If someone could please provide examples of both how to
call a PHP utility template in PERL and also how to recover these
variables on the PHP side of things. Thanks!

-Trevor

ps - this is the site I have been using for reference:
http://www.justatheory.com/bricolage/1.9.0.html
in case it helps


david at kineticode

Jul 21, 2008, 2:26 PM

Post #2 of 4 (221 views)
Permalink
Re: PHP Utility Template [In reply to]

On Jul 21, 2008, at 13:21, Trevor Smith wrote:

> I've been trying to use the new PHP Templating to our advantage
> however I can not figure out how to use PHP to create a utility
> template. If someone could please provide examples of both how to
> call a PHP utility template in PERL and also how to recover these
> variables on the PHP side of things. Thanks!

The test suite has one, t/Bric/Util/Burner/PHP/util.php. Look at
cat_tmpl to see how it's used.

Best,

David


rolfm at denison

Jul 22, 2008, 7:06 AM

Post #3 of 4 (214 views)
Permalink
Re: PHP Utility Template [In reply to]

On Jul 21, 2008, at 5:26 PM, David E. Wheeler wrote:

> On Jul 21, 2008, at 13:21, Trevor Smith wrote:
>
>> I've been trying to use the new PHP Templating to our advantage
>> however I can not figure out how to use PHP to create a utility
>> template. If someone could please provide examples of both how to
>> call a PHP utility template in PERL and also how to recover these
>> variables on the PHP side of things. Thanks!
>
> The test suite has one, t/Bric/Util/Burner/PHP/util.php. Look at
> cat_tmpl to see how it's used.

Is it possible to call a php utility template from say, a mason
element template?

Thanks,

Matt


david at kineticode

Jul 22, 2008, 1:27 PM

Post #4 of 4 (211 views)
Permalink
Re: PHP Utility Template [In reply to]

On Jul 22, 2008, at 07:06, Matt Rolf wrote:

>> The test suite has one, t/Bric/Util/Burner/PHP/util.php. Look at
>> cat_tmpl to see how it's used.
>
> Is it possible to call a php utility template from say, a mason
> element template?

No. You have to write all your templates for a given OC (or the OCs it
includes) in one templating language.

Best,

David

Bricolage users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.