Re: Getting CakePhp to talk to Android devices

2012-09-12 Thread Lightee
To test HTTP Post web services for edit action, I tried something like;

curl -X POST -H "Content-Type: text/xml" -T local-file.xml 
http://127.0.0.1/myproject/edit/1.xml

The problem is I do not know how local-file.xml should look like as there 
is no documentation that I can find on this aspect.

Is there any sample xml file that someone here can show? Thank you very 
much.

On Tuesday, September 11, 2012 6:35:55 PM UTC+8, Lightee wrote:
>
> Dear Cakephp gurus,
>
> I managed to get web services for view and index working by following the 
> instructions at the link below.
>
> http://book.cakephp.org/2.0/en/development/rest.html 
>
> View and index are easy because it uses HTTP GET. For edit and delete 
> which uses HTTP POST, I am at a loss. I do not know how the URL will look 
> like in the first place to edit certain data fields. Can someone advise or 
> provide some useful link? Thank you very much. 
>
>
> On Thursday, July 26, 2012 6:31:16 PM UTC+8, Lightee wrote:
>>
>> Dear CakePHP experts,
>>
>> I am thinking of creating an Android app to talk to CakePHP server app. 
>> Sorry for my amateur questions because I am still a newbie. Is there 
>> anything extra I need to do on the CakePHP side? Are web services the way 
>> to go? Can the Android talk to MySql database directly and pull out data?
>>
>> Thank you.
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: Getting CakePhp to talk to Android devices

2012-09-11 Thread Lightee
Dear Cakephp gurus,

I managed to get web services for view and index working by following the 
instructions at the link below.

http://book.cakephp.org/2.0/en/development/rest.html 

View and index are easy because it uses HTTP GET. For edit and delete which 
uses HTTP POST, I am at a loss. I do not know how the URL will look like in 
the first place to edit certain data fields. Can someone advise or provide 
some useful link? Thank you very much. 


On Thursday, July 26, 2012 6:31:16 PM UTC+8, Lightee wrote:
>
> Dear CakePHP experts,
>
> I am thinking of creating an Android app to talk to CakePHP server app. 
> Sorry for my amateur questions because I am still a newbie. Is there 
> anything extra I need to do on the CakePHP side? Are web services the way 
> to go? Can the Android talk to MySql database directly and pull out data?
>
> Thank you.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: Getting CakePhp to talk to Android devices

2012-07-27 Thread Lightee
Thank you. I am a newbie. I don't even see the answer when it is presented 
to me. On careful reading, I think the links already provided the tips on 
how to add CRUD web services.

On Friday, July 27, 2012 3:03:14 PM UTC+8, Dr. Tarique Sani wrote:
>
> You are doing the Cake part or the Android part? There is nothing more 
> than the links given for the Cake part 
>
> HTH 
>
> Tarique 
>
> On Fri, Jul 27, 2012 at 12:23 PM, Lightee  wrote: 
> > Thank you for all the helpful answers. Are there ready samples of web 
> > services to enable a CakePHP app to allow Android apps to retrieve and 
> > update data from MySql? It is hard for a newbie like me to be able to 
> start 
> > work based on API documentation. 
> > 
> > Thank you. 
> > 
> > 
> > On Friday, July 27, 2012 11:34:43 AM UTC+8, Dr. Tarique Sani wrote: 
> >> 
> >> Create a REST api and let your Android device consume it 
> >> 
> >> http://book.cakephp.org/2.0/en/development/rest.html 
> >> and 
> >> http://book.cakephp.org/2.0/en/views/json-and-xml-views.html 
> >> 
> >> HTH 
> >> Tarique 
> >> 
> >> 
> >> On Thu, Jul 26, 2012 at 4:01 PM, Lightee  wrote: 
> >> > Dear CakePHP experts, 
> >> > 
> >> > I am thinking of creating an Android app to talk to CakePHP server 
> app. 
> >> > Sorry for my amateur questions because I am still a newbie. Is there 
> >> > anything extra I need to do on the CakePHP side? Are web services the 
> >> > way to 
> >> > go? Can the Android talk to MySql database directly and pull out 
> data? 
> >> > 
> >> > Thank you. 
> >> > 
> >> > -- 
> >> > Our newest site for the community: CakePHP Video Tutorials 
> >> > http://tv.cakephp.org 
> >> > Check out the new CakePHP Questions site http://ask.cakephp.org and 
> help 
> >> > others with their CakePHP related questions. 
> >> > 
> >> > 
> >> > To unsubscribe from this group, send email to 
> >> > cake-php+unsubscr...@googlegroups.com For more options, visit this 
> group 
> >> > at 
> >> > http://groups.google.com/group/cake-php 
> >> 
> >> 
> >> 
> >> -- 
> >> = 
> >> PHP for E-Biz: http://sanisoft.com 
> >> = 
> > 
> > -- 
> > Our newest site for the community: CakePHP Video Tutorials 
> > http://tv.cakephp.org 
> > Check out the new CakePHP Questions site http://ask.cakephp.org and 
> help 
> > others with their CakePHP related questions. 
> > 
> > 
> > To unsubscribe from this group, send email to 
> > cake-php+unsubscr...@googlegroups.com For more options, visit this 
> group at 
> > http://groups.google.com/group/cake-php 
>
>
>
> -- 
> = 
> PHP for E-Biz: http://sanisoft.com 
> = 
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Getting CakePhp to talk to Android devices

2012-07-27 Thread Dr. Tarique Sani
You are doing the Cake part or the Android part? There is nothing more
than the links given for the Cake part

HTH

Tarique

