Welcome Guest, Not a member yet? Register   Sign In
submit button not redirecting
#2

Well, given what you've posted here:

- The controller's class and file name should start with an uppercase letter "Email" and "Email.php"
- The constructor should be:

PHP Code:
public function __construct()
{
    
parent::__construct();


(note that it starts with two underscores (__), not one.

- You shouldn't echo from your controller, especially right at the beginning of your send() method, since this may prevent some or all of the code after the echo from executing properly and will eventually cause errors if you try to load a view.
- I'm assuming you just stopped copying the code at whatever point you thought was relevant, as you don't have closing braces for either the send() method or the class.
Reply


Messages In This Thread
submit button not redirecting - by pallu.hegde93 - 11-09-2015, 04:01 AM
RE: submit button not redirecting - by mwhitney - 11-09-2015, 11:33 AM
RE: submit button not redirecting - by InsiteFX - 11-10-2015, 05:07 AM
RE: submit button not redirecting - by mwhitney - 11-10-2015, 01:35 PM
RE: submit button not redirecting - by Martin7483 - 11-11-2015, 01:46 AM
RE: submit button not redirecting - by pdthinh - 11-12-2015, 01:07 AM
RE: submit button not redirecting - by Martin7483 - 11-12-2015, 05:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB