in anglais

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
benakacha
Forum Newbie
Posts: 3
Joined: Mon Sep 14, 2009 3:41 am

in anglais

Post 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 ...
Post Reply