diff options
author | emkael <emkael@tlen.pl> | 2016-03-10 17:02:34 +0100 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2016-03-10 17:05:25 +0100 |
commit | 07ecb30061e36402acf8f4f62e7b7267ebf92c86 (patch) | |
tree | 4249faf23078a9bdf04742044d3d00742cce5cf6 /app/php | |
parent | dd7f38062ff0a7d7efd05ed3555d7e121a353617 (diff) |
* components now are auto-included
Diffstat (limited to 'app/php')
-rw-r--r-- | app/php/application.xml | 1 | ||||
-rw-r--r-- | app/php/components/config.xml | 6 | ||||
-rw-r--r-- | app/php/layouts/MainLayout.php | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/app/php/application.xml b/app/php/application.xml index 5feac98..409f957 100644 --- a/app/php/application.xml +++ b/app/php/application.xml @@ -5,6 +5,7 @@ <include file="Application.model.config" /> <include file="Application.user.config" /> <include file="Application.url.config" /> + <include file="Application.components.config" /> <services> <service id="page" class="TPageService" /> diff --git a/app/php/components/config.xml b/app/php/components/config.xml new file mode 100644 index 0000000..f75e19f --- /dev/null +++ b/app/php/components/config.xml @@ -0,0 +1,6 @@ +<?xml version="1.0" encoding="utf-8"?> +<configuration> + <paths> + <using namespace="Application.components.*" /> + </paths> +</configuration> diff --git a/app/php/layouts/MainLayout.php b/app/php/layouts/MainLayout.php index 678b1aa..c0e7e0b 100644 --- a/app/php/layouts/MainLayout.php +++ b/app/php/layouts/MainLayout.php @@ -1,7 +1,5 @@ <?php -Prado::using('Application.components.HeaderMenu'); - class MainLayout extends TTemplateControl { } |