Re: [Catalyst] How to access current MyApp instance ?

2007-07-01 Thread Matt S Trout
On Sun, Jul 01, 2007 at 05:51:50PM +0400, Oleg Pronin wrote: Because [%Game.detailsHref%] or [%Game.historyHref%] is much easier and faster to call then [%INCLUDE game_hrefs game=Game type='details'%] As a temporary fast solution i use this: in root controller's auto action: MyApp-c($c);

Re: [Catalyst] How to access current MyApp instance ?

2007-07-01 Thread Bill Moseley
On Sun, Jul 01, 2007 at 05:51:50PM +0400, Oleg Pronin wrote: Because [%Game.detailsHref%] or [%Game.historyHref%] is much easier and faster to call then [%INCLUDE game_hrefs game=Game type='details'%] Macro? [% game_detail_link( Game, 'Click here' ); game_history_link(

[Catalyst] How to access current MyApp instance ?

2007-06-30 Thread Oleg Pronin
Hi. I want to call -uri_for from my DBIC sources, but it is object method, so MyApp-uri_for doesn't work. How do I access current catalyst object ($c)? ___ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst

Re: [Catalyst] How to access current MyApp instance ?

2007-06-30 Thread Tobias Kremer
Hi. I want to call -uri_for from my DBIC sources, but it is object method, so MyApp-uri_for doesn't work. How do I access current catalyst object ($c)? Why would you want to do that? Your schema/model shouldn't know about URIs. If you really need to, you could use the ACCEPT_CONTEXT