Akelos Framework v1 forum archive. This forum is no longer maintained. To report bugs please visit https://github.com/akelos/akelos/issues
    •  
      CommentAuthorjunqed
     
    If action (or controller) does not exist how I can set my own 404 page template?
    •  
      CommentAuthorbermi
     

    You can get controller custom errors by creating a

    public/404.php
    

    file that will be included when the application is in production mode.

    I've just updated the trunk in order to have the same for invalid actions.

    In order to keep it coherent with HTTP Invalid method response it will require a

    public/405.php
    

    file that will be also when no matching action is found on production mode.

    • CommentAuthoraekko85
     
    Hello,

    I'm in production mode, and still I get akelos custom errors like "Fatal error: Could not find the file /app/controllers/foo"
    Even thougth I wrote the public/404.php file.

    Does anyone know how can I fix this ?

    Thanks
    • CommentAuthorKaste
     

    Can't reproduce. Do you have a (almost) up-to-date version of the framework?

    Is it "Fatal error [...] in AkRequest" or something else?

    • CommentAuthoraekko85
     
    I've got :

    Fatal error: Could not find the file /app/controllers/foo_controller.php for the controller FooController in C:\xampp\akelos\lib\AkRequest.php on line 758
    • CommentAuthorKaste
     

    Then you're on v0.8, please update your framework.

    • CommentAuthoraekko85
     
    ok thanks