Results 1 to 2 of 2

Thread: front controller parameters

  1. #1
    petran is offline Junior Member
    Join Date
    Sep 2008
    Posts
    3

    Default front controller parameters

    Hello.

    I wont to use parameters when I call an action.
    So I am doing frontController->setParam("variable","value");

    How can I get this parameter from insite my controllers.

    the

    class someController exntend Zend_Controller_Action {

    public function someactionAction {

    $this->_getParam("variable");

    doesn't work.

    Is there any other way for me to pass parameters into my actions thank you.

  2. #2
    dele454's Avatar
    dele454 is offline Member
    Join Date
    Jun 2008
    Posts
    49

    Default

    This works. You can simply call this in your controller and then query the db with the request param. Remember ZF is configured with this URL Mapping

    Code:
    http://www.yourdomain.com/module/controller/param/value/param/value
    ... etc

    So you can have as much paramaters as you so desire. Good luck

    Code:
    $request = $this->_request->getParam('id')

Similar Threads

  1. Front Controller can't find plugin
    By tixrus in forum Model-View-Controller (MVC)
    Replies: 6
    Last Post: 04-02-2010, 07:28 AM
  2. zend controller front dnt return baseurl in bootstrap ??
    By lion21 in forum General Q&A on Zend Framework
    Replies: 2
    Last Post: 03-12-2010, 06:10 PM
  3. Front Controller treating static file request as controller request
    By Matt1776 in forum Model-View-Controller (MVC)
    Replies: 2
    Last Post: 03-09-2009, 07:45 AM
  4. Front Controller does not seem to be routing
    By Matt1776 in forum Model-View-Controller (MVC)
    Replies: 5
    Last Post: 03-06-2009, 01:42 AM
  5. Front Controller & Config
    By ssbg in forum Model-View-Controller (MVC)
    Replies: 1
    Last Post: 08-12-2008, 12:57 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •