We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4324eb0 + 3ab6cfb commit 4dac6a4Copy full SHA for 4dac6a4
2 files changed
src/WebApp/Application.php
@@ -350,5 +350,11 @@ public function afterRequest() {
350
}
351
352
353
+ public function dao($name) {
354
+ if ($this->dataModel != NULL) {
355
+ return $this->dataModel->get($name);
356
+ }
357
+ return NULL;
358
359
360
src/WebApp/Page.php
@@ -261,5 +261,8 @@ public function getJavascript() {
261
return array();
262
263
264
+ protected function dao($name) {
265
+ return $this->app->dao($name);
266
267
268
0 commit comments