Hi
You could also look at using something a bit like the Configure
Plugin: http://bakery.cakephp.org/articles/view/configure-plugin
I'm using that but caching the data - saving on unecessary database
calls - works really well and it very easy to set up. Of course if you
just used the plugin out
You can just run custom sql queries with out a model.
On Nov 11, 8:16 pm, brian <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 10, 2008 at 4:01 PM, teknoid <[EMAIL PROTECTED]> wrote:
>
> > Your code sets the var for the view, and I'm not really sure why.
>
> Because I need it in the view. CSS, JS, etc.
On Mon, Nov 10, 2008 at 4:01 PM, teknoid <[EMAIL PROTECTED]> wrote:
>
> Your code sets the var for the view, and I'm not really sure why.
Because I need it in the view. CSS, JS, etc.
> If you need a var in the session use $this->Session->write();
>
> then you can easily access it from all your
Your code sets the var for the view, and I'm not really sure why.
If you need a var in the session use $this->Session->write();
then you can easily access it from all your views and controllers.
On Nov 10, 3:56 pm, brian <[EMAIL PROTECTED]> wrote:
> On Mon, Nov 10, 2008 at 3:47 PM, teknoid <[EMA
On Mon, Nov 10, 2008 at 3:47 PM, teknoid <[EMAIL PROTECTED]> wrote:
>
> Write the ID to session.
>
I guess you missed my last sentence:
> For the record, I do plan to keep this var in the session, once I can
figure out how to set it properly.
But my question was, what's the best way to get the
Write the ID to session.
On Nov 10, 3:03 pm, brian <[EMAIL PROTECTED]> wrote:
> I'm having some difficulty figuring out how to set a variable that I'd like
> to retrieve from the DB and to make available application-wide.
>
> The site is an online journal and I need to have the latest edition ID
I'm having some difficulty figuring out how to set a variable that I'd like
to retrieve from the DB and to make available application-wide.
The site is an online journal and I need to have the latest edition ID at
hand for pretty much every page, controller, model, etc. I thought that I
might be a