cbhan - I think that Cake will only store data into the Controller::data attribute if the corresponding HTML entity is named according to Cake convention (e.g. data[Field]). Without that data identifier, I don't think you'll be able to access the facebook POST'd values in the controller in that manner.
Instead, I suggest you try out the Webservice Behavior (from the Bakery, natch). http://bakery.cakephp.org/articles/view/webservice-behavior. It's designed to allow your app to act as a webservice, so it should do the trick for you. On Jul 16, 12:05 am, cbhan <gotob...@gmail.com> wrote: > As you know Cake is MVC framework , simply you can access the data > posted from your view(your form),in the controller's method with the > following: > say the function name is mario then, > function mario() > { > if(!empty($this->data)){ > $mariodata=$this->data; > $this->set('yourdata',$mariodata);} > }, > > Now in your mario.ctp file,which is the view file of this action > (method rather) from where you had posted your data type the following > code > <?php echo pr($yourdata); ?> > this will solve your problem. If not i will continue to help . > > On Jul 16, 4:57 am, mario vallejo <gp2xmex...@gmail.com> wrote: > > > Hello and thank you for your time and attention. I am building a > > Facebook app and I want to use CakePHP to build it. The problem is the > > following > > > I have tried to translate this into cake to no avail: > > > $is_tab = isset($_POST['fb_sig_in_profile_tab']); > > > if( !$is_tab ) $user = $fb->require_login(); > > > And that's really the only thing left in order to finish my app. I > > have got no clue on how to access 'normal' $_POST data inside of cake. > > Thank you very much and I really appreciate this. > > > Mario R. Vallejo --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---