-----Ursprüngliche Nachricht-----
Von: c400-l-bounces+mihael.schmidt=rossmann.de@xxxxxxxxxxxx [mailto:c400-l-bounces+mihael.schmidt=rossmann.de@xxxxxxxxxxxx] Im Auftrag von Daniel Webb
Gesendet: Freitag, 12. Juni 2009 11:04
An: C programming iSeries / AS400
Betreff: Re: [C400-L] lockf() on system i


No. PHP itself doesn't do this. There are several template engines for PHP.
Smarty is one of them.


I looked into a few of them until I realised that my problem was mixing
logic and presentation, not php. So now I write the application logic and
presentation template in separate files, but both in php. PHP to be
completely satisfactory for both.

I've always found a certain symmetry and irony in the fact that my job is
coding a spooled file reformatting tool which is written in RPG - possibly
the grandaddy of template engines?
Mihael. Yes =)


But how would I access a PHP template engine from RPG?


I haven't looked at php on the as/400 but there must be a way surely. would
system() do ?


Daniel
I don't really know what I'm talking about.
Mihael: Me neither when it comes to C =)



And I am not talking about a web framework. I am talking about a template
engine only. Output should be available in
- a file
- buffer (variable)
- stream (stdout f. e. )
- ...


-----Ursprüngliche Nachricht-----
Von: c400-l-bounces+mihael.schmidt=rossmann.de@xxxxxxxxxxxx [mailto:
c400-l-bounces+mihael.schmidt <c400-l-bounces%2Bmihael.schmidt>=
rossmann.de@xxxxxxxxxxxx] Im Auftrag von Daniel Webb
Gesendet: Freitag, 12. Juni 2009 10:39
An: C programming iSeries / AS400
Betreff: Re: [C400-L] lockf() on system i


For those interested: I try to port the template engine ClearSilver
(www.clearsilver.net) to ILE C to be able to use it from RPG.



doesn't php do this already ?

Daniel
--
This is the C programming iSeries / AS400 (C400-L) mailing list
To post a message email: C400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/c400-l.

--
This is the C programming iSeries / AS400 (C400-L) mailing list
To post a message email: C400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/c400-l
or email: C400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/c400-l.



This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].