The Web App Path: How To Find Your Way Through The Jungle Of Web Application Development by Scott Hughes

The Web App Path: How To Find Your Way Through The Jungle Of Web Application Development by Scott Hughes

Author:Scott Hughes
Language: eng
Format: azw3, epub
Published: 2016-12-19T08:00:00+00:00


If you save your file, and reload the “Settings” page, you can try saving “Add”. If you go to phpMyAdmin, you’ll see that the value is now in the database.

But we still need to do one more thing. We need to query the database to pull in the current value whenever we load the page. First we need to create a function in our controller.

Make a “getsettings” function after our “savesettings” function. Like most of our controller functions, you want this one to make sure this is an AJAX request and then spit out JSON at the bottom. We can grab this code from the “savesettings” function. When we’re done, it should look like this:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.