Marcus Ramberg wrote:
> On 23. okt. 2004, at 04.23, Steve Simms wrote:
>
>> Steve Simms said:
>>
>> If it *should* use table_alias, the factory files are going to need
>> updating
>> as well, which I'd be happy to do, but I want to wait for feedback on
>> my first
>> patch before sending in more of them.
>
> Hey Steve.
>
> So what you are saying is "use table_alias instead of table" ... At the
> moment, we only have 1 Model class, but Maypole's ambition is to support
> several database mappers, work on DBIx::SearchBuilder is already
> underway. Using table_alias seems clumsy.
Hi Marcus,
I'm suggesting using table_alias for the View only, given Tony's comment
that it would break the Model part if we used it there (if I'm
understanding the terms correctly). So, this would be anything under
Maypole/View, I think, and the factory templates.
This seems to provide what I need in order to be able to have URLs that
say /employees/ instead of /core_employees_3/ (the name of the
underlying view in the database). If there's another way to do it, I'd
be happy to look at that as well.
In particular, I don't want everyone to have to change their bookmarks
when core_employees_3 is superseded by core_employees_4; instead, I just
want to change the configuration file/table for the application and have
everything else take care of itself.
Thanks,
Steve Simms
_______________________________________________
maypole-dev mailing list
maypole-dev at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole-dev
This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT