Yii 1.1: portlet

XPortlet is a base class for generic portlet widgets
3 followers

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
    }
}

Total 2 comments

#2622 report it
Gustavo at 2011/01/23 11:10pm
CPortlet?

Did you merge it into the core as CPortlet?

#1074 report it
zillabyte at 2009/12/17 09:26pm
zip file corrupt

I downloaded this extension along with several others and get invalid archive error. Anyone else have these issues.

Leave a comment

Please to leave your comment.

Create extension
  • Yii Version: 1.1
  • License: New BSD License
  • Developed by: qiang
  • Category: Others
  • Votes: +6 / -1
  • Downloaded: 2,113 times
  • Created on: Nov 25, 2008
  • Last updated: Nov 25, 2008