| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Application |
JController |
setError |
setError() |
Never | Work in Progress |
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).
string setError ( $message )
| $message | string | is a string containing the error message. |
Example
$controller->setError( 'Not going to happen!' ); echo $controller->getError();
might produce
Result
Not going to happen!