-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
56b0f30
commit 12ce200
Showing
2 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,12 @@ | |
] | ||
] | ||
], | ||
|
||
/*'urlManager' => [ | ||
'rules' => [ | ||
'search' => 'cmsSearch/result', | ||
] | ||
]*/ | ||
], | ||
|
||
'modules' => | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<?php | ||
/** | ||
* @author Semenov Alexander <[email protected]> | ||
* @link http://skeeks.com/ | ||
* @copyright 2010 SkeekS (СкикС) | ||
* @date 15.04.2016 | ||
*/ | ||
namespace skeeks\cms\search\controllers; | ||
|
||
use skeeks\cms\base\Controller; | ||
use skeeks\cms\helpers\StringHelper; | ||
use skeeks\cms\search\models\CmsContentElement; | ||
use skeeks\cms\search\models\CmsSearchPhrase; | ||
use skeeks\cms\models\Tree; | ||
use Yii; | ||
use yii\web\Response; | ||
|
||
/** | ||
* Class SearchController | ||
* @package skeeks\cms\controllers | ||
*/ | ||
class ResultController extends Controller | ||
{ | ||
/** | ||
* @return string | ||
*/ | ||
public function actionIndex() | ||
{ | ||
$searchQuery = \Yii::$app->cmsSearch->searchQuery; | ||
$this->view->title = StringHelper::ucfirst($searchQuery) . " — результаты поиска"; | ||
|
||
return $this->render($this->action->id); | ||
} | ||
} |