Custom PHP Portlet

From GroundWork Developer Kit

Jump to: navigation, search

Contents

[edit] Custom PHP Portlet directory

When adding a custom PHP portlet to GroundWork, work in the sample-php directory located in:

/usr/local/groundwork/gdk/sample-php

[edit] Structure of the Custom PHP Portlet Directory

The structure of the /usr/local/groundwork/gdk/sample-php directory is displayed below.

gdk/sample-php
		src
		     main
		        java
			 org/groundwork/portlet/php2/GWSamplePhpPortlet.java
		     resources
		     webapp
			images
			php
			    index.jsp
			    <FILENAME>.php << your php code >>
			WEB-INF	
			    classes
			    lib
			    jboss-web.xml
			    portlet-instances.xml
			    portlet.xml
			    web.xml
		target
       maven.xml
       project.properties
       project.xml

[edit] Custom PHP Portlet File

Once you have a created the <FILENAME>.php file that contains your custom PHP portlet code, insert the file into the following directory:

/usr/local/groundwork/gdk/monitor-portal/applications/sample-php/src/main/webapp/php/<FILENAME>.php

[edit] More Information

Refer to:

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox