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);
> weaken(MyApp->c);
> 
> from anywhere: $c = MyApp->c;

Congratulations, you just reinvented Catalyst::Plugin::Singleton.

You should still be using ACCEPT_CONEXT though.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 

_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to