php5 static class method access syntax error


dreamweaver complaining syntax

 

$class = 'classname';

$class::method(); // static method

 

is there way omit these error warnings?

i haven't done work php classes recently, first line of code assigning string $class. sure class can assigned variable in way?

 

dreamweaver's syntax checker compliant php 5.3. unless it's new feature in php 5.4, error message should correct.



More discussions in Develop server-side applications in Dreamweaver


adobe

Comments