it is my controller pencarian_kata_kitabs:
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));
}
}
}
function edit($id = null) {
if (!$id && empty($this->data)) {
$this->Session->setFlash(__('Invalid
PencarianKataKitab', true));
$this->redirect(array('action'=>'index'));
}
if (!empty($this->data)) {
if ($this->PencarianKataKitab->save($this->data)) {
$this->Session->setFlash(__('The Pencarian Kata
Kitab has been
saved', true));
$this->redirect(array('action'=>'index'));
} else {
$this->Session->setFlash(__('The Pencarian Kata
Kitab could not be
saved. Please, try again.', true));
}
}
if (empty($this->data)) {
$this->data = $this->PencarianKataKitab->read(null,
$id);
}
}
function delete($id = null) {
if (!$id) {
$this->Session->setFlash(__('Invalid id for
PencarianKataKitab',
true));
$this->redirect(array('action'=>'index'));
}
if ($this->PencarianKataKitab->del($id)) {
$this->Session->setFlash(__('PencarianKataKitab
deleted', true));
$this->redirect(array('action'=>'index'));
}
}
}
it's my routes:
Router::mapResources('pencarian_kata_kitabs');
Router::parseExtensions();
it's C:\xampp\htdocs\alkitab\views\pencarian_kata_kitabs\xml
\index.ctp :
<pencarianKataKitabs>
<?php echo $xml->serialize($pencarianKataKitabs); ?>
</pencarianKataKitabs>
it's view/show :
<?php
App::import('Core', 'HttpSocket');
$HttpSocket = new HttpSocket();
$results = $HttpSocket->get('http://localhost/alkitab/
pencarian_kata_kitabs/120515');
echo $result;
?>
with it's step not correct. please give me solution from it's problem.
tq AD.
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 [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
To unsubscribe, reply using "remove me" as the subject.