Share it

Bookmark and Share

Translate

Friday, February 15, 2013

0 Create a widget in socialEngine

Steps
We can create create widgets in socialengine.There is two ways to do this 1.one is that create widget as common for all modules
1.Go to the  folder  applications/widgets/
2.Create a folder and rename it as your widget name
3.Then create three files inside the above folder
    a,controller file Controller.php
    b,a tpl file index.tpl
    c, a manifest file

Controller.php
<?php

class Widget_PageBlockController extends Engine_Content_Widget_Abstract
{
  public function indexAction()
  {
    $this->view->data = $this->_getParam('data');
  }
}
index.tpl
<?php
/**
 * social engine
 *
 *Author sijo thomas
 */
?>
<div>
<?php echo $this->data ?>
</div>






0 comments:

Post a Comment

Thanks for your valuable Comment

 

TechnoTipworld- Tips,Tricks,Technology Copyright © 2011 - |- Template created by O Pregador - |- Powered by Blogger Templates