You have to create your button and lock it inside a form which points to a
controller action that renders a view.
in your view
echo $form->create('MyForm', array('controller'=>'foo', 'action' => 'bar'));
echo $form->end('My button');

in your foo_controller:

function bar(){
       $this->render('theViewYouWantToRender');
}




On 11 February 2010 09:17, sebb86 <[email protected]> wrote:

> Jeremy
>
> Thanks for your answer.
> But actually i'd like to create a button (not a button-picture), which
> links to a view.
> I don't want to add a picture, because every button would have an
> other description.
> So is this possible to realize or must i create lots of pictures? ;-)
>
> Thanks.
>
> 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 [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
>  more options, visit this group at
> http://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 [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

Reply via email to