SkillAgentSearch skills...

Tinly

Tinly - a minimalistic PHP framework (skeleton). Using MVC

Install / Use

/learn @qzio/Tinly
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

see lib/COPYRIGHT for copyright license.

requirments (i think?) {TODO} php >= 5.2 pdo + mysql driver (php5-mysql?) curl with php bindings if you want to use lib/tcurl. (php5-curl) php5-cli if you whish to use scripts/*

Lets get started!

$ cp example.config.php config.php

-- edit config.php with your settings.

$ cp example.routes.php routes.php

-- edit default routes.

To generate a controller skeleton

$ ./script/generate controller <controller> <action 1> <action 2> ...

To generate a model skeleton

$ ./script generate model <model>

-- edit app/model/blog_post.php and set $tbl to plural. You might want to some add columns to $fields.

To install a model(table) [which extends tinly_model] (this will do sql create table, or sql alter table adding columns)

$ ./script/db install <model>

To drop all tables in configured database

$ ./script/db empty all

If you need more scaffolding, build your own /scripts/my_generate

Related Skills

View on GitHub
GitHub Stars6
CategoryDevelopment
Updated2y ago
Forks3

Languages

PHP

Security Score

55/100

Audited on Apr 4, 2023

No findings