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
-~----------~----~----~----~------~----~------~--~---