[symfony-users] Re: Experience in building news site in symfony?

2010-05-27 Thread pghoratiu
Really complex questions, besides the solutions you mentioned already there are other commercial alternatives that are less known, solutions that cost money but for which you get professional support and that can be quite handy. Two such projects (there are probably many more) built upon symfony:

[symfony-users] Re: cvs

2010-05-26 Thread pghoratiu
It looks like you misplaced a comma somewhere: - 'attachment; filename='.resultat.'.csv', true) + 'attachment; filename=resultat.csv', true) gabriel On May 26, 11:39 am, safa boubekri boubekri.s...@gmail.com wrote: hello  i want to generate  cvs which contain  the details  of asscoiation

[symfony-users] Re: How to check if a variable saved in sfContext is set or not?

2010-05-25 Thread pghoratiu
I think that you misunderstand the purpose of sfContext. Variables that need to be persisted across multiple requests have to be stored in the session as explained in the documentation. Also using sfContext directly is a bad practice and should be avoided as much possible. gabriel On May 25,

[symfony-users] Re: strip_tags validator

2010-05-24 Thread pghoratiu
You could do it either at object-save() or better at object-set*() something like: public function setDescription($value) { parent::setDescription(strip_tags($value)); } gabriel On May 24, 11:56 pm, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Hi all, I need to call

[symfony-users] Re: Question about sfDoctrineGuardPlugin and signing

2010-05-24 Thread pghoratiu
I think you have to replace the security filter (apps/frontend/config/ factories.yml) with your own filter. Just copy the one from symfony/lib/filter/ sfBasicSecurityFilter.class.php and make the necessary changes to do redirects instead of internal forward operation. gabriel On May 24, 4:39 

[symfony-users] Re: edit id in admin

2010-05-23 Thread pghoratiu
I think that you are going the wrong way to solve this. I would leave the id as is in the database and create a separate field contract_id that you change the way you want. This number should be set only when the contract is finalized. I think that messing with the id directly will give you a

[symfony-users] Re: edit id in admin

2010-05-22 Thread pghoratiu
I did not try it but you should be able to make this change by overriding the save() method for the form and/or the object. gabriel -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are

[symfony-users] Re: Headers already sent

2010-05-17 Thread pghoratiu
A HTTP response is composed of a. HTTP headers b. HTTP content If you try to do echo 'aaa'; header(''); You will get this error. Check if the action throws out an error or outputs something, for this do an exit before the first header() call in sfWebResponse. Common situations where I

[symfony-users] Re: IP blocking for a specific page element in a symfony 1.0 project

2010-05-15 Thread pghoratiu
There are several ways to do this: 1. For the user-email field create a partial and put the logic in there as you would with PHP code. If you do not want to mess around with symfony code this is the way to go. 2. A more symfony way would be to setup a credential can_see_email_addresses and use

[symfony-users] Re: Directory locked after svn pe svn:externals lib/vendor/

2010-05-04 Thread pghoratiu
Try deleting the lib/vendor/symfony directory and doing a svn up afterwards. gabriel On May 4, 11:17 pm, Pau Peris sibok1...@gmail.com wrote: Hi to all an thanks for the answers, but i still have the same issue.   svn cleanup did nothing for me I run: svn pe svn:externals lib/vendor/

[symfony-users] Re: send_msg

2010-05-03 Thread pghoratiu
From the error message it looks like you have no e-mail server installed/running on localhost. Install an e-mail server to be able to send out e-mails or use another one that can do that for you. gabriel On May 3, 5:41 pm, safa boubekri boubekri.s...@gmail.com wrote: hello  everybody i

[symfony-users] Re: Directory locked after svn pe svn:externals lib/vendor/

2010-05-01 Thread pghoratiu
Try running a svn cleanup and see if that resolves the problem with locked directories. gabriel On May 1, 6:49 pm, Pau Peris sibok1...@gmail.com wrote: Hi, i have a local copy of a svn project i'm working on. To be able to update symfony via svn i run svn pe svn:externals lib/vendor/ and

[symfony-users] Re: Doctrine: strange charset problem on saving data to MySQL database

2010-04-28 Thread pghoratiu
Hi! I don't think this has anything to do with Doctrine but with the handling of UTF-8 strings by the CSV parser. What class/library do you use for that? Display the values before: $boek-setDecription($import[85]); and you will see them truncated already. Best regards, gabriel On Apr

