mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
CMS AJAX handlers now have a way to invoke the page cycle if desired
This commit is contained in:
parent
9cebf5fbb8
commit
a0bfbfc0d6
@ -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.
|
||||
|
@ -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()
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user