Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

Using Wizard in an Plugin -> Controller could not be found.

#12

Hey,

I want to use the WizardComponent (from webcrab) for another Plugin (f.e. a Signup Plugin). My Plugin has a Controller called SignupAppController.

My routing for that plugin is working and when I request this address: http://mydomain.com/signup/ I get redirected to: http://mydomain.com/signup/signup_app/wizard/account

Unfortunately it says:
Error: Controller could not be found.

Error: Create the class Controller below in file: app/Controller/Controller.php

I tried to set the controller in WizardComponent at line 26:
public $controller = 'Signup.SignupAppController'; but it's still null.

Any ideas?

Thanks,variable

Reported by variable · August 26th, 2015 @ 06:18 PM

State: new
Milestone: none
Assigned to: jaredhoyt jaredhoyt

Activity

  1. variable
    variable

    Hey,

    i noticed, that the url, which is generated in redirect() is not adressing the plugin, just the controller and the action:

        $url = array('controller' => $this->controller->request->controller, 'action' => $this->action, $step);
        return $this->controller->redirect($url, $status, $exit);
    

    I changed that to:
    $url = array('plugin' => $this->controller->request->plugin, 'controller' => $this->controller->request->controller, 'action' => $this->action, $step); return $this->controller->redirect($url, $status, $exit);

    and the url array contains the plugin name, but the Controller is still not found.
    How do I address the controller inside my plugin?

    Thanks,variable

    August 28th, 2015 @ 07:59 AM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.