$this->name (you have to promise to read the book, anyway, though ;-)
On Sun, Feb 8, 2009 at 5:49 PM, giulianob <[email protected]> wrote: > > Go read.. book.cakephp.org > > On Feb 8, 5:26 pm, Terpinator <[email protected]> wrote: >> Just moved my app to 1.2 cake.... I get this error on my main page >> from my default.ctp layout. >> >> Undefined variable: name [APP/views/layouts/default.ctp, line 11] >> >> It blows up on my <?php echo $name ?> >> >> # default.ctp (app/views/layouts) >> <div id="topPan" style="background:url(/img/header<?php echo $name ? >> >> >.jpg) 0 0 no-repeat #fff"> >> >> #My controller >> >> <?php >> class TestController extends AppController >> { >> var $name = "Test"; >> var $uses = array(); >> >> function index() >> { >> } >> >> } >> >> ?> > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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?hl=en -~----------~----~----~----~------~----~------~--~---
