portlet XPortlet is a base class for generic portlet widgets

XPortlet is a base class for portlets. It assumes that a portlet consists of a title and some body content. You may extend it to implement versatile portlets for your application. You mainly need to override its renderContent method.

Resources

Documentation

Requirements
  • Yii 1.0 or above
Installation
  • Extract the release file under protected/extensions
Usage

Because XPortlet is a base class, you first need to import it before defining your own portlet class. You then override the renderContent() method to display the content of the portlet.

See the following code example:

Yii::import('application.extensions.portlet.XPortlet');
class MyPortlet extends XPortlet
{
    protected function renderContent()
    {
        // display portlet content here
    }
}
5 1
3 followers
2 327 downloads
Yii Version: 1.1
License: BSD-2-Clause
Category: Others
Tags:
Developed by: qiang
Created on: Nov 25, 2008
Last updated: 15 years ago

Downloads

show all