JApplicationWeb::loadDocument
Allows the application to load a custom or default document.
The logic and options for creating this object are adequately generic for default cases but for many applications it will make sense to override this method and create a document, if required, based on more specific needs.
Signature
public function loadDocument([JDocument
$document = null] )
Parameters
-
$document
- An optional document object. If omitted, the factory document is created.
Returns
- JApplicationWeb
- This method is chainable.