Good afternoon,
On 17/08/10 at 8:27 AM +0300, Octavian Rasnita octavian.rasn...@ssifbroker.ro
wrote:
$c-stash(menu = $c-model('Menu'));
But this would re-create the menu object on each request, and this takes time.
The data structure of the menu is loaded only at startup by the do() in the
On Tue, Aug 17, 2010 at 6:23 AM, Tomas Doran bobtf...@bobtfish.net wrote:
On 17 Aug 2010, at 06:27, Octavian Rasnita wrote:
I load and store this object in the stash on each request in the
Root::auto : Private method with:
$c-stash(menu = $c-model('Menu'));
But this would re-create the
Good morning,
On 17/08/10 at 8:59 AM -0500, w...@serensoft.com wrote:
On Tue, Aug 17, 2010 at 6:23 AM, Tomas Doran bobtf...@bobtfish.net wrote:
No, it wouldn't. The adaptor you showed has a lifetime of the application,
and so it won't be recreated each request.
/lurk
Hmm, this is
On 17 Aug 2010, at 14:59, w...@serensoft.com wrote:
Is that the part you're referring to as application-lifetime?
No.
When you say:
use MyApp;
(or require MyApp) then the application is loaded, and all of it's
models, controllers and views are setup initially.
They persist for the
On 17 Aug 2010, at 15:50, Charlie Garrison wrote:
I was suggesting the Moose attribute as way of storing the model in
$c to be easier to reference from templates.
I highly recommend taking the model instance and stashing it (as is
being done already), rather than making an attribute on
Good afternoon,
On 17/08/10 at 4:24 PM +0100, Tomas Doran
bobtf...@bobtfish.net wrote:
On 17 Aug 2010, at 15:50, Charlie Garrison wrote:
I was suggesting the Moose attribute as way of storing the
model in $c to be easier to reference from templates.
I highly recommend taking the model
I don't like
this.
Thank you all very much for your help.
Octavian
__ Information from ESET NOD32 Antivirus, version of virus signature
database 5374 (20100817) __
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
Antivirus, version of virus signature
database 5371 (20100816) __
The message was checked by ESET NOD32 Antivirus.
http://www.eset.com
__ Information from ESET NOD32 Antivirus, version of virus signature
database 5374 (20100817) __
The message was checked by ESET NOD32