When I will store the class object in session works only in the same 
method like:
can not read the object from other methods in the same controller.

function index()
{
$this -> Session -> write('construct',new 
TextConstruct($this->params['data']['Email']['body']) );
$this->set('WordsAsStyle', 
$this->Session->read('construct')->grabWordsAs('Style'));
}


when I will go to other method blows up

function style()
{
$this->set('WordsAsStyle',$this->Session->read('construct')->grabWordsAs('Style'));
}


Fatal error
EmailController::style() [<a 
href='function.EmailController-style'>function.EmailController-style</a>]:
 

The script tried to execute a method or access a property of an 
incomplete object.
Please ensure that the class definition 
"TextConstruct" of the object
you are trying to operate on was loaded _before_ unserialize() gets 
called or provide a __autoload() function to
load the class definition in

in code.php
I was trying with all types
define('CAKE_SESSION_SAVE', '');
cake, php, database, and '', for all this option got the same error

Thanks for help

--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to