php is shit
By: fruffl | Date: Mar 6 2010 15:19 | Format: PHP | Expires: never | Size: 479 B | Hits: 902
- <?php
- // var_dump display an ArrayObject, Flags as Probs:
- // $this->_root->Boot->System->Registry->get()->PARAMS->POST
- // by return that AO direct, i've no acces with
- // $this->_post()->probertyname
- // it returns NULL
- // why?
- // this works:
- protected function _post()
- {
- $result = new ArrayObject($this->_root->Boot->System->Registry->get()->PARAMS->POST);
- $result->setFlags(ArrayObject::ARRAY_AS_PROPS);
- return $result;
- }
- // pro hell processor -.-
Latest pastes
1 hours ago
11 hours ago
1 days ago
2 days ago
2 days ago