HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

Garden based application without dashboard

R_JR_J Ex-FanboyMunich Admin

I've planned to write a small web application and although it is really small, I wanted it to be based on a framework. After looking at some small frameworks and their documentation, I thought it might be wiser to use a framework that I have at least some experience with - Garden!
And so I've created a folder applications/settings and created about.php, class.hooks.php which shall insert my CSS (but I think I will hard code that later on in some kind of master view), a by now empty configuration.php, a structure.php and even a stub.php
Next steps would be to a) upload the needed files, b) "install" the minimum Garden and c) activate my application. At least that's what I want to test before I start working on models, views, controller...

Yes, and here comes my question: which files do I have to transfer to my server? Those are the directories I think I'll need:
/cache (but not cache/Smarty)

  • .htaccess
  • bootstrap.php
  • index.php
    Which additional directories/files will I need to be able to use every function from /library/core?

And what would be needed to initilialize Garden? Does a manual config.php with the database credentials will be enough?

And what would be needed to "enable" my application so that my function Setup (which builds the structure) is called?

As always I'd like to look at examples. Does anyone know of such a minimal Garden app?

Best Answers


  • Options
    R_JR_J Ex-Fanboy Munich Admin

    Thanks for the quick answer!

    What about /library/vendors and /js? Both have a lot of files that I suspect would not be needed. By now I haven't uploaded them to my server and I think I will try going forward without them. Do you know of any pitfalls when having them not at hand?

    And in order to initiate my application I could simply create a setup.php that calls PluginManager->EnablePlugin(MyApplication, right? Cool - I'll try that :)

  • Options
    R_JR_J Ex-Fanboy Munich Admin

    Okay, I see!
    Plan is to create a real simple tool and I think I'll only need the following features:

    • routing
    • forms
    • validation
    • db access

    No AJAX, no fancy formattings. By now I think I will need less than 5 very simple views. I know that using Garden for something like that might be overkill, but I hope to get a deeper insight of the framework.

Sign In or Register to comment.