![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 120 Pomógł: 1 Dołączył: 11.04.2005 Skąd: Poznań Ostrzeżenie: (0%) ![]() ![]() |
Odrazu mowie php 4.
Mam coś takiego index.php:
news.php:
initiate.php:
Czy moge jakoś ominąc odpalanie klas db i smarty w funkcji show (news.php) (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif) Żeby odpalały się w pliku initiate.php bo dodawanie odpalania klas smarty i db za każdym razem jest troche uciążliwe. |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Przyjaciele php.pl Postów: 5 724 Pomógł: 259 Dołączył: 13.04.2004 Skąd: N/A Ostrzeżenie: (0%) ![]() ![]() |
Uzyj standardowego rozwiazania: http://pl.php.net/manual/en/language.oop5.decon.php
Cytat For backwards compatibility, if php 5 cannot find a __construct() function for a given class, it will search for the old-style constructor function, by the name of the class. Effectively, it means that the only case that would have compatibility issues is if the class had a method named __construct() which was used for different semantics. --- Co do bledu -- ktora to linia?, i podaj naglowek funkcji ktora wywolujesz. Ten post edytował dr_bonzo 5.12.2005, 19:01:30 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 11.10.2025 - 07:25 |