[wp-hackers] "Plugin could not be activated because it triggered a fatal error." But what is the error?
Jacob Santos
wordpress at santosj.name
Fri Mar 12 20:45:59 UTC 2010
I think the bigger fail is that the functions weren't namespaced. Naming
a function or class simply "Widget" is asking for a fail.
Namespacing a function or class for PHP <5.3 is putting a name and then
using an underscore. You'd put this for every function, class, variable
you have.
Examples:
function myfunc_widget();
class Myname_Widget { }
Jacob Santos
PS This line does not have an error <?php echo $string ?>, because PHP
will automatically terminate the line if it is missing a semicolon.
More information about the wp-hackers
mailing list