Views: 49Contact Form Workflow The workflow of the codeigniter contact form we build goes like this. Create a simple contact form for the user to enter ‘name’, ’email-id’, ‘subject’ and ‘message’. Upon proper server side validation we should insert the form data into database. If the database insert operation succeeds, we notify the user with some success message […]
Category: CodeIgniter
CodeIgniter Contact Form Tutorial with Email Sending Option
Views: 34Building CodeIgniter Contact Form The Controller File Create a file named “contactform.php” inside application >> controllers folder. Codeigniter provides email library which makes the mail sending task very easier for us. First let’s load the required libraries and helpers in the controller. Next create a custom validation function to allow only alphabets and space for the name […]
Create, Read, Update and Delete in Codeigniter
Views: 4005 Codeigniter follows MVC pattern So, Here we will create separate pages for Model, View & Controllerfor Model, the page name will be Model_modulename.php Ex: Model_banner.php Respectively for Controller, page name will be Modulename.php Ex: Banner.php For views we will create multiple pages separately for Add, Edit and View .The names will be view_banner_add.php, view_banner_edit.php & view_banner_view.php […]