-
Book Overview & Buying
-
Table Of Contents
Programming with CodeIgniter MVC
By :
In this example, we will use the CI third-party SSL helper to enforce an https or HTTP URI request and response between CI and the browser. This example will be constructed from the following helpers:
application/helpers/ssl_helper.php: The CI helper for SSL that implements SSL on the links.
application/controllers/helpersslexample.php: This controller loads the helper and implements SSL on the links. The helper is loaded in the constructor.
$this->load->helper('ssl');
application/views/helper-ssl-view.php: This is the rendered view that SSL is implemented on.
Let us assume the URI to the project root is http://mydomain.com/myproject. http://mydomain.com/myproject/helpersslexample.
The source code is provided with this book via URLs.
This CI helper file implements the services described in the preceding section. This helper uses the built-in CI URL library and URL helper using the redirect CI URL helper function.
<?php if ( ! defined('BASEPATH...
Change the font size
Change margin width
Change background colour