Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Controller for the forms
- public function form($id = NULL)
- {
- if ($this->input->post('btn_cancel'))
- {
- redirect('portlets');
- }
- if ($this->wc_portlets->run_validation())
- {
- $id = $this->wc_portlets->save($id);
- redirect('portlets/index/' . $id);
- }
- if ($id and !$this->input->post('btn_submit'))
- {
- $this->wc_portlets->prep_form($id);
- }
- $this->layout->buffer('content', 'portlets/form');
- $this->layout->render();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement