| set ( array_data ) | ใช้กำหนด ตัวแปร และ ค่าข้อมูล ที่จะส่งไปยัง page |
|---|
method:set ( array_data );
return type:void
content:ใช้กำหนด ตัวแปร และ ค่าข้อมูล ที่จะส่งไปยัง page
example:$data["title"] = "welcome to bamboolabcode.com"; $data["keyword"] = "function, php, sql, java"; $view = new View ( "users/users_table" ); $view->set ( $data );
comment:ตัวแปร array_data คือกำหนด ตัวแปร และ ค่าข้อมูล ที่จะส่งไปยัง page ที่กำหนด โดย key คือชื่อตัวแปร และ value คือค่าข้อมูลของตัวแปร