Ks, thank you for your comment.
I tried the code exposed before and is working quite well to work with
several tables.
The code i'm using is:
-------------------------------------------------------------------------------------------------------------------------
    var $uses = array('Admin','Category','Lifeuser','Rssfile');

    public function kanri_index()
    {
      $this->pageTitle = 'mytyLife管理';
      $lifekanri = $this->Session->read('lifekanri');
      if ($lifekanri == 'si')
      {
        $id = $this->Session->read('userid');
        if ($id)
        {
          $results = $this->Admin->findById($id);
          $this->set('Admin',$results['Admin']);
          $results = $this->Category->findById(1);
          $this->set('Cat',$results['Category']);
        }
      }
      else { $this->redirect('kanri/admins/login'); }
    }
-------------------------------------------------------------------------------------------------------------------------

Rohman


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to