Tuesday, April 26, 2016

Rest ful api in cake php

 Hii  I am a beginner in cake php 3.x my task is that write login and registration web services .i am also read  the documentation of cakephp 3.x but not

success.so please help me to achieve this task means what are the steps by which i can follow to achieve this task

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Monday, April 25, 2016

Re: Cakephp 3.x patchEntity set "'new' => true" to entity in edit function

Thanks for the update, I am glad to hear that it is working for you.

It seems to me that in order for the system to know which record is being updated, that all of the ids should need to be supplied for every record that is being saved in a transaction. If it is saving a record for which you did not supply an id, then it must be able to figure out the id via the relationship but can't do that with addresses when there can be multiple addresses that are related.

Best regards,
Kevin

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup

We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.

Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Cakephp 3.x patchEntity set "'new' => true" to entity in edit function

Hi Kevin,

It worked perfectly!!

I just would lime to know why only Addresses need the id.

But if you dont know, thats OK. You already relped me!!

Thanks a lot!

Best regards,

Paulo Terra

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup

We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.

Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Talk to us - here's how

In case you have missed the news..!
View this email in your browser

CakePHP Forum launched!

We asked you what you wanted and the feedback was clear! Sign up here

As you know, a CakePHP forum is a welcomed platform by many! - From today, you  can be a part of the discussion and post your questions, find out the answers and make comments - all stored in one easy location!

Our Google group has been a great place for many developers over the years, but also comes with a few difficulties. Results from our poll came in, and the consensus was that we needed a place where we could ask our questions, find out what others were asking and seek the advise from others. This platform allows for better interaction with your community!

Well there you have it, besides our #CakePHP channel on IRCSlack channel, Stackoverflow and our community newsletter; You can now also find us on our new CakePHP Forum.


                                                                                                                      Larry E. Masters
                                                                                                                      Co-Founder CakePHP

                                                                                                                                    

Have you purchased your CakeFest ticket yet! Hurry! Time is running out!
The CakePHP core team is happy to announce the immediate availability of CakePHP 3.2.8. This is a maintenance release for the 3.2 branch that fixes several community reported issues and adds a few minor features.

Want to be more involved in the community? 

Here's how ...
User Support 
Education and Training
Marketing and Evangelism
Contributing Code
Testing and Quality Assurance
Documentation
Translations
Find out more or mail us to get involved today!
 
Copyright ©  2016 Cake Software Foundation, Inc.,  All rights reserved.


Want to change how you receive these emails?
You can update your preferences or unsubscribe from this list

 

Friday, April 22, 2016

CakePHP 3: Cookie component and test cases

Hello,

I am building a plugin for learning purpose. In my plugin, I use CookieComponent to store data in cookie.
My test cases are failing due to CookieComponent.

Here is my code: https://github.com/narendravaghela/cakephp-remember-me
Here is travis build log: https://travis-ci.org/narendravaghela/cakephp-remember-me/jobs/124758432

Can anyone help me to sort this out?

Thank you

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Thursday, April 21, 2016

CakePHP 3: Plugin and test cases + Travis build is failing

Hello,

I am learning the plugin development and making it available via composer.

Here is my code: https://github.com/narendravaghela/cakephp-remember-me

Here is Travis build: https://travis-ci.org/narendravaghela/cakephp-remember-me/jobs/124758432

All tests are getting passed on my local machine. But, when I run Travis build, it shows errors.

Can someone please help on this?

Thanks in advance.

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Wednesday, April 20, 2016

Re: cakephp 3 modular programming

It's called plugins
https://github.com/FriendsOfCake/awesome-cakephp etc

Mark


Am Mittwoch, 20. April 2016 18:26:27 UTC+2 schrieb Anurag Kumar:
Is it possible to do modular programming with cakePHP 3.

If yes please provide some example on it.

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Cakephp 3.x patchEntity set "'new' => true" to entity in edit function

I am not sure why the others appear to be working, I suggest that you test thoroughly to make sure they are doing as expected.
It may be because of the many - to -one relationship though.

Let me know how it goes.
Regards,
Kevin

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup

We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.

Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Re: Cakephp 3.x patchEntity set "'new' => true" to entity in edit function

Hi Kekin, it is very kind of you help this poor Cake novice. It have been hard programing days.

Ok, if I have a hidden ID field of the Addresses I think it is going to work. But why do I have to put the Addresses ID and the other entities work without it?

Here is the form:

PS: Thanks again for your patience


<?
echo $this->Form->create($buyer);
?>

