Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Help Getting Model name
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Dave  
View profile  
 More options Nov 9, 4:26 am
From: "Dave" <make.cake.b...@gmail.com>
Date: Sun, 8 Nov 2009 13:56:03 -0330
Local: Mon, Nov 9 2009 4:26 am
Subject: Help Getting Model name
Is there a simple way to get the model name from something like this?

This is the data that's sent to cake.

data[Contact][email] t...@something.com
data[Account][email] te...@fake.com

Debug will get me
Array(
    [Contact] => array(
                   [Email] => t...@something.com
                        )
)

Where I simply need 'Contact' or 'Account'

Thanks

Dave


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jperras  
View profile  
 More options Nov 9, 4:34 am
From: jperras <joel.per...@gmail.com>
Date: Sun, 8 Nov 2009 09:34:51 -0800 (PST)
Local: Mon, Nov 9 2009 4:34 am
Subject: Re: Help Getting Model name
Look up what `array_keys()` does.

-jperras.

On Nov 8, 12:26 pm, "Dave" <make.cake.b...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
robustsolution  
View profile  
 More options Nov 9, 10:52 am
From: robustsolution <i...@robustsolution.net>
Date: Sun, 8 Nov 2009 15:52:08 -0800 (PST)
Local: Mon, Nov 9 2009 10:52 am
Subject: Re: Help Getting Model name
u may use the PHP function key() that returns the index element of the
current array position.

On Nov 8, 5:26 pm, "Dave" <make.cake.b...@gmail.com> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google