yes i tried with this ,,i have passed in find the primary_key  weach is
matricule but the same thing ,,i really stocked its bizare,,because when i
generate  an other module with showSuccess it works ,,but if i create my own
function in action.class and my own template  it makes an error
Fatal error: Call to a member function getprenom() on a non-object

please give some solutions
2011/3/31 deepak <deepakkumar...@gmail.com>

> Hi
>
> Please try with
>
> $this->utilisateur = Doctrine::getTable('utilisateur')->find($request-
> >getParameter('matri cule'));
>
>
> find tries to search the row on the basis of primary key. That means
> you must pass primary key in find('PRIMARY_KEY')
>
> try this and post your feedback.
>
> -deepak
>
> On Mar 31, 1:19 pm, mohamed sabri ben sassi
> <mohamedsabri.bensa...@gmail.com> wrote:
> > hi guys,,i need help
> > i have an error when i want to view  my name or some information
>  extracted
> > from base  with function getprenom or getmatricule   ,,,the error is:
> > Fatal error: Call to a member function getprenom() on a non-object in
> > C:\development\sfprojects\gestion des
> > competences\apps\frontend\modules\login\templates\CVSuccess.php on
> line*55*
> > *
> > *
> > *there is the code of  fuction executecv:*
> > *
> > class loginActions extends sfActions
> > {
> >   public function executeCv(sfWebRequest $request)
> >   {
> >
> >      $this->utilisateur =
> >
> Doctrine::getTable('utilisateur')->find(array($request->getParameter('matri
> cule')));
> >     $this->forward404Unless($this->utilisateur);
> >
> >   }
> >
> > and there is the code of   cvsSuccess:
> >
> > <span class="i3" >Votre non</span><span class="i2"><?php echo
> > $utilisateur->getprenom(); ?></span>
> >
> > i need help please
> > *
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.com
>
> You received this message because you are subscribed to the Google
> Groups "symfony users" group.
> To post to this group, send email to symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to