Skip to content
Menu
Smartttips Smartttips
  • Home
  • About Us
    • Privacy Policy
  • Web Tips
    • PHP Tips
      • CodeIgniter
      • Yii Framework
      • SocialEngine
      • zendframework
      • SQL
    • jQuery
    • CSS
    • Internet
    • Google
    • whatsApp
    • Soma Messenger
    • Useful Sites
  • General Tips
    • Top 10 Lists
    • Onam wishes and Greetings
    • Travel and Tourism
  • Free Web Tools
    • English To Malayalam Converter
    • Malayalam To English Converter
    • English To Tamil Converter
    • Manglish To Malayalam Converter
    • Other Free Web Tools
  • Jobs
  • Contact
Smartttips Smartttips

How to Create a Widget in socialengine

Posted on April 16, 2013 by smarttips

Socialengine is for social networking. It is a paid software with lot of features. Actually socialengine is an equivalent of facebook. The main features of facebook is available in socialengine. In developers eye socialengine is a  PHP zend framework based project. Its uses all good concepts of zend framewok. They developed custom functions for easier working.The widgets are very important functionality in socialengine. The main feature of widgets are transportability. We can place widgets in any page using admin side or via code.

For create a widget in socialengine,  there are two ways

1. Using custom code

Go to particular module and there is a directory named as widgets

/application/modules/Group/widgets

Inside widgets folder,create folder with your widget name
Here smartwidget is my widget name. After that create two important files inside the this folder .

1.Controller.php 2.index.tpl

We know  SocialEngine uses the zendfrawework,that is MVC(model view controller). So put widget controller file in Controller.php and the widget view is in index.tpl. For the model use the module model or any other model.

Controller.php:

<?php

class Group_Widget_SmartwidgetController extends Engine_Content_Widget_Abstract {

public function indexAction()  {

$this->view->message =”welcome to smarttips.in”;

}
}

?>

 

The index action is have great role in widget. All the functionality part is writing here and passing the result to view.

The html part is writing in view file.

view.tpl

<?php echo $this->message; ?>

Now the widget is ready to use with the corresponding module eg:group. So edit the following file

modules ->group-> settings->content.php . Then only we can manage it from admin side.

content.php

array( ‘title’ => ‘Smart Widget’,

‘description’ => ‘This is a new Group smart Widget’,

‘category’ => ‘Group’,

‘type’ => ‘widget’,

‘name’ => ‘group.smartwidget’,

),

2.Using the admin side

go to admin->manange->packages&plugins ->developer sdk->create package
a) select type(modules,widgets,menu..etc)
b) select name
c) select title
d) select description
e) select Author
f) select version
Then hit the button create package
we will get a downloadable Zip file.Again come to admin->manange-> package->install package

Post Views: 2,821

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Type to Search

Popular Posts

  • Find Vehicle ownership Details in Kerala-Through vahan Online
  • Free Online Tools for Web Statistics
  • PhpMyAdmin Login error – Login without a password is forbidden
  • Increase PHP Script Execution Time in zendframework ?
  • Umm Al Quawain Zoo-The Zoo Wildlife Park-Zoo In UAE

Categories

  • Android
  • Apple
  • Automobile
  • Banking
  • Bevco
  • BevQ App
  • Business
  • CodeIgniter
  • Computer
  • Cricket-IPL-2020
  • CSS
  • Database
  • Design
  • Digital Marketing
  • Digital marketing jobs
  • Du
  • Easy Malayalam Typing
  • Entertrainment
  • Etisalat
  • Facebook
  • Famous Birthdays
  • FIFA World Cup Live Streaming
  • Food & restaurants
  • Free Web Statistics Tools
  • G K
  • Games
  • General
  • git
  • GK
  • Google
  • Hardware
  • Health
  • Huawei
  • Instagram
  • Internet
  • iOS
  • iPad
  • iPhone
  • Java
  • javaScript
  • Jobs
  • jQuery
  • Kissan Card India
  • lifestyle
  • LiFi
  • Linux
  • Make in India
  • Mobile Phones
  • Movies
  • Ms Excel
  • Networking
  • News
  • Nodejs Framework
  • opencart
  • Opensource
  • Others
  • Outlook
  • photography
  • Photoshop Tips
  • PHP
  • PHP Project Ideas
  • phpMyadmin
  • Politics
  • PUBGMOBILE
  • SEO
  • Server
  • SMO
  • SocialEngine
  • Softwares
  • Soma Messenger
  • Sports
  • SQL
  • Technology
  • Telecom
  • Top 10 Lists
  • Travel and Tourism
  • UAE Directory
  • Uncategorized
  • Useful Sites
  • Vechicles
  • Videos
  • Web Designer
  • Web Tips
  • whatsApp
  • WiFi
  • Windows
  • windows 10
  • windows 11
  • wordpress
  • World
  • Yii Framework
  • youtube
  • zendframework

smart Tags

Android apache Baahubali baahubali releasing date cinima CodeIgniter config charset and UTF-8 Codex content css data usage edge case elementum Facebook famous birthdays Fast youTube video downloading featured image General Knowledge google Google chrome how to lose weight fast with exercise how to lose weight fast without exercise how to lose weight in 7 days HTML Color Codes iconv() detect illegal char in input image iOS iPad javascript jQuery Kerala Maecenas Microsoft Excel microsoft windows 10 Movies Mysql PHP php job vacancy php zend framework SocialEngine SQL Commands sundar pichai template ubuntu web tips zend framewrok
©2026 Smartttips | Powered by Superb Themes
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.