This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.

vidroe
vidroe

I can't even get a routes file to work. I wonder if anyone else is having this sort of problem. (I'm not sure that a new topic is the typical way of posting a difficulty such as this; but the only other option easily found in the interface was to reply to someone else's response.) I'm assuming this is moderated; feel free to let me know if the customs are different from what I'm doing.

I have this directory structure: in the "plugins" dir, a folder named "vidroe", the developer name. In the "vidroe" folder, a folder named "zmenu" which should be the plugin directory.

Inside the zmenu/ folder, I have placed my Plugin.php and routes.php. The routes in there do not fire.

Routes.php is as follows:
Route::get('dcap/{slug}', function(){
return 'test successful';
});
Route::get('/dcap/{slug}', function(){
return 'test successful';
});

(That is preceded by the php open tag, btw).

vanderb
vanderb

Please check your route-file if it is named in lower or in upper case? It has to be in lower case.

1-2 of 2

You cannot edit posts or make replies: the forum has moved to talk.octobercms.com.