Guru's

I am hopefully waiting for the replies.Please help this newbie.

Thanks.

On Nov 19, 2:58 pm, smilin <[EMAIL PROTECTED]> wrote:
> Now only i am entering into the cakephp and i am using the version
> 1.2.
>
> I had three sets of check box.And i need to save that into the
> table,First i think i need to concatenate the data and save it on the
> table then i had get the information from cakephp group that we can
> also use HABTM.I am not aware about this concept.I had go through the
> cakephp manuals on the models.But i cant able to move after a point.
>
> Please help me to come out from this issue.
>
> Till know i had made the below things.
>
> I had create three table.Named as
>
> dog_grouptypes
> dog_sizes
> dog_walkers_paymenttypes
>
> All the three table has the fields id and name.
>
> On app/views/services/service.ctp
>
> <tr>
>         <td><fieldset>
>         <legend>DogSizes</legend>
>         <?= $habtm->checkboxMultiple('Size.Size', $dog_sizes_list) ?>
>         </fieldset>
> </td>
> </tr>
> <tr>
>         <td><fieldset>
>         <legend>DogGroupTypes</legend>
>         <?= $habtm->checkboxMultiple('Group.Group', $dog_grouptypes_list) ?>
>         </fieldset>
> </td>
> </tr>
> <tr>
>         <td><fieldset>
>         <legend>Payments</legend>
>         <?= $habtm->checkboxMultiple('Payment.Payment',
> $dog_walkers_paymenttypes_list) ?>
>         </fieldset>
> </td>
> </tr>
> <tr>
>         <td colspan ="2" align ="center">
>                 <?php $form->submit('Save') ?>
>         </td>
> </tr>
>
> And on the app/controllers/services_controller.php
>
> I am not clear what i need to do here.
>
> And i had saved the file habtm.php on app/views/helpers
>
> Now i am getting the error as
>
> Undefined variable: habtm [CORE\app\views\services\service.ctp, line
> 13]
>
> Fatal error: Call to a member function checkboxMultiple() on a non-
> object in C:\inetpub\wwwroot\poochout\app\views\services\service.ctp
> on line 13
>
> I need the help to come out from the error and also to complete this
> HABTM process.
>
> Thanks in advance.
--~--~---------~--~----~------------~-------~--~----~
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