« Back to PHP Portlets

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.

Children Pages

0 Attachments
76683 Views
Average (1 Vote)
The average rating is 4.0 stars out of 5.
Comments
Threaded Replies Author Date
It seems this only works in tomcat. Arcko Duan August 6, 2008 12:41 AM
For installation in Liferay 5 and WebSphere... Marcel Friedmann October 16, 2008 1:46 AM
it does not work for me. I am getting this... domingo l hilario April 27, 2009 9:44 AM
Domingo, Sounds like... Amos Fong June 8, 2009 7:08 PM
I'm getting "An unexpected error occurred while... Igor Kanshyn April 4, 2012 8:24 AM
One major problem that you can't POST UTF-8... Dimitris Papadopoulos August 14, 2012 12:20 AM

It seems this only works in tomcat.
Posted on 8/6/08 12:41 AM.
Posted on 10/16/08 1:46 AM.
it does not work for me. I am getting this message "Portlet is temporarily unavailable. " . I need some help
Posted on 4/27/09 9:44 AM in reply to Marcel Friedmann.
Domingo,

Sounds like http://issues.liferay.com/browse/LPS-47
Posted on 6/8/09 7:08 PM in reply to domingo l hilario.
I'm getting "An unexpected error occurred while uploading your file."

Do I need to have any PHP engine or something?
Posted on 4/4/12 8:24 AM.
One major problem that you can't POST UTF-8 text to your forms! They work only for English text!

Have anyone the same problem?
Posted on 8/14/12 12:20 AM.