Hey there,

I guess with front end you mean some CMS which displays the data. I used a different output type (json in my case) to fetch the data from my agavi app and then used a custom CMS module to display the data.

Another aproach might be using different layouts. You could add a environment="myfrontend" to the configuration tag in output_types.xml which would be set by bootstrap. There you could build what ever output you need for your front end. In the layout you can set a different suffix for template files ie. *.myfrontend.php so these files would be used as templates.

Hope I could help ya

Cheers
Benjamin


Am 03.08.2009 um 17:29 schrieb Yambo, Cristiana (NBC Universal):

Hi,
I made an application with Agavi, and I want to be able to use the same php code with several different front ends. I thought of doing this by moving the templates and configuration to a site specific place, and then having that refer to a global codebase. Is there a way to accomplish this via setting configuration options in the bootstrap? I tried setting the core.template_dir, but that did not seem to do anything.
Thanks
_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

_______________________________________________
users mailing list
[email protected]
http://lists.agavi.org/mailman/listinfo/users

Reply via email to