Try using getPrenom not getprenom. Case sensitivity might be the issue here.

On Thu, Mar 31, 2011 at 11:30 AM, mohamed sabri ben sassi <
mohamedsabri.bensa...@gmail.com> wrote:

> pleaaaaaaase help
>
>
> 2011/3/31 mohamed sabri ben sassi <mohamedsabri.bensa...@gmail.com>
>
>> matricule is an integer value and it is primary key
>> also my colomn is named prenom  ,,i checked all of this but its nothing
>> ,,, it works with the other module  i will show the other exemple
>> action.class:
>> public function executeShow(sfWebRequest $request)
>>   {
>>     $this->utilisateur =
>> Doctrine::getTable('utilisateur')->find(array($request->getParameter('matricule')));
>>     $this->forward404Unless($this->utilisateur);
>>   }
>>
>> <table>
>>   <tbody>
>>     <tr>
>>       <th>Matricule:</th>
>>       <td><?php echo $utilisateur->getmatricule() ?></td>
>>     </tr>
>>     <tr>
>>       <th>Password:</th>
>>       <td><?php echo $utilisateur->getpassword() ?></td>
>>     </tr>
>>     <tr>
>>       <th>Nom:</th>
>>       <td><?php echo $utilisateur->getnom() ?></td>
>>     </tr>
>>     <tr>
>>       <th>Prenom:</th>
>>       <td><?php echo $utilisateur->getprenom() ?></td>
>>     </tr>
>>     <tr>
>>       <th>Id groupe:</th>
>>       <td><?php echo $utilisateur->getid_groupe() ?></td>
>>     </tr>
>>     <tr>
>>       <th>Matr manager:</th>
>>       <td><?php echo $utilisateur->getmatr_manager() ?></td>
>>     </tr>
>>     <tr>
>>       <th>Date de naissance:</th>
>>       <td><?php echo $utilisateur->getdate_de_naissance() ?></td>
>>     </tr>
>>     <tr>
>>       <th>Lieu de naissance:</th>
>>       <td><?php echo $utilisateur->getlieu_de_naissance() ?></td>
>>     </tr>
>>     <tr>
>>       <th>Adresse:</th>
>>       <td><?php echo $utilisateur->getadresse() ?></td>
>>     </tr>
>>     <tr>
>>       <th>Tel mobile:</th>
>>       <td><?php echo $utilisateur->gettel_mobile() ?></td>
>>     </tr>
>>     <tr>
>>       <th>E mail:</th>
>>       <td><?php echo $utilisateur->gete_mail() ?></td>
>>     </tr>
>>     <tr>
>>       <th>Status familiale:</th>
>>       <td><?php echo $utilisateur->getstatus_familiale() ?></td>
>>     </tr>
>>     <tr>
>>       <th>Status:</th>
>>       <td><?php echo $utilisateur->getstatus() ?></td>
>>     </tr>
>>     <tr>
>>       <th>Created at:</th>
>>       <td><?php echo $utilisateur->getcreated_at() ?></td>
>>     </tr>
>>     <tr>
>>       <th>Updated at:</th>
>>       <td><?php echo $utilisateur->getupdated_at() ?></td>
>>     </tr>
>>   </tbody>
>> </table>
>>
>> <hr />
>>
>> you see with this code i can view this module  and it manipulate the same
>> function  getprenom() ans it works
>>
>> 2011/3/31 deepak <deepakkumar...@gmail.com>
>>
>>> Could you please mention the exact value that you are trying to pass
>>> to find().
>>>
>>> I would like to know whether its an array or a single value that you
>>> are passing.
>>>
>>> Regarding "getprenom()" there must be a column named "prenom" in your
>>> DB table. generally its in camel case for example if in your mysql
>>> database table column name is "my_column" then we use getMyColumn().
>>>
>>> similarly you may try getPrenom() if your column name is "prenom" .
>>>
>>> -deepak
>>>
>>>
>>> On Mar 31, 2:01 pm, mohamed sabri ben sassi
>>> <mohamedsabri.bensa...@gmail.com> wrote:
>>> > 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
>>>
>>
>>
>  --
> 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
>



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc
identi.ca: @garethmcc

-- 
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