show error on non-accessible template in PHP