Go Premium for a chance to win a PS4. Enter to Win

x

Symfony

7

Solutions

16

Contributors

Symfony is a PHP web application framework for MVC applications. Symfony provides an architecture, components and tools for developers to build complex web applications faster. Symfony is aimed at building robust applications in an enterprise context by speeding up the creation and maintenance of web applications and replacing repetitive coding tasks. It has a low performance overhead used with a bytecode cache and gives developers full control over the configuration.

Share tech news, updates, or what's on your mind.

Sign up to Post

Going through a tutorial on PHP Symfony and at one point it suggests setting up a git repository. Here's my CLI sequence...

screenshot
This is supposed to be cake and ice cream. Navigate to the home directory, enter "git init" and then, BOOM.

Instead I get an error that says "the git command is not recognized..."

What am I missing?
0
How to Use the Help Bell
LVL 11
How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

I'm going through a tutorial in Symfony and despite the fact that I'm still in the shallow end of the pool, I can't get the very first page in the tutorial to come up and I don't know why.

Let me also mention this: According to the tutorial, I should get a default page when I use this URL: localhost/aqua_note. An error came up when I went to that URL. When I went to this URL: localhost/aqua_note/web, I got the default page they reference in the course.

I removed the DefaultController and replaced it with the code they present which looks like this:

<?php

namespace AppBundle\Controller; //namespace must match the Directory Structure

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Symfony\Component\HttpFoundation\Response;

class DefaultController
{
	/**
	*@Route("/genus")
	*/
	public function showAction() //the only rule for a controller function is that it must return a Symfony response object
	{
		return new Response('Under the Sea!');
	}
}


?>

Open in new window


When I go to the page which should show up now as localhost/aqua_note/genus, I get a 500 error.

Why? What am I doing wrong?

Let me also say that I ran into some trouble using the Symfony installer and instead used Composer. If that makes a difference, I'm not sure, but any direction at this point would be very much appreciated.

Thanks!
0
I've downloaded the installer, moved it to the wamp64 directory.

I'm running the Command Prompt as an Administrator, but when I go to do the command, "symfony new project" I get an error that says, "'symfony' is not recognized as an internal or external command,
operable program or batch file."

What am I doing wrong?

Here's a screenshot:

screenshot
Thanks!
0
- We are currently using Symfony2 for our developments.
- We plan a major redesign of our main application.
- I'm afraid that Symfony performance (speed, memory) is really bad
- So I'm exploring other PHP-Frameworks that might improve the situation.

Question: Which php framework are you using? would you recommend?

My homework: some of the links I have explored without feeling completely informed...
- https://www.experts-exchange.com/questions/28933008/PHP-Frameworks.html here seem to very warmly recommend Laravel
- http://www.sitepoint.com/best-php-framework-2015-sitepoint-survey-results/ gives the result of a survey among their readers (I must confess I'm slightly sceptic when looking at ZF popularity, that I would believe really higher in "real world")
- https://www.techempower.com/benchmarks/#section=data-r12&hw=peak&test=json&b=1&s=2&l=sg&p=w-4fti4g-0&d=1y&a=1 (and other tabs) give some performance data about multiple usage scenarios, in which phalcon shines as compared to well established frameworks like Laravel, Symfony or Zend Framework.


Getting performance around 10-20 times better for Phalcon than for Symfony, Laravel or ZF really puzzles me: I can compensate a X2 or x4 handicap by spending more money on my servers rents, but I'm afraid x10 or x20 simply does not make an economic sense.

You comments, suggestions and warning will really be useful!
1
in a framework like Symfony, should we throw exceptions from managers / models or Controllers?

Right now I am throwing it from both, just wanted to know what's the practice is?
0
Hi,

Symfony is creating new session ID on every AJAX request. Because of this sessions are getting maintained. How can I fix this?
0
Hi,

I have three domains:

1. Domain A [Symfony 2.7 API Endpoints only]
2. Domain B [Angular APP]
3. OpenId provider

If user logs in into Domain A via Open Id, how can I set the session in Domain B. Right Now when I am trying to set the session via Angular APP, it just stays for very same request, as soon as I refresh the page Session expires.

I have this in my config.yml

    session:
        # handler_id set to null will use default session handler from php.ini
            name: nandan_sess
            cookie_httponly:  false
            cookie_lifetime:  86400
0

Symfony

7

Solutions

16

Contributors

Symfony is a PHP web application framework for MVC applications. Symfony provides an architecture, components and tools for developers to build complex web applications faster. Symfony is aimed at building robust applications in an enterprise context by speeding up the creation and maintenance of web applications and replacing repetitive coding tasks. It has a low performance overhead used with a bytecode cache and gives developers full control over the configuration.

Top Experts In
Symfony
<
Monthly
>

No Top Experts for this time period. Answer questions to earn the title!