[symfony-users] Re: In remote host: Connection could not be established with host smtp.gmail.com [Connection timed out #110]

2010-04-28 Thread pghoratiu
Looks like port 465 is not open for your application, try to do a telnet directly from the server where the application is deployed and see if that works: $ telnet smtp.gmail.com 465 Trying 74.125.95.109... Connected to gmail-smtp-msa.l.google.com. Escape character is '^]'. gabriel On Apr

[symfony-users] Re: Troubleshooting view loading extremely slowly.

2010-04-19 Thread pghoratiu
Hello! My suspicion is that you have some I/O timeout when the cache is created first, due to insufficient access rights. Check if the permissions for the cache folder are set up correctly. Second you should do some tests with that disk, copying files around to check the speed of the HDD. Try

[symfony-users] Re: Blank page after executing include_component()

2010-04-18 Thread pghoratiu
Try using with the debug controller and also install xdebug if you haven't done so to get more information about the error. Check the page source, sometime the error does not show up on the screen but it may be available in the HTML source. gabriel On Apr 17, 11:06 pm, Javier Garcia

[symfony-users] Re: symfony 1.4 install

2010-04-18 Thread pghoratiu
and it was caused by SELinux security limitations. Check the logfiles in /var/log for Apache and for the system, it may provide more information about the error encountered. gabriel On Sat, Apr 17, 2010 at 7:50 AM, pghoratiu pghora...@gmail.com wrote: Did you restart Apache after making the change

[symfony-users] Re: symfony 1.4 install

2010-04-17 Thread pghoratiu
Did you restart Apache after making the change to the Apache configuration files? It does not look like the Apache process is listening on port 8080. gabriel On Apr 17, 2:49 pm, Gábor Fási maerl...@gmail.com wrote: Change this to `Listen 8080` and try again (ie. remove the IP, only list

[symfony-users] Re: cache invalidation on server cluster

2010-04-16 Thread pghoratiu
this? gabriel On Apr 15, 9:42 pm, Eno symb...@gmail.com wrote: On Thu, 15 Apr 2010, pghoratiu wrote: My question is how do you deal with cache invalidation when deploying a symfony application across mutiple servers? Which solution would you choose to perform the cache invalidation (centralized

[symfony-users] Re: does setflash() work with redirect() in Symfony 1.0?

2010-04-16 Thread pghoratiu
It should work fine, how do you display the flash value in your template? You can check also in the web debug bar the user data that is saved for your current session. gabriel On Apr 16, 7:48 pm, jake barnes lkrub...@geocities.com wrote: In Symfony 1.0, I can forward to another action/page,

[symfony-users] Re: symfony 1.4 install

2010-04-16 Thread pghoratiu
On Apr 16, 7:29 pm, Angel Robert Marquez angel.marq...@gmail.com wrote: Hi Gabor, Yes, I did check it and moved things around and was able to perfrom the install. BUT now I have a new issue. I set up the virtual host in the httpd.conf file and after restarting mysql and checking the  url(s)

[symfony-users] Re: Add symfony to svn project

2010-04-16 Thread pghoratiu
You need to use svn:externals Subversion property . Initialize your repository with the following directory: lib/vendor than after you have the project checked out from SVN: cd lib/vendor svn propedit svn:externals . Here you have to add the path to the symfony repository you want to use and the

[symfony-users] cache invalidation on server cluster

2010-04-15 Thread pghoratiu
Hi! I have a web application distributed among multiple web servers (2 servers) with a central DB for sessions. Cache is used for some objects and for invalidation I override the save() method to delete the local cache. This worked fine for a single server but does not scale to multiple servers.

[symfony-users] Re: Routing cache and memory usage

2010-03-17 Thread pghoratiu
Do you use APC opcode caching? If no enable it and also make sure you configure it properly (increase the max php file size limit that is being cached http://www.php.net/manual/en/apc.configuration.php#ini.apc.max-file-size). There is also an interesting article on optimizing PHP code (moving

[symfony-users] Re: Cross-Server Communication from Controllers

2010-02-01 Thread pghoratiu
If you have problems with data transmission I suggest you try out one of the following functions: http://php.net/manual/en/function.convert-uuencode.php http://www.php.net/manual/en/function.base64-encode.php to convert the binary string into something that can be safely transfered over the

[symfony-users] Re: Free opensource Symfony-friendly PHP IDE: NetBeans 6.8

2010-01-07 Thread pghoratiu
I converted to Netbeans 6.8 from the latest Eclipse version, personally I had problems with Eclipse unreliable code completion and high resource usage (both cpu and memory). Unfortunately not everything is perfect with Netbeans, I experienced also the high CPU usage lockup (i suspect it has

[symfony-users] Re: Symfony developer per hour salary

2009-12-14 Thread pghoratiu
My suggestion is to ask them to make an offer first to get an idea of the price range they are willing to offer. Realistically speaking, I worked with both US and Canada companies via contract from Eastern Europe and the rates go from 10-15 Euro for remote work. People don't pay much over these

[symfony-users] Re: funky select behavior

2009-12-02 Thread pghoratiu
Hi! Thanks for your feedback. As you said the problem was with edit vs. new object creation, where with edit the value was taken from the object itself. Best regards, gabriel On Dec 2, 1:23 am, Alexandre Salomé alexandre.sal...@gmail.com wrote: Hello,   Your default value is English, so

[symfony-users] funky select behavior

2009-11-29 Thread pghoratiu
Hello! I have encountered a strange behavior with one of my forms and I can not explain what may be causing it. I have the same widget defined twice (the same way) and the first one is not working corectly the second one is ok (they are defined exactly the same way):

[symfony-users] Re: Caching despite query string being passed?

2009-09-08 Thread pghoratiu
My suggestion is to use Apache rewrite and filter out the arguments that may interfere with the caching (if you don't need them). If you still need them in the application you would have to go into the symfony core to make changes, probably a symfony dev could tell more about where to make this

[symfony-users] Re: routing.data.cache

2009-07-29 Thread pghoratiu
By default sessions in PHP are stored in one of the OS dirs (on Ubuntu/ Debian system this is /var/lib/php5) or you can specify explicitly where the sessions should be stored. I do not recommend sharing the cache folder unless you implement a locking mechanism for environment generation, in this

[symfony-users] Re: jobeet day 2 (subversion)

2009-06-13 Thread pghoratiu
On Jun 13, 2:30 am, Orkan ork...@gmail.com wrote: no, I dont have any problems with subversion, especially when it comes to Eclipse/Subversive, even merging and resolving conflicts is a piece of cake. The question was, if Subversion will work out of the box, without the need of Apache?

[symfony-users] Re: Out of memory error with propel:data-load

2009-06-11 Thread pghoratiu
Hi! I had some problems also with php memory collection, the main problem was with circular reference used in propel when dealing objects. 1. Circular reference - having two related objects A, B the following will generate a memory leak becase A is referencing object B and B is referencing

[symfony-users] integration with Clicktale PHP module

2009-05-19 Thread pghoratiu
I'm trying to integrate Symfony 1.0.x with Clicktale PHP module. Clicktale is a webanalytics/user behaviour monitoring tool that lets you see the way the user is navigating the pages in a website. The PHP module that I'm trying to integrate is building up a cache of the generate pages, the notes

[symfony-users] Re: Zend Search scalability

2009-05-12 Thread pghoratiu
Hi! We implemented the Zend Search and dropped it because of the scalability problems. The main problem for us was that Zend Search does not have support for LIMIT in the result set, so it always has to return all entries (and calculate the score for them) thus performance degrades quickly with

[symfony-users] Re: Not finding accented search terms in Lucene

2009-03-05 Thread pghoratiu
Hi! How does your $query string look like, does it have some html encoded (accented) characters in it? gabriel On Mar 4, 7:02 pm, David Landgren da...@landgren.net wrote: Symfonians, (Yeah I know this is a bit of a FAQ, but I'm stuck, despite all my readings). I have taken[1] a

[symfony-users] capture output of colorized pake tasks

2008-12-13 Thread pghoratiu
I'm trying to capture the output of some pake tasks in a text file (Ubuntu 8.04/symfony 1.0). Example: symfony propel-build-model test.txt However not all lines are saved in test.txt file, the text which is colorized in the terminal of the pake command is missing, like the following lines:

[symfony-users] Re: Changed images/CSS/JS after a new build...

2008-12-01 Thread pghoratiu
You have to use versioning for your resource files, one way to do it is described here: http://particletree.com/notebook/automatically-version-your-css-and-javascript-files/ Regards, gabriel On Dec 1, 1:58 pm, Sumedh [EMAIL PROTECTED] wrote: Someone plz look here? :) On Nov 29, 4:06 

[symfony-users] sfLucene plugin questions

2008-08-22 Thread pghoratiu
Hi! I've set up the following search.yml configuration for a job site: = MyIndex: models: Job: fields: id: unindexed title: text department: text description: type:

[symfony-users] sfGuard with multiple profiles

2008-07-10 Thread pghoratiu
Hi! I'm looking into using the sfGuardPlugin to manage the users for my site (a job site), with 2 type of profiles: * candidates * companies I've read the documentation for the sfGuard plugin and as i understood I can store there a single type of user profile using sfGuardUserProfile class. In

[symfony-users] sfLucene and Lucene questions

2008-06-18 Thread pghoratiu
Hi! I'm trying to find out the suitability of using sfLucene/Zend Lucene/ Lucene as a search engined (instead of the traditional in database search). I'm not sure how the following problems will be solved by using an external search service in the following situation: 1. Search for properties

<    1   2