fuelphp - can't clone sql object in fuel php -


i'd clone sql query object.

$base_query = db::select()->from('manage_mobile'); $listquery = clone $base_query; 

however causes fatal error.

: undefined variable: listquery 

$base_query surely object.i checked var_dump.

how can solve problem?

why want clone query object ? if want clone result can use:

$r = db::query("select * manage_mobile")->execute()->as_array(); $c = clone $r; 

this should work since $r regular array.


Comments

Popular posts from this blog

Why can rails not find a route created by a helper? -

javascript - jquery or ashx not working -

php - Redirect and hide target URL -