Okay. What I have done so far:
Did a bit more research into the Model for handling the data format
before inserting it into the database. This seems more logical since
the component helps the controller with the flow of things, not
formatting data. So, I moved my code to the Model and it works fine
except for one snag, I am having trouble getting the webroot global
variable. I am sure I can figure this out when I have time to search
for that answer.
I also found, once I reread the manual, the function to call an action
from one controller to another using, $this->requestAction($url,
$extra); This way I can call the function in the classified
controller to save the data to the database. The only thing I am not
clear on is passing the object obtained from SimpleXML to another
controller function. I am assuming that I can do $extra =
array('myObject' => $xml_object); and then $this->requestAction('/some/
url/', $extra); This would seemingly give me access to the $this-
>params['myObject'] (hopefully) [Will test later unless someone
disagrees].
This brings up another question. Once I have the data, it is already
formatted with HTML tags for viewing. If I use the sanitize->sql() to
make it safe to insert, whould I have to use a strip_slashes() php
call to make it viewable in HTML again or is there some hidden
sanitize function?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---