I have a base class called field and classes that extend this class such as text, select, radio, checkbox, <
field
text
select
radio
checkbox
If you are using a namespace you will need to add it even if you are within the namespace.
namespace Foo; $my_var = '\Foo\Bar'; new $my_var;
Otherwise it will not be able to get the class.