I'm a bit confused as to why my helpers are no longer available to my
layout.  I've asked a couple times on the IRC channel, but I've not
been able to stay around long enough to work through the issue, so
here I am. :)

Here's part of my app/app_controller.php:

      1 <?php
      2 uses('sanitize');
      3 class AppController extends Controller {
      4         var $beforeFilter = array('checkAccess');
      5         var $components = array('sscpAuth','Output', 'SystemNotice');
      6         var $uses = array ('Member', 'Portal');
      7         var $helpers = array('Html', 'Sscp', 'Time',
'Javascript', 'Browser');
      8         // snip!
      9 }

and here's top of my layout:

      1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd";>
      2 <html>
      3 <head>
      4     <title><?php echo $title_for_layout?></title>
      5     <!-- <base href="<?php echo $html->base ?>" /> -->
      6     <link rel="stylesheet" type="text/css" href="<?php echo
$html->url('/style/'); ?>" />
      7     <link rel=stylesheet href="<?php echo
$html->url('/pngHack/pngHack.css'); ?>" type="text/css">
      8     <?php
      9     if ($browser->browser_is_ie()) echo $html->css('iehack');

which gets me this error:

Notice: Undefined variable: browser in
/tmp/sscp2/views/layouts/default.thtml on line 9

Fatal error: Call to a member function browser_is_ie() on a non-object
in /tmp/sscp2/views/layouts/default.thtml on line 9

though the page title says "Missing Database Table" which has to be a bug.

Does anyone see why that would be failing? I'm REALLY stumped.  It
works fine on 0.10. :|

Thanks!



-- 
jason lee
http://www.steeplesoft.com
http://blogs.steeplesoft.com
http://littlezoper.livejournal.com

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to