Actually i did a sample application like notes
This Contain fields called title,description,created_date and
modified_date
1. app/views/edit.thtml
<h1>Edit Note</h1>
<form action="<?php echo $form->url('/notes/edit')?>" method="post">
<?php echo $form->hidden('Note/id'); ?>
<p>
Title:
<?php echo $form->input('Note/title', array('size' => '40'))?>
</p>
<p>
Body:
<?php echo $form->textarea('Note/body') ?>
</p>
<p>
<?php echo $form->submit('Save') ?>
</p>
</form>
2. app/views/index.thtml
<h1>My Notes</h1>
<p>
<?php echo $html->link('Add Note', '/notes/add') ?>
</p>
<table>
<tr>
<th>Id</th>
<th>Title</th>
<th>Created</th>
<th>Modified</th>
</tr>
<?php foreach ($notes as $note): ?>
<tr>
<td><?php echo $note['Note']['id']; ?></td>
<td>
<?php echo $html->link($note['Note']['title'],
"/notes/view/{$note['Note']['id']}")?>
[<?php echo $html->link('Edit',
"/notes/edit/{$note['Note']['id']}")?>,
<?php echo $html->link('Delete', "/notes/delete/{$note['Note']['id']}",
null, 'Are you sure?')?>]
</td>
<td><?php echo $note['Note']['created']; ?></td>
<td><?php echo $note['Note']['modified']; ?></td>
</tr>
<?php endforeach; ?>
</table>
3. app/views/views.thtml
<h1><?php echo $data['Note']['title']?></h1>
<p><small>
Created: <?php echo $data['Note']['created']?>
</small></p>
<p><?php echo $data['Note']['body']?></p>
My problem is it doesn't getting any error.........but the data doesn't
getting save to Database.
On Sat, May 29, 2010 at 12:29 PM, John Andersen <[email protected]>wrote:
> Sorry, I am not available for chat.
> Please use this group, as there are others who are more "fluent" in
> CakePHP than I am.
> The more who can look at your issue, the more will be able to help.
> So give it a try, write down your issue here in the group :)
> Enjoy,
> John
>
> On May 29, 9:54 am, "Gopinath T.M" <[email protected]> wrote:
> > john please send your mailid for chat..... so that i can explain my
> problem
> > more closy..........
> >
> > On Sat, May 29, 2010 at 12:23 PM, Gopinath T.M <[email protected]
> >wrote:
> >
> >
> >
> > > can anyone come with me on chat.....
> >
> > > On Sat, May 29, 2010 at 12:08 PM, John Andersen <
> [email protected]>wrote:
> >
> > >> Please clarify what your issue is!
> > >> 1) Have you installed CakePHP?
> > >> 2) Is it in a working condition?
> > >> 3) Have you made the Blog sample application?
> > >> 4) What went wrong?
> >
> > >> We need to know what you have done and what went wrong (errors, code
> > >> snippets, other) in order to be able to help you :)
> > >> Enjoy,
> > >> John
> >
> > >> On May 29, 9:31 am, "Gopinath T.M" <[email protected]> wrote:
> > >> > Actually i gone through already.But, i couldn't able to create one
> > >> sample
> > >> > application....
> > >> > canyou please help in any other way.
> >
> > >> [snip]
> >
> > >> Check out the new CakePHP Questions sitehttp://cakeqs.organd help
> > >> others with their CakePHP related questions.
> >
> > >> You received this message because you are subscribed to the Google
> Groups
> > >> "CakePHP" group.
> > >> To post to this group, send email to [email protected]
> > >> To unsubscribe from this group, send email to
> > >> [email protected]<cake-php%[email protected]>
> <cake-php%[email protected]<cake-php%[email protected]>>For
> more options, visit this group at
> > >>http://groups.google.com/group/cake-php?hl=en
> >
> > > --
> > > Regards
> > > Gopinath T.M
> > > 9944944659
> >
> > --
> > Regards
> > Gopinath T.M
> > 9944944659
>
> Check out the new CakePHP Questions site http://cakeqs.org and help others
> with their CakePHP related questions.
>
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]<cake-php%[email protected]>For
> more options, visit this group at
> http://groups.google.com/group/cake-php?hl=en
>
--
Regards
Gopinath T.M
9944944659
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" 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