Joined August 2011
·
Posted to
PHP Private Class Member Visibility
over 1 year
ago
Your tip maks no sense at all. It's the expected behaviour, since you're injecting an instance of a class (== object) with all it's attributes and methods.
Posted to
'sudo' after opening the file
over 1 year
ago
Awesome tip, thanks for that. I'd remove the "rails" tag tho, since this tip is useful to any file type.
Posted to
Check/Fix your PHP code - PSRs
over 1 year
ago
Thanks for the feedback.
That's why the title has "PSRs" in it. The idea was to make a concise title, but giving the idea that in this tip you find a tool that fix your mistakes related to the PSRs.
Any other code problems should be fixed by the programmer anyway, so...
Posted to
Protect yourself from trashing the production database
over 1 year
ago
Great tip, never heard of it before. =)
Achievements
61 Karma
4,824 Total ProTip Views
Nephila Komaci
Have at least one original repos where PHP is the dominant language
Charity
Fork and commit to someone's open source project in need
Just use the native filter functions, such as http://docs.php.net/manual/en/function.filter-input-array.php
They're available since PHP 5.2!