-- neobeacon <neobea...@gmail.com> wrote (on Monday, 31 August 2009, 09:16 PM -0700): > To genarate page content with using GET['id'] and using database tables, > > I create viewAction() in ArticleController class > > What I want to do to get GET['id'] from viewAction() ?
$id = $this->_getParam('id', false); > Do I want to configure Zend router to get /view/id/01 url strucure? Yes, because those URLs are more SEO friendly. To create them, simply use the url() view helper (or action helper, if you're in your controller) to generate it: // view: echo $this->url(array( 'controller' => 'article', 'action' => 'view', 'id' => $this->id), 'default', true); // in the controller: $url = $this->_helper->url(array( 'controller' => 'article', 'action' => 'view', 'id' => $id), 'default', true); -- Matthew Weier O'Phinney Project Lead | matt...@zend.com Zend Framework | http://framework.zend.com/