try this
class FindStateCodeComponent extends Object
{
var $ConvertedStateCode = null;
var $ConvertedStateName = null;
function startup(&$controller)
{
$this->controller = & $controller;
$this->ConvertedStateCode = 'foo';
$this->ConvertedStateName = 'Bar';
}
}
class SchoolsController extends AppController
{
var $name = 'Schools';
var $components = array('FindStateCode');
function index(){
$this->set('Schools',
"$this->FindStateCode->ConvertedStateName");
}
function beforeRender(){
$this->set('MenuSelected', '2');
}
}
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---