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.
>
> > If you need a var in the session use $this->Session->write();
>
> > then you can easily access it from all your views and controllers.
>
> Again, as I pointed out in the original post, I realise that, thanks.
>
> My question was about getting a value from the DB without using a particular
> model. What I have works fine but I suspect there's a "cake way" to do it.
> Perhaps I'll figure that out some day and change it. It'll do for now.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---