Creating Your First Add-on

Welcome to the phpFox developers manual. This manual will help you get started with how to develop new modules and plug-ins, which make up add-ons.

Table of contents

  1. Introduction
  2. Development Environment
  3. Creating a Product
  4. Creating a Module
  5. Creating a Controller - (Hello World!)
  6. Working with Controllers
  7. Creating a Service
  8. Creating a Block
  9. Registering Blocks with Controllers
  10. Adding a Menu to a Controller
  11. Plugins
  12. Product Complete - Ready for Export

Comments
Only verified clients can post comments on our community. If you have any questions feel free to contact us here.
AnotherOther wrote at May 17, 2012, 2:57 pm
1 Vote
Quote:

Module ID
Unique module ID. Similar to how you create a product ID your module ID must be unique, however your module ID can only contain lowercase characters from a-z.


Not sure if that is true for V3 because as far as I can see the first letter of V3 module IDs is usually upper case, e.g.
Module ID: Friend
Last Update on May 17, 2012, 2:57 pm by AnotherOther
AnotherOther
bdwey wrote at March 28, 2012, 11:30 am
1 Vote

really good one but i think phpfox need more pages than 12 plus api isn't so good
please add more page with more information
keep it on

bdwey
nguyenquangvinh wrote at January 18, 2012, 8:27 am
2 Votes

Great tutorial Smile

nguyenquangvinh
macagoraga wrote at December 21, 2011, 2:03 pm
1 Vote

Hi,

the code for install module (like tables), this must be added manually on xml?

example:

<installs>
<install>
<version>1.0</version>
<install_code>
SQL / PHP CODE GO HERE
..

There is a tutorial for this?

Regards

macagoraga
macagoraga wrote at December 21, 2011, 11:41 am
1 Vote

Hi,

maybe is better add to this nice tutorial the way for manage custom module from admincp.

I check other module, and if I understand right (there is no guide about this or I don't find it), for create controller for admincp is necessary create a folder and files here:

/module/phpfoxsample/include/component/controller/admincp/in dex.class.php

and template file here:

/module/phpfoxsample/template/default/controller/admincp/ind ex.html.php

Service is the same.

This is correct?

macagoraga
cobra12512 wrote at September 15, 2011, 6:41 am
0 Votes

In version 3 how would someone add Menu's like the ones we have for Uploading a New Image, Design Profile, Edit Profile.... How can we add more of does menus from the admin panel ?

cobra12512
joujou75 wrote at August 7, 2011, 2:57 am
0 Votes

How much of this information is changing with the new version 3?

I'm planning to start learning how to develop add-ons, but not sure if I should wait for v3 updates or what parts of these articles are changing?

Last Update on August 7, 2011, 2:57 am by joujou75
joujou75
Manpreet Singh wrote at August 4, 2011, 8:27 pm
0 Votes

osum share, soon will start developing mods for phpfox Smile

Manpreet Singh
Anna Eliasson wrote at January 10, 2012, 9:28 pm
0 Votes

Have you tried yet? Smile

Anna Eliasson
verve 8 media wrote at July 18, 2011, 6:53 pm
0 Votes

If you can't find how to edit the module submenus (menu 1, menu 2) on the admincp, look in the phrase manager.

Last Update on July 18, 2011, 6:53 pm by verve 8 media
verve 8 media
verve 8 media wrote at July 18, 2011, 5:51 pm
2 Votes

You can find the tutorial that gives the general overview of the module folders at http://www.phpfox.com/kb/article/225/create-your-o...

Last Update on July 18, 2011, 6:14 pm by verve 8 media
verve 8 media
Displaying 1 to 10 of 14