« Return to Thread: Removing Require_once

Re: Re[fw-general] moving Require_once

by admirau :: Rate this Message:

Reply to Author | View in Thread


Matthew Ratzloff wrote:
The complete command is therefore:

% cd path/to/ZendFramework/library
% find . -name '*.php' | grep -v './Loader/Autoloader.php' | \
xargs sed -E -i~ 's/(require_once)/\/\/ \1/g'
% find . -name '*.php~' | xargs rm -f
Shouldn't this script be part of the ZF package?

--
regards
takeshin

 « Return to Thread: Removing Require_once