{"id":6868,"date":"2014-05-07T18:34:37","date_gmt":"2014-05-07T18:34:37","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/05\/07\/undefined-method-error-collection-of-common-programming-errors\/"},"modified":"2014-05-07T18:34:37","modified_gmt":"2014-05-07T18:34:37","slug":"undefined-method-error-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/05\/07\/undefined-method-error-collection-of-common-programming-errors\/","title":{"rendered":"Undefined method error?-Collection of common programming errors"},"content":{"rendered":"<p>Joomla,I defined a method<\/p>\n<pre><code>function assignRef($key, &amp;$val)\n {\n  if (is_string($key) &amp;&amp; substr($key, 0, 1) != '_')\n  {\n   $this-&gt;$key =&amp; $val;\n   return true;\n  }\n\n  return false;\n }\n<\/code><\/pre>\n<p>but when I cal that method I got an fatal error like:<\/p>\n<p><code>WWDatingController::assignRef()<\/code><\/p>\n<p>It is a Joomla base project. Please provide solution.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Joomla,I defined a method function assignRef($key, &amp;$val) { if (is_string($key) &amp;&amp; substr($key, 0, 1) != &#8216;_&#8217;) { $this-&gt;$key =&amp; $val; return true; } return false; } but when I cal that method I got an fatal error like: WWDatingController::assignRef() It is a Joomla base project. Please provide solution.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-6868","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6868","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=6868"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/6868\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=6868"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=6868"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=6868"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}