首页 > 解决方案 > 全日历插件更改表

问题描述

我有一个小问题。在我的 Cakephp 3.6 项目中,我使用了来自curtisblack2004的CakePHP-Full-Calendar-Plugin 插件

https://github.com/curtisblack2004/CakePHP-Full-Calendar-Plugin

我安装了插件,一切正常。我想将表的名称从“事件”(在插件中使用)更改为“课程”并彻底改变结构。我在哪里可以这样做?有人能帮我吗 ?也许这是一件微不足道的事情,但我被困住了,我不知道如何继续。

标签: javascriptphppluginsfullcalendarcakephp-3.0

解决方案


As I see in the repository of plugin, you may follow these quick steps:

1- change the tables names in the sql found here 2- change your models/controllers names based on that. example, if your your events tables becomes >lessons>, then in controller folder, EventsController.php should become LessonsController.php. You need to rename Everything related to Events into Lessons, in differents folders.


推荐阅读