Hi,

On Apr 27, 2009, at 3:42 PM, [email protected] wrote:

Hi

In my app I need to serve some static content: the index page and some
help/about us pages. I'm hoping someone can help me with the "best"
way to do this.

1. Between using the Default/Index action and the Welcome/Index action
for the index page - does it make a difference which one I use? Asking
this because all the docs etc suggest removing the Welcome module
after initial setup, but it seems to me it could be modified and used
as the main index page...is there a reason to prefer Default/Index
over Welcome/Index?

The whole Welcome module is intended to get the User an immediate check that his new project does basically work. It serves no other purpose, that's why it's removed in the tutorial. If you decided that you like the name 'Welcome' is a fitting name for the module containing the Index page of your application, you can as well keep it - from a technical viewpoint there is no difference, it's a mere naming question. However, I'd advice you to either stick with the agavi default of placing the index page in the "Default" module or to choose another module in your application that seems more fitting.

2. How do I serve static content, like about us and help pages? I read
in a previous post a suggestion to create a StaticPageAction in the
Default module - could someone give more details on how this could be
done, where the static pages should be saved etc.

Do you need an answer to that quickly? Otherwise I'd just write a chapter in the tutorial about that, but it might take a couple of days. Basically it's an action that serves a static template. You can pass the template to server as a parameter, but be careful about directory traversal attacks.

cheers

felix



Vikram

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



Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

Reply via email to