references:joomla.framework:application:jcontroller-seterrorsetError
Sets the error message. This error message can later be retrieved using the JController->getError() method. This method will return the error message that was set (directly from the class property, so if for some reason something goes wrong, the return value will indicate this). Syntaxstring setError ( $message )
ExamplesExample $controller->setError( 'Not going to happen!' ); echo $controller->getError(); might produce Result Not going to happen! |


