Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [Kohana] missing argument construct
nmts
post
Post #1





Grupa: Zarejestrowani
Postów: 283
Pomógł: 34
Dołączył: 21.03.2008

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


  1. class Image extends Image_Core {
  2.  
  3. public function __construct()
  4. {
  5. parent::__construct();
  6. }
  7.  
  8.  
  9. public function WaterMark(){
  10. echo 1234;
  11. }
  12.  
  13. }


Chcąc rozszerzyć bibliotekę otrzymuje taki komunikat:

  1. Missing argument 1 for Image_Core::__construct(), called in H:\Apache Group\Apache2\htdocs\kohana2\application\libraries\MY_Image.php on line 7 and defined


O co mu chodzi? (IMG:style_emoticons/default/tongue.gif)

Gdy w rozszerzeniu dodam do konstruktora argumenty takie jak ma rodzic to pojawia się:

  1. 1234
  2. Fatal error: Call to a member function save() on a non-object in H:\Apache Group\Apache2\htdocs\kohana2\application\models\photo.php on line 33


Ten post edytował nmts 10.12.2009, 22:58:22
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: 14.10.2025 - 18:09