Home >Backend Development >PHP Tutorial >phalcon有没有类似TP fetch()的函数

phalcon有没有类似TP fetch()的函数

WBOY
WBOYOriginal
2016-06-06 20:07:531586browse

TP 中fetch()函数,可以把输出内容读到

phalcon有没有这样的函数,把要输出的内容存到字符串中

回复内容:

TP 中fetch()函数,可以把输出内容读到

phalcon有没有这样的函数,把要输出的内容存到字符串中

<code>$view->render(...);
$view->getContent();</code>

这样可以吗?

<code>$users = User::find();
foreach($users as $user){
    print_r($user->toArray());
}</code>
Statement:
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