Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Symfony] Problem z komponentem, The component does not exist
phpion
post
Post #1





Grupa: Moderatorzy
Postów: 6 072
Pomógł: 861
Dołączył: 10.12.2003
Skąd: Dąbrowa Górnicza




Hejka,
mam problem z komponentem w Symfony. Zrobiłem tak jak opisano w dokumentacji i niestety nie bardzo chce to działać.

apps/frontend/article/actions/components.class.php:
  1. <?php
  2. class menusComponents extends sfComponents {
  3. public function executeHeadlines() {
  4. $this->test = 'lalala';
  5. }
  6. }
  7. ?>

apps/frontend/article/templates/_headlines.php:
  1. <?php echo $test; ?>

apps/frontend/article/templates/listSuccess.php:
  1. <?php include_component('menus', 'headlines'); ?>

W wyniku dostaję:
  1. The component does not exist: "menus", "headlines"

Zmiana include_component na include_partial (+ zmiany w samym _headlines) wyświetla go poprawnie.
Co robię nie tak? Proszę o pomoc.
Znalazłem na forum podobny problem (http://www.symfony-project.com/forum/index.php/m/27081/?srch=The+component+does+not+exist#msg_27081), teoretycznie rozwiązany, tylko nie bardzo wiem w jaki sposób...
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: 19.08.2025 - 16:06