Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> __PHP_Incomplete_Class Object
wojto
post
Post #1





Grupa: Zarejestrowani
Postów: 158
Pomógł: 0
Dołączył: 29.06.2003
Skąd: Warszawa

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


witam,
na stronie moje sesje przyjmuja taka wartosc:
Kod
Array
(
    [language] => language Object
        (
            [lang_name] => __PHP_Incomplete_Class Object
                (
                    [__PHP_Incomplete_Class_Name] => language
                    [lang_name] => russian
                )

        )

)

znalazlem w necie info, ze __PHP_Incomplete_Class Object jest jakims bledem w php :/
czy ktos z was sie spotkal z takim bledem i wie jak temu zapobiec?

klasa language jest prosta:
  1. <?php
  2. class language
  3. {
  4. function language() {
  5. return true;
  6. }
  7.  
  8. function load_file($file) {
  9. global $lang, $auth;
  10.  
  11. if (file_exists(SITE_ADRESS.'languages/'.$auth -> user_language.'/'.$file)) {
  12. include_once(SITE_ADRESS.'languages/'.$auth -> user_language.'/'.$file);
  13. return true;
  14. } else {
  15. return false;
  16. }
  17. }
  18. }
  19.  
  20. ?>

tworzenie: $language = new language();

// aha, na localhoscie dziala ok

pzdr. wojto

Ten post edytował wojto 7.09.2005, 14:58:54
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: 23.12.2025 - 15:29