Jump to content

array_map callback issues


colinodell

Recommended Posts

Hey guys,

 

So I'm having trouble with doing a callback in CakePHP (however, since the question is more about PHP than Cake, I'm posting it here).

 

Essentially, I'm having Cake call this helper function (inside of a class) to build some HTML for me.  It uses array_map to call any callback I specify (in order to do some extra processing).  However, I don't know the object name where my callback function resides (the same place where I call that helper function).  I've tried passing

array($this,'thecallbackfunction')

,

array(&this,'thecallbackfunction')

,

array($this->thecallbackfunction)

, etc and nothing is working.

 

Any ideas?

Link to comment
https://forums.phpfreaks.com/topic/129641-array_map-callback-issues/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.