mirror of
https://github.com/magicbug/Cloudlog
synced 2024-11-23 18:24:25 +00:00
25 lines
510 B
PHP
25 lines
510 B
PHP
|
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||
|
|
||
|
/*
|
||
|
|
||
|
Widgets are designed to be addons to use around the internet.
|
||
|
|
||
|
*/
|
||
|
|
||
|
class Widgets extends CI_Controller {
|
||
|
|
||
|
public function index()
|
||
|
{
|
||
|
// Show a help page
|
||
|
}
|
||
|
|
||
|
|
||
|
// Can be used to embed last 11 QSOs in a iframe or javascript include.
|
||
|
public function qsos() {
|
||
|
$this->load->model('logbook_model');
|
||
|
|
||
|
$data['last_five_qsos'] = $this->logbook_model->get_last_qsos('11');
|
||
|
|
||
|
$this->load->view('widgets/qsos', $data);
|
||
|
}
|
||
|
}
|