On Fri, Jul 27, 2012 at 12:23 PM, Lightee  wrote:
> Thank you for all the helpful answers. Are there ready samples of web
> services to enable a CakePHP app to allow Android apps to retrieve and
> update data from MySql? It is hard for a newbie like me to be able to start
> work based on API documentation.
>
> Thank you.
>
>
> On Friday, July 27, 2012 11:34:43 AM UTC+8, Dr. Tarique Sani wrote:
>>
>> Create a REST api and let your Android device consume it
>>
>> http://book.cakephp.org/2.0/en/development/rest.html
>> and
>> http://book.cakephp.org/2.0/en/views/json-and-xml-views.html
>>
>> HTH
>> Tarique
>>
>>
>> On Thu, Jul 26, 2012 at 4:01 PM, Lightee  wrote:
>> > Dear CakePHP experts,
>> >
>> > I am thinking of creating an Android app to talk to CakePHP server app.
>> > Sorry for my amateur questions because I am still a newbie. Is there
>> > anything extra I need to do on the CakePHP side? Are web services the
>> > way to
>> > go? Can the Android talk to MySql database directly and pull out data?
>> >
>> > Thank you.
>> >
>> > --
>> > Our newest site for the community: CakePHP Video Tutorials
>> > http://tv.cakephp.org
>> > Check out the new CakePHP Questions site http://ask.cakephp.org and help
>> > others with their CakePHP related questions.
>> >
>> >
>> > To unsubscribe from this group, send email to
>> > cake-php+unsubscr...@googlegroups.com For more options, visit this group
>> > at
>> > http://groups.google.com/group/cake-php
>>
>>
>>
>> --
>> =
>> PHP for E-Biz: http://sanisoft.com
>> =
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php



-- 
=
PHP for E-Biz: http://sanisoft.com
=

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Getting CakePhp to talk to Android devices

2012-07-26 Thread Lightee
Thank you for all the helpful answers. Are there ready samples of web 
services to enable a CakePHP app to allow Android apps to retrieve and 
update data from MySql? It is hard for a newbie like me to be able to start 
work based on API documentation.

Thank you.

On Friday, July 27, 2012 11:34:43 AM UTC+8, Dr. Tarique Sani wrote:
>
> Create a REST api and let your Android device consume it 
>
> http://book.cakephp.org/2.0/en/development/rest.html 
> and 
> http://book.cakephp.org/2.0/en/views/json-and-xml-views.html 
>
> HTH 
> Tarique 
>
>
> On Thu, Jul 26, 2012 at 4:01 PM, Lightee  wrote: 
> > Dear CakePHP experts, 
> > 
> > I am thinking of creating an Android app to talk to CakePHP server app. 
> > Sorry for my amateur questions because I am still a newbie. Is there 
> > anything extra I need to do on the CakePHP side? Are web services the 
> way to 
> > go? Can the Android talk to MySql database directly and pull out data? 
> > 
> > Thank you. 
> > 
> > -- 
> > Our newest site for the community: CakePHP Video Tutorials 
> > http://tv.cakephp.org 
> > Check out the new CakePHP Questions site http://ask.cakephp.org and 
> help 
> > others with their CakePHP related questions. 
> > 
> > 
> > To unsubscribe from this group, send email to 
> > cake-php+unsubscr...@googlegroups.com For more options, visit this 
> group at 
> > http://groups.google.com/group/cake-php 
>
>
>
> -- 
> = 
> PHP for E-Biz: http://sanisoft.com 
> = 
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Getting CakePhp to talk to Android devices

2012-07-26 Thread Dr. Tarique Sani
Create a REST api and let your Android device consume it

http://book.cakephp.org/2.0/en/development/rest.html
and
http://book.cakephp.org/2.0/en/views/json-and-xml-views.html

HTH
Tarique


On Thu, Jul 26, 2012 at 4:01 PM, Lightee  wrote:
> Dear CakePHP experts,
>
> I am thinking of creating an Android app to talk to CakePHP server app.
> Sorry for my amateur questions because I am still a newbie. Is there
> anything extra I need to do on the CakePHP side? Are web services the way to
> go? Can the Android talk to MySql database directly and pull out data?
>
> Thank you.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php



-- 
=
PHP for E-Biz: http://sanisoft.com
=

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Getting CakePhp to talk to Android devices

2012-07-26 Thread WyriHaximus
Take a look the Xml/Json view coming with 2.1  
http://book.cakephp.org/2.0/en/views/json-and-xml-views.html  but never 
ever let it talk to mysql directly ..

On Thursday, July 26, 2012 12:31:16 PM UTC+2, Lightee wrote:
>
> Dear CakePHP experts,
>
> I am thinking of creating an Android app to talk to CakePHP server app. 
> Sorry for my amateur questions because I am still a newbie. Is there 
> anything extra I need to do on the CakePHP side? Are web services the way 
> to go? Can the Android talk to MySql database directly and pull out data?
>
> Thank you.
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Getting CakePhp to talk to Android devices

2012-07-26 Thread Carlos Lavin
Guess you could have the layout+views in an easy-to-interpret format
(maybe xml or json) when returning the data to your Android App?

2012/7/26 Lightee :
> Dear CakePHP experts,
>
> I am thinking of creating an Android app to talk to CakePHP server app.
> Sorry for my amateur questions because I am still a newbie. Is there
> anything extra I need to do on the CakePHP side? Are web services the way to
> go? Can the Android talk to MySql database directly and pull out data?
>
> Thank you.
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at
> http://groups.google.com/group/cake-php



-- 
-Carlos

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Getting CakePhp to talk to Android devices

2012-07-26 Thread Lightee
Dear CakePHP experts,

I am thinking of creating an Android app to talk to CakePHP server app. 
Sorry for my amateur questions because I am still a newbie. Is there 
anything extra I need to do on the CakePHP side? Are web services the way 
to go? Can the Android talk to MySql database directly and pull out data?

Thank you.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php