Zend Framework - getParam() Question
| From: | Dan Joseph | Date: | Sat, 12 Mar 2011 04:34:19 +0000 |
| Subject: | Zend Framework - getParam() Question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-311789@lists.php.net to get a copy of this message | ||
Hi Everyone,
Zend Framework getParam question....
I'm trying to get a value from the url...
I know how to grab:
http;//www.website.com/index/user/1
that's the index controller, $this->_getParam('user'); (value = 1)..
What I'd like to be able to grab is just off one thing from the url...
example.. I want to give an article a unique/clean url... so, when I go to:
http://www.website.com/article-clean-url
I can somehow grab that 'article-clean-url' as a value and use it for a
lookup in the database.
I've tried everything and search all over the place. I can't find the
answer. Can someone tell me how this is done? Thanks...
--
-Dan Joseph