RequestHandler is loaded in the controller and it works perfectly!
On 12 Ιαν, 20:11, brian <[email protected]> wrote:
> Make sure you have the RequestHandler component loaded in your controller.
>
> On Mon, Jan 12, 2009 at 8:58 AM, Cris Sawfish <[email protected]> wrote:
>
> > Hi everybody,
>
> > I was playing around with the blog tutorial on cakephp, and I decided
> > to make a modification in the section "Deleteposts", in order to use
> >ajaxrequesttodeletea certain post.
>
> > I created an $ajax->link(), inside the view that displays all the
> > posts, to make therequestas follows:
>
> > $ajax->link('Deletepost', array('controller' => 'posts', 'action' =>
> > 'delete', $id), array('update' => 'main'),'Are you sure you want to
> >deletethe post?');
>
> > Therequestworks, (ie the post is deleted), but the problem is that
> > cakephp says "missing viewdelete", but all I want is to display the
> > list view, that shows the update posts list.
>
> > I thought that I had to explicitly render this view, so I did inside
> > thedeletemethod in Posts controller, but without any luck.
>
> > I believe to be a very simple mechanism, but I just cannot figure it
> > out..
>
> > Any ideas?
>
> > Thanks for your time in advance
>
> > Cris
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---