curl - calling controller subclass from a php script -
when call php script php controller page like:
curl_setopt($ch, curlopt_url, "http://site.com/admin/importcontroller.php");
importcontoller
subclass of pagecontroller
: importcontroller
extends pagecontroller
i'm getting error:
fatal error: class 'pagecontroller' not found in /home/public_html/admin/importcontroller.php on line 8
is call possible? how?
just add: require_once("pagecontroller.php"); if used other way require_once not included , in case included.
Comments
Post a Comment