This is a scoping problem. inside your function, PHP can't see $page.
There are 2 solutions I see.
1:
function func1() {
global $page;
Not my favorite. I hate Globals for personal reasons. professionally, I just detest them because if you are trying to write good OO code, they break a lot of rules.
2:
function func1($page) {
This is the most common way to do it and is probably the best. mainly because a function should either have everything it needs to operate or have everything passed in.
A 3rd option would be to restructure your objects. Without more information thought, I can't make any recommendations on this.
HTH,
Cal
http://www.calevans.com