Browse Source

fixed bug in route

Piotr Labudda 7 years ago
parent
commit
dc44d29de8
2 changed files with 3 additions and 3 deletions
  1. 2 2
      tools/Bocian.php
  2. 1 1
      tools/ExampleTool.php

+ 2 - 2
tools/Bocian.php

@@ -6,7 +6,7 @@ Lib::loadClass('Response');
 Lib::loadClass('Request');
 
 // index.php?_route=UrlAction_BiAuditRaport  - uruchamia defaultAction
-class Bocian extends RouteToolBase {
+class RouteTool_Bocian extends RouteToolBase {
 
 	public function defaultAction() {
 		UI::gora();
@@ -37,7 +37,7 @@ class Bocian extends RouteToolBase {
 			'VIEW_PRACOWNICY' => $this->defaultViewFormBiAudit([], 'PRACOWNICY'),
 			'URL_FORM_DATA_CSV_FILE_AJAX' => $this->getLink('formDataCsvFileAjax'),
 			'URL_SAVE_FORM_CSV_FILE_AJAX' => $this->getLink('saveFormCsvFileAjax'),
-			'URL_TABLE_POWIAZANIA' => Router::getRoute('ViewTableAjax&', [ 'namespace' => "default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA" ]),
+			'URL_TABLE_POWIAZANIA' => Router::getRoute('ViewTableAjax', [ 'namespace' => "default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA" ]),
 		]);
 
 		echo '</div>'; // #smad-wrapper

+ 1 - 1
tools/ExampleTool.php

@@ -7,7 +7,7 @@ Lib::loadClass('Theme');
 
 // class name must have the same name as file
 // index.php?_route=UrlAction_BraveCare  - uruchamia defaultAction
-class ExampleTool extends RouteToolBase {
+class RouteTool_ExampleTool extends RouteToolBase {
 
 	public function defaultAction() {
 		UI::gora();