Skip to content

Repository files navigation

YekCMS | PHP Web Application Framework

Gitpod Ready-to-Code Build Status LICENCE

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

Methods

Create new method and call this method in your page file

Normal Method

$this->addMethod("HelloWord",function(){
  echo 'Hello Word';
});

With Param

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;
});

Page Structure and Method Calling

/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..

About

PHP cms scipt

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages