public function jquerycreateVideo($params, $file, $values) { if( $file instanceof Storage_Model_File ) { $params[‘file_id’] = $file->getIdentity(); } else { // create video item $video = Engine_Api::_()->getDbtable(‘videos’, ‘video’)->createRow(); $file_ext = $file[‘extension’]; $video->code = $file_ext; $video->type…
Category: SocialEngine
SocialEngine tutorials, SocialEngine tips,SocialEngine plugins,SocialEngine modules
How to change the redirection page after login in socialengine
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.
Get parameter value in socialengine or zendframework
Get parameter value in socialengine/zendframework $this->_getParam(‘id’, null) $this->getRequest()->getParam(‘fancybox’, null);
check if subject is set in socialengine
Check one subject is set in socialengine if(Engine_Api::_()->core()->hasSubject()) { } We can use the above code is for avoiding multiple subject set in socialengine.