From a89eda62cf30cb599be60625426aa008a2df66b4 Mon Sep 17 00:00:00 2001 From: Sam Georges Date: Sat, 24 May 2014 22:03:20 +1000 Subject: [PATCH] Add notes --- CHANGELOG.md | 1 + modules/cms/classes/ComponentBase.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12428ce09..b6fd0cc38 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ - Components can now be dragged from the side navigation directly on to the page. - Asset maker methods (addJs, addCss, addRss) now use an optional build code, either *core* or a plugin code. This is converted to a version number to ensure updates are not affected by cached assets. - Added new method `addComponent()` to Cms Controller. Components can now act as a proxy for other components. + - Added new override method `onInit()` to Components, called before AJAX requests are processed. * **Build 90** (2014-05-23) - Class `CmsPropertyHelper` has been deprecated, will be removed year > 2014. diff --git a/modules/cms/classes/ComponentBase.php b/modules/cms/classes/ComponentBase.php index fd5894aa4..e9c91a632 100644 --- a/modules/cms/classes/ComponentBase.php +++ b/modules/cms/classes/ComponentBase.php @@ -93,7 +93,8 @@ abstract class ComponentBase extends Extendable public function onInit() {} /** - * Executed when this component is bound to a page or layout. + * Executed when this component is bound to a page or layout, part of + * the page life cycle. */ public function onRun() {}