CMS AJAX handlers now have a way to invoke the page cycle if desired

This commit is contained in:
Sam Georges 2014-08-23 17:23:29 +10:00
parent 9cebf5fbb8
commit a0bfbfc0d6
3 changed files with 11 additions and 1 deletions

View File

@ -1,5 +1,6 @@
* **Build 14x** (2014-08-xx)
- Components and variables can now be accessed in the page code section via `$this->foo` in addition to `$this['foo']`.
- AJAX handlers in the CMS can now invoke the page cycle without rendering the page using `$this->pageCycle()`.
* **Build 139** (2014-08-18)
- List widget has been refactored to improve efficiency.

View File

@ -247,7 +247,7 @@ class Controller extends Extendable
/**
* Invokes the current controller action without rendering a view,
* used by AJAX handler who may rely on the logic inside the action.
* used by AJAX handler that may rely on the logic inside the action.
*/
public function pageAction()
{

View File

@ -493,6 +493,15 @@ class Controller extends BaseController
return false;
}
/**
* Invokes the current page cycle without rendering the page,
* used by AJAX handler that may rely on the logic inside the action.
*/
public function pageCycle()
{
return $this->execPageCycle();
}
/**
* Executes the page life cycle.
* Creates an object from the PHP sections of the page and