diff --git a/src/Controller/Component.php b/src/Controller/Component.php index 0a8220c..5d56d24 100644 --- a/src/Controller/Component.php +++ b/src/Controller/Component.php @@ -66,7 +66,13 @@ class Controller_Component function execute(HttpRequest $request, $has_id = true) { $crequest = new ComponentRequest($this->component_id, $request); - $action = 'action' . ucfirst($request->get('action', 'index')); + + $_action = $request->get('action', 'index'); + if (is_array($_action)) { + $action = 'action' . ucfirst(Arr::get($_action, $this->component_id, 'index')); + } else { + $action = 'action' . ucfirst($_action); + } $this->before(); if (method_exists($this, $action)) { diff --git a/src/Mail.php b/src/Mail.php index f27a0a8..1f4eda4 100644 --- a/src/Mail.php +++ b/src/Mail.php @@ -40,6 +40,10 @@ class Mail $this->_to = $name; } + function replyTo($name) // recipient + { + } + /** * Установка получателей копии */