Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
PHP probs

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
liban0n



Joined: 10 Feb 2004
Posts: 128
Location: Dubrovnik, Zagreb

PostPosted: 29.01.2007 10:59    Post subject: PHP probs Add user to your forum ignore list Reply with quote

Dakle problem je nastao kod sljedece klase Smile

Code:

abstract class Action
   {
      
         public function handle() {
            if(HttpRequest::is_POST()) {
               return $this->handlePOST();
            }
            elseif (HttpRequest::is_GET()) {
               return $this->handleGET();
            }
         }
         
         protected function handlePOST() {}
         
         protected function handleGET() {}
         
         
   }


Greska koja se javlja je :

Fatal error: Call to undefined method HttpRequest::is_post() in /home/dunet/public_html/crorent/backoffice/classes/action/class.Action.php on line 17


Prvo sto mi je cudno zato sto metodu pise malim slovima iako je svugdje definirana velikim is_POST ili is_GET

isto tako klasa HttpRequest je vec odavno includana preko autoload-a.
I izgleda ovako nekako ...

Code:

final class HttpRequest {
   private function __construct() {}
   
   /**
   * Checks if servers REQUEST_METHOD is POST
   *
   * @access public
   * @return bool
   * @static
   */
   static function is_POST() {
        return self::checkMethod('POST');
    }

    /**
   * Checks if servers REQUEST_METHOD is GET
   *
   * @access public
   * @return bool
   * @static
   */
    static function is_GET() {     
        return self::checkMethod('GET');
    }


Na serveru je verzija 5.2.0 ista verzija je i u mene lokalno. Ali kod mene radi a na serveru je radilo do prije par dana Smile
Uzas .... ako moze netko dat kakvu ideju ..

_________________
mount -t swap /dev/brain /mnt/head
look'n for a job
Back to top
View user's profile Send private message Visit poster's website
liban0n



Joined: 10 Feb 2004
Posts: 128
Location: Dubrovnik, Zagreb

PostPosted: 29.01.2007 11:58    Post subject: Add user to your forum ignore list Reply with quote

uglavnom HttpRequest je klasa unutar PHPa i zato je pucalo ... ovo je vjerovatno doslo sa novom verzijom ... debug Smile

_________________
mount -t swap /dev/brain /mnt/head
look'n for a job
Back to top
View user's profile Send private message Visit poster's website
Sulien



Joined: 04 Jan 2004
Posts: 2905
Location: Zagreb

PostPosted: 29.01.2007 23:19    Post subject: Add user to your forum ignore list Reply with quote

Mene isto ubilo u pojam, imao sam svoju istoimenu klasu do te verzije

Trebalo mi je dva sata da skužim Very Happy
Back to top
View user's profile Send private message Send e-mail Visit poster's website
liban0n



Joined: 10 Feb 2004
Posts: 128
Location: Dubrovnik, Zagreb

PostPosted: 30.01.2007 10:40    Post subject: Add user to your forum ignore list Reply with quote

Ma totalno glupo ... plus mi hosting provajder se kune da nista nisu dodavali u zadnjih par dana ... a sto sam vidio da nije istina Smile

Uglavnom jedno iskustvo vise Smile)

_________________
mount -t swap /dev/brain /mnt/head
look'n for a job
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group