Difference between revisions of "Code - Adding a Feature"

From OpenEMR Project Wiki
 
(8 intermediate revisions by the same user not shown)
Line 1: Line 1:
==Adding a Menu Item to Navigation Menu==
==Adding a Menu Item to Navigation Menu==
'''Modify:''' interface/main/left_nav.php
<br>


<br>


==Adding Options to Globals==
'''Modify:''' library/globals.inc.php
<br>
<br>
==Adding Options to Global==


<br>


<br>
<br>
==Creating a Webpage==
==Creating a Webpage==
====Location====
====Location====
Line 12: Line 22:
*interface/
*interface/
*interface/main
*interface/main
<br>
====Includes====
'''Required:'''
<pre>
require_once("../globals.php");
</pre>
<br>
'''Optional:'''
<pre>
require_once("require_once("$srcdir/acl.inc"");
</pre>
<br><br>
==Sample Commits That Add New Features==
*[http://github.com/openemr/openemr/commit/15715f6c593a68c40ce7c00c5971720ec6d3aeeb#diff-0d81026c8ad0cbd67238d76a33300051 Patient List]


<br>
<br>
{{DISPLAYTITLE:How to Add A Feature}}
{{DISPLAYTITLE:How to Add A Feature}}

Latest revision as of 15:40, 5 May 2014

Adding a Menu Item to Navigation Menu

Modify: interface/main/left_nav.php



Adding Options to Globals

Modify: library/globals.inc.php




Creating a Webpage

Location

Most Code for New Pages Goes Into One of The Following Directories:

  • interface/
  • interface/main


Includes

Required:

require_once("../globals.php");


Optional:

require_once("require_once("$srcdir/acl.inc"");




Sample Commits That Add New Features