这是啥意思?解决思路

WBOY
Release: 2016-06-13 13:51:44
Original
1052 people have browsed it

这是啥意思?
出现在一个类里面,请问这是啥意思?$this->ChannelUnit->SplitPageField;
最好写个例子出来看看,谢谢先!

------解决方案--------------------
不明白LZ的意思
------解决方案--------------------
看你的类里的代码你就知道是干嘛了. 看看ChannelUnit是个什么东东
------解决方案--------------------

探讨
出现在一个类里面,请问这是啥意思?$this->ChannelUnit->SplitPageField;
最好写个例子出来看看,谢谢先!

------解决方案--------------------
你运行一下不就知道了。看上去好像是拼接SQL字串。

select type from dbtable where id=1;

纯属猜测。不太了解thinkphp.。自己看看吧。
------解决方案--------------------
探讨

你运行一下不就知道了。看上去好像是拼接SQL字串。

select type from dbtable where id=1;

纯属猜测。不太了解thinkphp.。自己看看吧。

------解决方案--------------------
有from()?
------解决方案--------------------
我也有这种感觉,
不过,thinkphp
的确是这样写的。说这样更能让人理解。不容易出错,

说实话,到了这个层次,还要看这样的SQL真的很头痛。

我是认为sql语句写在字符串里可读型更好些

探讨

引用:

你运行一下不就知道了。看上去好像是拼接SQL字串。

select type from dbtable where id=1;

纯属猜测。不太了解thinkphp.。自己看看吧。


看起来乔丹先生的猜测肯定是对的,不过一条SQL语句写成这样
$user->select("type")->form("dbtable")->whe……

------解决方案--------------------

嗯,这些都是"半吊子ORM".....实际上都不算ORM...


探讨

引用:

你运行一下不就知道了。看上去好像是拼接SQL字串。

select type from dbtable where id=1;

纯属猜测。不太了解thinkphp.。自己看看吧。


看起来乔丹先生的猜测肯定是对的,不过一条SQL语句写成这样
$user->select("type")->form("dbtable")->whe……

------解决方案--------------------
探讨

引用:

引用:
出现在一个类里面,请问这是啥意思?$this->ChannelUnit->SplitPageField;
最好写个例子出来看看,谢谢先!
PHP code
class A {
var $v = 123;
}




class B {
function __construct() {
$thi……

------解决方案--------------------
select type from dbtable where id=1;
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!