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. « Back to Webコンテンツの作成
PHPでポートレットの作成
PHPファイルをLiferayにデプロイしてポートレットとして使うことができます。
例:
- PHPプログラムを作成する。
<?php
echo '今日は!';
?> - 作成したプログラムをファイルに保存する。
- 保存したファイルをzip形式に圧縮する。圧縮したファイルの名前をポートレット名にします。
- zipファイルをLiferayのdeployディレクトリに複写します。zipファイルがLiferayにデプロイされます。
- Liferayの画面から「追加」->「その他」->「未分類」を選択します。デプロイしたファイルがポートレットとして表示されます。
- ポートレットをページに追加します。
19337 Views