Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Normal
[CODE="php"]public function applyActivityDetails($activities){...$controller = $this->app()->extension()->extendClass($controller);try{ $valid = ($controller && class_exists($controller) && is_callable([$controller, 'getActivityDetails']) );}catch (\Exception $e){ // don't let a class load error (XFCP) error $valid = false;}[/CODE]However class_exists throws and Error not an Exception on class load error.
[CODE="php"]public function applyActivityDetails($activities)
{
...
$controller = $this->app()->extension()->extendClass($controller);
try
$valid = ($controller
&& class_exists($controller)
&& is_callable([$controller, 'getActivityDetails'])
);
}
catch (\Exception $e)
// don't let a class load error (XFCP) error
$valid = false;
}[/CODE]
However class_exists throws and Error not an Exception on class load error.
class_exists
Error
Exception
We use essential cookies to make this site work, and optional cookies to enhance your experience.
See further information and configure your preferences