YekCMS is an open source CMS system for your web applications and has included frontend and backed packages for convenience.
| Frontend | Backend |
|---|---|
| Jquery | AltoRouter |
| Bootstrap | Medoo |
| Materializecss |
Create new method and call this method in your page file
$this->addMethod("HelloWord",function(){
echo 'Hello Word';
});If you want the call function with params ,just type $params = null in function construction.
$this->addMethod("HelloWorld",function($params = null){
# get param1 with setParams function
# setParams function arguments
# $params , indexed or associative arrays
# int , value key
$param1 = setParams($params,0);
echo $param1;
});/src/methods/HelloWorld.php
<?php
$this->addMethod("HelloWorld",function(){
echo 'Hello World';
});
?>And include this method from /src/methods/load.php
...
include __DIR__.'/HelloWorld.php';/src/pages/home.php
<html>
<head>
<?php
$this->method->meta();
$this->method->css_lib();
$this->method->css_local();
?>
<title><?= SITE_NAME ?></title>
</head>
<body>
<?php $this->method->HelloWorld(); ?>
</body>
<?php
$this->method->js_lib();
$this->method->js_local();
?>
</html>File Structure
.
├── LICENSE
├── README.md
├── asset
│ ├── css
│ │ └── CSS Files Here
│ ├── js
│ │ └── JS Files Here
│ └── svg
| └── JS Files Here
├── lib
│ ├── AltoRouter
│ ├── Bootstrap
│ ├── Jquery
│ ├── Medoo
│ ├── Tailwind
│ ├── Font Awesome
│ └── materialize
└── src
├── admin
│ └── admin cms area
├── methods
│ └── method files
├── pages
│ └── Pages 404, home etc..
└── functions page , router etc..
