summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
Diffstat (limited to 'framework')
-rw-r--r--framework/Web/Services/TPageService.php1
-rw-r--r--framework/Web/UI/TPage.php11
2 files changed, 12 insertions, 0 deletions
diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php
index 988f665a..32f7514c 100644
--- a/framework/Web/Services/TPageService.php
+++ b/framework/Web/Services/TPageService.php
@@ -457,6 +457,7 @@ class TPageService extends TService
$this->_page=new $className();
+ $this->_page->setPagePath($this->getRequestedPagePath());
// initialize page properties with those set in configurations
foreach($this->_properties as $name=>$value)
$this->_page->setSubProperty($name,$value);
diff --git a/framework/Web/UI/TPage.php b/framework/Web/UI/TPage.php
index 7a7cbce4..2e3dd68e 100644
--- a/framework/Web/UI/TPage.php
+++ b/framework/Web/UI/TPage.php
@@ -119,6 +119,7 @@ class TPage extends TTemplateControl
* @var TControl|string the control or the ID of the element on the page to be focused when the page is sent back to user
*/
private $_focus=null;
+ private $_pagePath='';
/**
* @var boolean whether or not to maintain page scroll position
*/
@@ -845,6 +846,16 @@ class TPage extends TTemplateControl
{
$this->_enableStateEncryption=TPropertyValue::ensureBoolean($value);
}
+
+ public function getPagePath()
+ {
+ return $this->_pagePath;
+ }
+
+ public function setPagePath($value)
+ {
+ $this->_pagePath=$value;
+ }
}
interface IPageStatePersister