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

(03-15-2018, 12:43 AM)richb201 Wrote: >>If a stand-along controller, but you use a POST, then the signature would be Login::index() and you would use $this->input->post('email') to retrieve the parameter.

I created Subit_backend.php and put it in the controllers directory. What does it mean "the signature would be Login::index()"? Can you point me at some part of the documentation that describes setting up such a thing? I have no idea what "::" means.

thx

That is just a generic notation for the "index" method inside the "Login" controller.
It's probably more from the Java world than PHP, but I find it gets the message across.
See https://docs.oracle.com/javase/tutorial/...ences.html

If "Subit_backend" is the endpoint that you want to use for login, using its default method, then that signature would be "Subit_backend::index()", where the empty parameter list implies no arguments. If you want parameters for an "index" method, then you could set up a routing rule for that, or else extract the parameters programmatically.
See https://www.codeigniter.com/user_guide/g...llers.html
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