Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Why is mojolicious "routing to a callback" ?

by Anonymous Monk
on Nov 25, 2015 at 11:34 UTC ( [id://1148593]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Why is mojolicious "routing to a callback" ?
in thread Why is mojolicious "routing to a callback" ?

Does Class "MyApp::Controller::Login" is not a controller mean anything to you?

Replies are listed 'Best First'.
Re^4: Why is mojolicious "routing to a callback" ?
by Corion (Patriarch) on Nov 25, 2015 at 12:03 UTC

    Very good spot by Anonymous Monk!

    Most likely you are on Windows, or on a case-insensitive file system. That way, Perl loads a file Myapp/Controller/Login.pm even if you ask for MyApp/Controller/Login.pm (note the capital "A" in MyApp). Perl itself remains case-sensitive and looks for a class MyApp::Controller::Login, but your module only declares Myapp::Controller::Login with a lowercase "a".

    In the part of your setup that you haven't shown, you are mixing up Myapp and MyApp. Correct that and maybe things work differently.

Re^4: Why is mojolicious "routing to a callback" ?
by pcouderc (Monk) on Nov 25, 2015 at 12:26 UTC
    Mm, no sorry, I do not know why you refer to MyApp. My application is Myapp. I am on linux which is case sensitive.
    Sorry, my problem is not so simple...
        Yes, particularly I missed https://metacpan.org/pod/Mojolicious::Guides::Growing#Simplified-application-class
        All is there.
        Thank you very much.
        PC
        Thank you very much! I study that.
        PC
        I thank you very much. You show how to reproduce my mistake under self contained minimal mojolicious example.
        But I know how to do under Mojolicious::Lite (just follow the example of the doc).
        My problem seems to me my failure to expand the exmple to "full" Mojolicious.
        ...But maybe, I am wrong myself about my mistake!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1148593]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 01:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found