This forum is in READ-ONLY mode.
You can look around, but if you want to ask a new question, please use Stack Overflow.

critreia action with session

Forum to discuss ExtJS and other JS plugins

critreia action with session

by ojie43 » Thu Jun 25, 2009 8:17 pm

please help me......

i get error in this action...and in template

public fuction executeShow()
{
$c = new Criteria();
$c->add(EmployePeer:EMAIL,$this->getUser->GetEmail());
$emp=EmployePeer::doSelectOne($c);

}

in MyUserClass

i strore my session

public function signIn($user)
{
$this->setAttribute('subscriber_id', $user->getId(), 'subscriber');
$this->setAuthenticated(true);

$this->addCredential('subscriber');
$this->setAttribute('username', $user->getUsername(), 'subscriber');
$this->setAttribute('email', $user->getEmail(), 'subscriber');
}

public function getEmail()
{
return $this->getAttribute('email', '', 'subscriber');
}


in tempalte showSucces.php

.....
<tr>
<th>Nrp:</th>
<td><?php echo $mahasiswa->getNrp() ?></td>
</tr>
......

i get erro with message "getNrp non-object"...

please help me....

hoyw use session data in action....

thanks

sorry for my engglish cz not good
ojie43
Junior Member
 
Posts: 26
Joined: Mon Jun 01, 2009 9:19 am
Location: indonesia