cu.php 594 B

1234567891011121314151617
  1. <?php
  2. namespace WY\app\controller\mobile;
  3. use WY\app\libs\Controller;
  4. if (!defined('WY_ROOT')) {
  5. exit;
  6. }
  7. class cu extends Controller
  8. {
  9. function __construct()
  10. {
  11. parent::__construct();
  12. $this->tpl = 'view/mobile/';
  13. $this->userData = $this->model()->select()->from('users')->where(array('fields' => 'id=?', 'values' => array($this->req->session('login_userid'))))->fetchRow();
  14. $this->userInfo = $this->model()->select()->from('userinfo')->where(array('fields' => 'userid=?', 'values' => array($this->req->session('login_userid'))))->fetchRow();
  15. }
  16. }