This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error_reporting(E_ERROR); | |
ini_set('display_errors', 1); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->rest->get('enquiry_document_markup', array('document_id' => $document_id, 'environment' => 'test'), 'json'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->load->helper('date'); | |
$today = date('Y-m-d H:i:s'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//pagination | |
$this->load->library('pagination'); | |
$per_page = 15; | |
$config['uri_segment'] = 3; | |
$config['base_url'] = '/'; | |
$config['anchor_class'] = ' class="pagination" '; | |
$config['total_rows'] = TOTAL_RECORDS; | |
$config['per_page'] = $per_page; | |
$config['use_page_numbers'] = TRUE; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$userdata = array( | |
'username' => $this->session->userdata('username'), | |
'account' => $this->session->userdata('company'), | |
'email' => $this->session->userdata('email') | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->session->set_userdata($userarray); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$this->load->library("session"); | |
session_start(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$today = date('Y-m-d h:i:s'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// send an email | |
$this->load->library('email'); | |
$this->email->from('[email protected]','Me Friendly Name'); | |
$this->email->to("[email protected]"); | |
$this->email->subject('SUBJECT'); | |
$this->email->message("MESSAGE"); | |
$this->email->send(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
border-radius:5px; | |
-moz-border-radius: 5px; | |
-khtml-border-radius: 5px; | |
-webkit-border-radius: 5px; |
NewerOlder