-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwordcloud.php
42 lines (37 loc) · 1.03 KB
/
wordcloud.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* Wordcloud public controller
*
* @author Steve Williamson
* @link http://www.appsygna.com
* @package PyroCMS
* @subpackage Wordcloud Module
* @category controller
*/
class Wordcloud extends Public_Controller {
/**
* Constructor method
*
* @access public
* @return void
*/
function __construct()
{
parent::__construct();
$this->load->driver('streams');
$this->lang->load('wordcloud');
}
function index()
{
$params = array(
'stream' => 'wordcloud',
'namespace' => 'wordcloud',
);
$words = $this->streams->entries->get_entries($params, false);
$this->template
->title(lang('wordcloud:list_title'))
->append_css('module::jqcloud.css')
->append_js('module::jqcloud-1.0.2.min.js')
->build('index', array('words'=>$words));
}
}