Thursday, 22 February 2007
Tip for Clearing the PHP 5 Warnings in EclipsePHP |
| |
|
| |
Benjamin Hill, in a new post over the Bakery blog gives a brief tutorial on how to clear warnings in EclipsePHP while using a PHP 5 framework. He says, CakePHP framework, sometimes is surprising to those who are used to programming with PHP 5. As EclipsePHP spits out pages and pages of warnings when compiling towards a PHP 5 base, scaring new CakePHP converts, he explains.
He gives a tip to clear these warnings. He says this tip follows the https://trac.cakephp.org/wiki/Developement/CodingStandards. He says to run the following replacements in eclipse across the entire workspace as case-sensitive matches:
1. & -> 2. var __ -> private __ 3. var _ -> protected _ 4. var -> public 5. function -> public function 6. public function _ -> protected function _ 7. protected function __ -> private function _
|
| |
|
Read the Post
|
| |
|
|
| |
|
|
| |
|