Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Odczytanie zwróconej wartości
webdice
post
Post #1


Developer


Grupa: Moderatorzy
Postów: 3 045
Pomógł: 290
Dołączył: 20.01.2007




Witam,

mam coś takiego:

  1. <?php
  2.  
  3. class dispatcher
  4. {
  5. public function __construct ()
  6. {
  7. $controller = new categoriesController ();
  8.  
  9. $controller -> displayAction ();
  10. }
  11. }
  12.  
  13. class categoriesController
  14. {
  15. public function displayAction ()
  16. {
  17. return 'ok';
  18. }
  19. }
  20.  
  21. class indexController
  22. {
  23. public function __construct ()
  24. {
  25. $dispatcher = new dispatcher ();
  26. }
  27. }
  28.  
  29. $index = new indexController ();
  30.  
  31. ?>


i tu moje pytanie, w klasie indexController chce odczytać to co zwróciła funkcja categoriesController / displayAction jak coś takiego zrobić?

Pozdrawiam, Piotrek.

EDIT: Problem rozwiązałem smile.gif

Ten post edytował webdicepl 19.10.2007, 11:04:39
Go to the top of the page
+Quote Post

Posty w temacie
- webdicepl   Odczytanie zwróconej wartości   19.10.2007, 10:17:23


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 - 13:40