Search.php
481 Bytes
<?php
use Action\WebAction;
use Product\SearchModel;
class SearchController extends WebAction
{
public function indexAction()
{
$options['controller'] = $this->_request->controller;
$searchData = SearchModel::searchData('',$options);
$this->setWebNavHeader();
$data = array(
//初始化js
'searchListPage' => true,
'search' => $searchData
);
$this->_view->display('search', $data);
}
}