Welcome Guest, Not a member yet? Register   Sign In
404 not found!
#5

(This post was last modified: 03-14-2018, 04:10 PM by richb201.)

well, as I said the document root is c:/xampp/htdocs/sub_crud. Within the sub_crud dir
c:
xampp  
  htdocs
    sub_crud   << document root
       application  
           controllers
               Configure.php   <<main controller
A user of the main program enters localhost in the browser and the Configure controller runs. Eventually this thing will be hosted on Google Cloud but I am still developing the app.

I am not sure how to architect this.

My Chrome Extension has two functions: a) login b)submit
Login sends an email string to my localhost. The program on localhost gets the email address looks it up in my database and sends back some JSON data that the Extension uses to populate its popup.html. How should the executable that gets the email string be configured? This being a CI centric place I have had some comments to just use a controller and a model. I could probably set up a route in my Configure controller called login that can be called like this from the Extension

xhr.open("GET", "http://localhost/login/".emailaddress, true);

So this would use the same controller as my regular application (which is a Grocery Crud app). It is a little strange to me to use a CI application as a daemon, but I guess it could work? As long as every user running my regular old Configure app is running a separate process. In the "olden days" we would spawn threads for something like this, but I really want to do this as simply as modernly possible. So to recap, when a call is made to xhr.open("GET", "http://localhost/login/".emailaddress, true) a new copy of my controller will run the "login route". Right? Can I start execution on a new CI process from a xhr.open?
proof that an old dog can learn new tricks
Reply


Messages In This Thread
404 not found! - by richb201 - 03-14-2018, 11:22 AM
RE: 404 not found! - by jreklund - 03-14-2018, 11:30 AM
RE: 404 not found! - by richb201 - 03-14-2018, 02:04 PM
RE: 404 not found! - by ciadmin - 03-14-2018, 03:20 PM
RE: 404 not found! - by richb201 - 03-14-2018, 03:56 PM
RE: 404 not found! - by ciadmin - 03-14-2018, 04:28 PM
RE: 404 not found! - by richb201 - 03-15-2018, 12:43 AM
RE: 404 not found! - by ciadmin - 03-15-2018, 01:54 AM
RE: 404 not found! - by richb201 - 03-16-2018, 07:19 AM
RE: 404 not found! - by ciadmin - 03-16-2018, 08:06 AM
RE: 404 not found! - by richb201 - 03-16-2018, 06:31 PM
RE: 404 not found! - by ciadmin - 03-16-2018, 09:19 PM
RE: 404 not found! - by richb201 - 03-17-2018, 02:45 AM
RE: 404 not found! - by jreklund - 03-17-2018, 05:16 AM
RE: 404 not found! - by richb201 - 03-17-2018, 07:07 AM
RE: 404 not found! - by jreklund - 03-17-2018, 08:27 AM
RE: 404 not found! - by richb201 - 03-18-2018, 06:59 AM
RE: 404 not found! - by InsiteFX - 03-18-2018, 02:20 PM



Theme © iAndrew 2016 - Forum software by © MyBB