It looks as if you are accessing this url: http://localhost/alkitab/pencarian_kata_kitabs/120515
That would be going to the index function wouldn't it? What happens if you change that to: http://localhost/alkitab/pencarian_kata_kitabs/view/120515 ? Jeremy Burns jeremybu...@me.com (Skype) +44 208 123 3822 (jeremy_burns) (m) +44 7973 481949 (h) +44 208 530 7573 On 15 Apr 2010, at 16:52, ivan wrote: > 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. 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