Added a couple helpers, including Html, to our app controller and removed Html from each individual controller

git-svn-id: file:///svn-source/pmgr/branches/initial_20090526/site@65 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-06-03 22:33:03 +00:00
parent fc71c058fb
commit 52c72b08b2
7 changed files with 1 additions and 12 deletions

View File

@@ -35,6 +35,7 @@
* @subpackage cake.app
*/
class AppController extends Controller {
var $helpers = array('Html', 'Number', 'Time');
function sideMenuLinks() {
return array(

View File

@@ -1,8 +1,6 @@
<?php
class ChargesController extends AppController {
var $helpers = array('Html');
var $paginate = array('limit' => 100,
'group' => 'Charge.id',
'order' => array('Charge.charge_date' => 'ASC'));

View File

@@ -1,8 +1,6 @@
<?php
class ContactsController extends AppController {
var $helpers = array('Html');
var $paginate = array('limit' => 100,
'group' => 'Contact.id',
'order' => array('Contact.last_name' => 'ASC',

View File

@@ -1,7 +1,6 @@
<?php
class MapsController extends AppController {
var $helpers = array('Html');
/**************************************************************************
**************************************************************************
@@ -212,7 +211,6 @@ class MapsController extends AppController {
*/
function image($info, $legend = false) {
//var $helpers = array('Html', 'Form', 'Javascript', 'Graph');
$this->layout = null;
$this->autoLayout = false;
Configure::write('debug', '0');

View File

@@ -1,8 +1,6 @@
<?php
class PaymentsController extends AppController {
var $helpers = array('Html');
var $paginate = array('limit' => 100,
'group' => 'Payment.id',
'order' => array('Payment.id' => 'ASC'));

View File

@@ -1,8 +1,6 @@
<?php
class ReceiptsController extends AppController {
var $helpers = array('Html');
var $paginate = array('limit' => 100,
'group' => 'Receipt.id',
'order' => array('Receipt.stamp' => 'ASC'));

View File

@@ -1,8 +1,6 @@
<?php
class UnitsController extends AppController {
var $helpers = array('Html');
var $paginate = array('limit' => 100,
'group' => 'Unit.id',
'order' => array('Unit.sort_order' => 'ASC'));