スマイルエンジンは新しい種類のホイールです。高性能、スケーラブル、フルスタックのPHP / JSフレームワーク。 Smile Engineは、PWAでのみ機能的でモジュラーで動作します
1 -get 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- app/views/html/modules/のほぼすべてのPHPファイルは例です。
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を開きます(モジュールが表示されます)
コアPHPを知っている場合は、スマイルエンジンの使用方法をすでに知っていますが、JSパートについてはすぐに発言するポイントがいくつか存在します。
PHPファイルとして多くのモジュールを作成します。ただし、リクエストごとに1つまたは最大5つの子モジュールをロードします。
経験がある場合は、プリロードモジュールを作成できます。
このフレームワークは、簡単なスケーラブルなプロジェクトを作成したい機能的プログラマーに適しています
モジュール内の関数を定義することはできません。手続き上のプログラミングを行うか、on_CPU/fn.php on機能を作成します_
既存のすべてのモジュールは例であり、フレームワークの一部ではありません
https://www.linkedin.com/in/toptunes/
オンラインデモ:https://app.abyekiha.com/この番号でパネルにログイン:09354894522