i have no problems with that code. i see nothing wrong.
is everything in the right folders/directories? are you using strict and warnings?
there will be a performance hit with this implementation. i don't know the full situation and you might decide to go through with this anyway... just be careful. it seems like this could be a dangerous technique if its just to reduce typing.