Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Symfony]Błąd przy components
Mgorka
post
Post #1





Grupa: Zarejestrowani
Postów: 209
Pomógł: 3
Dołączył: 6.04.2010
Skąd: Słupca

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


Witajcie dopiero się uczę symfony lecz natrafiłem na problem chcę w layoucie wstawić menu z innej templatki robie to tak
  1. <? include_component('globals','menu'); ?>
lecz serwer zwraca mi błąd
Fatal error: Declaration of menuComponent::execute() must be compatible with that of sfComponent::execute() in
To pilik z tym komponentem:

  1. <?php
  2. class menuComponent extends sfComponent {
  3.  
  4. public function execute() {
  5.  
  6. $this->oaKategorie = array();
  7.  
  8. if( $this->getRequest()->getParameter('module') == 'oferta' ) {
  9. //pobranie kategorii z bazy
  10.  
  11. $oCriteria = new Criteria();
  12. $oCriteria->addAscendingOrderByColumn( KategoriePeer::KAT_NAZWA );
  13. $this->oaKategorie = KategoriePeer::doSelect( $oCriteria );
  14. }
  15.  
  16. }
  17.  
  18. }
  19. ?>

Proszę o pomoc

Ten post edytował Mgorka 27.12.2011, 12:24:38
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 22.08.2025 - 20:13