getherbert / herbert

The WordPress Plugin Framework:
http://getherbert.com/
632 stars 94 forks source link

Help with routes #124

Closed giwrgos88 closed 8 years ago

giwrgos88 commented 8 years ago

Hello, I'm having a small issue with some of my routes. I'm not receiving any error or warning and some routes are working and some others are throwing page not found.

For example I did this simple route for testing purposes

$router->get([
    'as'   => 'simpleRoute',
    'uri'  => '/simple',
    'uses' => function()
    {
        return 'Hello World';
    }
]);

and throws "page not found". I checked the permalinks(also tried to update them again), but still the same issue.

I have installed plugins
WP Super Cache

Server has installed memcache opcache

Does anyone had this problems?

beatelite commented 8 years ago

I have this problem too but when trying to use a controller to render a twig file as the view. The simple/ route worked for me. It doesn't help that NONE of the example plugins use the $router resource at all so examples are limited to the documentation which is dearth of real world examples.

giwrgos88 commented 8 years ago

The issue was a plugin that I have installed for memcached. Create a new issue, paste your code and tag my to help you if you want.