Giter Club home page Giter Club logo

Comments (4)

MariusDrulea avatar MariusDrulea commented on June 5, 2024

I tested with Julia 1.9.4 and downgraded to Genie v5.21.2 and GenieFramework v1.26.4 and still does not work.

from genie.jl.

essenciary avatar essenciary commented on June 5, 2024

@MariusDrulea can you maybe share the whole app (on Github) so we can take a look at and try it out?

from genie.jl.

PGimenez avatar PGimenez commented on June 5, 2024

Apparently the context parameter is missing, the module loads after adding it:
Genie.Loader.autoload("controllers", context=Main.App)

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 Genie.Generator.newapp to create your app and build from there. We have two good long tutorials on this:

Books app

Movies app

from genie.jl.

MariusDrulea avatar MariusDrulea commented on June 5, 2024

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 .newapp functionality. Played a bit with the GenieBuilder, it's very cool.

from genie.jl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.