Book Image

CodeIgniter Web Application Blueprints

Book Image

CodeIgniter Web Application Blueprints

Overview of this book

Table of Contents (16 chapters)
CodeIgniter Web Application Blueprints
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Putting it all together


Okay, here are a couple of examples that will help put everything together.

User creates a job advert

Let's see how the process of creating a job advert exactly works:

  1. The user visits the site and is presented with a list of jobs, a search box, and a navigation bar.

  2. The user wishes to create a new job so they click on the Create link contained in the views/nav/top_nav.php file.

  3. CodeIgniter loads the jobs controller's create() function.

  4. The create() function displays the form in the views/jobs/create.php view file. There are three HTML dropdown form elements that allow the user to choose a job type, category, and location. These dropdowns are populated by the get_types(), get_categories() and get_locations() functions of Jobs_model, respectively.

  5. The user fills in the form and clicks on Go to submit the form.

  6. The form is submitted to the jobs controller's create() function; it is validated and passed.

  7. The jobs controller's create() function sends the validated form input to...