{"action":"closed","issue":{"url":"https://api.github.com/repos/ressio/pharse/issues/41","labels_url":"https://api.github.com/repos/ressio/pharse/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/ressio/pharse/issues/41/comments","events_url":"https://api.github.com/repos/ressio/pharse/issues/41/events","html_url":"https://github.com/ressio/pharse/issues/41","id":63055939,"number":41,"title":"Problem to understand how Ganon works","user":{"login":"GoogleCodeExporter","id":9614759,"avatar_url":"https://avatars.githubusercontent.com/u/9614759?v=3","gravatar_id":"","url":"https://api.github.com/users/GoogleCodeExporter","html_url":"https://github.com/GoogleCodeExporter","followers_url":"https://api.github.com/users/GoogleCodeExporter/followers","following_url":"https://api.github.com/users/GoogleCodeExporter/following{/other_user}","gists_url":"https://api.github.com/users/GoogleCodeExporter/gists{/gist_id}","starred_url":"https://api.github.com/users/GoogleCodeExporter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GoogleCodeExporter/subscriptions","organizations_url":"https://api.github.com/users/GoogleCodeExporter/orgs","repos_url":"https://api.github.com/users/GoogleCodeExporter/repos","events_url":"https://api.github.com/users/GoogleCodeExporter/events{/privacy}","received_events_url":"https://api.github.com/users/GoogleCodeExporter/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ressio/pharse/labels/auto-migrated","name":"auto-migrated","color":"ededed"},{"url":"https://api.github.com/repos/ressio/pharse/labels/Priority-Medium","name":"Priority-Medium","color":"ededed"},{"url":"https://api.github.com/repos/ressio/pharse/labels/Type-Defect","name":"Type-Defect","color":"ededed"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-03-19T18:15:58Z","updated_at":"2015-03-23T21:49:02Z","closed_at":"2015-03-23T21:49:02Z","body":"```\nHi @all!\n\nSo far, I've used phpQuery in my projects. Now I have seen Ganon, and I want to \nuse it for future. But I have a problem to unterstand how Ganon works.\n\n\nThis is what I have done in phpQuery: I want to load some HTML-Code into my \ntemplate and change some attributes.\n\n$index = phpQuery::newDocumentHTML('HTML-Code of the entire page');\n$content = phpQuery::newDocumentHTML('Some HTML-Code who has to be in index');\n\nphpQuery::selectDocument($index);\npq('#content')->append($cont);\npq('#content a')->attr(\"href\", \"chmod\")->text(\"Next\");\ndie ($index);\n\n\nAnd now I've tried to do this with Ganon:\n$index = str_get_dom('HTML-Code of the entire page');\n$content = str_get_dom('Some HTML-Code who has to be in index');\n\n$index->select('#content', 0)->setInnerText($content);\n\n\nAnd here this error comes: \"Fatal error: Cannot use object of type HTML_Node as \narray\"\n\nCould anybody help me with the correct code to do my actions: load some \nHTML-Code into my template and change some attributes.\nThis would be great :)\n\nRegards, Steff\n```\n\nOriginal issue reported on code.google.com by `ezzem...@googlemail.com` on 19 May 2013 at 2:54"}}