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

Creating the views


There are only three views in this project, which are as follows:

  • /path/to/codeigniter/application/views/create/create.php: This displays a form to the user allowing them to upload an image.

  • /path/to/codeigniter/application/views/create/result.php: This displays a link that the user can use to forward other people to the image, as well as the image itself.

  • /path/to/codeigniter/application/views/nav/top_nav.php: This displays the top-level menu. In this project it's very simple, containing a project name and a link to go to the create controller.

So those are our views, as I said, there are only three of them as it's a simple project. Now, let's create each view file.

  1. Create the /path/to/codeigniter/application/views/create/create.php file and add the following code to it:

    <div class="page-header">
      <h1><?php echo $this->lang->line('system_system_name'); ?></h1>
    </div>
    
    <p><?php echo $this->lang->line('encode_instruction_1...