Quick Tip: If you want to change the default layout script in your Zend Framework MVC application, you can do one of the following:
// Within controller
//Within view script
Thanks to Andrew at the StackOverflow forums.
Quick tip: If you’re wanting to have your Apache document root point to a network share in Windows, here’s what you have to do:
- Change your DocumentRoot to the network share (drive remapping doesn’t seem to work). Example: DocumentRoot “//path/to/share”
- Make sure to update the DocumentRoot path in your <Directory> config
- Edit the Apache service
- On the “Log On’” tab, click the “Browse” button next to the “This account” radio button.
- Type in an account name that has access privileges to the network share and click “OK”
- Enter the correct password for the user
- Restart Apache and LOL your way to the bank.
Having difficulty connecting to MySQL through PHP 5.3.x? Know that MySQL and PHP are properly configured? Using Windows Vista / 7? The problem may very well be that you’re connecting to ‘localhost.’ According to Joe Bedan, simply changing ‘localhost’ to ‘127.0.0.7’ will fix the problem, and he’s right!
According to another forum post, this is because Vista/7 does some goofy stuff with the ‘localhost’ alias. This person suggests that modifying the C:\Windows\System32\drivers\etc\hosts file to contain the line ‘127.0.0.1 localhost’ will fix the problem (make sure to do this as an administrator!). Unfortunately, this wasn’t the case for me. However, it’s worth a shot for anyone experiencing this problem.