-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I need to require a domain name in my symfony routing, my route looks like the following:
domain_example:
url: /routing/example/:domain_name
param: { module: myModule, action: index, sf_format: json }
requirements: { domain_name: '/^[a-z0-9]+([\-\.]{1}[a-z0-9]+)*\.[a-z]{2,5}$/' }
I have also tried:
requirements:…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Hey guys,
I'm having an annoying problem. I'm trying to find out what fields of a form were changed, and then insert that into a table. I managed to var_dump in doUpdateObjectas shown in the following
public function doUpdateObject($values)
{
parent::doUpdateObject($values);
var_dump($this->getObject()->getModified(false));
…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
I've got a pretty big Symfony 1.2 project to migrate.
First, I modified my .htaccess so I can have some pages handled by Symfony 2.
What I'd like to do, to make the migration smoother, is to be able to render some SF2 action/templates/methods/... inside SF1.
I added the autoloader to the SF1 app…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
Is it possible to set the /web directory as webroot whithout changing apache configuration file?
I tried using the following .htaccess code, but if i go to localhost/module/, it displays 404 error. But if i go to localhost/web/module/ then everything works.
<IfModule mod_rewrite.c>
RewriteEngine…
>>> More
-
as seen on Stack Overflow
- Search for 'Stack Overflow'
How can i set images, css and javascript folders paths.
I want them to eb in directory called static, not in the web root.
>>> More