I am getting Notice: Trying to get property of non-object
at:
$var = trim($article->find('span[id$=qty]', 0)->innertext);
$article is a simple_html_dom()
object.
I am getting Notice: Trying to get property of non-object
at:
$var = trim($article->find('span[id$=qty]', 0)->innertext);
$article is a simple_html_dom()
object.
The AngularJS is not sending any Object instead it passes the GET element.
Just access the Value by simply using $_GET['uid']
Your getPageData()
method returns a numerically indexed array at the 'results' index, not an object. This means $results['pages'] contains a numerically indexed array, not an object. var_dump()
it and check it out.
You likely need to do something like:
$template = $results['pages'][0]->pagetemplate;
As I see there is no way to do that at the moment. It should be edited by author of this script or by some other developer/s willing to continue the development of this project. Don't know does the license allow it or not.
No, simple html dom doesn't do dom manipulation. With phpquery though you can do:
$doc->find('head')->append('<script src="foo"></script>');
Maybe
span[id$=qty]
evaluates to null; means: no node was found.