Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Fork CLI Tool

Fork CLI Tool

Basic description of the Fork CLI Tool.

3f4444967dfc7a5a2a71d24175d94c3c?s=128

Jelmer Snoeck

March 09, 2012
Tweet

Transcript

  1. Fork CLI Tool 9 march 2012 Friday 9 March 12

  2. Type less, do more Friday 9 March 12

  3. Setting up the project Friday 9 March 12

  4. When you have an existing project, it’s not required to

    re- install Fork. Just initiate it and add the database and language parameters. Clone it, initiate it Setting up the project To the right, /library/globals.php At the bottom, /library/globals_frontend.php Rapidly create your globals and config files Friday 9 March 12
  5. Creating a module ft module <modulename> Friday 9 March 12

  6. ft module demo_module Creating a module /frontend/modules /backend/modules Friday 9

    March 12
  7. Installer: the basic installer requirements Actions: the basic action functions

    File contents Friday 9 March 12
  8. Creating an action ft action <module> <location>=<actionname>[,...] Friday 9 March

    12
  9. Currently, the only possible attribute is ‘:block’. This will add

    the action as a module_extra so you can link it to a page as shown below. Frontend Note that you can use ‘f’ or ‘frontend’ Creating an action Friday 9 March 12
  10. Backend Note that you can use ‘b’ or ‘backend’ Automatically

    recognize types: - add - edit - delete - index These can be forced by using <action>:<type>. This basically sets up some base functionality in your action like a form or dataGrid. Creating an action Friday 9 March 12
  11. An ajax call is basically the same as an action.

    Therefore, the usage is the same as an action: ft ajax <module> <location>=<ajaxname> Ajax Creating an action Friday 9 March 12
  12. A widget is basically the same as an action. Therefore,

    the usage is the same as an action: ft widget <module> <location>=<ajaxname> Widgets Creating an action Friday 9 March 12
  13. Experiment! Friday 9 March 12

  14. https://github.com/siphoc/knife/issues https://twitter.com/#!/jelmersnoeck jelmer@siphoc.com Problems? Questions? Friday 9 March 12

  15. twitter.com/fork_cms info@fork-cms.com www.fork-cms.com Friday 9 March 12