event กับ controller ต่างกันยังไงค่ะ
Moderators: mindphp, ผู้ดูแลกระดาน
-
- PHP Super Member
- Posts: 258
- Joined: 28/03/2016 10:21 am
- Contact:
event กับ controller ต่างกันยังไงค่ะ
ตอนนี้ยังไม่เข้าใจโค๊ดเลยค่ะ
- thatsawan
- PHP VIP Members
- Posts: 28005
- Joined: 31/03/2014 10:02 am
- Contact:
Re: event กับ controller ต่างกันยังไงค่ะ
ไม่เข้าใจ ต้องการอะไร ถามเรื่องโค้ด หรือ ถามอะไรค่ะ โปรแกรมไหน
-
- PHP Super Member
- Posts: 258
- Joined: 28/03/2016 10:21 am
- Contact:
Re: event กับ controller ต่างกันยังไงค่ะ
โค๊ดค่ะ ไม่เข้าใจโค๊ดในส่วนของโฟล์เดอร์ event ค่ะ
Code: Select all
public function posting_modify_template_vars1($event) {
global $db, $config, $table_prefix;
if ($config['classified_config'] == 1) {
$page_data = $event['page_data'];
$mode = $event['mode'];
$draft_id = request_var('d', 0);
$sql = 'SELECT * from ' . DRAFTS_TABLE . ' where draft_id = ' . $draft_id;
$query = $db->sql_query($sql);
$fetch = $db->sql_fetchrow($query);
if (!empty($fetch) && ($draft_id != 0)) {
foreach ($this->user->lang['classified_con_type'] as $key => $value) {
$SELECTED = false;
$value = trim($value);
$fetch['classified_condition_type'] = trim($fetch['classified_condition_type']);
if (($fetch['classified_condition_type'] == $value)) {
$SELECTED = true;
}
$this->template->assign_block_vars('classified_con_type', array(
'KEY_TYPE' => $key,
'VALUE_TYPE' => $value,
'SELECTED_C' => $SELECTED,
));
}
-
- Similar Topics
- Replies
- Views
- Last post
-
-
ปัญหาสร้าง Controller ให้เรียก event ภายในไฟล์โดยไม่ต้องสร้างไฟล์ event
by thatsawan » 15/04/2016 11:02 pm » in Programming - PHP - 0 Replies
- 309 Views
-
Last post by thatsawan
15/04/2016 11:02 pm
-
-
- 0 Replies
- 527 Views
-
Last post by AePongsak
29/12/2017 5:12 pm
-
-
Yii Framework อ่านชื่อ controller ใน controller หรือ View
by mindphp » 05/06/2011 2:34 pm » in Share Knowledge - 0 Replies
- 1716 Views
-
Last post by mindphp
05/06/2011 2:34 pm
-
-
- 3 Replies
- 500 Views
-
Last post by thatsawan
31/08/2016 7:51 pm
-
-
event ใน phpbb สามารถรับค่าจาก event อื่นมาใช้ได้มั้ยค่ะ ทำยังไงค่ะ
by thatsawan » 24/05/2015 1:41 pm » in Programming - PHP - 3 Replies
- 419 Views
-
Last post by mindphp
24/05/2015 5:43 pm
-
-
-
วิธีการส่งค่า จาก Event หนึ่งไปยัง Event หนึ่ง ใน phpbb
by Ittichai_chupol » 20/12/2019 6:59 pm » in PHP Knowledge - 0 Replies
- 178 Views
-
Last post by Ittichai_chupol
20/12/2019 6:59 pm
-
Who is online
Users browsing this forum: Google [Bot] and 12 guests