Sounds like you're using the new Autoloader. Read http://devzone.zend.com/article/4525-Developing-a-Comprehensive-Autoloaderand that will give you more insight as to how it works.
My guess is that you don't have $autoloader->suppressNotFoundWarnings(false); and that's why you're getting a blank page. The command line listing at C.2.2.1. does have a missing ' in it. Worked fine for me when I corrected it and ran it against the library. Jamie On Fri, May 1, 2009 at 2:33 PM, j5 <[email protected]> wrote: > > Hey, > > I was tinkering with ZF 1.8 and the performance guide. > > Specifically: > > C.2.2.1. Strip require_once calls with find and sed. > > The sed/find commands here have changed I noticed. When I run these new > commands I get the following error: > > -bash: syntax error near unexpected token `(' > > > I took a look at the commands again and I thought I found a missing ' error > so I tried the revised commands: > > find . -name '*.php' -not -wholename '*/Loader/Autoloader.php' -print0 | \ > xargs -0 sed --regexp-extended --in-place 's/(require_once)/\/\/ \1/g' > > (I added a ' after Autoloader.php). > > That looked like it worked. But now when I browse to my website, I get a > blank page. > > > I am not sure if what I did fixed anything or what.. > > Anyone have any suggestions? > > Thanks > -- > View this message in context: > http://www.nabble.com/ZF-1.8-and-Performance-Guide-%28using-find-sed-to-remove-require-once-calls%29-tp23340034p23340034.html > Sent from the Zend Framework mailing list archive at Nabble.com. > >
