now. I use.
- $messages = array(
- 'error' =>'error',
- 'username' =>null,
- 'password' =>null,
- 'ConfirmPassword'=>null,
- 'email' =>null,
- );
- $this->view->validation = $messages;
- $this->flash->error = true;
return $this->dispatcher->forward(array( 'controller' => 'admin', 'action' => 'adminMCreate' ));
Then forward to view validation value show on view file.
But.Then i use.
- $messages = array(
- 'error' =>'error',
- 'username' =>null,
- 'password' =>null,
- 'ConfirmPassword'=>null,
- 'email' =>null,
- );
- $this->view->validation = $messages;
- $this->flash->error = true;
$this->response->redirect('admin/adminManage');
- $this->view->disable();
Then redirect to view validation value ( not ) show on view file. I use redirect because it change URL to adminManage .but forward not change to adminManage
another question
- Then i use redirect if view have table, table not update i fix the problem by click refresh button. but it don't work
Sorry for my English Thank you.