Hook for setting document content type, charset, language, DOCTYPE and

html element properties
This commit is contained in:
Sarven Capadisli 2009-02-26 19:56:31 +00:00
parent 240ea96921
commit 7af6f5392b
2 changed files with 10 additions and 1 deletions

View File

@ -88,3 +88,9 @@ StartShowLocalNavBlock: Showing the local nav menu
EndShowLocalNavBlock: At the end of the local nav menu EndShowLocalNavBlock: At the end of the local nav menu
- $action: the current action - $action: the current action
StartShowHTML: Chance to set document content type, charset, language, DOCTYPE and html element properties
- $action: the current action
EndShowHTML: Showing after the html element
- $action: the current action

View File

@ -93,7 +93,10 @@ class Action extends HTMLOutputter // lawsuit
*/ */
function showPage() function showPage()
{ {
if (Event::handle('StartShowHTML', array($this))) {
$this->startHTML(); $this->startHTML();
Event::handle('EndShowHTML', array($this));
}
$this->showHead(); $this->showHead();
$this->showBody(); $this->showBody();
$this->endHTML(); $this->endHTML();