Other Methods

Table of Contents

handleBootException
getCacheOptions

In addition to the interface methods already outlined in this document, there are several other methods you can implement which control how pages are rendered.

handleBootException

  • public function handleBootException(Exception $ex)

  • Throws Exception

This method is called when an error occurs in the bootstrapping process. This could be triggered by a file not found error; a permissions error; or some other error that has resulted from another render hook.

After this method has been called Recite will then execute its built-in error handler.

Note

You can throw a different from this method if required, but doing so may result in other render hooks not being able to render their own error handler.