Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Genera un nuevo cliente con el perfil de prospecto.
- */
- public function crear()
- {
- $this->page_title .= 'Nuevo prospecto';
- if(Input::hasPost('cliente'))
- {
- $Cliente = new Cliente();
- $Cliente->crear(Filter::get_array(Input::post('cliente'), 'htmlspecialchars', array('charset' => 'UTF-8')));
- if(!Message::has('error'))
- {
- Flash::valid('El Prospecto ha sido registrado de forma correcta.');
- return (Input::post('action') == 0) ? Router::redirect("cliente") : Router::redirect("cotizacion/crear/{$Cliente->id}");
- }
- Message::showFlash();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement