Smile Engine เป็นล้อรูปแบบใหม่ เฟรมเวิร์ก PHP / JS ที่มีประสิทธิภาพสูง Smile Engine ใช้งานได้และเป็นโมดูลสำหรับ PWA เท่านั้น
1 - รับ https://github.com/toptunes/Smile_Engine-Demo
It will work only in the root folder or if you use XAMPP make changes in the XAMPP setting:
DocumentRoot "c:/xampp/htdocs/Smile_Engine-Demo"
If you use DirectAdmin or Cpanel you should install it in the /public/ directory
2 - ไปที่ /CPU/conn.php และตั้งชื่อฐานข้อมูลและรหัสผ่านเป็น MySQL (ใช้งานได้กับ MySQLI - ยังไม่มี PDO)
After you set the database name, Import this structure as an example.
https://github.com/toptunes/Smile_Engine-Demo/blob/master/database_name.sql
3 - ไฟล์ PHP เกือบทั้งหมดใน app/views/html/modules/ เป็นตัวอย่าง
4 - สร้างไฟล์ใหม่ your_module_name.php in /modules/ และคัดลอกรหัสนี้ด้านล่าง
<?php
$ html_final = module ( ' div ' , ' your_module_name ' , '
Here you can write HTML, JSON, or just write hello world
If you want to use JSON you should learn how to make preload modules
' );
?>5 - ถ้าคุณใช้ XAMPP ให้เปิด http://127.0.0.1/your_module_name (คุณสามารถดูโมดูล)
หากคุณรู้จัก Core PHP คุณรู้วิธีใช้ Smileengine อยู่แล้ว แต่มีบางจุดเกี่ยวกับ JS Part ที่ฉันจะพูดเร็ว ๆ นี้!
เราจะสร้างโมดูลจำนวนมากเป็นไฟล์ PHP แต่ตามคำขอจะโหลดโมดูลเด็กหนึ่งหรือสูงสุด 5 โมดูล
หากคุณมีประสบการณ์คุณสามารถสร้างโมดูลล่วงหน้าได้
เฟรมเวิร์กนี้เหมาะสำหรับโปรแกรมเมอร์ที่ใช้งานได้ซึ่งต้องการสร้างโครงการที่ปรับขนาดได้ง่าย
คุณไม่สามารถกำหนดฟังก์ชั่นภายในโมดูล ทำโปรแกรมขั้นตอนหรือทำฟังก์ชั่น on_ cpu/fn.php _
โมดูลที่มีอยู่ทั้งหมดเป็นตัวอย่างและไม่ได้เป็นส่วนหนึ่งของเฟรมเวิร์ก
https://www.linkedin.com/in/toptunes/
การสาธิตออนไลน์: https://app.abyekiha.com/ เข้าสู่ระบบด้วยหมายเลขนี้: 0935489452222