where I can define a method that can be requested? This is one of my controller:
<?php class PencarianKataKitabsController extends AppController { var $name = 'PencarianKataKitabs'; var $helpers = array('Html', 'Form'); var $components = array('RequestHandler'); function index() { $this->PencarianKataKitab->recursive = 0; $this->set('pencarianKataKitabs', $this->paginate()); $this->set(compact('pencarianKataKitabs')); } function view($id = null) { if (!$id) { $this->Session->setFlash(__('Invalid PencarianKataKitab.', true)); $this->redirect(array('action'=>'index')); } $this->set('pencarianKataKitab', $this->PencarianKataKitab- >read(null, $id)); } function add() { if (!empty($this->data)) { $this->PencarianKataKitab->create(); if ($this->PencarianKataKitab->save($this->data)) { $this->Session->setFlash(__('The PencarianKataKitab has been saved', true)); $this->redirect(array('action'=>'index')); } else { $this->Session->setFlash(__('The PencarianKataKitab could not be saved. Please, try again.', true)); } } } } this is my app/pencarian_kata_kitabs/view/xml/index.ctp : <pencarian_kata_kitabs> <?php echo $xml->serialize($pencarianKataKitab); ?> </pencarian_kata_kitabs> when i access with : <?php App::import('Core', 'HttpSocket'); $HttpSocket = new HttpSocket(); $results = $HttpSocket->get('http://localhost/alkitab/ pencarian_kata_kitabs/120515'); echo $results; ?> the result is : (default) 0 query took ms please give me solution from this problem Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 To unsubscribe, reply using "remove me" as the subject.