transformArray()

transformArray()

This returns all model finded/fetched entries into an Array
@return Array

Params

EMPTY

Explanation

Usage

$user = new Users();

$user->find();

var_dump($user->transformArray());

It can also be pretty hand in views for loop statements for example if using tal:repeat ( Using PHPTAL Views System is NOT DEFAULT see Views to more information ) you can do: