Questions about Symfony version 1.4, a PHP framework by Sensio Labs.

learn more… | top users | synonyms (1)

1
vote
0answers
11 views

403 error when accessing the admin section of my website (using symfony 1.4.x)

I got a website I inherited. It's been been moved to a new server and now the admin section of the website does not work. I get a 403 when I click on the link. error message on my browser Forbidden ...
0
votes
1answer
20 views

How to show current user type in symfony 1.4

In my symfony 1.4 project I have 3 types of user (admin,moderator,reader) with different types of access. How can I show which type of user is current user?
0
votes
0answers
24 views

symfony 1.4 clear cache

I want to add a directory in /cache. i.e. /cache/custom and if I run command: ./symfony clear:cache All files in custom directory gets deleted. I don't want these files deleted even if I run ...
2
votes
1answer
36 views

How to get DQL result from the template with symfony 1.4?

I'm working with symfony 1.4 and Doctrine. I'm writing an app about some pubs/bars, and I've got 4 tables: products orders product_order pubs. I want to get the times all products have been ...
1
vote
0answers
35 views

Choose/Avoid Symfony Forms

I am using Symfony. I am exploring Symfony Forms and exploring its benifit and drawback. I guess the main use of using these forms is the validation part. But I need to change the html provided to ...
0
votes
0answers
30 views

Reduce the length of the URL

Is it possible to reduce length of URL in symfony 1.4? For example this URL: ...
2
votes
1answer
31 views

How to add conditions in find() function?

This is my query : Doctrine::getTable('Registar')->find('1'); '1' is an ID And I would like to add several others ID with IN condition to have a request like this : SELECT c.id AS c__id, ...
0
votes
1answer
31 views

CSV Upload - mime types

Hi I'm trying to upload a CSV file using the following form code: $this->widgetSchema ['file'] = new sfWidgetFormInputFile(); $this->setValidator('file', new sfValidatorFile(array( ...
0
votes
1answer
18 views

Validating 2 forms in the action/view

I have 2 forms on a page, that I'd like to validate separately. I have the following: public function executeNew(sfWebRequest $request) { $this->propertyForm = new AdminNewPropertyForm(); ...
3
votes
1answer
35 views

Doctrine fails on update query

I get this error: 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception SQLSTATE[42S22]: Column not found: 1054 Unknown column 'domain_name' in 'where clause' when I try to ...
4
votes
0answers
51 views

How to do an “if exists update else insert” in doctrine? [duplicate]

I would like to do this request in Doctrine : IF EXISTS (SELECT * FROM Table1 WHERE Column1='SomeValue') UPDATE Table1 SET (...) WHERE Column1='SomeValue' ELSE INSERT INTO Table1 ...
0
votes
0answers
19 views

how could I include/call a service on symfony 1.4?

I am using symfony 1.4 (some existing code). I had work with it before, and the way I used to call my services was this way private $testService; public function getTestService() { if ...
0
votes
1answer
31 views

symfony1.4, ajax, javascript jquery for dependent selet

try to write code for dynamic dependent select using jquery ajax in symfony1.4 form templates. I wrote code where i could take 1st fields value which is selected by the user from a dropdown list and ...
0
votes
1answer
18 views

redirect ajax request to sfDoctrineGuard login on session timeout symfony 1.4

so I had this issue for ages. When the session times out and the user then makes an ajax call the page doesn't redirect to the sfDoctrineGuard login page. I was really surprised that this wasn't ...
0
votes
2answers
28 views

Symfony 1.4 won't report exceptions but retunrs a blank/empty screen, how to fix it?

When an exception happends, Symfony 1.4 framework just shows a white / empty screen, no output at all. I'm in dev mode. The log/frontend_dev.log does log the exception (but not, when it happens in ...

1 2 3 4 5 130
15 30 50 per page