zf3 tutorial routing not working

For programming and general questions on Zend Framework

zf3 tutorial routing not working

Postby jama2584 on Thu Jul 14, 2016 2:28 pm

I have done everything in the tutorials album and in dept ones but i always get this error

404 error occurred
Page not found
'The requested URL could not be matched by routing.'
No exception

Can any one help.
Bs in zf2 all the tutorials worked just fine.
Thanks
jama2584
 
Posts: 4
Joined: Thu Jul 14, 2016 2:20 pm

Re: zf3 tutorial routing not working

Postby joer9016 on Mon Jul 18, 2016 3:33 pm

Had the same issue.

problem 1: when the development mode is not enabled, the modules and configs are cached. You have to delete the files in the data/cache folder.

problem 2: in the tutorial is a mistake. It's on the modules page in the "Setting up the Album module" paragraph.

It has to be:
Code: Select all
public function getConfig()
    {
        return include __DIR__ . '/../config/module.config.php';
    }

"/.." is missing
joer9016
 
Posts: 1
Joined: Mon Jul 18, 2016 3:28 pm

Re: zf3 tutorial routing not working

Postby jama2584 on Mon Jul 18, 2016 4:45 pm

joer9016 wrote:Had the same issue.

problem 1: when the development mode is not enabled, the modules and configs are cached. You have to delete the files in the data/cache folder.

problem 2: in the tutorial is a mistake. It's on the modules page in the "Setting up the Album module" paragraph.

It has to be:
Code: Select all
public function getConfig()
    {
        return include __DIR__ . '/../config/module.config.php';
    }

"/.." is missing



Thanks
Deleting the cache directory did it for me. PhpStorm had already complained about the other one and i had already corrected it.
Thanks again.
ps Would it not have been better if people could post comments on the docs where the tutorials
jama2584
 
Posts: 4
Joined: Thu Jul 14, 2016 2:20 pm

Re: zf3 tutorial routing not working

Postby isaa2280 on Thu Feb 02, 2017 2:19 pm

Thanks joer9016. Your answear help me a lot!
isaa2280
 
Posts: 1
Joined: Thu Feb 02, 2017 2:18 pm


Return to Zend Framework

Who is online

Users browsing this forum: No registered users and 3 guests

cron