Public paste
php is shit
By: fruffl | Date: Mar 6 2010 15:19 | Format: PHP | Expires: never | Size: 479 B | Hits: 455

  1. <?php
  2.  
  3. // var_dump display an ArrayObject, Flags as Probs:
  4. // $this->_root->Boot->System->Registry->get()->PARAMS->POST
  5.  
  6. // by return that AO direct, i've no acces with
  7. // $this->_post()->probertyname
  8. // it returns NULL
  9.  
  10. // why?
  11.  
  12. // this works:
  13.  
  14. protected function _post()
  15. {
  16.         $result = new ArrayObject($this->_root->Boot->System->Registry->get()->PARAMS->POST);
  17.         $result->setFlags(ArrayObject::ARRAY_AS_PROPS);
  18.        
  19.         return $result;
  20. }
  21.  
  22. // pro hell processor -.-
Latest pastes
7 hours ago
6 days ago
18 days ago
23 days ago
25 days ago