No route found for "GET /viewtopic_share.php"
[code]share_facebook_controller:
pattern: /share_facebook/{name}
defaults: { _controller: mindphp_extenstion.share_facebook.controller:base, page: 1 }
share_facebook_page_controller:
pattern: /share_facebook/{page}
defaults: { _controller: mindphp_extenstion.share_facebook.controller:base }
requirements:
page: \d+[/code]
แสดง No route found : ตอน สร้างไฟล์ controller
Moderators: mindphp, ผู้ดูแลกระดาน
-
- PHP VIP Members
- Posts: 19916
- Joined: 31/03/2014 10:02 am
- Contact:
-
- PHP VIP Members
- Posts: 19916
- Joined: 31/03/2014 10:02 am
- Contact:
Re: แสดง No route found : ตอน สร้างไฟล์ controller
service.yml ก็กำหนดเเล้วด้วย ?
Code: Select all
mindphp_extenstion.share_facebook.controller:
class: mindphp_extenstion\share_facebook\controller\viewtopic_share
arguments:
- @config
- @template
- @user
- @controller.helper
- %core.root_path%
- %core.php_ext%
- mindphp
- ผู้ดูแลระบบ MindPHP
- Posts: 22585
- Joined: 22/09/2008 6:18 pm
- Contact:
Re: แสดง No route found : ตอน สร้างไฟล์ controller
สร้างไฟล์ ใน controller หรือยังครับ
ติดตาม 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 VIP Members
- Posts: 19916
- Joined: 31/03/2014 10:02 am
- Contact:
Re: แสดง No route found : ตอน สร้างไฟล์ controller
สร้างเเล้ว ค่ะ
ตอนนี้
Catchable fatal error: Argument 1 passed to mindphp_extenstion\share_facebook\controller\viewtopic_share::__construct() must be an instance of phpbb\config\config, instance of phpbb\auth\auth given in E:\xampp\htdocs\phpbb_rc2_new\ext\mindphp_extenstion\share_facebook\controller\viewtopic_share.php on line 25
ลบเเคชเเล้วไม่หาย
ตอนนี้
Catchable fatal error: Argument 1 passed to mindphp_extenstion\share_facebook\controller\viewtopic_share::__construct() must be an instance of phpbb\config\config, instance of phpbb\auth\auth given in E:\xampp\htdocs\phpbb_rc2_new\ext\mindphp_extenstion\share_facebook\controller\viewtopic_share.php on line 25
ลบเเคชเเล้วไม่หาย
Code: Select all
public function __construct(\phpbb\config\config $config, \phpbb\template\template $template, \phpbb\user $user, \phpbb\controller\helper $helper, $root_path, $php_ext)
{
$this->config = $config;
$this->template = $template;
$this->user = $user;
$this->helper = $helper;
$this->root_path = $root_path;
$this->php_ext = $php_ext;
}
- mindphp
- ผู้ดูแลระบบ MindPHP
- Posts: 22585
- Joined: 22/09/2008 6:18 pm
- Contact:
Re: แสดง No route found : ตอน สร้างไฟล์ controller
Argument
ในไฟล์ yml กับ ใน ฟังก์ชั่นที่เราสร้างไม่ตรงกัน
ในไฟล์ yml กับ ใน ฟังก์ชั่นที่เราสร้างไม่ตรงกัน
ติดตาม 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
Users browsing this forum: No registered users and 21 guests