i have an action "edit" in my controller with view "edit.ctp" i want
this edit.ctp being shown in a layout...so i do:
function edit(){
this->layout('test');
}
and then i put all the html from my edit.ctp in that layout? how do
view and layout work together? thx :)
On 27 Okt., 18:01, "Dr. Tarique Sani" <tariques...@gmail.com> wrote:
> Use
>
> $this->layout = 'yourLayout';
>
> in your action
>
> HTH
>
> ./T
>
> On Wed, Oct 27, 2010 at 9:28 PM, Tomfox Wiranata<tomfox.wiran...@gmail.com> wrote:
>
> > i have some trouble using $content_for_layout in my view........so i
> > guess it just works in layouts!!??
>
> > and i read one layout per controller, which sucks, cause i need this
> > one layout for an action...is there some way out?
>
> --
> =============================================================
> Cheesecake-Photoblog:http://cheesecake-photoblog.org
> PHP for E-Biz:http://sanisoft.com
> =============================================================
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment