This wiki does not contain official documentation and is currently deprecated and read only. Please try reading the documentation on the Liferay Developer Network, the new site dedicated to Liferay documentation. DISCOVER Build your web site, collaborate with your colleagues, manage your content, and more. DEVELOP Build applications that run inside Liferay, extend the features provided out of the box with Liferay's APIs. DISTRIBUTE Let the world know about your app by publishing it in Liferay's marketplace. PARTICIPATE Become a part of Liferay's community, meet other Liferay users, and get involved in the open source project. Creating a Simple PHP Portlet
Alternative Languages: 日本語
Overview #
Instructions for creating a simple php portlet in Liferay 4.4+
Create Files #
Index.php #
Create an "index.php" file with notepad.
Edit index.php.
Zip Files #
Zip the files that will be in your php portlet. Be sure to not have any folders or subfolders in the .zip file.
Install Portlet #
Deploy the .zip file either through the Hot Deploy folder or the Plugin Installer.
Hot Deploy #
Throw the .zip file into the Hot Deploy folder.
Plugin Installer #
In the "Plugin Installer" portlet navigate to "Upload File" tab and browse for your .zip file. After clicking the Install button there will be text to confirm that the installation was complete.
Add Application #
By default the portlet will appear in Undefined.
Add the portlet to your page and you're finished.
Edit Portlet #
You can edit the portlet by either repeating the steps above or directly editing it inside the tomcat folder.
\tomcat-5.5.25\webapps\mysnowboard-portlet\index.php
Just remember to save your work by zipping the files and saving them to another folder.