Thanks, and yeah, have officially stopped banging head :)
Basically I'm really enjoying cakephp in the few short weeks I've been
using it...and don't want to disparage it - I agree that the issue is
almost without doubt in my code...
I have seen it working ok..as mentioned in my second lengthy diatribe
- near the head-bangy bit - see above if interested, look for the bit
just below 'aaaarrrgghhh' (oh dear). But it just seems arbitrary as to
when it works tho - in my current configuration at least.
Anyway, I followed your advice and tried this:
$options=array('M'=>'Male','F'=>'Female');
echo $this->Form->input('Member.gender',
array('type'=>'radio','options'=>$options));
'gender' is a single character char field on the members table.
Which produced:
<input type="radio" name="data[Member][gender]" id="MemberGender"
value="M">
<label for="MemberGender">Male</label>
<input type="radio" name="data[Member][gender]" id="MemberGender"
value="F">
<label for="MemberGender">Female</label>
So still not quite there, but will continue trying other methods. I'll
take a look at $this->Form->radio, and consider the entry in
tags.ini.php perhaps.
I note rchavik tried my code in his setup and it worked ok. Thanks for
that - perhaps there's a deeper underlying reason for my problem then.
I'll post the code to a page somewhere soon if I don't find a
resolution.
To others on the rudeness subject...on reflection I do see where AD
was coming from...my post was far too long and this was pointed out. I
reacted in a manner I'd prefer not to have done, for which I
apologised. I think Cakephp is great...and this forum has been very
helpful to me in recent weeks since cutting my teeth on cake...(is
that possible?). Maybe the issue could be left alone now and we can
move forward treating each other with at least enough respect to
understand that some out there have way more knowledge than others,
and to transfer that knowledge through this forum can only be for the
better good of cakephp in general.
Cheers
Dave
On Nov 4, 9:00 am, WebbedIT <p...@webbedit.co.uk> wrote:
> Whilst I think the rudeness issue is interesting, and I am becoming
> more guilty of tinging a lot of my replies with a healthy dose of
> sarcasm (can equally be said that some questions are ridiculously rude
> and/or very provoking), we have dropped off the main subject here.
>
> @dave: I use radio without issue, so I am pretty confident that you
> are doing something odd with your code. Rather than blaming the
> framework and repeatedly hitting your head of the wall, try proving to
> yourself it does work in normal circumstances, then go back through
> your own code and find where you are trying to force it to do things
> differently.
>
> Try the following slightly modified version of the cookbook's example
> and tell us what you get:
>
> <?php
> $options=array('M'=>'Male','F'=>'Female');
> echo $this->Form->input('ModelName.gender',
> array('type'=>'radio','options'=>$options));
> ?>
>
> It's all too easy to say CakePHP does not work, but 9.9 times out of
> 10 it boils down to the fact you are asking it to do something
> differently and it obliges by producing code that's different.
>
> HTH, Paul
>
> On Nov 4, 3:48 am, Ryan Schmidt <google-2...@ryandesign.com> wrote:
>
>
>
>
>
>
>
> > On Nov 3, 2011, at 20:59, Greg Skerman wrote:
>
> > > For starters - rather than creating a new thread by changing the subject, why didn't you just reply in the existing thread? I had to go back and take a look at what you were talking about.
>
> > I did reply to the existing thread. Changing the subject line does not create a new thread. I changed the subject line to indicate that the topic of my message was different from the original topic. This recommended method of communication is known as re-threading and is described here:
>
> >http://subversion.apache.org/docs/community-guide/mailing-lists.html#...
>
> > Admittedly that advice is for a standard mailing list running standard mailing list software such as Mailman, and this is Google Groups which isn't totally the same, so I apologize if this is unfamiliar or confusing here.
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment