Fork CLI Tool                        9 march 2012Friday 9 March 12
Type less, do moreFriday 9 March 12
Setting up the projectFriday 9 March 12
Setting up the project                Clone it, initiate it                When you have an existing project, it’s not req...
Creating a module                       ft module <modulename>Friday 9 March 12
Creating a module                ft module demo_module                                /frontend/modules         /backend/m...
File contents                Installer: the basic installer requirements                Actions: the basic action function...
Creating an action                    ft action <module> <location>=<actionname>[,...]Friday 9 March 12
Creating an action                Frontend                Note that you can use ‘f’ or ‘frontend’           Currently, the...
Creating an action                Backend                Note that you can use ‘b’ or ‘backend’                Automatical...
Creating an action                Ajax                An ajax call is basically the same as an action. Therefore, the     ...
Creating an action                Widgets                A widget is basically the same as an action. Therefore, the      ...
Experiment!Friday 9 March 12
Problems? Questions?                https://github.com/siphoc/knife/issues                https://twitter.com/#!/jelmersno...
twitter.com/fork_cms                     info@fork-cms.com                     www.fork-cms.comFriday 9 March 12
Upcoming SlideShare
Loading in …5
×

Fork cli tool

626 views

Published on

Usage of the Fork CLI Tool

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
626
On SlideShare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Fork cli tool

  1. 1. Fork CLI Tool 9 march 2012Friday 9 March 12
  2. 2. Type less, do moreFriday 9 March 12
  3. 3. Setting up the projectFriday 9 March 12
  4. 4. Setting up the project Clone it, initiate it When you have an existing project, it’s not required to re- install Fork. Just initiate it and add the database and language parameters. Rapidly create your globals and config files To the right, /library/globals.php At the bottom, /library/globals_frontend.phpFriday 9 March 12
  5. 5. Creating a module ft module <modulename>Friday 9 March 12
  6. 6. Creating a module ft module demo_module /frontend/modules /backend/modulesFriday 9 March 12
  7. 7. File contents Installer: the basic installer requirements Actions: the basic action functionsFriday 9 March 12
  8. 8. Creating an action ft action <module> <location>=<actionname>[,...]Friday 9 March 12
  9. 9. Creating an action Frontend Note that you can use ‘f’ or ‘frontend’ 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.Friday 9 March 12
  10. 10. Creating an action 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.Friday 9 March 12
  11. 11. Creating an action Ajax An ajax call is basically the same as an action. Therefore, the usage is the same as an action: ft ajax <module> <location>=<ajaxname>Friday 9 March 12
  12. 12. Creating an action Widgets A widget is basically the same as an action. Therefore, the usage is the same as an action: ft widget <module> <location>=<ajaxname>Friday 9 March 12
  13. 13. Experiment!Friday 9 March 12
  14. 14. Problems? Questions? https://github.com/siphoc/knife/issues https://twitter.com/#!/jelmersnoeck jelmer@siphoc.comFriday 9 March 12
  15. 15. twitter.com/fork_cms info@fork-cms.com www.fork-cms.comFriday 9 March 12

×