silkfire Posted March 29, 2013 Share Posted March 29, 2013 How do I get a static variable dynamically? I'm trying this but getting the dreaded PAAMAYIM error: foreach($this->entity::$dialog_data as $property) { Should result in Company::$dialog_data because $this->entity contains the string 'Company'. Quote Link to comment Share on other sites More sharing options...
Barand Posted March 29, 2013 Share Posted March 29, 2013 try $ent =$this->entity; foreach($ent::$dialog_data as $property) { Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.