อันนี้เป็นโค้ด php ที่ผมเขียนครับ ผมใช้ php 5.1.6
[code]
<?php
class B1
{
อันนี้เป็นโค้ด php ที่ผมเขียนครับ ผมใช้ php 5.1.6
[code]
<?php
class B1
{
Note: Parent constructors are not called implicitly if the child class defines a constructor. In order to run a parent constructor, a call to parent::__construct() within the child constructor is required.
Reference: http://th2.php.net/manual/en/language.oop5.decon.php
Try this
[code]<?php
class BaseClass {
ขอบคุณนะครับ ตอบปุ้บ ผมกระจ่างเลยครับ หายโง่ขึ้นมาทันตาเห็น ...
หลังจากส่งสัยมานานว่าทำไม มันไม่ยอมเรียก Constructor คลาสแม่ซะที
ความรู้คราวนี้ จำไปนานเลย ...
Actions : (View-Readers)
There are no names to display.