About com_hosting component

Moderator: mindphp

iig75
PHP Jr. Member
PHP Jr. Member
โพสต์: 11
ลงทะเบียนเมื่อ: 26/09/2021 7:40 pm

About com_hosting component

โพสต์ที่ยังไม่ได้อ่าน โดย iig75 »

Hi, I follow video tutorial from youtube step by step, but on chapter 2, I cannot show the forms. I have a mistake somewhere in the end of default.php in foreach (...

The result is "Call to a member function getFieldset() on bool"
com_hosting_2.zip
(4.98 KiB) ดาวน์โหลดแล้ว 105 ครั้ง
Can you help me, Please?
ภาพประจำตัวสมาชิก
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
โพสต์: 41125
ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
ติดต่อ:

Re: About com_hosting component

โพสต์ที่ยังไม่ได้อ่าน โดย mindphp »

Your mean this VDO ?
https://www.youtube.com/watch?v=6mp2cAK ... yC&index=5

Error from this point.

โค้ด: เลือกทั้งหมด

    <?php foreach ($this->form->getFieldset(host_form) as $field) { ?>
host_form
It is not variable or string
Try change

โค้ด: เลือกทั้งหมด

$this->form->getFieldset(host_form)
to

โค้ด: เลือกทั้งหมด

$this->form->getFieldset('host_form') 
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
iig75
PHP Jr. Member
PHP Jr. Member
โพสต์: 11
ลงทะเบียนเมื่อ: 26/09/2021 7:40 pm

Re: About com_hosting component

โพสต์ที่ยังไม่ได้อ่าน โดย iig75 »

Thanks for your fast reply! Yes friend, this VDO. Good tutorial. Congrats!
About my mistake, the 'host_form' are good reason, I correct it, but the result is the same.
Nothing changed... The same error "0 Call to a member function getFieldset() on bool "
ภาพประจำตัวสมาชิก
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
โพสต์: 41125
ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
ติดต่อ:

Re: About com_hosting component

โพสต์ที่ยังไม่ได้อ่าน โดย mindphp »

recheck your xml form on this path
\models\forms\
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
iig75
PHP Jr. Member
PHP Jr. Member
โพสต์: 11
ลงทะเบียนเมื่อ: 26/09/2021 7:40 pm

Re: About com_hosting component

โพสต์ที่ยังไม่ได้อ่าน โดย iig75 »

YES! I wait that will be something small and stupid. I check a 100 times form name in xml file and in default file but I dont check xml file name anyone...
I forgot to change the xml file name to host.xml...
Thank you friend!!! I'm happy, now I can go to part 3!
Best Regards!

SOLVED!
ตอบกลับโพส
  • Similar Topics
    ตอบกลับ
    แสดง
    โพสต์ล่าสุด

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 24