Src of an iframe in php Symfony

0

good day! I tell you that I'm looking at a php code that I use Symfony, to which I have to change some styles. In a form you have an iframe with the following src      src="/ web / index.php / form"

I have to change the style of that form but I do not know in which part of the project to look for it. Obviously there is not a folder called index.php so I calculate that it is loading something from there. I pass the code of said index.php:

 <?php
require_once(dirname(__FILE__).'/../config/ProjectConfiguration.class.php');
$configuration = 
 ProjectConfiguration::getApplicationConfiguration('frontend', 'prod', false);
 sfContext::createInstance($configuration)->dispatch();

Since a thousand thanks

    
asked by Lautaro 26.02.2018 в 17:41
source

1 answer

0

This is a project carried out with symfony 1. In this version, the routes are stored within each application (A project can have multiple applications), in this case the application is called frontend by that should look for the route in: apps/frontend/config/routing.yml

In that file you will find the desired route with the information of the module that manages it. For example you can find something similar to:

form_route:
  url:           /formulario
  param:         { module:myModule, action:myForm }
  requeriments:  { sf_method: post }

This route says that you should go to the myModule module and look for the myForm action that should be on the path apps/frontend/modules/myModule/actions/actions.class.php . In that file you must locate the method called executeMyForm and in it you can see the code used to render the form.

Already to see the template that manages such action must go to the path apps/frontend/myModule/templates/myActionSuccess.php

    
answered by 17.04.2018 в 23:09