Re: Web Services in Cake 1.2.x.x

2007-03-14 Thread gerbenzomp

That's a good one ;)

On 14 mrt, 18:24, "djiize" <[EMAIL PROTECTED]> wrote:
> to avoid this little space at the end, don't close php tags
> (forget the ?> at the end of the file)
> seems dirty, but PHP automatically close php tags when reaching end of
> file ;)
>
> On 14 mar, 18:07, "gerbenzomp" <[EMAIL PROTECTED]> wrote:
>
> > Found it! There was one tiny little space after the php closing-tag of
> > my app_model.php :)
>
> > Php isn't a picky programming-language, but with spaces it is ;)
> > Spaces seem to be the only the invisible programming-errors we can
> > make ;)
>
> > Feed is up-and running! I like the fact that your example is so nicely
> > extendible: I have it set up like this:
>
> > mysite.com/xml/feeds/posts/
> > mysite.com/xml/feeds/comments/
> > mysite.com/xml/feeds/tags/
>
> > etc.
>
> > By the way, I love your motto! Read your post, and can only agree:
> > often you learn while building, and there's always things you couldn't
> > foresee. Keep on building!
>
> > Gerben.
>
> > On 14 mrt, 17:47, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
>
> > > On 3/14/07, gerbenzomp <[EMAIL PROTECTED]> wrote:
>
> > > > Hi Chris,
>
> > > > Thanks for the tutorial! Because I use version 1.1, I used your
> > > > previous example (http://www.littlehart.net/atthekeyboard/2006/11/29/
> > > > using-cakephps-native-web-service-support/). It worked just fine
> > > > (although it seems a lot easier in 1.2!), but I found a strange
> > > > particularity when I wanted to use the Post-model (var $uses =
> > > > 'Post';)  to generate the feed from:
>
> > > Can't help you there as I haven't moved beyond that simple example. :)
>
> > > --
> > > Chris Hartjes
>
> > > My motto for 2007:  "Just build it, damnit!"
>
> > > rallyhat.com - digital photo scavenger hunt
> > > @TheBallpark -http://www.littlehart.net/attheballpark
> > > @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Web Services in Cake 1.2.x.x

2007-03-14 Thread djiize

to avoid this little space at the end, don't close php tags
(forget the ?> at the end of the file)
seems dirty, but PHP automatically close php tags when reaching end of
file ;)

On 14 mar, 18:07, "gerbenzomp" <[EMAIL PROTECTED]> wrote:
> Found it! There was one tiny little space after the php closing-tag of
> my app_model.php :)
>
> Php isn't a picky programming-language, but with spaces it is ;)
> Spaces seem to be the only the invisible programming-errors we can
> make ;)
>
> Feed is up-and running! I like the fact that your example is so nicely
> extendible: I have it set up like this:
>
> mysite.com/xml/feeds/posts/
> mysite.com/xml/feeds/comments/
> mysite.com/xml/feeds/tags/
>
> etc.
>
> By the way, I love your motto! Read your post, and can only agree:
> often you learn while building, and there's always things you couldn't
> foresee. Keep on building!
>
> Gerben.
>
> On 14 mrt, 17:47, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
>
> > On 3/14/07, gerbenzomp <[EMAIL PROTECTED]> wrote:
>
> > > Hi Chris,
>
> > > Thanks for the tutorial! Because I use version 1.1, I used your
> > > previous example (http://www.littlehart.net/atthekeyboard/2006/11/29/
> > > using-cakephps-native-web-service-support/). It worked just fine
> > > (although it seems a lot easier in 1.2!), but I found a strange
> > > particularity when I wanted to use the Post-model (var $uses =
> > > 'Post';)  to generate the feed from:
>
> > Can't help you there as I haven't moved beyond that simple example. :)
>
> > --
> > Chris Hartjes
>
> > My motto for 2007:  "Just build it, damnit!"
>
> > rallyhat.com - digital photo scavenger hunt
> > @TheBallpark -http://www.littlehart.net/attheballpark
> > @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Web Services in Cake 1.2.x.x

2007-03-14 Thread gerbenzomp

Found it! There was one tiny little space after the php closing-tag of
my app_model.php :)

Php isn't a picky programming-language, but with spaces it is ;)
Spaces seem to be the only the invisible programming-errors we can
make ;)

Feed is up-and running! I like the fact that your example is so nicely
extendible: I have it set up like this:

mysite.com/xml/feeds/posts/
mysite.com/xml/feeds/comments/
mysite.com/xml/feeds/tags/

etc.

By the way, I love your motto! Read your post, and can only agree:
often you learn while building, and there's always things you couldn't
foresee. Keep on building!

Gerben.

