การร้องขอสำหรับ Site
$controller = JControllerLegacy::getInstance('HelloWorld');
$input = JFactory::getApplication()->input;
$controller->execute($input->getCmd('task'));
การร้องขอสำหรับ Admin
$controller = JControllerLegacy::getInstance('HelloWorld');
$input = JFactory::getApplication()->input;
$controller->execute($input->get('task'));
ผมต้องการทราบความแตกต่างของ $input->getCmd('task') และ $input->get('task')
ทำไม? ต้องใช้แตกต่างกันครับ, จริงๆผมทดลองใช้เหมือนกันก็ได้ครับ
สอบถามเกี่ยวกับ task
Moderators: mindphp, ผู้ดูแลกระดาน
-
- PHP Jr. Member
- Posts: 15
- Joined: 24/09/2017 6:05 pm
Re: สอบถามเกี่ยวกับ task
ผมเข้าใจแล้วครับ, $input->getCmd('task') มันจะกรองการการร้องขอที่เข้ามาไม่ว่าจะเป็น POST, GET, REQUEST
และ $input->get('task') มันจะไม่กรองการร้องขอ
และ $input->get('task') มันจะไม่กรองการร้องขอ
-
- Similar Topics
- Replies
- Views
- Last post
-
-
สอบถามเขียน script vb เพื่อรัน .exe ใน task scheduler ตัว task ไม่ทำงาน
by jirawoot » 21/08/2020 11:52 am » in Programming - C/C++ & java & Python - 8 Replies
- 704 Views
-
Last post by jirawoot
21/08/2020 5:32 pm
-
-
-
CRON task ใน phpbb3.1 คืออะไรคับ
by offing » 20/11/2014 3:35 pm » in ปัญหาการใช้ phpBB3, SMF, Joomla, Wordpress, CMS, CRM - 1 Replies
- 1216 Views
-
Last post by mindphp
21/11/2014 12:53 pm
-
-
-
ตั้ง task schedule มาเรียก *.bat ที่เราต้องการ
by jataz2 » 08/05/2019 4:57 pm » in Programming - C/C++ & java & Python - 0 Replies
- 595 Views
-
Last post by jataz2
08/05/2019 4:57 pm
-
-
-
สอบถามเรื่อง cron.task.core เวลาในการตั้งค่า ให้ระบบทำงาน
by thatsawan » 31/07/2020 5:34 pm » in Programming - PHP - 2 Replies
- 397 Views
-
Last post by thatsawan
31/07/2020 6:19 pm
-
-
-
วิธีรันโปรแกรม .bat file ใน task schedule โดยไม่เปิด windows ขึ้นมาให้กวนใจ
by jirawoot » 25/08/2020 4:46 pm » in Python Knowledge - 0 Replies
- 660 Views
-
Last post by jirawoot
25/08/2020 4:46 pm
-
-
- 0 Replies
- 2207 Views
-
Last post by M029
05/01/2016 6:22 pm
-
- 1 Replies
- 586 Views
-
Last post by mindphp
21/10/2016 4:12 am
Who is online
Users browsing this forum: No registered users and 6 guests