Results 1 to 5 of 5

Thread: How to install PHP5 Framework Symfony

  1. #1
    Join Date
    Sep 2010
    Posts
    20

    How to install PHP5 Framework Symfony

    I want to install the Symfony but I am not aware about the installation process and the requirements of it. So I had never tried till now. Thought that you members will help me in this topic. Please tell me how to install PHP5 Framework Symfony? It would be much better if you provide some steps that would be useful for installing it. Also I am curious to know about the features of the Symfony. I would be using the MySQL as my backend. So one more request, please provide some code that can be helpful while creating the database.

  2. #2
    Join Date
    Feb 2010
    Posts
    178

    Re: How to install PHP5 Framework Symfony

    Symfony is an open source MVC framework written in PHP 5 which draws heavily from Ruby On Rails. It helps facilitate and accelerate the development of Internet and Intranet applications. The following are some features of Symfony :
    • A separation of code into three layers, as the MVC
    • Templating a simple PHP-based games and "helpers"
    • A system configuration that uses cascading extensively YAML language
    • A generator back-office and a "starter unit" (scaffolding)
    • Support for I18N - symfony is natively multi-lingual
    • A layer of object-relational mapping (ORM) and a layer of data abstraction
    • Support for Ajax
    • An extensible architecture, enabling the creation and use of plugins

  3. #3
    Join Date
    Feb 2010
    Posts
    641

    Re: How to install PHP5 Framework Symfony

    To install symfony, you must first have an HTTP server (apache2 or another) and PHP5 on your system. On distributions based on Debian installation method is as follows: Add this line at the end of / etc / apt / sources.list on your system:
    http://www.symfony-project.org/get deb debian /
    Then install the packages as follows:
    [Root ~] # apt-get update
    [Root ~] # apt-get install php5-symfony-php5 xsl
    Symfony is now properly installed on your system.

  4. #4
    Join Date
    Feb 2010
    Posts
    644

    Re: How to install PHP5 Framework Symfony

    To support this comment in this part we will create a property management application based on two major features of Symfony: generating classes (MNOs) from an existing database and generation of forms. I would like to give an example for creation of the database :
    Code:
    CREATE TABLE TYPE_BIEN ( 
    
    idTypeWell INTEGER NOT NULL AUTO_INCREMENT 
    
    , LibTypeWell VARCHAR (255) NOT NULL 
    
    , PRIMARY KEY (IdTypeWell) 
    
    ); 
    
    
    CREATE TABLE PROPERTY ( 
    
    idWell INT NOT NULL AUTO_INCREMENT 
    
    , LibWell VARCHAR (255) NOT NULL 
    
    , DescriptionWell TEXT NOT NULL 
    
    , DateLimiteWell DATE NOT NULL 
    
    , Price FLOAT NOT NULL 
    
    , IdTypeWell INTEGER NOT NULL 
    
    , PRIMARY KEY (IdWell) 
    
    , INDEX (IdTypeWell) 
    
    , CONSTRAINT FOREIGN FK_WELL_1 KEY (IdTypeWell) 
    
    REFERENCES TYPE_WELL(idTypeWell) 
    
    );

  5. #5
    Join Date
    Feb 2010
    Posts
    181

    Re: How to install PHP5 Framework Symfony

    Once the database created. We must create our symfony project and complete the connection settings. At first, generate the project:
    [User / var / www] $ mkdir Application
    [User / var / www] $ cd Application
    [User / var / www / Application] $ symfony init-project Application
    The project structure has been generated, the most important files are:
    • apps /: Contains the web applications we will create (a project can contain multiple applications, and applications contain modules)
    • config /: Contains the configuration files of our project
    • lib /: Contains business classes of our project
    • web /: Includes the images and CSS stylesheets used by the views of our applications

Similar Threads

  1. Cannot install .net framework 4
    By crocter in forum Windows Software
    Replies: 1
    Last Post: 17-01-2011, 07:49 AM
  2. How to Install Nginx with PHP5 on Fedora 12
    By OSzilla in forum Operating Systems
    Replies: 5
    Last Post: 09-02-2010, 03:36 AM
  3. Symfony questions
    By KACY5 in forum Software Development
    Replies: 3
    Last Post: 03-11-2009, 06:05 PM
  4. Can't install .NET Framework
    By Breckon in forum Windows XP Support
    Replies: 7
    Last Post: 29-10-2009, 08:44 PM
  5. Install PHP5 On Fedora 10 and Apache2 with mod_fcgid
    By mauricio in forum Guides & Tutorials
    Replies: 5
    Last Post: 16-03-2009, 10:35 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,556,480.01932 seconds with 17 queries