Hello,

i have the following data POSTed to my cake app as application/xml
content-type:

<User><login>Username</login><pass>Pass</pass></User>

simple enough. Now, I want to do a Set::reverse(new Xml($this->data));
in the beforeFilter method in AppController.php, but when i debug
($this->data) in AppController I get empty space:

class AppController extends Controller{

        function beforeFilter(){
                debug( $this->data); //debug echos empty space
        }
}



now i have a Users controller, and when i do a debug($this->data), i
get a seemingly endless XML Object as expected:

class UsersController extends AppController {
       /*vars excluded for brevity*/

        function login(){
                debug($this->data); //debug echos a full XML Object containing
                                             //the user, login, and
pass data
                                             //as expected (as
referenced in above XML Post data)
        }
}

So the question is this: shouldn't the AppController yield the same
debug results as the UsersController if i call debug ($this->data) ??

Thanks in advance! -b
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to