Pages

Showing posts with label path. Show all posts
Showing posts with label path. Show all posts

Friday, May 3, 2013

Social Engine 4-Get avtar of user

$user_id=Engine_Api::()_->user->getviewer->getIdentity();

$userinfo=Engine_Api::_()->user()->getUser($user_id);

$photo_id=$user_info['photo_id'];


//Fetches table Engine4_storage_files

$filesTable=Engine_APi::_()->getDbtable('files','storage');

$adapter=Engine_Db_Table::getDefaultAdapter();

$filesTableName=$filesTable->info('name');

$query=Engine_Db_Table::getDefaultAdapter()->select("storage_path")->from($statsTableName)->where("field_id=?",$photo_id)->limit(1);

$result=$query->query()->fetch();

$result['storage_path'] //has the path to your photo


Sunday, November 11, 2012

Adding php and phpunit to Windows default path

Adding php and phpunit to Windows default path

Open System in control panel=>Advance System Setting=>Envirnoment Variables=>

You will find a variable path in

Path

append to it your php directory..that's it

 Here is an image of the same...