- In the command console go to your project root directory. In my case this is:
C:\wamp64\www\colab - Enter the command like:
- cake bake all TableNameLikeThis
- cake bake controller TableNameLikeThis
- cake bake model TableNameLikeThis
- cake bake template TableNameLikeThis
This has been a long project to develop a data driven game. Initially I wanted to the able to enter the game data using a website developed using CakePHP. The game itself would be developed in Unity 3D using the exported data. However this has now changed to the entire game being developed using CakePHP.. The posts that I've made are for things that I found difficult to solve and I've put them here for my own future reference. They are also for anyone else who might find them useful.
Showing posts with label cake. Show all posts
Showing posts with label cake. Show all posts
Tuesday, September 17, 2019
How to Bake in CakePHP 3
Wednesday, February 6, 2019
How to add a plugin to CakePHP 3
As my Unity game is data driven I'm using Cake 3 (which uses PHP) to create and edit data in a MySQL database. The database tables are then exported as CSV files and imported into Unity as resource files.
I had a bit of trouble getting the cakephp-csvview plugin to install so I used a combination of steps from the following to web pages.
The first link is the one that finally got things working.
1. From the console on your web server navigate to the directory where your cake project lives. Be sure to open the console as Administrator.
2. Install the plugin with the command:
I had a bit of trouble getting the cakephp-csvview plugin to install so I used a combination of steps from the following to web pages.
- https://github.com/FriendsOfCake/cakephp-csvview
- https://andy-carter.com/blog/exporting-data-to-a-downloadable-csv-file-with-cakephp-3-and-csvview
The first link is the one that finally got things working.
1. From the console on your web server navigate to the directory where your cake project lives. Be sure to open the console as Administrator.
2. Install the plugin with the command:
composer require friendsofcake/cakephp-csvview3. Load the plugin with the command:
bin\cake plugin load CsvView4. In the Cake project edit the file config/bootstrap.php and add the following line in the plugins section near the end of the file:
Plugin::load("CsvView");The plugin should now be installed and ready to use.
Subscribe to:
Posts (Atom)