puneetxp/the_template_php

PHP template for The framework

Installs: 52

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Language:HTML

Type:template

0.0.4.23 2024-03-02 13:07 UTC

README

Roadmap to compile in multiple Languages Roadmap to be decide.

First Step

Go to App/Karl/setup/model/ where is json you can create new json file accordingly

{
    "name": "user",//MODEL NAME
    "table": "users",//TABLE NAME
    "crud": ["c", "r", "u","d"],//CREATE UPDATE READ DELETE
    "data": [{
            "name": "password",//name of database
            "mysql_data": "varchar(255)",//mysql database
            "sql_attribute": "NULL",//mysql sql_attribute 
            //if there is no sql_attribute then it is NOT NULL so you can skip it
            "datatype": "string"//for interface file
        }],
    "roles": {
        "read": ["admin"],//roles allow to read
        "update": ["admin"],//roles allow to update
        "write": ["admin"],//roles allow to write
        "delete": ["-"]//roles allow to delete
    }
}

Then Run App/Karl/setup/autosetup.php

That will create Controller, Routes, Model, Also Interface in typesript for your front end