function action_submit ($param = null)
  {
    if (!isset($this->model))
      throw new FlashMessageException('Can\'t insert/update a NULL model.', FlashType::ERROR);

    throw new FlashMessageException('Can\'t automatically insert/update an object of type ' . gettype ($this->model),
      FlashType::ERROR);
  }
function action_submit ($param = null)
  {
    if (!isset($this->model))
      throw new FlashMessageException('Can\'t insert/update a NULL model.', FlashType::ERROR);

    throw new FlashMessageException('Can\'t automatically insert/update an object of type ' . gettype ($this->model),
      FlashType::ERROR);
  }
function action_submit ( $ param = null ) { if ( ! isset ( $ this -> model ) ) throw new FlashMessageException ( 'Can\'t insert/update a NULL model.' , FlashType :: ERROR ) ; throw new FlashMessageException ( 'Can\'t automatically insert/update an object of type ' . gettype ( $ this -> model ) , FlashType :: ERROR ) ; }
Responds to the standard 'submit' controller action.
The default procedure is to throw an error message.
Override to implement the desired behaviour.

@param null $param
@throws FlashMessageException
Responds to the standard submit controller action . The default procedure is to throw an error message . Override to implement the desired behaviour .