Quantcast
Channel:
Viewing all articles
Browse latest Browse all 4235

Director::direct('SOME_URL') requires a model as second parameter...

$
0
0

I try to redirect from one page to another and I get a Php-Notice about a missing model parameter

[Notice] Undefined variable: model
POST /home/UserDataForm

Line 145 in /srv/htdocs/framework/control/Director.php

I tried to add something like

$model = new Page();

but then, it outputs a blank screen.

I know, this is a Notice and almost invisible on production but it keeps me in Dev-Mode from having a clean output.

Is there another way to redirect a user from A to B?

Thank you very much in advance.

Best regards
Stefan


Posted to: Director::direct('SOME_URL') requires a model as second parameter... | Show Thread | Post Reply


Viewing all articles
Browse latest Browse all 4235

Trending Articles