I am trying to get the request from with type but everytime I am endind up
with fetching all the records from database..
The request is coming as
article/view/type/PHP
So under the ArticleController I created a viewAction function as...
$articles = new Articles();
$type= (int)$this->_request->getParam('type');
$this->view->articles = $articles->fetchAll('type='.$type);
When I click the article type it still lists me all the articles...Can you
guys give me an hint or link to read..
Thanks
没有评论:
发表评论