<div class="col-md-8 col-sm-8 col-xm-8 col-centered">
    <div class="panel panel-default">
        <div class="panel-heading">
            <h4 class="panel-title"><?= __('Atualizar dados de cadastro') ?></h4>
        </div>
        <div class="panel-body">
            <div class="row">
                <div class="col-md-8"><?= $this->Form->input('user.name',['label' => __('Nome')]);?></div>
                <div class="col-md-4"><?= $this->Form->input('cpf',['label' => __('CPF')]);?></div>
            </div>
            <div class="row">
                <div class="col-md-4"><?= $this->Form->input('user.username',['label' => __('Email')]);?></div>
            </div>

            <div class="row">
                <div class="col-md-2">
                    <?= $this->Form->label(__('Sexo'));?>
                </div>
                <? $options = array('Masculino' => __('Masculino'), 'Feminino' => __('Feminino'));?>
                <div class="col-md-2">
                    <?= $this->Form->radio('gender', $options);?>
                </div>
                <div class="col-md-6">
                    <?= $this->Form->label('birthdate',__('Data de nascimento'));?>
                    <?= $this->Form->input(
                                            'birthdate',
                                            array (
                                                    'label'            => false,
                                                    'minYear'         => date('Y') - 100,
                                                    'maxYear'         => date('Y') - 12,
                                                    'empty'            => true,
                                                    'monthNames'    => true,
                                                    'default'        => ''
                                                        )
                                                    );
                                   
                    ?>
                </div>
            </div>

            <div class="row">
                <div class="col-md-4">
                    <?= $this->Form->input('user.addresses.0.phone',['label' => __('Telefone')]);?>
                </div>
                <div class="col-md-4">
                    <?= $this->Form->input('user.addresses.0.celphone',['label' => __('Celular')]);?>
                </div>
            </div>
            <div class="row">
                <div class="col-md-4">
                    <?= $this->Form->input('user.addresses.0.zipcode',['label' => __('CEP')]);?>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <?= $this->Form->input('user.addresses.0.line1',['label' => __('Endereço e número')]);?>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <?= $this->Form->input('user.addresses.0.line2',['label' => __('Complemento e Bairro')]);?>
                </div>
            </div>
            <div class="row">
                <div class="col-md-5">
                    <?= $this->Form->input('user.addresses.0.city',['label' => __('Cidade')]);?>
                </div>
                <div class="col-md-3">
                    <?= $this->Form->input('user.addresses.0.state',['label' => __('Estado')]);?>
                </div>
                <div class="col-md-4">
                    <?= $this->Form->input('user.addresses.0.country_id',['options' => $countries,'label' => __('País')]);?>

                </div>
            </div>
            <div class="row">
                <div class="col-md-12">

                    <?php
                    echo $this->Form->label(__('Preferências musicais'));
                    echo $this->Form->input('genres._ids',
                        [  
                            'templates' => ['checkboxWrapper' => '<div class="col-md-3"><div class="checkbox">{{label}}</div></div>'],
                            'options'  => $genres,
                            'multiple' => 'checkbox',
                            'label' => false,
                            //'value' => $buyer
                        ]);  
                    ?>
                </div>
            </div>
            <div class="row">
                <div class="col-md-12">
                    &nbsp;
                </div>
            </div>
            <div class="row">
                <div class="col-md-6">
                    <?= $this->Form->label(__('Receber novidades'));?>
                    <?= $this->Form->input('newsletter',['type' => 'checkbox','value' => 'Sim','hiddenField'=>'Não', 'label' => __('Quero receber email de novidades do Prefiro Vinil')]);?>
                </div>
            </div>
            <?
            //hidden fields
            ?>
            <div class="row">
                <div class="col-md-1">
                    <div class="control-group">
                        <?= $this->Form->button(__('Salvar'), ['class' => 'btn-success']) ?>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<?= $this->Form->end() ?>






Em quarta-feira, 20 de abril de 2016 01:11:37 UTC-3, heavyKevy escreveu:
Does your edit form have an input for the address_id?  

something like:"user.addresses.0.id"

I see the id: (29) for the address in the debug output of the entity...

If you need further help with it, you are going to need to show the edit form in order to figure out what may be missing.

Hope that helps...
Best regards,
Kevin

--
Sign up for our Newsletter for updates.
http://cakephp.org/newsletter/signup
 
We will soon be closing this Google Group. But don't worry, we have something better coming. Stay tuned for an updated from the CakePHP Team soon.
 
Like Us on FaceBook https://www.facebook.com/CakePHP
Follow us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

CakeFest - 35 days to go. Get your ticket today!

CakeFest 2016 Tickets On Sale Now!!
View this email in your browser

With only 35 days to go to CakeFest 2016 - Have you purchased your ticket?

From two days of workshops - Basic to Advanced; as well as two great days of talks from Lorna Jane; Quentin Adam, Mark Story, Anna filina, José Rodríguez and more! 

From CakePHP Specific content, to loads of PHP chatter - this is the place to be 26th - 29th May!

The venue has now also been confirmed and booked (We are super excited about this one! not to miss out..) - CakeFest workshop and conference will be held at Courtyard Amsterdam Arena Atlas Hotel

Great news if you are staying over for the conference - besides the hotel itself, there is Holiday Inn right across the road, as well as some great airbnb options available (the hotel is right next to Amsterdam Bijlmer ArenA train station)

Hurry! - Tickets are going fast this year and we want you there!

We hope to see you there this year!

Megan
CakePHP Community manager

Better hurry though - with limited space this year (and tickets selling quickly)..
Get your tickets here 

And just remember, Life's sweeter with a little Cake(Fest)

Haven't seen the speaker list or the schedule - Quick, check it out here!
© Copyright 2005-2016 Cake Software Foundation, Inc. All rights reserved


Want to change how you receive these emails?
You can update your preferences or unsubscribe from this list