Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [php]non-object
styx
post
Post #1





Grupa: Zarejestrowani
Postów: 138
Pomógł: 3
Dołączył: 21.11.2005

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


Witam

Używałem kiedyś taką klasę(nie jest moja wzięta z neta), teraz odpalam i mam taki błąd. O co tu chodzi? php4/5

  1. <?php
  2. class ExtraGrid extends Structures_DataGrid
  3. {
  4. function ExtraGrid($limit = null, $page = null)
  5. {
  6. parent::Structures_DataGrid($limit, $page);
  7.  
  8.  $this->renderer->setTableAttribute('width', '100%'); //61 Line
  9.  $this->renderer->setTableAttribute('cellspacing', '0');
  10.  $this->renderer->setTableAttribute('cellpadding', '0');
  11.  $this->renderer->setTableAttribute('style', 'font-size:12px');
  12.  $this->renderer->setTableOddRowAttributes(array('style'=> 'background-color:#AAAAAA;'));
  13.  $this->renderer->setTableEvenRowAttributes(array('style'=> 'background-color:#CCCCCC;'));
  14.  
  15.  }
  16. }
  17. ?>

Błąd

Fatal error: Call to a member function setTableAttribute() on a non-object in /home/lordstyx/public_html/wp/klient.php on line 61
" title="Zobacz w manualu PHP" target="_manual



Pozdrawiam
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: 25.12.2025 - 02:50