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.
protected/extensionsBecause 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
Did you merge it into the core as CPortlet?
I downloaded this extension along with several others and get invalid archive error. Anyone else have these issues.
Leave a comment
Please login to leave your comment.