Considere getting some design ideas from SpringMVC and
AuroraMVC.
These are great frameworks applying clean MVC.
Struts is a flawed framework.
[References]
http://www.auroramvc.org
http://www.springframework.org
Regards,
José.
--- Sebastian Riedel <sri at oook.de> a écrit :
> Ok, another update. :)
>
> Now i've implemented pre and post actions so you can
> chain small code
> snippets from multiple classes to a pipeline.
>
> Communicating throug $r->objects() and $r->trunk()
> works quite well.
>
> Yes, all this goes far beyond Struts. =)
>
> Example:
>
> --- #YAML:1.0
> name: Maypole PetStore
> root: '/home/sri/PetStore/templates'
> base: http://localhost/petstore
> models:
> - name: Cart
> - name: CDBI
> base: CDBI
> dsn: dbi:Pg:dbname=petstore
> user: postgres
> pass: 0
> opts:
> AutoCommit: 1
> views:
> - name: TT
> base: TT
> controllers:
> - name: Categories
> - name: Cart
> - name: Items
> - name: Products
> logic:
> - controller: cart
> action: view
> pre:
> - model: cart
> action: content
> post:
> - model: cdbi_item
> action: resolve_cart
> - controller: categories
> action: list
> pre:
> - model: cdbi_category
> - controller: items
> action: list
> pre:
> - model: cdbi_item
> - controller: products
> action: list
> pre:
> - model: cdbi_product
> auth:
> user_class: MyApp::Customer
> user_field: email
> session_class: Apache::Session::Postgres
> session_args:
> DataSource: dbi:Pg:dbname=petstore
> TableName: session
> UserName: postgres
> Password: 0
> Commit: 1
>
> sebastian
>
>
> _______________________________________________
> maypole mailing list
> maypole at lists.netthink.co.uk
> http://lists.netthink.co.uk/listinfo/maypole
>
Vous manquez d’espace pour stocker vos mails ?
Yahoo! Mail vous offre GRATUITEMENT 100 Mo !
Créez votre Yahoo! Mail sur http://fr.benefits.yahoo.com/
Le nouveau Yahoo! Messenger est arrivé ! Découvrez toutes les nouveautés pour dialoguer instantanément avec vos amis. A télécharger gratuitement sur http://fr.messenger.yahoo.com
_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole
This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:57 GMT