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"
Can you help me, Please?
About com_hosting component
Moderator: mindphp
-
- PHP Jr. Member
- โพสต์: 11
- ลงทะเบียนเมื่อ: 26/09/2021 7:40 pm
- mindphp
- ผู้ดูแลระบบ MindPHP
- โพสต์: 41251
- ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
- ติดต่อ:
Re: About com_hosting component
Your mean this VDO ?
https://www.youtube.com/watch?v=6mp2cAK ... yC&index=5
Error from this point.
Try change to
https://www.youtube.com/watch?v=6mp2cAK ... yC&index=5
Error from this point.
โค้ด: เลือกทั้งหมด
<?php foreach ($this->form->getFieldset(host_form) as $field) { ?>
It is not variable or stringhost_form
Try change
โค้ด: เลือกทั้งหมด
$this->form->getFieldset(host_form)
โค้ด: เลือกทั้งหมด
$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
ติดตาม 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
-
- PHP Jr. Member
- โพสต์: 11
- ลงทะเบียนเมื่อ: 26/09/2021 7:40 pm
Re: About com_hosting component
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 "
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
- โพสต์: 41251
- ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
- ติดต่อ:
Re: About com_hosting component
recheck your xml form on this path
\models\forms\
\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
ติดตาม 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
-
- PHP Jr. Member
- โพสต์: 11
- ลงทะเบียนเมื่อ: 26/09/2021 7:40 pm
Re: About com_hosting component
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!
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
- ตอบกลับ
- แสดง
- โพสต์ล่าสุด
-
- 0 ตอบกลับ
- 4539 แสดง
-
โพสต์ล่าสุด โดย mcmakdonal
26/05/2015 12:05 pm
ผู้ใช้งานขณะนี้
สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 2