腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
精选内容/技术社群/优惠产品,
尽在小程序
立即前往
文章
问答
(9999+)
视频
沙龙
1
回答
流明
:
使用
帮助
器
get
错误
:
不在
对象
上下
文中
时
使用
$this
php
、
laravel
、
this
、
lumen
php class CreateRandomId{ if($this->check_id($id,$my_table)){ return false;
浏览 12
提问于2021-07-30
得票数 0
回答已采纳
1
回答
不在
对象
上下
文中
时
使用
$this的
流明
通行证
php
、
laravel
、
lumen
所以我安装了
流明
护照。Dusterio\LumenPassport\LumenPassport::routes($this->app); 稍后在app.php中,一旦我运行php artisan list或任何其他cmd,它就会显示以下
错误
浏览 24
提问于2018-02-25
得票数 1
回答已采纳
1
回答
不在
对象
上下
文中
时
使用
$this
错误
php
、
oop
、
google-analytics-api
我得到一个致命的PHP
错误
时,试图执行我的脚本:Using $this when not in object context脚本收集数据从谷歌分析通过API,然后显示在一个页面上。
浏览 0
提问于2010-08-13
得票数 1
回答已采纳
1
回答
Yii身份验证,在
对象
上下
文中
时
使用
此方法
php
、
yii
、
authentication
在更改服务
器
后,我在登录时会出现这个
错误
。致命
错误
:在非
对象
上下
文中
使用
$this $model->attributes=$_POST['Account']; $this->email, );_in
浏览 2
提问于2015-10-19
得票数 0
回答已采纳
2
回答
joomla模块的开发
php
、
jquery
、
joomla
、
mootools
我正在尝试
使用
jquery开发一个简单的模块,但我想禁用mootools。我尝试在default.php文件中
使用
此代码 if ($user->
get
('guest') == 1) { $this->setHeadData($headerstuff); } <jdoc:include type="head"
浏览 2
提问于2013-03-01
得票数 0
回答已采纳
1
回答
php oop从同一个类的方法内部调用方法
php
、
oop
do something // call function b();当我像往常一样调用函数
时
:$ this ->b();我得到这个
错误
:在C:...中
不在
对象
上下
文中
时
使用
$this有什么想法吗?我将非常感谢任何人的
帮助
谢谢
浏览 0
提问于2011-07-04
得票数 3
回答已采纳
1
回答
不在
对象
上下
文中
时
使用
$this : php
错误
php
、
class
、
this
我得到上面的
错误
是因为我刚刚意识到这个类是作为class::function($values)而不是class->function($values)运行的。
浏览 0
提问于2010-03-25
得票数 1
回答已采纳
4
回答
错误
:致命
错误
:
不在
对象
上下
文中
时
使用
$this
php
、
oop
、
static
public static function assign($name, $value) $this->params[] = array($name => $value); { } $test = Templater::assign('key', 'value')->draw(); print_r($tes
浏览 1
提问于2010-06-05
得票数 1
回答已采纳
1
回答
致命
错误
:
不在
对象
上下
文中
时
使用
$this
php
、
wordpress
return self::$instance;}$post = new PostData(33);但是有一个
错误
浏览 286
提问于2018-06-07
得票数 3
1
回答
致命
错误
:
不在
对象
上下
文中
时
使用
$this
php
、
object
、
this
有人知道为什么这段代码会出现这个
错误
吗?“致命
错误
:
不在
对象
上下
文中
时
使用
$this”这是我正在尝试运行的脚本的一部分。'grid' : 'list'; function parentIDallowed_extensions
浏览 4
提问于2012-08-04
得票数 0
2
回答
致命
错误
:
不在
对象
上下
文中
时
使用
$this
php
、
object
、
this
I9CDYnaxrFxLTEvYxTmsDKZQlgStJG868GKb"; //this is the line that causes the error当调用fhpxEndpoint()
时
,我收到致命
错误
:当
不在
对象
上下
文中
时
使用
$this消息。任何
帮助
都非常感谢!CURLOPT_RETURNTRANSFER, 1); 像在fhpxApiConnect()中那样
浏览 0
提问于2014-06-12
得票数 0
1
回答
Eventbrite票证显示
php
、
wordpress
、
eventbrite
我购买了票证插件,并且得到了PHP致命
错误
:当
不在
对象
上下
文中
时
使用
$this来执行以下函数public function displayEventBriteTicketFormTribeEventsTemplates::getTemplateHierarchy( 'ticket-form', 'modules', 'eventbrite', $this->pluginPath )
浏览 0
提问于2013-07-10
得票数 0
回答已采纳
1
回答
PHP OOP MVC致命
错误
:
不在
对象
上下
文中
时
使用
$this
php
、
scope
我有一个MVC,带有一些控制
器
和一些工具,比如会话处理。session类由非静态方法组成,在我的控制
器
中,我像这样实例化session类:public function __construct () {} 然而,当我从控制
器
中的方法调用它
时
,它返回了臭名昭著的“当
不在
对象
上下
文中
时
使用
$this”
浏览 1
提问于2013-12-18
得票数 0
1
回答
“函数()
使用
($app) {”在Lumen中的意思是什么(可能在Laravel中有效)
php
、
laravel
、
scope
、
lumen
完整的语法如下所示: $app->
get
('/', function
流明
?在拉力维尔也有吗? 它看起来像是PHP中没有花括号的匿名函数,但是,在这个特定代码示例的
上下
文中
,use关键字没有意义。据我所知,
使用
use可能是别名,也可能是OOP
上下
文中
的特
浏览 0
提问于2018-08-07
得票数 2
回答已采纳
3
回答
致命
错误
:
不在
对象
上下
文中
时
使用
$this
php
、
class
、
codeigniter
我收到这个致命的
错误
消息:Using $this when not in object context.这个类被设置为CodeIgniter中的一个库。它抛出
错误
的行:我的问题在哪里?
浏览 1
提问于2012-04-04
得票数 3
回答已采纳
1
回答
symfony 1.4 -$this->来自
帮助
器
的getRoute()->getObject()调用
symfony-1.4
当我
使用
$this->getRoute()->getObject()
时
,它工作得很好。有没有办法从helper调用$this->getRoute()->getObject()。当我从helper调用它
时
,我得到了“致命
错误
:当
不在
对象
上下
文中
时
使用
$this ...”
浏览 0
提问于2016-02-15
得票数 0
1
回答
致命
错误
:
不在
对象
上下
文中
时
使用
$this
php
以前我
使用
静态属性和方法以及self::,但现在我不需要它了。不知道哪里错了。{ $this->arg = func_
get
_arg
浏览 3
提问于2015-12-30
得票数 0
1
回答
不在
对象
上下
文中
时
使用
$this
php
、
function
、
class
、
object
parent::__construct(); } } }这段代码是我的login.php文件的一部分 function login($emai
浏览 1
提问于2015-04-19
得票数 2
2
回答
不在
对象
上下
文中
时
使用
$this
php
我遇到了这个
错误
,我看不出原因 致命
错误
:在
不在
/var/www/php/dbclass.php的/var/www/php/dbclass.php中的
对象
上下
文中
使用
$this (我已经用箭头标记了第18
浏览 0
提问于2013-04-10
得票数 1
回答已采纳
2
回答
不在
对象
上下
文中
时
使用
$this
php
、
oop
、
class
我正在创建一个显示博客的函数,所以我创建了一个show blog函数,但它一直显示"Using $this when not in object context“
错误
Class Blog{
浏览 0
提问于2010-05-15
得票数 2
回答已采纳
点击加载更多
扫码
添加站长 进交流群
领取专属
10元无门槛券
手把手带您无忧上云
相关
资讯
PHP 8的新功能展望:JIT以及其他
一种针对PHP对象注入漏洞的新型利用方法
深入了解 Proxy 代理
原生Ajax
如何利用并发性加速你的python程序(二):I/O 绑定程序加速
热门
标签
更多标签
云服务器
即时通信 IM
ICP备案
对象存储
实时音视频
活动推荐
运营活动
广告
关闭
领券