Have you edited your routes.php file to match the pattern
'/mycontroller/myfunction/1' ?

You need something like this :
$Route->connect('/mycontroller/myfunction/*', array('controller' =>
'mycontroller', 'action' => 'myfunction'));

On Mon, Oct 5, 2009 at 8:12 AM, bRuNuShky <[email protected]> wrote:

>
> Hi, I really need help to understand something...( also finish it)
>
> I was reading some notes from
>
> http://www.littlehart.net/atthekeyboard/2007/03/13/how-easy-are-web-services-in-cakephp-12-really-easy/
> ..... about web service
>
> So after read this I work my own test... I created controller function
> like in the example with all the data I need... also the xml view
> under the same controller view folder ... so if I point my browser to
> "mycontroller/myfunction/1" .. I get the render of a nice XML
> file ...so everything if ok here.... but when I set the same path in
> my javascript file (where I need to read this XML).... I get a ugly
> "The requested address <strong>'/mycontroller/myfunction/1'</strong>
> was not found on this server." ....
>
> If I change my code like some users said in tutorial... I end that I
> can read "mycontroller/myfunction.xml" with my javascript but I'm
> unable to set the extra parameter I need (/1)...
>
> here is my javascript call (I use all the alternatives in URL and
> nothing change)
> $.get('/mycontroller/myfunction/1', function(data)
>    {
>        alert(data);
>    })
>
> So if some one can help me to understand this or give me and advise
> about it I will realy appreciate it ...
>
> thanks
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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