small set of functions for using php-based views, and some