Hello,

    I followed the following tutorial and it worked fine.

 

http://www.littlehart.net/atthekeyboard/2007/03/13/how-easy-are-web-services-in-cakephp-12-really-easy/

 

 

Then I created a function validate() (which is same as index()) and created 
validate.ctp which is same as index.ctp. But I get the error 

 

Error: The action validate is not defined in controller FooController

 

Any help would be great. The code is on the bottom.

 

 

Thanks,

Bharani

 

Code:

 

class FooController extends AppController
{
    var $components = array('RequestHandler');
    var $uses = '';
    var $helpers = array('Text', 'Xml');
    
    function index()
    {
        $message = 'Testing';
        $this->set('message', $message);
        $this->RequestHandler->respondAs('xml');
        $this->viewPath .= '/xml';
        $this->layoutPath = 'xml';
    }
    function validate()
    {
        $message = 'Testing';
        $this->set('message', $message);
        $this->RequestHandler->respondAs('xml');
        $this->viewPath .= '/xml';
        $this->layoutPath = 'xml';
    } 
} 

_________________________________________________________________
HotmailĀ® is up to 70% faster. Now good news travels really fast. 
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_70faster_032009
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to