DooPHP IRC channel


When request method is unsupported

Discussion about new desired features.

Re: When request method is unsupported

Postby roman » Sat Aug 29, 2009 11:37 pm

I had put request method defined for the router, and the request was get.
roman
 
Posts: 442
Joined: Sat Aug 01, 2009 8:31 pm

Re: When request method is unsupported

Postby leng » Sat Aug 29, 2009 11:40 pm

Is it the latest source from the trunk? or is this an older version?
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 1:03 am

Using v1.1 with r74 of DooUriRouter.php
roman
 
Posts: 442
Joined: Sat Aug 01, 2009 8:31 pm

Re: When request method is unsupported

Postby leng » Sun Aug 30, 2009 1:10 am

roman wrote:I had put request method defined for the router, and the request was get.

That's weird, I have a put request defined and visit via get request and it only shows up 404.
By default, 404 error will be thrown up when route is not found.

May I know what URL you are accessing? and what routes you have defined?
Just Doo IT!
leng
 
Posts: 1482
Joined: Thu Jul 16, 2009 11:33 pm

Re: When request method is unsupported

Postby leng » Sun Aug 30, 2009 1:12 am

Also can you print_r($_SERVER['REQUEST_URI']) in index.php before the application runs? Do post up the result thanks.
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 1:49 am

Sure, URL: http://localhost/issuetracker/

Routes are only $route['put']['/'] = array('MainController', 'index');
print_r($_SERVER['REQUEST_URI']) produced: /issuetracker/

Note: issuetracker is an alias
roman
 
Posts: 442
Joined: Sat Aug 01, 2009 8:31 pm

Re: When request method is unsupported

Postby leng » Sun Aug 30, 2009 1:52 am

and how about the SITE_PATH, BASE_PATH, and SUBFOLDER in common.conf.php? thanks
Just Doo IT!
leng
 
Posts: 1482
Joined: Thu Jul 16, 2009 11:33 pm

Re: When request method is unsupported

Postby leng » Sun Aug 30, 2009 1:53 am

btw,have you tried working without alias?
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 3:12 am

Here's the content of common.conf.php:

Code: Select all
<?php
error_reporting(E_ALL | E_STRICT);
date_default_timezone_set('America/Chicago');

//framework use, must defined, user full absolute path and end with / eg. /var/www/project/
$config['SITE_PATH'] = str_replace('protected\config', '', str_replace('protected/config', '', dirname(__FILE__)));
$config['BASE_PATH'] = $config['SITE_PATH'].'dooframework/';
$config['APP_MODE'] = 'dev';    //for production mode use 'prod'


$config['SUBFOLDER'] = '/issuetracker/';
$config['APP_URL'] = 'http://'.$_SERVER['HTTP_HOST'].$config['SUBFOLDER'];
$config['AUTOROUTE'] = TRUE;
$config['DEBUG_ENABLED'] = TRUE;
?>


I haven't tried to work without an alias. I use them because my sites' codes are not under htdocs.
roman
 
Posts: 442
Joined: Sat Aug 01, 2009 8:31 pm

Re: When request method is unsupported

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

Can you use absolute path for the settings and see how it works?
SITE_PATH = 'C:/somewhere/here/';
Just Doo IT!
leng
 
Posts: 1482
Joined: Thu Jul 16, 2009 11:33 pm

PreviousNext

Return to Features Request

Who is online

Users browsing this forum: No registered users and 1 guest

cron