Get parameter value in socialengine/zendframework $this->_getParam(‘id’, null) $this->getRequest()->getParam(‘fancybox’, null);
Category: PHP
Socialengine/zend simple Update Query
Update query using Socialengine or zendframework. Engine_Db_Table::getDefaultAdapter()->update(‘engine4_activity_actions’, array(‘like_count’=>sizeof($oLikes)) , array(‘action_id = ?’=>$iId) );
Socialengine User Friendship check function
Use this function to check the logged user is a friend of any other user. Here Viewer is logged user object and user is the one who want to check. $viewer->membership()->getRow($user);
How to simply create a zend framework project?
I’m writing this tutorial based on LAMP(Linux Apache Mysql PHP) development environment. You can create sample php zendframework project using terminal. For that type the following command smart@smarttips-System-Product-Name:~$ zf crate project /var/www/testzend If this package is not previously installed then will show this message The program ‘zf’ is currently not installed. You can install it…
how to find and kill a process using particular port
Use the following command for stop a process using port 80 .This example is based on Ubuntu Linux operating system. Commands need to run in terminal sudo netstat -lpn |grep :80 tcp6 0 0 :::80 :::* LISTEN 1185/apache2 sudo kill 1185