I am having problems trying to place the correct URL that Graham states
in his tutorial for the AJAX task list for done.thml:
"If Cake is installed in a subfolder (ie not your server's web root)
then you will need to use $html->url("/tasks/undo/" . $item["id"] ); in
the second Ajax.Updater argument. This means the URL is generated by
Cake rather than being hard-coded."
I am too inexperienced to fully understand what the correct URL would
be and where I would place my URL in this code with the correct
characters :
<div id="todo_view">
<p class="file-time">Rendered: <?=gmdate('H:i:s', time())?> GMT</p>
<p class="file-name">View: /app/views/tasks/todo.thtml</p>
<?php
foreach ($data as $row) {
$item = $row['Task'];
if ($item['done'] == 0) {
print '<div class="task" id="todo_' . $item['id'] . '" title="'
.
$item['id'] . '">';
print '<input id="todo_check' . $item['id'] . '" type="checkbox"
onClick="new Ajax.Updater(\'tasks_done\',\'/tasks/done/' . $item['id'].
'\', {asynchronous:true, evalScripts:true});new Effect.Fade(\'todo_' .
$item['id'] . '\');" /> ';
print '<label for="todo_check_' . $item['id'] . '">' .
$item['title']
. '</label>';
print '</div>' . "\n";
}
}
?>
</div>
And, if I have CAKE installed here:
http://jobboard.bernardtransportation.com/CAKE/tasks
What URL would I use so that done.thtml can be found by todo.thtml?
Please 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
-~----------~----~----~----~------~----~------~--~---