On 14 mrt, 17:47, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 3/14/07, gerbenzomp <[EMAIL PROTECTED]> wrote:
>
>
>
> > Hi Chris,
>
> > Thanks for the tutorial! Because I use version 1.1, I used your
> > previous example (http://www.littlehart.net/atthekeyboard/2006/11/29/
> > using-cakephps-native-web-service-support/). It worked just fine
> > (although it seems a lot easier in 1.2!), but I found a strange
> > particularity when I wanted to use the Post-model (var $uses =
> > 'Post';)  to generate the feed from:
>
> Can't help you there as I haven't moved beyond that simple example. :)
>
> --
> Chris Hartjes
>
> My motto for 2007:  "Just build it, damnit!"
>
> rallyhat.com - digital photo scavenger hunt
> @TheBallpark -http://www.littlehart.net/attheballpark
> @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Web Services in Cake 1.2.x.x

2007-03-14 Thread Chris Hartjes

On 3/14/07, gerbenzomp <[EMAIL PROTECTED]> wrote:
>
> Hi Chris,
>
> Thanks for the tutorial! Because I use version 1.1, I used your
> previous example (http://www.littlehart.net/atthekeyboard/2006/11/29/
> using-cakephps-native-web-service-support/). It worked just fine
> (although it seems a lot easier in 1.2!), but I found a strange
> particularity when I wanted to use the Post-model (var $uses =
> 'Post';)  to generate the feed from:

Can't help you there as I haven't moved beyond that simple example. :)


-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

rallyhat.com - digital photo scavenger hunt
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Web Services in Cake 1.2.x.x

2007-03-14 Thread gerbenzomp

Hi Chris,

Thanks for the tutorial! Because I use version 1.1, I used your
previous example (http://www.littlehart.net/atthekeyboard/2006/11/29/
using-cakephps-native-web-service-support/). It worked just fine
(although it seems a lot easier in 1.2!), but I found a strange
particularity when I wanted to use the Post-model (var $uses =
'Post';)  to generate the feed from:

In some strange way a single space gets added before the "http://wordpress.org/support/topic/88581

It seems that the single space before the xml declaration is causing
the feed to be unreadable.

Then, of course I looked at the Post model, to see if I could find
where that space came from, but I wasn't able to find it anywhere.

Strange, isn't it? If I don't use the post model (or the comments-
model, or any other model) the feed works perfectly fine, and
validates.

Does anyone know where the space might come from?





On 14 mrt, 04:38, "dizz" <[EMAIL PROTECTED]> wrote:
> Just took a look, looks pretty simple. Does CakePHP have any SOAP
> functionality built in?
>
> On Mar 14, 9:58 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
>
> > Hey guys, with some help from Nate I just put together a little blog
> > entry on my experiences building a web service with Cake 1.2.x.x.
>
> >http://www.littlehart.net/atthekeyboard/2007/03/13/how-easy-are-web-s...
>
> > (If the link above is destroyed by your mailer, just go 
> > tohttp://www.littlehart.net/atthekeyboardandit will be there).
>
> > Comments and feedback always welcome, as I am a self-promoting whore
> > who loves the attention.
>
> > --
> > Chris Hartjes
>
> > My motto for 2007:  "Just build it, damnit!"
>
> > rallyhat.com - digital photo scavenger hunt
> > @TheBallpark -http://www.littlehart.net/attheballpark
> > @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Web Services in Cake 1.2.x.x

2007-03-13 Thread dizz

Just took a look, looks pretty simple. Does CakePHP have any SOAP
functionality built in?

On Mar 14, 9:58 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> Hey guys, with some help from Nate I just put together a little blog
> entry on my experiences building a web service with Cake 1.2.x.x.
>
> http://www.littlehart.net/atthekeyboard/2007/03/13/how-easy-are-web-s...
>
> (If the link above is destroyed by your mailer, just go 
> tohttp://www.littlehart.net/atthekeyboardand it will be there).
>
> Comments and feedback always welcome, as I am a self-promoting whore
> who loves the attention.
>
> --
> Chris Hartjes
>
> My motto for 2007:  "Just build it, damnit!"
>
> rallyhat.com - digital photo scavenger hunt
> @TheBallpark -http://www.littlehart.net/attheballpark
> @TheKeyboard -http://www.littlehart.net/atthekeyboard


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---



Web Services in Cake 1.2.x.x

2007-03-13 Thread Chris Hartjes

Hey guys, with some help from Nate I just put together a little blog
entry on my experiences building a web service with Cake 1.2.x.x.

http://www.littlehart.net/atthekeyboard/2007/03/13/how-easy-are-web-services-in-cakephp-12-really-easy/

(If the link above is destroyed by your mailer, just go to
http://www.littlehart.net/atthekeyboard and it will be there).

Comments and feedback always welcome, as I am a self-promoting whore
who loves the attention.

-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

rallyhat.com - digital photo scavenger hunt
@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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
-~--~~~~--~~--~--~---