Hello,
I have tried for hours, and am just not crasping the docs...
Here is my componet: (just basic for testing)
class FindStateCodeComponent extends Object
{
var $ConvertedStateCode = null;
var $ConvertedStateName = null;
var $controller = true;
function doFoo()
{
$this->ConvertedStateCode = 'foo';
$this->ConvertedStateName = 'Bar';
}
}
here is my controller:
class SchoolsController extends AppController
{
var $name = 'Schools';
var $components = array('FindStateCode');
function index(){
$this->set('Schools',
"$this->FindStateCode->ConvertedStateName");
}
function beforeRender(){
$this->FindStateCode->doFoo();
$this->set('MenuSelected', '2');
}
}
here is what appears when pulled up in the browser:
Object id #7->ConvertedStateName
it should show "Bar"... why is this not working?
Thanks
Chris
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---