bgey 发表于 2017-4-11 07:04:47

php对象错误Call to a member function on a non-object

php对象错误Call to a member function on a non-object

$objPage = new PageAtrributes;

function page_properties() {
    global $objPage;
    $objPage->set_page_title($myrow['title']);
}
其实只要把那个对象加个 global就ko
页: [1]
查看完整版本: php对象错误Call to a member function on a non-object