Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
simple routing problems
  • Im working heavily with modules, but now i want to have a normal controller to be have routing without
    module name. Unfortunately i get a 404 error if i try:
    [url=http://portalcms2/]http://portalcms2/[/url]
    [url=http://portalcms2/]http://portalcms2/[/url]test This is my controller:
    class Controller_Frontend extends Controller
    {
    public function action_index()
    {
    return \Response::forge('something');
    } public function action_404()
    {
    return $this->response;
    }
    } My routes.php
    <?php
    return array(
    '_root_' => 'frontend/index',
    '_404_' => 'frontend/404',
    'test' => 'frontend/index'
    ); someone have an idea where the problem is?
  • That should work without problems. Unless you have a module called 'test', which would have preference over global app routes.
  • The problem was i had a module with the same name as the controller. But it still does not work wit another controller name.
  • Pushing it doesn't really get you help any faster. I can't really work with "it doesn't work". What did you expect to happen? What does happen? What have you tried? Does requesting the website route work (which also calls 'frontend/index')? No case issues (both the URI and the filesystem is case sensitive in FuelPHP, so http:://sitename/TEST is not the same as [url=http://sitename/test!]http://sitename/test![/url])?

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion