class Model_User extends Orm\Model {}
$user = new Model_User; $user->find(13); print $user->login; //email, pass, ...The above code displays blank page.
SHOW FULL COLUMNS FROM `www_users` Speed: 5.896 ms SELECT `www_t0`.`id` AS `t0_c0`, `www_t0`.`login` AS `t0_c1`, `www_t0`.`pass` AS `t0_c2`, `www_t0`.`email` AS `t0_c3`, `www_t0`.`last_log` AS `t0_c4`, `www_t0`.`cart` AS `t0_c5`, `www_t0`.`prawa` AS `t0_c6` FROM `www_users` AS `www_t0` WHERE `www_t0`.`id` = 13 LIMIT 1 Possible keys: PRIMARY ·Type: system ·Rows: 1 ·Speed: 0.937 ms
Pawe? Gruchociak wrote on Sunday 8th of January 2012:Then in my controller:$user = new Model_User; $user->find(13); print $user->login; //email, pass, ...
$user = Model_User::find(13);
$user = new Model_User(); Model_User::find(13); // note that the output of this isn't being assigned to anything echo $user->login;
It looks like you're new here. If you want to get involved, click one of these buttons!