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( G
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
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);
weaken(MyApp->c);
from anywhere: $c = MyApp->c;
2007/6/30, Tobias
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 wor
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
Se