Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [Symfony] Problem z componets
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 chcę utworzyć komponent do strony robię tak jak w poradniku plik components.class.php umiszczam w katalagu modules\global\actions a widok od komponentu w modules\global\templates\ i np nazywam _menu.php. Lecz dostaję error The template "_menu.php" does not exist or is unreadable in "". co może być nie tak dołaczał pliki:
components
  1. <?php
  2. class globalComponents extends sfComponents
  3. {
  4. /**
  5.   * Executes index action
  6.   *
  7.   * @param sfRequest $request A request object
  8.   */
  9. public function executeMenu()
  10. {
  11. $this->news= 'ss';
  12. }
  13. }


Ten post edytował Mgorka 10.01.2012, 12:59:07
Go to the top of the page
+Quote Post
killsalad
post
Post #2





Grupa: Zarejestrowani
Postów: 7
Pomógł: 0
Dołączył: 5.09.2005
Skąd: Kraków

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


Witam,

spróbuj wrzucić do modules/templates

pzdr
Go to the top of the page
+Quote Post
toffiak
post
Post #3





Grupa: Zarejestrowani
Postów: 395
Pomógł: 80
Dołączył: 24.08.2009

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


Pewnie problem już został rozwiązany ale to mogłoby pomóc.

http://oldforum.symfony-project.org/index.php/m/99065/
Go to the top of the page
+Quote Post

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: 20.12.2025 - 15:04