Re: buttons in cakephp

2008-12-30 Thread gearvOsh

http://groups.google.com/group/cake-php/browse_thread/thread/48835c8925d3ca7a#

You already asked this. There is a search function.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



buttons in cakephp

2008-12-30 Thread mona

can we make buttons in cakephp1.2 and call javascript functions on
them how to call functions on buttons in cakephp
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: How to make buttons in cakephp

2008-12-29 Thread gearvOsh

You dont have to build your views with cake code only:

Name

Also there is no  in cake.
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



How to make buttons in cakephp

2008-12-29 Thread mona

can anybody tell me how to make buttons in cakephp and call javascript
functions on it in my index page instead of making links i want
buttons so how to do this
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Re: Individual Radio Buttons in CakePHP 1.2

2007-10-20 Thread Japheth

Marc,

Have you considered using $form->input instead of $form->radio?
This will generate that mark-up for you, as well as creating a
fieldset too, if you require.

Something along the lines of:
input('Options.selectPlan', array(
 'div' => false,
 'label' => true,
 'type' => 'radio',
 'options' => array(1 => 'Plan 1', 2 => 'Plan 2')
);
?>

On Sep 21, 2:57 am, 1Marc <[EMAIL PROTECTED]> wrote:
> Once again I answered my own question, here is what I did:
>
>  class AppHelper extends Helper {
>
> function __construct(){
> $this->tags['radio'] = '%s';
> parent::__construct();
> }}
>
> ?>
>
> On Sep 20, 10:33 am, 1Marc <[EMAIL PROTECTED]> wrote:
>
> > Let me clarify.  I need some way for the radio buttons to generate
> > labels.
>
> > Currently the $form->radio generates:
>
> > Option 1
> > Option 2
> > Option 3
>
> > Here is the proper markup I want to generate:
>
> >  > for="radio1">Option 1
> >  > for="radio2">Option 2
> >  > for="radio3">Option 3
>
> > On Sep 20, 9:55 am, 1Marc <[EMAIL PROTECTED]> wrote:
>
> > > I figured out that you can do this and it solves my issue.
>
> > > radio('Options.selectPlan',array('1'=>'Monthly
> > > $35'),null,array()) ?>
> > > *html goes here
> > > radio('Options.selectPlan', array('2'=>'Monthly
> > > $33.25'),null,array()) ?>
>
> > > ...etc
>
> > > I still can't figure out how to automatically generate labels for
> > > radio buttons.  Does anyone know how to do this?
>
> > > On Sep 19, 6:50 pm, 1Marc <[EMAIL PROTECTED]> wrote:
>
> > > > What if I only want to create one individual radio button?  In CakePHP
> > > > 1.2,  $form->radio creates a set of radio widgets.
>
> > > > In my case I have 8 radio buttons spread out through a results table
> > > > that you can only select one.  The 'in between text' doesn't cut it.
> > > > -  I will create these radio buttons by hand unless there is a handy
> > > > way to create an individual radio button instead of a radio group.
>
> > > > Thanks for your help on this,
>
> > > > ~Marc


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Individual Radio Buttons in CakePHP 1.2

2007-09-20 Thread 1Marc

Once again I answered my own question, here is what I did:

tags['radio'] = '%s';
parent::__construct();
}
}
?>

On Sep 20, 10:33 am, 1Marc <[EMAIL PROTECTED]> wrote:
> Let me clarify.  I need some way for the radio buttons to generate
> labels.
>
> Currently the $form->radio generates:
>
> Option 1
> Option 2
> Option 3
>
> Here is the proper markup I want to generate:
>
>  for="radio1">Option 1
>  for="radio2">Option 2
>  for="radio3">Option 3
>
> On Sep 20, 9:55 am, 1Marc <[EMAIL PROTECTED]> wrote:
>
> > I figured out that you can do this and it solves my issue.
>
> > radio('Options.selectPlan',array('1'=>'Monthly
> > $35'),null,array()) ?>
> > *html goes here
> > radio('Options.selectPlan', array('2'=>'Monthly
> > $33.25'),null,array()) ?>
>
> > ...etc
>
> > I still can't figure out how to automatically generate labels for
> > radio buttons.  Does anyone know how to do this?
>
> > On Sep 19, 6:50 pm, 1Marc <[EMAIL PROTECTED]> wrote:
>
> > > What if I only want to create one individual radio button?  In CakePHP
> > > 1.2,  $form->radio creates a set of radio widgets.
>
> > > In my case I have 8 radio buttons spread out through a results table
> > > that you can only select one.  The 'in between text' doesn't cut it.
> > > -  I will create these radio buttons by hand unless there is a handy
> > > way to create an individual radio button instead of a radio group.
>
> > > Thanks for your help on this,
>
> > > ~Marc


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Individual Radio Buttons in CakePHP 1.2

2007-09-20 Thread 1Marc

Let me clarify.  I need some way for the radio buttons to generate
labels.

Currently the $form->radio generates:

Option 1
Option 2
Option 3

Here is the proper markup I want to generate:

Option 1
Option 2
Option 3

On Sep 20, 9:55 am, 1Marc <[EMAIL PROTECTED]> wrote:
> I figured out that you can do this and it solves my issue.
>
> radio('Options.selectPlan',array('1'=>'Monthly
> $35'),null,array()) ?>
> *html goes here
> radio('Options.selectPlan', array('2'=>'Monthly
> $33.25'),null,array()) ?>
>
> ...etc
>
> I still can't figure out how to automatically generate labels for
> radio buttons.  Does anyone know how to do this?
>
> On Sep 19, 6:50 pm, 1Marc <[EMAIL PROTECTED]> wrote:
>
> > What if I only want to create one individual radio button?  In CakePHP
> > 1.2,  $form->radio creates a set of radio widgets.
>
> > In my case I have 8 radio buttons spread out through a results table
> > that you can only select one.  The 'in between text' doesn't cut it.
> > -  I will create these radio buttons by hand unless there is a handy
> > way to create an individual radio button instead of a radio group.
>
> > Thanks for your help on this,
>
> > ~Marc


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Individual Radio Buttons in CakePHP 1.2

2007-09-20 Thread 1Marc

I figured out that you can do this and it solves my issue.

radio('Options.selectPlan',array('1'=>'Monthly
$35'),null,array()) ?>
*html goes here
radio('Options.selectPlan', array('2'=>'Monthly
$33.25'),null,array()) ?>

...etc

I still can't figure out how to automatically generate labels for
radio buttons.  Does anyone know how to do this?

On Sep 19, 6:50 pm, 1Marc <[EMAIL PROTECTED]> wrote:
> What if I only want to create one individual radio button?  In CakePHP
> 1.2,  $form->radio creates a set of radio widgets.
>
> In my case I have 8 radio buttons spread out through a results table
> that you can only select one.  The 'in between text' doesn't cut it.
> -  I will create these radio buttons by hand unless there is a handy
> way to create an individual radio button instead of a radio group.
>
> Thanks for your help on this,
>
> ~Marc


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Individual Radio Buttons in CakePHP 1.2

2007-09-19 Thread 1Marc

What if I only want to create one individual radio button?  In CakePHP
1.2,  $form->radio creates a set of radio widgets.

In my case I have 8 radio buttons spread out through a results table
that you can only select one.  The 'in between text' doesn't cut it.
-  I will create these radio buttons by hand unless there is a handy
way to create an individual radio button instead of a radio group.

Thanks for your help on this,

~Marc


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---