php - ID is not showing in Edit Form Action -


i not able see id value in action of controller in edit form. showing somthing this..

<form action="/xxproj/userpages/edit" class="form-horizontal" id="userpageeditform" enctype="multipart/form-data" method="post" accept-charset="utf-8"><div style="display:none;"><input type="hidden" name="_method" value="post"/></div> 

and here controller function..

 <?php error_reporting(0);    class userpagescontroller extends appcontroller {      public $helpers = array("html", "form","session");        public $uses = array('userpage','usergroup');  public function index() { }      public function edit($id = null) {     $this->userpage->id = $id;     $this->set("userpages", $this->userpage->read());     pr($this->userpage->read());     if ($this->request->is("get")) {         $this->request->data = $this->userpage->read();     } else {         if ($this->userpage->save($this->request->data)) {             $this->session->setflash("updated.");             $this->redirect(array("action" => "index"));         } else {             $this->session->setflash("unable update.");         }     } }  public function delete($id = null) { } } 

can has idea why not showing???


Comments

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -