summaryrefslogtreecommitdiff
path: root/framework/Web/UI/TControl.php
diff options
context:
space:
mode:
authorxue <>2005-11-14 00:29:41 +0000
committerxue <>2005-11-14 00:29:41 +0000
commit99b820a5bf36158405208f140cf48f8aedf91fff (patch)
tree7bf7ff8f1306687602bc6585600e228fbe40295f /framework/Web/UI/TControl.php
parent0253a0bfca988f81fdec4fb29e1a1d4137a0c480 (diff)
Added theme support.
Diffstat (limited to 'framework/Web/UI/TControl.php')
-rw-r--r--framework/Web/UI/TControl.php12
1 files changed, 10 insertions, 2 deletions
diff --git a/framework/Web/UI/TControl.php b/framework/Web/UI/TControl.php
index b0d353f3..21c633c7 100644
--- a/framework/Web/UI/TControl.php
+++ b/framework/Web/UI/TControl.php
@@ -263,6 +263,14 @@ class TControl extends TComponent
}
/**
+ * @return TPageService the page service
+ */
+ public function getService()
+ {
+ return Prado::getApplication()->getService();
+ }
+
+ /**
* @return THttpRequest the current user request
*/
public function getRequest()
@@ -296,12 +304,12 @@ class TControl extends TComponent
public function publishFile($file)
{
- return Prado::getApplication()->getService()->getAssetManager()->publishFile($file);
+ return $this->getService()->getAssetManager()->publishFile($file);
}
public function publishDirectory($directory)
{
- return Prado::getApplication()->getService()->getAssetManager()->publishDirectory($directory);
+ return $this->getService()->getAssetManager()->publishDirectory($directory);
}
public function getAsset($assetName)