We have a network of companies that we would like to be able to match with users looking for services in their area. The network is still growing and right now and we only have companies covering Birmingham (B), Bristol (BS) and Cardiff (CF).
Unfortunately the dev looking after this project ran into some trouble and committed some broken and unfinished code. Can you help us out?
- A LAMP environment running PHP ^7
- Set the DocumentRoot for the project in your Apache config or virtual hosts config
- Import companies and matching settings from project.sql into a database and connect to the app
- Using data submitted in resources/views/layouts/form.twig, find a maximum of 3 random companies that cover:
- the postcode prefix of the postcode entered
- the number of bedrooms specified
- the type specified
- Deduct a credit from all companies matched
- Return a view with a list of companies matched
- Getting a 500 error and not sure what's going on? What environment are you in? Do you expect to see errors?
- It looks like there are some methods in the form controller that are called but not defined. Is this unfinished or has the dev forgotten something?
- Can't connect to your database? Have you set the connection settings?
- Getting errors in your views? Have you checked your blocks?
- Prevent the form from being submitted twice by disabling the submit button on first submit
- Reveal/Hide additional company information by clicking on the more link on the results page
- Install a logger and log to file whenever a company runs out of credits