Error thrown

Undefined constant "TEMPLATEPATH"