Skip to content

Advanced db-client providing generic CRUD-functionality to CakePhp-based applications

License

Notifications You must be signed in to change notification settings

hashmich/CakeClient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CakeClient

Database client plugin, providing generic CRUD-functionality for all database tables in CakePhp-based applications

Install as a submodule using:

git submodule add https://github.com/hashmich/CakeClient.git app/Plugin/Cakeclient

Models & Controllers

... don't need to be neccessarily existant. Cake generates them dynamically and CakeClient CrudComponent provides all required functionality for them.

Database Design Conventions

To figure out controller and model names, primary keys and entity relations, CakePhp heavily relies on conventions. Please read their documentation concerning that.

Basically, table names have to be in plural. The Inflector class is being used to derive the class names according to the schema below:

table_names -> TableNamesController -> TableName -> table_names

blog_posts -> BlogPostsController -> BlogPost -> blog_posts

Primary key name should be "id".

Foreign keys should be "<singular_foreign_table_name>_id", eg. "blog_post_id".

About

Advanced db-client providing generic CRUD-functionality to CakePhp-based applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published