Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.
Class not found when using ajax call to custom module
We are building a custom module that uses this example code
$act = new stdClass();
$act->cmd = 'example.task';
$act->actor = '505';
$act->target = '0';
$act->title = 'String';
$act->content = 'Your activity content';
// Pay close attention on this
$act->app = 'example.action';
$act->access = 0; // 0 = Public; 20 = Site members; 30 = Friends Only; 40 = Only Me
$act->cid = 0;
CActivityStream::add($act);
This works fine on pageload, but when a call the method using ajax i get the error that the class "CActivityStream" is not found.
Do you have any tips how can we solve this?