Re: What is the proper way of adding script to the layout?

2008-10-17 Thread Stan
Both $html->css() and $javascript->link() have an $inline parameter, and if you set that to false they will not be displayed inline, but added to a $scripts_for_layout variable. Then, you just need in your , and you're good to go. I think that's what you're asking for, ri

Re: Newbie: What is the "proper" way of rendering views within views?

2008-10-17 Thread Stan
n the type of request. That seems like bypassing the whole MVC structure to have View handle request, select data, and display it. Stan On Oct 17, 4:26 am, Robert <[EMAIL PROTECTED]> wrote: > > What is the proper "cake-way" of doing this? > > I think You don't n

Re: Newbie: What is the "proper" way of rendering views within views?

2008-10-17 Thread Stan
ts: re-usable pieces of a view that are the same on many pages > > You can put the elements in sub-directories if you don't want them to   > clutter up one directory. A renderAction() is overkill here. > > On 17 Oct 2008, at 12:05, Stan wrote: > > > > > From what

Newbie: What is the "proper" way of rendering views within views?

2008-10-16 Thread Stan
>From what I could gather in other posts, it seem like the right way to do this is through requestAction, although there are a few things which don't seem right. Let me very briefly explain my setup which should be fairly common. I have 2 tables, customers, and inquiries. Customers hasMany inquir