Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Nie może znaleść klasy po przesłaniu na serwer.
cykcykacz
post
Post #1





Grupa: Zarejestrowani
Postów: 550
Pomógł: 9
Dołączył: 29.05.2009
Skąd: Ostrów Wielkopolski

Ostrzeżenie: (0%)
-----


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

ItemForm.php
  1. <?php
  2. class Form_ItemForm extends Zend_Form {
  3.  
  4. public function __construct()
  5. {
  6. parent::__construct();
  7.  
  8.  
  9. $this->setAttrib('id', 'item');
  10.  
  11.  
  12. $name = new Zend_Form_Element_Text('i_name');
  13.  
  14. $name->setLabel('Tytuł')
  15. ->setRequired(true)
  16. ->addFilter('StripTags')
  17. ->addValidators(array(
  18. array('NotEmpty', true, array('messages' => array(
  19. 'isEmpty' => 'Proszę podać nazwę.',
  20. )))
  21. ))
  22. ->setAttrib('maxlength', '255');
  23.  
  24.  
  25. $text = new Zend_Form_Element_TextArea('i_text');
  26.  
  27. $text->setLabel('Treść')
  28. ->setRequired(true)
  29. ->addValidators(array(
  30. array('NotEmpty', true, array('messages' => array(
  31. 'isEmpty' => 'Proszę podać treść.',
  32. )))
  33. ))
  34. ->setAttrib('maxlength', '255');
  35.  
  36.  
  37. $submit = new Zend_Form_Element_Submit('Zapisz');
  38.  
  39.  
  40. $this->addElements(array($name, $text, $submit));
  41.  
  42.  
  43. $this->clearDecorators();
  44.  
  45. $this->setDecorators(
  46. 'FormElements',
  47. 'Form'
  48. )
  49. );
  50.  
  51. $this->setElementDecorators(
  52. 'ViewHelper',
  53. 'Label',
  54. array('Description', array('tag' => 'span', 'escape' => false)),
  55. array('Errors', array()),
  56. array('HtmlTag', array('tag' => 'p'))
  57. )
  58. );
  59.  
  60.  
  61. $submit->setDecorators(
  62. 'ViewHelper',
  63. array('HtmlTag', array('tag' => 'p', 'class' => 'buttons'))
  64. )
  65. );
  66.  
  67. }
  68. }
  69.  
  70. ?>


Ten post edytował cykcykacz 7.08.2011, 21:17:52
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 21.08.2025 - 04:18