Zainstalowałem Panel Admina, jak chce dodać, albo zedytowac jakieś dane wyskakuje taki błąd:
Fatal error: Class UzytkownikForm contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (sfFormPropel::getModelName) in /var/www/probaa/lib/form/UzytkownikForm.class.php on line 12
Oto plik UzytkownikForm.class.php:
<?php
/**
* Uzytkownik form.
*
* @package nowy
* @subpackage form
* @author Your name here
* @version SVN: $Id: sfPropelFormTemplate.php 10377 2008-07-21 07:10:32Z dwhittle $
*/
class UzytkownikForm extends BaseFormPropel
{
public function configure()
{
'login'=> new sfWidgetFormInput(),
'haslo'=> new sfWidgetFormInputPassword(),
'powtorz'=> new sfWidgetFormInputPassword(),
'mail'=> new sfWidgetFormInput(),
));
$this->setValidators(array( 'login' => new sfValidatorString
(array('required' => true), array('required' => 'Musisz wypełnić te pole!')), 'haslo' => new sfValidatorString
(array('required' => true , 'min_length' => 6
), array('required' => 'Te Pole jest obowiązkowe', 'min_length' => 'Dla twojego bezpieczeństwa, hasło powinno miec przynajmniej 6 znaków.')), 'powtorz' => new sfValidatorString
(array('required' => true , 'min_length' => 6
), array('required' => 'Te Pole jest obowiązkowe')), 'mail' => new sfValidatorEmail
(array(), array('invalid' => 'The email address is invalid.', 'required' => 'To pole jest obowiązkowe.')))); $this->validatorSchema->setPostValidator(new sfValidatorAnd(
new sfValidatorPropelUnique
(array('model' => 'Uzytkownik', 'column' => 'login'), array('invalid' => 'Taki login juz istnieje')), new sfValidatorSchemaCompare
('powtorz', '==', 'haslo', array(), array('invalid' => 'Different passwords')) )));
}
}
?>