พูดคุย phpBB3, SMF ปัญหา การติดตั้ง ปัญหา การลง Mod การแก้ไข หน้าตาบอร์ด การใช้งาน Joomla 1.5, 1.6, 1.7, 2.5 ,3.x รวมถึง Joomla 4 การใช้งาน wordpress และ CMS อื่นๆ
การตั้งคำถาม ควรระบุรุ่นที่ใช้ ในการตั้งคำตามด้วย นะ เช่น SMF 1.1.4 หรือ SMF2.0, OpenERP, Odoo และ รายละเอียดของ server OS, php เวอร์ชั่นไหน ฐานข้อมูลอะไร
Moderator: mindphp
กฎการใช้บอร์ด
คำถามหมวดนี้ ควรระบุ รายละเอียดของ Server OS, เวอร์ชั่น ของ PHP, CMS ที่ท่านใช้
รวมถึง Hosting หรือ Control Panel Hosting
-
AePongsak
- PHP VIP Members
- โพสต์: 4996
- ลงทะเบียนเมื่อ: 17/09/2016 10:09 am
โพสต์ที่ยังไม่ได้อ่าน
โดย AePongsak »
URL : http://localhost/mtb31/app.php/m_check_pass/check.php
ส่วนของไฟล์ controller // check.php
โค้ด: เลือกทั้งหมด
<?php
namespace mindphp\m_check_pass\controller;
class main
{
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;
}
public function base($page = 1)
{
return $this->helper->render('checkpass_body.html');
}
}
?>
ส่วนของ Config // routing.yml
โค้ด: เลือกทั้งหมด
m_check_pass_controller:
pattern: /m_check_pass
defaults: { _controller: mindphp.m_check_pass.controller:base, page: 1 }
ส่วนของ Template
โค้ด: เลือกทั้งหมด
<!-- INCLUDE overall_header.html -->
Test Sample1 By Mindphp.com
<!-- INCLUDE overall_footer.html -->
ผลที่ต้องการคือให้แสดงข้อความในเทมเพลต
ξν℮ry story has an end but in life every end is a neω ßeginning.
-
-
- 1 ตอบกลับ
- 886 แสดง
-
โพสต์ล่าสุด โดย mindphp
01/09/2014 6:35 pm
-
-
- 3 ตอบกลับ
- 1342 แสดง
-
โพสต์ล่าสุด โดย thatsawan
31/08/2016 7:51 pm
-
-
- 0 ตอบกลับ
- 1005 แสดง
-
โพสต์ล่าสุด โดย thatsawan
23/04/2016 2:06 pm
-
-
- 1 ตอบกลับ
- 694 แสดง
-
โพสต์ล่าสุด โดย eange08
09/03/2023 10:42 am
-
-
- 2 ตอบกลับ
- 902 แสดง
-
โพสต์ล่าสุด โดย M034
24/05/2016 4:25 pm
สมาชิกกำลังดูบอร์ดนี้: ไม่มีสมาชิกใหม่ และบุคลทั่วไป 90