summaryrefslogtreecommitdiff
path: root/app/php
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2016-03-10 17:02:34 +0100
committeremkael <emkael@tlen.pl>2016-03-10 17:05:25 +0100
commit07ecb30061e36402acf8f4f62e7b7267ebf92c86 (patch)
tree4249faf23078a9bdf04742044d3d00742cce5cf6 /app/php
parentdd7f38062ff0a7d7efd05ed3555d7e121a353617 (diff)
* components now are auto-included
Diffstat (limited to 'app/php')
-rw-r--r--app/php/application.xml1
-rw-r--r--app/php/components/config.xml6
-rw-r--r--app/php/layouts/MainLayout.php2
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 {
}