Re: Webservices --- StrikeIron.com

2008-07-18 Thread Dave

Very helpful. Never used behaviours before.
Thanks again everyone!

DS

On Jul 18, 2:12 pm, francky06l <[EMAIL PROTECTED]> wrote:
> If you call the method behavior from the model, just do $this->request, from 
> controller $this->model->request ..
>
> simple isn'it ?
> cheers
>
> On Jul 18, 1:08 pm, Dave <[EMAIL PROTECTED]> wrote:
>
> > OKay  thanks. Keep helping me - almost there.
>
> > I now have /app/models/behaviours/webservice.php
> > Can I put the following code (to follow the example) in any view?
>
> > $actsAs = array('webservice');
> > $this->Model->request('get', array('data' => array('q' => 'mark
> > story'), 'url' => 'www.google.ca/search'));
>
> > Do I have to change the word "Model"? or anything else.
> > This gives me the error: Fatal error: Call to undefined method
> > View::request()
>
> > Thanks - sorry I'm slow at this one...
>
> > Dave
>
> > On Jul 18, 12:35 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
>
> > > On Fri, Jul 18, 2008 at 9:37 AM, Dave <[EMAIL PROTECTED]> wrote:
>
> > > > Where do I put the webservice behavior php file?
>
> > > /app/models/behaviours
>
> > > HTH
>
> > > Tarique
>
> > > --
> > > =
> > > Cheesecake-Photoblog:http://cheesecake-photoblog.org
> > > PHP for E-Biz:http://sanisoft.com
> > > =
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Webservices --- StrikeIron.com

2008-07-18 Thread francky06l

If you call the method behavior from the model, just do $this-
>request, from controller $this->model->request ..
simple isn'it ?
cheers

On Jul 18, 1:08 pm, Dave <[EMAIL PROTECTED]> wrote:
> OKay  thanks. Keep helping me - almost there.
>
> I now have /app/models/behaviours/webservice.php
> Can I put the following code (to follow the example) in any view?
>
> $actsAs = array('webservice');
> $this->Model->request('get', array('data' => array('q' => 'mark
> story'), 'url' => 'www.google.ca/search'));
>
> Do I have to change the word "Model"? or anything else.
> This gives me the error: Fatal error: Call to undefined method
> View::request()
>
> Thanks - sorry I'm slow at this one...
>
> Dave
>
> On Jul 18, 12:35 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
>
> > On Fri, Jul 18, 2008 at 9:37 AM, Dave <[EMAIL PROTECTED]> wrote:
>
> > > Where do I put the webservice behavior php file?
>
> > /app/models/behaviours
>
> > HTH
>
> > Tarique
>
> > --
> > =
> > Cheesecake-Photoblog:http://cheesecake-photoblog.org
> > PHP for E-Biz:http://sanisoft.com
> > =
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Webservices --- StrikeIron.com

2008-07-18 Thread Dr. Tarique Sani
On Fri, Jul 18, 2008 at 4:38 PM, Dave <[EMAIL PROTECTED]> wrote:

>
>
> Do I have to change the word "Model"? or anything else.
> This gives me the error: Fatal error: Call to undefined method
> View::request()
>


You first have to understand what Models are and how they relate to
Behaviors

T

-- 
=
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
=

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Webservices --- StrikeIron.com

2008-07-18 Thread Dave

OKay  thanks. Keep helping me - almost there.

I now have /app/models/behaviours/webservice.php
Can I put the following code (to follow the example) in any view?

$actsAs = array('webservice');
$this->Model->request('get', array('data' => array('q' => 'mark
story'), 'url' => 'www.google.ca/search'));

Do I have to change the word "Model"? or anything else.
This gives me the error: Fatal error: Call to undefined method
View::request()

Thanks - sorry I'm slow at this one...

Dave



On Jul 18, 12:35 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On Fri, Jul 18, 2008 at 9:37 AM, Dave <[EMAIL PROTECTED]> wrote:
>
> > Where do I put the webservice behavior php file?
>
> /app/models/behaviours
>
> HTH
>
> Tarique
>
> --
> =
> Cheesecake-Photoblog:http://cheesecake-photoblog.org
> PHP for E-Biz:http://sanisoft.com
> =
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Webservices --- StrikeIron.com

2008-07-17 Thread francky06l

I have done some work with cake and Soap, more informations here :

http://www.cakephpforum.net/index.php?showtopic=559
hth

On Jul 18, 6:47 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On Fri, Jul 18, 2008 at 10:08 AM, Anuj Chauhan <[EMAIL PROTECTED]>
> wrote:
>
> > you can also put this in vendors folder in apps. in your app file you may
> > call this by
>
> No!
>
>
>
> > vendor("filename");
>
> And again No!!
>
> Tarique
>
> --
> =
> Cheesecake-Photoblog:http://cheesecake-photoblog.org
> PHP for E-Biz:http://sanisoft.com
> =
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Webservices --- StrikeIron.com

2008-07-17 Thread Dr. Tarique Sani
On Fri, Jul 18, 2008 at 10:08 AM, Anuj Chauhan <[EMAIL PROTECTED]>
wrote:

> you can also put this in vendors folder in apps. in your app file you may
> call this by
>


No!



>
> vendor("filename");
>

And again No!!


Tarique

-- 
=
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
=

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Webservices --- StrikeIron.com

2008-07-17 Thread Anuj Chauhan
you can also put this in vendors folder in apps. in your app file you may
call this by

vendor("filename");


Anuj

On Fri, Jul 18, 2008 at 10:05 AM, Dr. Tarique Sani <[EMAIL PROTECTED]>
wrote:

>
>
> On Fri, Jul 18, 2008 at 9:37 AM, Dave <[EMAIL PROTECTED]> wrote:
>
>>
>> Where do I put the webservice behavior php file?
>>
>
> /app/models/behaviours
>
> HTH
>
> Tarique
>
>
>
> --
> =
> Cheesecake-Photoblog: http://cheesecake-photoblog.org
> PHP for E-Biz: http://sanisoft.com
> =
>
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Webservices --- StrikeIron.com

2008-07-17 Thread Dr. Tarique Sani
On Fri, Jul 18, 2008 at 9:37 AM, Dave <[EMAIL PROTECTED]> wrote:

>
> Where do I put the webservice behavior php file?
>

/app/models/behaviours

HTH

Tarique



-- 
=
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
=

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Webservices --- StrikeIron.com

2008-07-17 Thread Dave

Where do I put the webservice behavior php file?

Thanks... can you help get me started.

Dave
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Webservices --- StrikeIron.com

2008-07-17 Thread Dave

OK great. I'll give it a go!


ty,
Dave


On Jul 17, 8:58 am, "Jonathan Snook" <[EMAIL PROTECTED]> wrote:
> It doesn't have SOAP support out of the box but might get you on your way.
>
> http://mark-story.com/Posts/view/introducing-the-webservice-behavior
>
> -Jonathan
>
> On Wed, Jul 16, 2008 at 11:07 PM, Dave <[EMAIL PROTECTED]> wrote:
>
> > Hi,
>
> > I'm new to CakePHP and it's great. I feel like cake might make it easy
> > to connect to a webservice (wsdl) and grab some data. Can someone help
> > get me started? I don't use SOAP...
>
> > Thanks!
> > Dave
--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Webservices --- StrikeIron.com

2008-07-17 Thread Jonathan Snook

It doesn't have SOAP support out of the box but might get you on your way.

http://mark-story.com/Posts/view/introducing-the-webservice-behavior

-Jonathan

On Wed, Jul 16, 2008 at 11:07 PM, Dave <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I'm new to CakePHP and it's great. I feel like cake might make it easy
> to connect to a webservice (wsdl) and grab some data. Can someone help
> get me started? I don't use SOAP...
>
> Thanks!
> Dave
>
> >
>

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Webservices --- StrikeIron.com

2008-07-17 Thread Dave

Hi,

I'm new to CakePHP and it's great. I feel like cake might make it easy
to connect to a webservice (wsdl) and grab some data. Can someone help
get me started? I don't use SOAP...

Thanks!
Dave

--~--~-~--~~~---~--~~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---