DooPHP IRC channel


When request method is unsupported

Discussion about new desired features.

Re: When request method is unsupported

Postby roman » Sun Aug 30, 2009 3:22 am

I can, but it won't change anything as $config['SITE_PATH'] gets assigned the correct value: C:\Users\[my user name]\Documents\Dev\Web\Sites\IssueTracker\
roman
 
Posts: 442
Joined: Sat Aug 01, 2009 8:31 pm

Re: When request method is unsupported

Postby leng » Sun Aug 30, 2009 3:46 am

forward slash / instead of \ ?
Just Doo IT!
leng
 
Posts: 1482
Joined: Thu Jul 16, 2009 11:33 pm

Re: When request method is unsupported

Postby roman » Sun Aug 30, 2009 4:59 am

That didn't matter. However, when I commented out $config['AUTOROUTE'] = TRUE;, I got only one warning message:

Warning: Invalid argument supplied for foreach() in C:\Users\Computer God\Documents\Dev\Web\Sites\IssueTracker\dooframework\uri\DooUriRouter.php on line 274

Would you please look at my common.conf.php again to see if you spot any problems? (You have to scroll the code block here on the forum to see it completely :) ).

P.S. Could you increase the number of posts per page?
roman
 
Posts: 442
Joined: Sat Aug 01, 2009 8:31 pm

Re: When request method is unsupported

Postby roman » Sun Aug 30, 2009 5:09 am

And are we testing the same things? I only define one route in this test:

Code: Select all
$route['put']['/'] = array('MainController', 'index');
roman
 
Posts: 442
Joined: Sat Aug 01, 2009 8:31 pm

Re: When request method is unsupported

Postby roman » Sun Aug 30, 2009 5:26 am

More trouble: when a GET parameter is passed, my controller's index method is executed (and error or warning message is displayed) even though I only define put method: $route['put']['/'] = array('MainController', 'index');
roman
 
Posts: 442
Joined: Sat Aug 01, 2009 8:31 pm

Re: When request method is unsupported

Postby leng » Sun Aug 30, 2009 8:33 am

try the latest SVN, there's a fix for this, some logic is wrong in r74.
Just Doo IT!
leng
 
Posts: 1482
Joined: Thu Jul 16, 2009 11:33 pm

Re: When request method is unsupported

Postby roman » Sun Aug 30, 2009 10:31 pm

Yes, the latest version fixed what I reported in http://www.doophp.com/forum/viewtopic.php?f=9&t=139&start=20#p787. But the original problem I posted in this thread is still there. I still get the following when I have only define put route but access the app with a get (for example) request:

Code: Select all
Warning: Invalid argument supplied for foreach() in C:\Users\Computer God\Documents\Dev\Web\Sites\DooPHPPlatform\trunk\svn\dooframework\uri\DooUriRouter.php on line 267


Maybe I will recreate the app and describe the steps to reproduce the problem for you on the Google code site.
roman
 
Posts: 442
Joined: Sat Aug 01, 2009 8:31 pm

Re: When request method is unsupported

Postby roman » Sun Aug 30, 2009 11:36 pm

Leng, after I defined error route in routes.conf.php:
Code: Select all
$route['*']['/error']   = array('ErrorController', 'index');

and
set this
Code: Select all
$config['ERROR_404_ROUTE'] = '/error';

in common.conf.php

the error message no longer is displayed, and the error controller's index method is called, instead.
roman
 
Posts: 442
Joined: Sat Aug 01, 2009 8:31 pm

Re: When request method is unsupported

Postby leng » Mon Aug 31, 2009 2:04 am

Ah, right!~
Just Doo IT!
leng
 
Posts: 1482
Joined: Thu Jul 16, 2009 11:33 pm

Previous

Return to Features Request

Who is online

Users browsing this forum: No registered users and 1 guest

cron