Page 1 of 1

in anglais

Posted: Mon Sep 14, 2009 9:37 am
by benakacha
hello,
I apologise for the use of French
I work on a payroll application under the framework symfony
I want to calculate the salary of an employee
I module (employee and leave)
for the employee table I need to gross wages before the administrator
and leave the table I need number of days leave (getNbjc ()) and a function that local PersoCongePeer
right now if I put the function to calculate salary in PersoEmployePeer
to return the result in
indexSuccess.php the module used


Code :


#class PersoEmployePeer extends BasePersoEmployePeer
{
public function getSalairePercent()
{
$total = $this->getSalaire() -( ($this->getSalaire()/30)* PersoCongePeer::getNbjc());

return $total ;
}#
msg d'erreur :::::
Citation:
500 | Internal Server Error | sfException
Call to undefined method BasePersoEmploye::getDatefinc

NB:getdatefinc: is a field in the table leave(id,employé_id,typedeconge,datedebutc;datefinc)

in conclusion how can call a variable external module or work
pb join but I know how committed ...