|
|
@@ -191,7 +191,7 @@ class View implements EventDispatcherInterface
|
|
|
*
|
|
|
* @var bool
|
|
|
*/
|
|
|
- public $hasRendered = false;
|
|
|
+ protected $hasRendered = false;
|
|
|
|
|
|
/**
|
|
|
* List of generated DOM UUIDs.
|
|
|
@@ -1395,6 +1395,16 @@ class View implements EventDispatcherInterface
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * Check whether the view has been rendered.
|
|
|
+ *
|
|
|
+ * @return bool
|
|
|
+ */
|
|
|
+ public function hasRendered()
|
|
|
+ {
|
|
|
+ return $this->hasRendered;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* Returns filename of given action's template file (.ctp) as a string.
|
|
|
* CamelCased action names will be under_scored by default.
|
|
|
* This means that you can have LongActionNames that refer to
|