#12 new
variable

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

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

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

Comments and changes to this ticket

  • variable

    variable August 28th, 2015 @ 07:59 AM

    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

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.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Shared Ticket Bins

People watching this ticket

Pages