Load datagrid using a PHP OOP method?
<p>I am try to use the example given in "<a href="http://www.jeasyui.com/tutorial/app/crud.php" rel="nofollow">Build CRUD Application with jQuery EasyUI</a>",
but this time round I have a PHP OOP function called <code>get_users</code>:</p>

<pre><code>public function get_users() {

$rs = mysql_query("select * from users");

$items = array();
while($row = mysql_fetch_object($rs)){
    array_push($items, $row);
}
$result["rows"] = $items;

echo json_encode($result);
}
</code></pre>

<p>How do I call the function at <code>&lt;table url="?????"&gt;</code>?</p>

<pre><code>table id="dg" title="My Users" class="easyui-datagrid" style="width:700px;height:250px"
        url="&lt;?php  $company-&gt;get_users(); ?&gt;"
</code></pre>
