cybernet Posted October 10, 2010 Share Posted October 10, 2010 class Fields_View_Helper_FieldFacebook extends Zend_View_Helper_Abstract { public function fieldFacebook($subject, $field, $value) { $facebookUrl = stripos($value, 'facebook.com/') === false ? 'http://www.facebook.com/search/?q=' . $value->value : $value->value; return $this->view->htmlLink($facebookUrl, $value->value, array( 'target' => '_blank', 'ref' => 'nofollow', )); } } Warning: stripos() expects parameter 1 to be string, object given in line ... Quote Link to comment https://forums.phpfreaks.com/topic/215557-a-little-help-here/ Share on other sites More sharing options...
trq Posted October 11, 2010 Share Posted October 11, 2010 Obviously, $value is not a string. Quote Link to comment https://forums.phpfreaks.com/topic/215557-a-little-help-here/#findComment-1120955 Share on other sites More sharing options...
Iris2027 Posted October 12, 2010 Share Posted October 12, 2010 $value is not a string!!! Quote Link to comment https://forums.phpfreaks.com/topic/215557-a-little-help-here/#findComment-1121395 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.