symfony-3.1

Symfony offline installation with composer

我怕爱的太早我们不能终老 提交于 2019-12-13 12:09:54
问题 I'm trying to install Symfony on a server , which has no connection to the internet . I copied composer on the server but when i try to install it i get this error Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org Is there any possible way to install symfony without active connection to the internet; like download the framework, put it on the server and then run the composer offline? Or does it have too many dependencies, which would be included? I've already googled but

SYMFONY3 in prod look for TWIG template in wrong folder instead of custom bundle indicated in routing.yml and AppKernel.php

故事扮演 提交于 2019-12-12 06:05:22
问题 I am implementing a SYMFONY 3 project in production mode for the first time. I follow OceanDigital tutorial and the standard doc. I went thru a bunch of issues linked to user writing rights that I've solved, and I do get now a SYMFONY ERROR page (one step closer to victory) with this message: Unable to find template "MyBundle:std_page:home.html.twig" (looked into: /[folder to symf project]/app/Resources/views, /[folder to symf project]/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources

Draw charts with a Loop using HighCharts in symfony

五迷三道 提交于 2019-12-08 03:24:30
问题 I am currently using Highcharts in symfony. It works good when I enter static data (array1/array2/array3/array4) like this: $ob1 = new Highchart(); $ob1->chart->renderTo('barchart'); $ob1->title->text('Chart 1'); $ob1->xAxis->categories($arrayResult); $ob1->plotOptions->pie(array( 'allowPointSelect' => true, 'cursor' => 'pointer', 'dataLabels' => array('enabled' => false), 'showInLegend' => true )); $ob1->series(array(array('type' => 'column','name' => 'bar1', 'data' => $array1), (array('type

Symfony offline installation with composer

天涯浪子 提交于 2019-12-04 13:02:05
I'm trying to install Symfony on a server , which has no connection to the internet . I copied composer on the server but when i try to install it i get this error Connection Error [ERR_CONNECTION]: Unable to connect to getcomposer.org Is there any possible way to install symfony without active connection to the internet; like download the framework, put it on the server and then run the composer offline? Or does it have too many dependencies, which would be included? I've already googled but couldn't find a satisfying solution. Do composer install -o to install. Then do all preparations like

How to set up Typescript in Symfony?

穿精又带淫゛_ 提交于 2019-12-04 00:42:34
问题 Question: How do I set up Typescript with Symfony with the minimum amount of configurations changes to Symphony’s configuration files? Here are the points that this solution should solve: Typescript MVC Pattern in a private typescript directory: src > XBundle > Resources > private > typescript Javascript bundles compiled in : src > XBundle > Resources > public > js the private directory should consist of multiple apps for different pages. (If an app requires it's own tsconfig.json file, that

Payum Paypal Rest config_path

落花浮王杯 提交于 2019-12-02 05:22:33
问题 I am trying to implement paypal-rest payment with the payum bundle in symfony (3.1.4). I need to get PayPal Plus running in my Symfony App. Therefore I read this article https://github.com/Payum/Payum/blob/master/docs/paypal/rest/get-it-started.md Now - I can't figure out what the 'config_path' parameter is ment to be set to and what exactly has to be provides at this config_path. Symfony states 'The config_path fields are required.' My payum config looks like this atm payum: security: token

Payum Paypal Rest config_path

北城余情 提交于 2019-12-02 01:25:25
I am trying to implement paypal-rest payment with the payum bundle in symfony (3.1.4). I need to get PayPal Plus running in my Symfony App. Therefore I read this article https://github.com/Payum/Payum/blob/master/docs/paypal/rest/get-it-started.md Now - I can't figure out what the 'config_path' parameter is ment to be set to and what exactly has to be provides at this config_path. Symfony states 'The config_path fields are required.' My payum config looks like this atm payum: security: token_storage: AppBundle\Entity\PaymentToken: { doctrine: orm } storages: AppBundle\Entity\Payment: {

assetic.ERROR “DoctrineBundle:Collector:db.html.twig” contains an error: Unknown “profiler_dump” function

我们两清 提交于 2019-12-01 18:14:53
I am trying to send emails with Symfony. Everything works perfect locally. But on server I get following errore in prod.log : assetic.ERROR: The template "SecurityBundle:Collector:security.html.twig" contains an error: Unknown "profiler_dump" function in "SecurityBundle:Collector:security.html.twig" at line 180. assetic.ERROR: The template "DoctrineBundle:Collector:db.html.twig" contains an error: Unknown "profiler_dump" function in "DoctrineBundle:Collector:db.html.twig" at line 241 These are bundles I have in composer.json "php": ">=5.5.9", "symfony/symfony": "3.1.*", "doctrine/orm": "^2.5",

assetic.ERROR “DoctrineBundle:Collector:db.html.twig” contains an error: Unknown “profiler_dump” function

旧街凉风 提交于 2019-12-01 17:38:03
问题 I am trying to send emails with Symfony. Everything works perfect locally. But on server I get following errore in prod.log : assetic.ERROR: The template "SecurityBundle:Collector:security.html.twig" contains an error: Unknown "profiler_dump" function in "SecurityBundle:Collector:security.html.twig" at line 180. assetic.ERROR: The template "DoctrineBundle:Collector:db.html.twig" contains an error: Unknown "profiler_dump" function in "DoctrineBundle:Collector:db.html.twig" at line 241 These

How to set up Typescript in Symfony?

孤街醉人 提交于 2019-12-01 03:17:00
Question: How do I set up Typescript with Symfony with the minimum amount of configurations changes to Symphony’s configuration files? Here are the points that this solution should solve: Typescript MVC Pattern in a private typescript directory: src > XBundle > Resources > private > typescript Javascript bundles compiled in : src > XBundle > Resources > public > js the private directory should consist of multiple apps for different pages. (If an app requires it's own tsconfig.json file, that's fine) an app is simply (for example) home.app.ts that imports (for example) a search.component.ts and