socialengine is a zendframework based project helps the developers to build their own custom social network website. socialengine following the MVC structure. The login action is in user/controllers/AuthController.php Here we specify the redirection URL return $this->_helper->redirector->gotoRoute(array(“action” => ‘home’) , “user_general” , true); change the user router according to your need.
Author: smarttips
git color terminal ubuntu
Git is a project management tool for developers. git status It shows all modified and new files in current git project. We can easily identify this modified and new files using colors. Run the following command in terminal git config –global color.ui auto
Decode binary image data to image file
<?php $output = json_decode($result); foreach($output as $value) { echo $value->id.’–‘.$value->count.‘–‘; echo ‘<img src=”data:image/jpg;base64,’.$value->photo.’” width=”50″ height=”50″ alt=”embedded folder icon”><br />’; } ?>
scroll to top of a page
window.scrollTo(0,0);
Get parameter value in socialengine or zendframework
Get parameter value in socialengine/zendframework $this->_getParam(‘id’, null) $this->getRequest()->getParam(‘fancybox’, null);