Before diving into this... the welcome page is loading fine, but all links on the homepage/welcome throw 404s. The links are all of the form /index.php/projects.
Question: are these links supposed to be of the form /index.php/quartz_chem? If not, any idea why they are incorrect? Perhaps a path variable someplace? I'm quite confident that a connection to a DB is not being established on index.php load, as the db/username/password can be correct or wrong in the config/database.php and it doesn't affect index.php behavior at all.
Thanks for entertaining a simple mechanical question. I've forked repo at UW-Macrostrat and am tweaking there before submitting a pull for your consideration.
The correct link depends on your setting of $config['base_url'], but on my local setup with base_url set to http://localhost/chemdb/ the project links go to http://localhost/chemdb/index.php/projects. Can you share your setting for base_url and the complete URL of the links that are not working?
I can't seem to reproduce this issue, so I either don't have enough information about how to reproduce it or it's some problem with how you have set up your development environment.
What operating system, web server and PHP versions are you running?
When you're shown a 404 the browser navigation bar shows you are at http://localhost/chemdb/index.php/projects? Is this a 404 from the application (our has some styling) or a 404 from your web server? If this were a database configuration error I would not expect you to get a 404, more likely an exception from our database library.
Permissions all look OK for files under app/, particularly app/views and app/controllers and their contents, to be read by the web server?
The only thing I can think of that might otherwise be an issue is the URI protocol setting. You might try setting $config['uri_protocol'] = 'QUERY_STRING'; in app/config/config.php.
Awesome. This is not necessary when running on Apache, which is what all of our installs use that I am aware of. If that is what you would use in production you probably will only need to add the ? while doing development in your current setup.
Yes, that is correct!
But it turns out that it wasn't necessary. A shortcut was had and the standard mysql connection worked.
FYI, mysqli as dbdriver in /config/database.php threw this error: Message: Couldn't locate driver named mysqli
Doesn't make any sense as mysqli is listed as a valid driver. But, in any case, I simplified to mysql and let php.ini handle the socket and it was all good.
Yeah some of the documentation in that code is not correct as it's a holdover from the CodeIgniter database documentation, while we switched to using Doctrine a long time ago. Doctrine just calls it mysql. I'll look into improving the comments there.
教条1是不受支持的这些天, 我希望最终迁移到其他的东西。我的知识 mysqli 从来没有工作过, 但如果你把它设置为 mysql 它使用 mysql 驱动程序为 PDO, 所以它不是旧的 PHP mysql 驱动程序。
Doctrine 1 is unsupported these days and I expect to migrate to something else eventually. To my knowledge mysqli never worked, but if you set it to mysql it uses the mysql driver for PDO, so it's not the old PHP mysql driver.