-
Notifications
You must be signed in to change notification settings - Fork 192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issues with the controller example from the docs #697
Comments
I tested with Julia 1.9.4 and downgraded to Genie v5.21.2 and GenieFramework v1.26.4 and still does not work. |
@MariusDrulea can you maybe share the whole app (on Github) so we can take a look at and try it out? |
Apparently the context parameter is missing, the module loads after adding it: However, there's another error in the controller code after that which I don't recall seeing before... That guide was a quick way to introduce the MVC architecture, but now I'm seeing that perhaps it was not a good idea. I'll remove it from the docs. If you want to use controllers or adopt MVC, I suggest you use |
hm... It works if you directly include the MessageController.jl file. If I have a lot of controllers and models and views, I would probably want to include each controller individually for the specific model and view. Not all at once. Not sure if this is relevant. Going to try the |
I'm having problems with the autoload of controllers, usage in the docs https://learn.genieframework.com/docs/guides/adding-dynamic-pages#pages-with-a-controller. So what am I doing wrong here?
system: Linux and Julia 1.10
The error:
ERROR: UndefVarError:
MessageControllernot defined
If I include the file directly, as in the commented code, everything works as expected.
The text was updated successfully, but these errors were encountered: