This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Enhouse provided access to jobs and projects for freelancers inside the network. We also wanted the site to display to the public (Non members) and provide them the ability to search and apply. | |
| This required substantial modifications to several classes, services and controllers inside our Symfony2 framework. | |
| First, inside the SearchController, we have to ensure the visitor is not an existing user (Signed in) using Twig {% if app.user %}. | |
| The application or bidding process is managed through the JobController. | |
| Inside we have public functions indexAction() and projectAction(). | |
| indexAction starts by checking and notifying if the user has signed up before (Lines 50 – 58). | |
| Next if the form is valid and they’re a new user we further there application then request email confirmation (Lines 59 – 87) | |
| Next we request a CV (Lines 89 – 107) and confirm. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Our site is a scroll down design split into several sections. My modifications included: | |
| Removing 2 sections of code and the corresponding css code | |
| Rewriting the content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| This section is split in half. One side an image, the other site content and pdf link. | |
| This code enables our PDF Infographic to open up inside a new tab (target="_blank") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| namespace AppBundle\Form; | |
| use Symfony\Component\Form\AbstractType; | |
| use Symfony\Component\Form\FormBuilderInterface; | |
| use Symfony\Component\Validator\Constraints\Collection; | |
| class ContactType extends AbstractType | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require 'vendor/autoload.php'; | |
| // https://github.com/scheb/yahoo-finance-api | |
| // The extremely useful scheb yahoo finance api is used extensively through our site | |
| function TwentyDayAvg($symbol) | |
| { | |
| $client = new Scheb\YahooFinanceApi\ApiClient(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| include('simple_html_dom.php'); | |
| require 'vendor/autoload.php'; | |
| include("Helper.php"); | |
| include("BaseController.php"); | |
| $client = new Scheb\YahooFinanceApi\ApiClient(); | |
| // Uploading the price target from Yahoo Finance for every company listed in the company table |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| require '../vendor/autoload.php'; | |
| function TwentyDayAvg($symbol) | |
| { | |
| $client = new Scheb\YahooFinanceApi\ApiClient(); | |
| $endDate = new DateTime(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| define('_HOST_NAME', '......'); | |
| define('_DATABASE_USER_NAME', '....'); | |
| define('_DATABASE_PASSWORD', '....'); | |
| define('_DATABASE_NAME', '....'); | |
| $dbConnection = new mysqli(_HOST_NAME, _DATABASE_USER_NAME, _DATABASE_PASSWORD, _DATABASE_NAME); | |
| if ($dbConnection->connect_error) { | |
| trigger_error('Connection Failed: ' . $dbConnection->connect_error, E_USER_ERROR); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| function submitdata() { | |
| var formMessages = $('#form-messages'); | |
| var fullname = document.getElementById("fullname").value; | |
| var email = document.getElementById("email").value; | |
| var subject = document.getElementById("subject").value; | |
| var message = document.getElementById("message").value; | |
| var dataString = 'fullname=' + fullname + '&email=' + email + '&subject=' + subject + '&message=' + message; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $host = 'localhost'; | |
| $username = 'root'; | |
| $password = ''; | |
| $database = 'database_name'; | |
| $dbconfig = mysqli_connect($host,$username,$password,$database); |
OlderNewer