Guillermo

No, i'd like something like a pop-up warning window, which says: "are
you sure?".


On 11 Feb., 16:57, Guillermo Mansilla <mansil...@gmail.com> wrote:
> you already did with this line
> $this->Session->setFlash('hardware unit with id: '.$id.' has been
> deleted');
>
> make sure you have set up the session messages var in your layout
>
> On 11 February 2010 11:25, sebb86 <kahlc...@googlemail.com> wrote:
>
> > Hello all,
>
> > thanks for all your answers. After reading all your answers, i've
> > decided to use a image, which links to a page.
> > Could someone help me to add a warning-message, e.g. when i delete
> > something???
>
> > Here is my image/link code from the view:
> > [code]
> >        <?php echo $html->image("delete.png", array("alt" => "delete",
> > 'url' => array('controller' => 'hardware_units', 'action' => 'delete',
> > 'id' => $hardware_unit['HardwareUnit']['id'])));?>
> > [\code]
>
> > And my delete function in the controller:
> > [code]
> > function delete($id)
> >        {
> >                $this->HardwareUnit->del($id);
> >                $this->Session->setFlash('hardware unit with id: '.$id.' has 
> > been
> > deleted');
> >                $this->redirect(array ('action' => 'index'));
> >        }
> > [\code]
>
> > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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+unsubscr...@googlegroups.com For more options, visit this group 
> > athttp://groups.google.com/group/cake-php?hl=en

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+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to