Hey guys, I've searched around but can only find very loosely
described information on the Ajax helper (I'm using 1.2). I've been
using CakePHP for about 2 weeks, and I'm not very good at it but see
its potential!
Basically, I currently have a site set up which is reading all its
pages from a mysql database - so far so good. My home page has various
different boxes displaying different information. My table is
structured (to a simplified degree) as follows:
Table: Home
Field: ID
Field: Title
Field: Content
Now, I have managed to get an InPlaceEditor set up for my "mission"
box:
<div class="innerbox" >
<span id="mission" class="quote"><?=$mission['Home']['content'];?></
span>
</div>
<? echo $ajax->editor('mission', '/home/updatemission', array('rows'
=> '5')); ?>
However, I have no idea where to go from here. I need the
updatemission controller to save my submitted data into the content
field where title = mission.
I understand that afterwards I have to reload the data and submit it
back to the page using a view, and I have that bit working, but I
can't get the data to save into my database! I know I'm going about it
exactly the wrong way, but I can't think of the right way. Hence
posting here.
Hope you can 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
-~----------~----~----~----~------~----~------~--~---