Php Eventbrite车票显示
你好,我需要把票据从Eventbrite拿到wordpress页面。我买了票插件,现在 获取PHP致命错误:在以下函数不在对象上下文中时使用$this 对于inlcude行的以下函数Php Eventbrite车票显示,php,wordpress,eventbrite,Php,Wordpress,Eventbrite,你好,我需要把票据从Eventbrite拿到wordpress页面。我买了票插件,现在 获取PHP致命错误:在以下函数不在对象上下文中时使用$this 对于inlcude行的以下函数 public function displayEventBriteTicketForm() { include( TribeEventsTemplates::getTemplateHierarchy( 'ticket-form', 'hooks', 'eventbrite', $this->plugi
public function displayEventBriteTicketForm() {
include( TribeEventsTemplates::getTemplateHierarchy( 'ticket-form', 'hooks', 'eventbrite', $this->pluginPath ) );
include( TribeEventsTemplates::getTemplateHierarchy( 'ticket-form', 'modules', 'eventbrite', $this->pluginPath ) );
}
帮助解决了问题
将$this->pluginPath
替换为$pluginPath
解决了错误消息