aplikacja u mnie lokalnie działa ładnie jednak po przesłaniu na na serwer dostaję komunikat o braku klasy.
Kod
Warning: include_once(Zend/Form/Element/TextArea.php) [function.include-once]: failed to open stream: Nie ma takiego pliku ani katalogu in /home/sajmon/ftp/projekt/library/Zend/Loader.php on line 146
Warning: include_once() [function.include]: Failed opening 'Zend/Form/Element/TextArea.php' for inclusion (include_path='/home/sajmon/ftp/projekt/application/../library:/home/sajmon/ftp/projekt/library:.:/usr/share/pear/') in /home/sajmon/ftp/projekt/library/Zend/Loader.php on line 146
Fatal error: Class 'Zend_Form_Element_TextArea' not found in /home/sajmon/ftp/projekt/application/forms/ItemForm.php on line 25
Warning: include_once() [function.include]: Failed opening 'Zend/Form/Element/TextArea.php' for inclusion (include_path='/home/sajmon/ftp/projekt/application/../library:/home/sajmon/ftp/projekt/library:.:/usr/share/pear/') in /home/sajmon/ftp/projekt/library/Zend/Loader.php on line 146
Fatal error: Class 'Zend_Form_Element_TextArea' not found in /home/sajmon/ftp/projekt/application/forms/ItemForm.php on line 25
ItemForm.php
<?php class Form_ItemForm extends Zend_Form { public function __construct() { parent::__construct(); $this->setAttrib('id', 'item'); $name = new Zend_Form_Element_Text('i_name'); $name->setLabel('Tytuł') ->setRequired(true) ->addFilter('StripTags') 'isEmpty' => 'Proszę podać nazwę.', ))) )) ->setAttrib('maxlength', '255'); $text = new Zend_Form_Element_TextArea('i_text'); $text->setLabel('Treść') ->setRequired(true) 'isEmpty' => 'Proszę podać treść.', ))) )) ->setAttrib('maxlength', '255'); $submit = new Zend_Form_Element_Submit('Zapisz'); $this->clearDecorators(); $this->setDecorators( 'FormElements', 'Form' ) ); $this->setElementDecorators( 'ViewHelper', 'Label', ) ); $submit->setDecorators( 'ViewHelper', ) ); } } ?>