added the Breadcrumb helper link

This commit is contained in:
uid815 2006-05-25 20:34:25 +00:00
Родитель 5e45f40889
Коммит f85fd20f51
1 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -17,7 +17,7 @@ class ResultsController extends AppController {
* Cake Helpers
* @var array
*/
var $helpers = array('Html', 'Javascript', 'Export', 'Pagination','Time');
var $helpers = array('Html', 'Javascript', 'Export', 'Pagination','Time','Breadcrumb');
/**
* Pagination helper variable array
@ -60,6 +60,9 @@ class ResultsController extends AppController {
// Fill in all the data passed in $_GET
$this->set('url_params',$this->decodeAndSanitize($this->params['url']));
// Give us some breadcrumbs
$this->set('breadcrumbs', array('Home' => 'http://mozilla.org', 'Uninstall Survey Results' => ''));
// We'll need to include the graphing libraries
$this->set('include_graph_libraries', true);
@ -78,6 +81,9 @@ class ResultsController extends AppController {
// Fill in all the data passed in $_GET
$this->set('url_params',$this->decodeAndSanitize($this->params['url']));
// Give us some breadcrumbs
$this->set('breadcrumbs', array('Home' => 'http://mozilla.org', 'Uninstall Survey Results' => 'results/', 'Comments' => ''));
// Pagination settings
$paging['style'] = 'html';
$paging['link'] = "/results/comments/?product=".urlencode($this->params['url']['product'])."&start_date=".urlencode($this->params['url']['start_date'])."&end_date=".urlencode($this->params['url']['end_date'])."&show={$this->pagination_parameters['show']}&sort={$this->pagination_parameters['sortBy']}&direction={$this->pagination_parameters['direction']}&page=";