D

rerouteController not reReouting

  • Thread starter Thread starter Dannymh
  • Start date Start date
D

Dannymh

Guest

Hi,

I have the following code in my controller class (extends abstractContrller as this is a custom controller)

PHP:
Code:
        if($params->slug)
        {
            return $this->rerouteController(__CLASS__, 'actionView', $params);
        }

Then I have the public function inside that class

Code:
Code:
    public function actionView(ParameterBag $params)
    {
       echo "That worked";
    }

I have a route in place that lets call it
content

Content has a route path of...

Read more

Continue reading...
 
Similar threads Most view View more
Back
Top Bottom