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

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

WBOY
Release: 2016-06-06 20:07:53
Original
1588 people have browsed it

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

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

回复内容:

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

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

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

这样可以吗?

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