Why you want to use a button?
Buttons must be used when your sending a post request to the server (and
this request should change something in the app)
When what you want is just do a get request, you should use links (you can
style it as a button if you want)

anl


On Thu, Feb 11, 2010 at 3:02 PM, Guillermo Mansilla <mansil...@gmail.com>wrote:

> 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 <kahlc...@googlemail.com> 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 cake-php@googlegroups.com
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>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 cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com<cake-php%2bunsubscr...@googlegroups.com>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 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