bernhard Posted March 9, 2019 Share Posted March 9, 2019 Hi everybody! PW somehow bypasses calls to a property of an object to an existing method with the same name. I think I read that some time ago but can't find the place in the code where this magic happens. Thx for your help ? Link to comment Share on other sites More sharing options...
kongondo Posted March 9, 2019 Share Posted March 9, 2019 See the Page class (/wire/core/Page.php), especially the static array $baseProperties. For children, see this line. The magic itself happens in the method get(). For children(), this line, i.e.: // snip else if($type === 'm') { // local method return $this->{$key}();// magic :-) 5 1 Link to comment Share on other sites More sharing options...
bernhard Posted March 9, 2019 Author Share Posted March 9, 2019 Thx @kongondo! I was close, but didn't find it ? Link to comment Share on other sites More sharing options...
Recommended Posts