-
Normal database backed form with AJAX JQuery code in js/add_edit.js
-
Modelless Form with AJAX JQuery code in js/global.js
-
View Helper PostsHelper that modifies the XML output
- Inspired by: CakePHP 3 Documentation
- Access it via http://localhost:8765/posts.xml
- src/View/Helper/PostsHelper.php
- src/Template/Posts/xml/index.ctp
Clone the repository to your local drive
Change directory into the repository and:
Get composer
curl -s https://getcomposer.org/installer | php
Because composer.json contains all the needed packages run composer to complete the install of the vendor/cakephp and other files
php composer.phar install
Create the posts database
mysql -u<username> -p < config/schema/posts.sql
Modify config/app.php to connect to the database
Run the cakephp internal server
bin/cake server
connect with browser to
http://localhost:8765/posts <== Connects to the AJAX Form Validation example
http://localhost:8765/ <== connects to the timezone AJAX/Modelless Form Example