Skip to content

Instantly share code, notes, and snippets.

@rotty3000
Created November 2, 2011 13:31
Show Gist options
  • Save rotty3000/1333627 to your computer and use it in GitHub Desktop.
Save rotty3000/1333627 to your computer and use it in GitHub Desktop.
PHP Portlet sample portlet.xml file
<?xml version="1.0"?>
<portlet-app
version="2.0"
xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd"
>
<portlet>
<portlet-name>1</portlet-name>
<display-name>Sample PHP</display-name>
<portlet-class>com.liferay.util.bridges.php.PHPPortlet</portlet-class>
<init-param>
<name>view-uri</name>
<value>/index.php</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<resource-bundle>content.Language</resource-bundle>
<portlet-info>
<title>Sample PHP</title>
<short-title>Sample PHP</short-title>
<keywords>Sample PHP</keywords>
</portlet-info>
<security-role-ref>
<role-name>administrator</role-name>
</security-role-ref>
<security-role-ref>
<role-name>guest</role-name>
</security-role-ref>
<security-role-ref>
<role-name>power-user</role-name>
</security-role-ref>
<security-role-ref>
<role-name>user</role-name>
</security-role-ref>
</portlet>
</portlet-app>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment