Posts

Showing posts with the label symfony2

Install Symfony on Vagrant Environment

Image
Vagrant is a tool for building and managing virtual machine environments. Assuming you have already installed and  vagrant up your virtual environment. Execute the following instructions on your terminal console. Download symfony installer sudo curl -LsS https://symfony.com/installer -o /usr/local/bin/symfony sudo chmod a+x /usr/local/bin/symfony Create project directory symfony new my_project Then, you can: * Change your current directory to /vagrant/my_project * Configure your application in app/config/parameters.yml file. * Run your application: 1. Execute the php bin/console server:run command. 2. Browse to the http://localhost:8000 URL. * Read the documentation at http://symfony.com/doc Running #1, should produce result similar to this: php bin/console server:run [OK] Server running on http://127.0.0.1:8000 // Quit the server with CONTROL-C. If you have private network map set in Vagrantfile then do not use server:run as it only listens to http...

Installing Symfony 2.0 Framework in Ubuntu

Symfony is PHP MVC framework used to create websites and web application. There are certain things you need to do first because you can run a Symfony website This guide provides a step by step instructions on setting up Symfony in your localhost. 1. Prepare the requirements. Follow the link of the ff softwares and packages to download: Symfony 2.0 with vendors ( preferrably v2.0.17 since this guide was based on that. ) Propel ORM Phing Propel Bundle 2. Extract each packages in its rightful location Symfony -> your web root Propel ORM -> Symfony/vendor Phing -> Symfony/vendor Propel Bundle -> Symfony/vendor/bundles/Propel 3. Register the Propel Bundle in app/AppKernel.php and app/autoload.php # add this code in app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Propel\PropelBundle\PropelBundle(), ); // ... } # add this code in app/autoload.php $loader->registerNamespaces(ar...