I don’t know much about other frameworks like Laraval. From what I’ve seen there’s a lot of setting of json properties. I’d LOVE to see a ‘hello world’ for a simple Laraval app that accesses a database.
Regarding Xanadu, it works like you might imagine. Tomorrow I’ll work to get a live demo up and will post the link here.
A user loads a url. Almost all URLs load via index.php:
require_once( 'init.php' );
// Aloe Load
require_once( 'aloe/framework/load.php' );
// Request Route
require_once( 'router.php' );
// Response Return
- init.php loads constants, settings, classes, and functions.
- Aloe from Tim Dietrich does the session, request, and response management.
- router.php examines the url/request and loads the requested response.
- Finally the response is sent to the user.
If someone requests foo.com/contacts/123, it’s routed to /app/contacts-0-page.php. Here’s what is in /app/contacts:
- The content can be loaded immediately or after the page loads via ajax. Loading immediately is faster.
- The content is loaded via content-1-cards.php which then loads each card.
- The php pages that begin with “do” are ajax calls that do their work in the background and then update the page when the response is sent.
- In the example of do-contacts-name-update.php, when a user edits a field like Last Name the event “onchange” triggers and sends the field info to php via ajax which saves the data. Then the new “full name” in the page header and the name in the list of Contacts are updated.
I hope this helps. Tomorrow I’ll work on an interface video and get the live test site up.