[symfony-users] Re: I18n not translating

2010-12-10 Thread pghoratiu
Make sure the XML you have is well formed. If there is an error in the XML the translations will not be interpreted. You can check the XML with: 1. Editor that has support for XML checking - Netbeans, Eclipse 2. Open the messages.xml in in Firefox/IE AFAIK this XML is not well formed:

[symfony-users] Re: symfony hangs up

2010-12-04 Thread pghoratiu
What do you mean by generate the data model? Check if the access rights are correctly set up for the cache/ directory. gabriel On Dec 2, 12:03 pm, dianacastillo dianahel...@gmail.com wrote: I have symfony installed in windows and it works fine when I go

[symfony-users] Re: we check if the .html version is here (caching)

2010-11-29 Thread pghoratiu
I think that the sfSuperCache plugin was doing this at one time during Symfony 1.0, I'm not aware of any plugins doing this for Symfony 1.4 Check here: http://www.symfony-project.org/plugins/sfSuperCachePlugin gabriel On Nov 29, 12:26 pm, Felix E. Klee felix.k...@inka.de wrote: In the

[symfony-users] Re: Manage the credentials of the actions and modules through a form

2010-11-26 Thread pghoratiu
You should do the following: - design tables to store info about: modules/actions/user/permission - develop another security filter (that would replace the current security filter) that would use the new source for the credential data. gabriel On Nov 25, 9:02 pm, Javier Garcia

[symfony-users] Re: Enable partial caching on pages with query string

2010-11-25 Thread pghoratiu
I did not solve this issue either, the workaround I used was to have those parameters in the URL something like: /search?id=10 = /search/id/10 or /search?category=2keyword=232 = /search/category/2/keyword/232 and eliminate the query string from the URL. gabriel On Nov 23, 1:22 am, Ken

[symfony-users] Re: Security Component: how to authenticate a user manually?

2010-11-22 Thread pghoratiu
Assuming you use sfGuard it's something like: $this-getUser()-signIn($user); Where $user is an active sf_guard_user entry, so you have to save the entry, signin and then redirect. gabriel On Nov 21, 5:22 pm, noel guilbert noelguilb...@gmail.com wrote: Hi, I have a subscribe form, and I

[symfony-users] Re: OT - Translators and Translations

2010-11-22 Thread pghoratiu
I agree with you, it's quite a headache to deal with the translation files as XML. I have a couple of ideas on how this could be improved but I did not have the time to implement it as a plugin. For existing solutions to this problem take a look at:

[symfony-users] Re: Performances issues

2010-11-17 Thread pghoratiu
In the meantime, we have moved forward on our timer method and we discovered that rendering templates took us about 200ms. Don't you think this is huge ? Thanks anyway ! = Does this include the time to wait for the XML data source? On my dev machine it takes about 17 ms to process

[symfony-users] Re: Performances issues

2010-11-16 Thread pghoratiu
Some other suggestions: - avoid .htaccess - move rewrite rules in the Apache configuration. - avoid the ORM - if you do access the database use plain SQL to manipulate the data. - make sure APC is configured correctly (so that it caches large PHP files, such as the ones generated by the

[symfony-users] Re: Performances issues

2010-11-16 Thread pghoratiu
On Nov 16, 7:17 pm, Remi remi.alv...@gmail.com wrote: - we don't use any .htaccess file : everything goes directly to an httpd.conf = Also have AllowOverride none in apache config to not search for .htaccess files. - we don't use ORM since we don't use databases : only Webservices =

[symfony-users] Re: RESTFul etag

2010-11-07 Thread pghoratiu
You have to check the browser HTTP headers that are sent (Request/ Response) via Firebug or HttpFox Firefox extensions. Do you have enabled caching for your page? There are more things to consider when you try to cache a page, not just the Etag. gabriel On Nov 8, 7:28 am, Shihab KB

[symfony-users] Re: Why the browser redirects home page to xampp-splash?

2010-10-27 Thread pghoratiu
Looks like a problem with Apache vhost configuration. Make sure you have it configured correctly. gabriel On Oct 27, 3:30 am, Marcio Pozzato mspozz...@gmail.com wrote: Hi Gays, I`m doing the jobeet project again, and unfortunately when finished the Day 1 I couldn`t show the home

[symfony-users] Re: doctrine insert-sql

2010-10-27 Thread pghoratiu
No type specified for the uri and label columns in the failing query: CREATE TABLE layar_actions (id BIGINT UNIQUE AUTO_INCREMENT, uri , label , entrepeneur_id BIGINT, INDEX entrepeneur_id_idx (entrepeneur_id), PRIMARY KEY(id)) ENGINE = INNODB As to why is this I can't say. gabriel On Oct

[symfony-users] Re: symfony or doctrine... or is it me?

2010-10-27 Thread pghoratiu
Are you sure it's not a typo in the condition: -where('m.name like ?', '%' . $q . '%') - -orWhere('l.name like ?', '%Swit%') + -orWhere('m.name like ?', '%Swit%') gabriel On Oct 27, 5:20 pm, erikms erik.stok...@gmail.com wrote: Hi Florian, thank you for your prompt reply. I have DB

[symfony-users] Re: question about variables in symfony 1

2010-10-27 Thread pghoratiu
Two possible solutions: 1. create a class or helper in lib/ that caches the data extraction so that the second time when you request the data you have it, something like this: class myUserProfileCache { static protected $userData = null; public static function getUserData() { if

[symfony-users] Re: regarding symfony 1.4

2010-10-24 Thread pghoratiu
You can migrate only till Symfony 1.3, Symfony 1.4 has a lot of backwards compatibility code removed so your application probably will not work. The procedure is to migrate step by step to 1.1, 1.2, 1.3 and check what the migration script tells you on each stage. If you want to go directly to 1.4

[symfony-users] Re: Factories : storage taking a really long time to load

2010-10-22 Thread pghoratiu
What operating system do you use? It looks like a file I/O timeout to me. Try out the following, create a php batch script that loads the symfony instance/context and just prints out a message. If you still have this timeout it should be much easier to debug this way than with Apache.

[symfony-users] Re: Zend Lucene Search - Parser problem

2010-10-20 Thread pghoratiu
By default Lucene search does not look for substrings, I think there are several reasons why they are doing this mostly related to performance. There are some tokenizer engines which put in the index the combination of all substrings and they solve this way the problem of substring search,

[symfony-users] Re: Having a web layer for the model

2010-10-07 Thread pghoratiu
You can have another layer of business logic classes that you store in lib/ which interact with your models directly. gabriel On Oct 6, 7:24 am, Sebastien Armand [Pink] khe...@gmail.com wrote: Most of the times in symfony applications, we'll have a model let's say it's 'Product' and then

[symfony-users] Re: Problem with Lucent output data search in Doctrine

2010-10-06 Thread pghoratiu
If you have those index files it is likely that the indexing part works ok, you just need to work on the query part of it. These are the files created on my environment (Solr 1.4): ./spellchecker2 ./spellchecker2/segments.gen ./spellchecker2/segments_1 ./spellchecker1 ./spellchecker1/segments.gen

[symfony-users] media server support for static content

2010-09-14 Thread pghoratiu
Hi, The following is not strictly symfony related but I'm hoping someone on the list can give me a hint for a solution. I have several websites: * fish.com * eagle.com * bear.com and I want all the static resources (css, js, images, uploads) to be served by a common domain, let's say

[symfony-users] Re: Symfony and mod_remoteip

2010-09-10 Thread pghoratiu
Is the load balancer responsible for caching as well? Check http://en.wikipedia.org/wiki/X-Forwarded-For and retrieve the client IP address from that HTTP header. You don't need anything extra on the Apache side. gabriel On Sep 10, 12:52 pm, Laurent Vaills laurent.vai...@gmail.com wrote:

[symfony-users] Re: Symfony and mod_remoteip

2010-09-10 Thread pghoratiu
On Sep 10, 1:10 pm, pghoratiu pghora...@gmail.com wrote: Is the load balancer responsible for caching as well? Checkhttp://en.wikipedia.org/wiki/X-Forwarded-Forandretrieve the client IP address from that HTTP header. You don't need anything extra on the Apache side.    gabriel

[symfony-users] Re: Race condition with session data

2010-09-07 Thread pghoratiu
The session is closed after all content is sent from A1. You should find a way to delay the load of the iframe (via Javascript maybe) to make sure that A1 has completed and that A2 can load the new content. gabriel On Sep 7, 6:04 pm, Phil Moorhouse moorhouse.p...@gmail.com wrote: Hi, I

[symfony-users] Re: Session won't last

2010-09-03 Thread pghoratiu
Check the sessions settings in php.ini as well. What operating system do you use? For instance on Ubuntu there is a cron job that deletes the session files and this is controlled by php.ini configuration: # /etc/cron.d/php5: crontab fragment for php5 # This purges session files older than X,

[symfony-users] Re: Http load problem with concurrent users.

2010-09-02 Thread pghoratiu
What's the CPU usage on that machine? In my experience 50-100 concurrent requests is quite large for dynamic pages and you need good hardware to handle that. Or you should look into using cache heavily, reverse proxy caching, avoiding the ORM layer entirely (by using memcache) ... I think that

[symfony-users] Re: Http load problem with concurrent users.

2010-09-02 Thread pghoratiu
Regarding cache one thing that you have to worry about is cache invalidation (which can grow into a really complex and ugly issue). Even if you don't use caching there are many strategies available, one that I recommend warmly is to avoid the ORM layer entirely by using memcache as intermediary

[symfony-users] Re: CLI sf Task, allowed memory issue

2010-09-01 Thread pghoratiu
Hi! My suggestion is to use PHP 5.3.X, it has improved garbage collection and it should help with reclaiming unused memory. Also you should group the code that is leaking inside a separate function(s), this way the PHP runtime knows that it can release the memory for variables within the scope.

[symfony-users] Re: How to translate a text that contains p/p ?

2010-08-27 Thread pghoratiu
The chracters are not allowed in the XML element node and you have to either 1. quote them as gt; or lt; 2. Include them in CDATA sections: trans-unit source![CDATA[For security reasons.../p]]/source target![CDATA[Por razones de seguridad...]]/target /trans-unit If you do not quote them

[symfony-users] Re: symfony Day Cologne 2010

2010-08-26 Thread pghoratiu
Hi! What's the latest date one can get a ticket for Symfony Day (subscription deadline)? gabriel On Aug 25, 11:20 am, Dennis Benkert spinecras...@googlemail.com wrote: Hi, this year we are organizing a symfony Day again here in Cologne, Germany on 8th October. As last year the conference

[symfony-users] Re: Catch and handle Doctrine's exceptions (Doctrine_Connection_Exception)

2010-08-26 Thread pghoratiu
Unless it's a problem with the network connection it's probably a problem with the number of connections allowed by the MySQL server. This is usually set up to 100 by default, it should be increased to something like 500. MySQL has admin tools to monitor the connections to the server, use it to

[symfony-users] Re: htaccess 2 applications in /web: strange problem

2010-08-26 Thread pghoratiu
Try uncomenting this lines: # we skip all files with .something RewriteCond %{REQUEST_URI} \..+$ RewriteCond %{REQUEST_URI} !\.html$ RewriteRule .* - [L] These rules are used to process .css, .js and other static files. gabriel On Aug 26, 1:55 am, Benoit Pr benoit.perro...@gmail.com wrote:

[symfony-users] Re: set_flash and browser's cache

2010-08-26 Thread pghoratiu
Is there a proxy between the browser and the webserver (for caching purposes or some other reason)? Have you tested with different browsers (Firefox, IE, Opera, Chrome)? AFAIK symfony sets up the HTTP headers correctly to disable caching by adding the following two lines in the HTTP response

[symfony-users] Re: Url genartion bug for '/' ?

2010-08-26 Thread pghoratiu
Do you have a route set up for your homepage, something like: homepage: url: / param: { module: homepage, action: index } Try also redirecting to $this-redirect('@homepage') it's much more efficient. gabriel On Aug 26, 5:48 pm, torok84 toro...@gmail.com wrote: Hi, I noticed that

[symfony-users] Re: Doctrine/MySQL: double up of id index

2010-08-23 Thread pghoratiu
Post the schema you use. Usually a PK ID is autogenerated for a given table if none was specified. gabriel On Aug 24, 1:52 am, Jochen Daum jdau...@gmail.com wrote: Hi, this may sound quite minor, but I'm just getting into Symfony and am interested in some of the details. When I run

[symfony-users] Re: How do I execute code on session expire with sfUser?

2010-08-22 Thread pghoratiu
There is no such thing, a session may expire also because of user inactivity thus there is no way to catch this on the server side. Even in case the browser is closed nothing is sent to the server to signal the session end (like a logout). In case you store the user sessions in the database you

[symfony-users] Re: Different result on two servers when submitting a form that sends email automatically

2010-08-17 Thread pghoratiu
We encountered something similar with OS version 32 bit vs. 64 bit, having the same PHP version 5.2.4. The dev machines use 32 bit OS but staging/prod run on 64 bit and the problem happened only on the 64 bit machines. gabriel On Aug 17, 10:18 am, El Duderino tleftw...@gmail.com wrote: The

[symfony-users] Re: Symfony 1.4-compatible minifier for Symfony now included in Apostrophe, can be used in any Symfony project

2010-08-15 Thread pghoratiu
It might be worthwhile to take things a step further by versioning them in the URL so that they can be given an infinite cache expiration date, although this requires a database hit or perhaps a glob call when outputting the pages that contain them. The code is a big step forward as-is if you

[symfony-users] Re: Symfony 1.4-compatible minifier for Symfony now included in Apostrophe, can be used in any Symfony project

2010-08-14 Thread pghoratiu
Hi! How do you solve the cache invalidation for these resources (in case they are cached on the client side)? Please post also a link to the sources. Thanks, gabriel On Aug 14, 5:08 pm, Tom Boutell t...@punkave.com wrote: We've committed a new CSS and JS minifier to the trunk of

[symfony-users] Re: Weird cache issues under load, sf 1.4 as svn:external on Windows Server 2008 Standard

2010-08-10 Thread pghoratiu
Hi! Have no idea what could this be, in my opinion it is something related to locking at the FS level. My suggestion is to try one of the following: 1. Use a different cache storage class - sfSQLiteCache, sfMemcacheCache or sfAPCCache. 2. Run code on a different machine or on a Linux/Unix system

[symfony-users] Re: Session timeout problem

2010-08-04 Thread pghoratiu
Check out also the session variables that can be set up in session.ini: session.gc_maxlifetime Depending on the OS you use there may be other things to consider as well. gabriel On Aug 5, 4:31 am, Gustavo Adrian comfortablynum...@gmail.com wrote: Hi, I'm using sfDoctrineGuardPlugin. My

[symfony-users] Re: a good IDE for Symfony

2010-08-03 Thread pghoratiu
Check out Komodo edit http://www.activestate.com/komodo-edit some of my colleagues use it. I think that with your configuration any java based editor should work fine, make sure you configure properly the java runtime settings (-mx, -mss) and allow more memory than the default. gabriel On

[symfony-users] Re: Emails and multiple Applications

2010-08-02 Thread pghoratiu
You should use a plugin, put your templates in the same module and enable the plugin for all the applications that need it. gabriel On Aug 2, 5:26 pm, Stephen Melrose step...@sekka.co.uk wrote: Hey, I've just been reading up on email best practices for 1.3/1.4. It all makes sense,

[symfony-users] Re: Real purpose of admin generator

2010-08-02 Thread pghoratiu
I see the admin generator more as a starting point, something you can build upon. We have in our application backend both simple and complicated admin modules. Simple - generated admin modules where only a couple of partials are used, no actions override. Complicated - rewritten editing + custom

[symfony-users] Re: Timestampable

2010-08-01 Thread pghoratiu
You can store the column in a separate table and link it to the master table 1:1 relationship. An even better solution is to store this in memcache (also use the memcache incrementation mechanism) and save this value in the database from time to time. gabriel On Jul 30, 11:18 am, comb

[symfony-users] Re: Symfony Almost Live: building a new Symfony application in 26 minutes

2010-08-01 Thread pghoratiu
It's really nice, I think that something like this is missing on http://www.symfony-project.org/. When I started first with symfony (1.0.x) there was a screencast with building an application with Ajax on the front page. From my point of view these type of presentations have a high marketing value

[symfony-users] Re: Redirect a subdomain to a module

2010-07-27 Thread pghoratiu
I can see 2 ways of doing this: 1. Outside symfony core - rewrite/.htaccess http://www.scriptygoddess.com/archives/2007/06/13/redirect-a-subdomain-to-a-directory-using-htaccess/ 2. Use the symfony routing system:

[symfony-users] Re: Zend Lucene can't find accented words

2010-07-20 Thread pghoratiu
Do you use utf-8 everywhere (when indexing the document, when searching ...) ? gabriel On Jul 20, 5:09 pm, wueb webmaster@gmail.com wrote: I'm using Zend Lucene in symfony. When i search by words with á or ã he can't find it. Anyone knows what can be causing this and how to solve?

[symfony-users] Re: .js is not loaded in prod enviroment

2010-07-19 Thread pghoratiu
:05 am, pghoratiu pghora...@gmail.com wrote: Did you clear the cache?     gabriel On Jul 19, 2:20 am, Javier Garcia tirengar...@gmail.com wrote: Hi, I'm loading correctly these .js in the dev enviroment: ?php use_javascript('/sfJqueryReloadedPlugin/js/jquery-1.3.2.min.js

[symfony-users] Re: .js is not loaded in prod enviroment

2010-07-18 Thread pghoratiu
Did you clear the cache? gabriel On Jul 19, 2:20 am, Javier Garcia tirengar...@gmail.com wrote: Hi, I'm loading correctly these .js in the dev enviroment: ?php use_javascript('/sfJqueryReloadedPlugin/js/jquery-1.3.2.min.js') ? ?php

[symfony-users] Re: caching problem in firefox

2010-07-16 Thread pghoratiu
Do you have this behavior also with the development controller (frontend_dev.php)? gabriel On Jul 16, 4:09 pm, Lea Haensenberger baerne...@gmail.com wrote: I've encountered a strange problem with firefox and caching. When I log in and get redirected to the homepage afterwards I don't see

[symfony-users] Re: Doctrine Admin Generator

2010-07-14 Thread pghoratiu
AFAIK you can not specify security settings in generator.yml only in config/security.yml There you have to specify the action name and the credentials required to access the action, see more info here: http://www.symfony-project.org/reference/1_4/en/08-Security gabriel On Jul 14, 11:58 pm,

[symfony-users] Re: Jobeet Day 3 data-load problem

2010-07-06 Thread pghoratiu
Maybe you have no fixtures in the required directory, can you post the content of directory where the fixtures are and sample fixture content. gabriel On Jul 6, 4:43 pm, Elton Saheki esah...@gmail.com wrote: No success, I tried to clear all caches, and did: $ php symfony doctrine:build

[symfony-users] Re: Cache and analytics parameters

2010-07-05 Thread pghoratiu
You have 2 options: 1. Change in mod_rewrite to filter out the extra query elements that pollute the query string 2. Set up explicitly the sf_cache_key when including a partial - in your case tthe sf_cache_key would be the id. gabriel On Jul 5, 4:26 pm, illarra illa...@gmail.com wrote: Hi

[symfony-users] Re: Cache and analytics parameters

2010-07-05 Thread pghoratiu
the analytics data: suppose I want to track a marketing campaign. 2) I'm using a template cache, so I can't specify a cache key. Is there any other solution? On Jul 5, 4:10 pm, pghoratiu pghora...@gmail.com wrote: You have 2 options: 1. Change in mod_rewrite to filter out the extra query elements

[symfony-users] Re: Having multiple queries with Lucene in nameTable.Class.php

2010-07-05 Thread pghoratiu
Hi! Sorry but this does not make too much sense to me. You need to get an instance of the Zend Lucene class, assuming you did everything as explained in the Jobeet tutorial: http://www.symfony-project.org/jobeet/1_4/Propel/en/17 $index = JobeetJobPeer::getLuceneIndex(); and then you do

[symfony-users] Re: Cache and analytics parameters

2010-07-05 Thread pghoratiu
Your solution is to tell apache to ignore the utm parameters before the request even goes to PHP, making a REWRITE (not a redirect as I understood before). Yes, this is it. You may have problems with rewriting query parameters as this is not so straight-forward. gabriel -- If you

[symfony-users] Re: Having multiple queries with Lucene in nameTable.Class.php

2010-07-04 Thread pghoratiu
You can change the sort order from score to whatever column you have indexed, see more here: http://zendframework.com/manual/en/zend.search.lucene.searching.html look for Search Result Sorting. gabriel On Jul 4, 9:30 pm, Ricardo Jose Guzman Milanes guzman.ricardoj...@gmail.com wrote: Hello

[symfony-users] Re: Having multiple queries with Lucene in nameTable.Class.php

2010-07-04 Thread pghoratiu
The same way you do it in the action. Actually putting controller code in the view is not recommended, better use a component or something else for this. gabriel On Jul 5, 1:13 am, Ricardo Jose Guzman Milanes guzman.ricardoj...@gmail.com wrote: Thanks for the link Gabriel! But, how can I

[symfony-users] Re: Different Cache for different user groups

2010-07-01 Thread pghoratiu
I do not know much about your application but usually it is not a good strategy to cache pages or partials accessible only to one user. Usually these type of pages are not highly traffic-ed (compared to public pages) and the cache will not be hit so many times (compared to public pages). If those

[symfony-users] Re: Migration of Symfony 1.0 to 1.4 Help and Hints please

2010-07-01 Thread pghoratiu
If you want to upgrade the project you can get only till 1.3 because in 1.4 the backward compatible elements were removed. To move the project between 1.3 - 1.4 you will certainly have to do some rewrites/refactoring. I also have a project running on 1.0 but I think I would rather jump to 1.4

[symfony-users] Re: Sending mail from a Form class.

2010-07-01 Thread pghoratiu
From the first one the actual send is missing: // send the email $this-getMailer()-send($mail); gabriel On Jul 2, 5:25 am, Cosimo Zecchi c.zec...@gmail.com wrote: Hi all.. I think it's a strange behavior: if I send email inside an   action it will be

[symfony-users] Re: .htaccess - redirect example.com/index.php to example.com

2010-06-28 Thread pghoratiu
it should be ok if you put that rule in the following order: == RewriteCond %{REQUEST_URI} index\.php [NC] RewriteRule ^index.php$ http://www.example.com/ [L,R=301] # no, so we redirect to our front web controller RewriteRule ^(.*)$ index.php

[symfony-users] Re: importing a symfony made website back into symfony??

2010-06-27 Thread pghoratiu
First check how was symfony installed, it was installed via PEAR or it is a local installation available in directory lib/vendor. In case of local installation you have everything in place. Otherwise find out which symfony version was used (1.0.x, .1.1.x, 1.2.x, 1.3.x, 1.4.x) and download/install

[symfony-users] Re: Day 1 - jobeet problem

2010-06-23 Thread pghoratiu
Try with frontend_dev.php because index.php (the production controller) does not print out error messages. Also try to put there a phpinfo.php that prints out the phpinfo() so you can check if all your settings are allright. gabriel On Jun 22, 7:30 pm, Christian chri...@gmail.com wrote:

[symfony-users] Re: sfDoctrineGuardUser: Unable to stay signed in

2010-06-22 Thread pghoratiu
The defaults for session storage are defined in apps/frontend/config/ factories.yml. If there is nothing changed vs. the defaults than the PHP session storage is used, in this case you can check the serialized sessions stored usually somewhere in /var/lib/php5 (or something similar, depending on

[symfony-users] Re: sfDoctrineGuardUser: Unable to stay signed in

2010-06-21 Thread pghoratiu
plugin with no change in behavior. On Fri, Jun 18, 2010 at 12:57 AM, pghoratiu pghora...@gmail.com wrote: Check the session - the user id should be stored after sign-in. This can be checked in the web debug toolbar or directly the serialized session data.   gabriel On Jun 18, 9:50 am

[symfony-users] Re: unwanted id column from doctrine:build-sql / build-sql ignores schema.yml

2010-06-19 Thread pghoratiu
 relations:    Users:      local: statusid      foreign: statusid      type: many Try changing the relation type between tables to one. The id is add because the relation type is many. Now here's where things get completely bizarre. Hopefully this will be the key to someone. I can

[symfony-users] Re: Too many redirects error on symfony.

2010-06-16 Thread pghoratiu
Check the symfony logs - there should be some info about the filters executed and redirects performed. gabriel On Jun 16, 4:17 pm, Bruno Reis bruno.p.r...@gmail.com wrote: any hints? 2010/6/14 Bruno Reis bruno.p.r...@gmail.com: Hi, I´m using a filter with the following code to

[symfony-users] Re: Call to undefined function.

2010-06-16 Thread pghoratiu
It's part of the PartialHelper.php modify your config/settings.yml to include it by default: all: .settings: standard_helpers: [I18N, Partial] or prepend use_helper('Partial') at the top of your template. Check the manual. gabriel On Jun 17, 8:28 am, Dan

[symfony-users] Re: app.yml array is not array on first level

2010-06-14 Thread pghoratiu
Hi! I think this is by design, sort of a undocumented feature. I had this problem as well when I first encountered it and since than I remembered to always use the second level to store arrays. gabriel On Jun 14, 11:43 am, Tom Ptacnik to...@tomor.cz wrote: Do someone know why first

[symfony-users] Re: mediatemnple Dv server symfony deployment

2010-06-11 Thread pghoratiu
The frontend_dev.php is limited by default for accesses from localhost. Check and change that (add your IP) or delete that limitation altogether. gabriel On Jun 11, 9:13 am, fRAnKEnSTEin shirkav...@gmail.com wrote: using the frontend_dev.php i get: You are not allowed to access this

[symfony-users] Re: mediatemnple Dv server symfony deployment

2010-06-11 Thread pghoratiu
There is something wrong with your setup check: 1. phpinfo() 2. Run the /data/bin/check_configuration.php script 3. Check Apache log (the error log in particular) 4. Install xdebug if possible White screen means usually a fatal error with the PHP interpreter. gabriel On Jun 11, 10:56 

[symfony-users] Re: practical symfony guide 1.4 routing (or apache?) question

2010-06-11 Thread pghoratiu
Check if you have mod_rewrite enabled in your apache setup. gabriel On Jun 10, 2:48 am, Marvin Frederickson marvin.frederick...@gmail.com wrote: I'm up to day 5 (page 69) in the guide.  When I browse tohttp://jobeet.artemisu.local/the job list comes up fine.  But when I click on the first

[symfony-users] Re: mediatemnple Dv server symfony deployment

2010-06-10 Thread pghoratiu
Check also the output with the development controller (frontend_dev.php). In case you get blank page with prod you can see the problem with dev. gabriel On Jun 11, 7:12 am, fRAnKEnSTEin shirkav...@gmail.com wrote: Hi there, Does any body knows any tutorial/guide/page or something that

[symfony-users] Re: Create sub-directory in Backend Application on the fly

2010-06-09 Thread pghoratiu
This is the expected behaviour, you need to have access rights for the given directory to create a subdirectory in it. You can create the support directory with ownership set up as the user used to run apache (under Ubuntu this is www-data) in this case the access rights can be set up as 0700.

[symfony-users] Re: Custom directory structure

2010-06-06 Thread pghoratiu
I think that it was your mistake by choosing the wrong tool for the job. Given your requirements (strict shared hosting environment) CodeIgniter would be a better fit. In the future if you commit to symfony try searching for a shared hosting provider that is more symfony friendly (there are

[symfony-users] Re: Symfony cache, override?

2010-06-06 Thread pghoratiu
1. Split up the page in cache-able pieces and leave the main page un- cached. 2. use AJAX to load content for the changed section. gabriel On Jun 5, 9:54 am, zedan zeda...@gmail.com wrote: I want to cache my index page, but i don't want to cache [_index_partial] which include by index

[symfony-users] Re: sfImageTransformExtraPlugin: Anyone manage to get it working?

2010-06-06 Thread pghoratiu
What type of image transformer you use (mod_gd)? Check that is installed correctly (phpinfo()). What type of images are you trying to transform? There are some known limitations for libgd - no bitmap (.bmp) etc... What error do you get when running under the dev controller (it should be

[symfony-users] Re: How to paginate search-results?

2010-06-05 Thread pghoratiu
I think you should be worried about users that refuse to reply with the cookie thus the session is pretty much useless in this case (crawlers usually don't hold the cookie). In this case you need to track the users by IP address. I would solve this problem on the Apache server side with

[symfony-users] Re: How to paginate search-results?

2010-06-05 Thread pghoratiu
Saving session by ip ... what if $_SERVER['REMOTE_ADDR'] is not set ? That value should always be set. If there is a proxy between the client and the server it will be the proxy server IP address and maybe set up in the HTTP header as X-Forwarded-For. Anyway... as I mentioned my main

[symfony-users] Re: Overriding settings.yml

2010-06-05 Thread pghoratiu
I don't think that you can do this given that these are decided on the application level (not module level). What you can do is do a forward to your own 404 page depending on the request once you are in the 404 action. gabriel On Jun 4, 8:09 pm, Carlos Jorge Andrade carlos.andr...@gmail.com

[symfony-users] Re: How to paginate search-results?

2010-06-05 Thread pghoratiu
how do you secure, that one cannot bypass the post-form, by url- manipulation? You can not really do that, they can do whatever they want in the request. One thing that you have to do is to enforce a session upon the users that get to search form - by requesting login for instance. To

[symfony-users] Re: sfDoctrineGuardPlugin fails query upon doctrine:build --all

2010-06-05 Thread pghoratiu
Taking a look at plugins/sfDoctrineGuardPlugin/config/doctrine/schema.yml, all of the id columns use integer(4). Isn't this what the user_id type should be? = It should be type: integer(4) columns: user_id: type: integer(4) notnull: true gabriel -- If you want

[symfony-users] Re: sfDoctrineGuardPlugin fails query upon doctrine:build --all

2010-06-04 Thread pghoratiu
Not sure if this solves it, check the type of data for id's used in FK references in the schema: int(4) or int It should be of the same type for the FK to work. gabriel On Jun 3, 11:25 pm, Wheaton, James S jwhea...@purdue.edu wrote: I’m in the midst of updating to symfony 1.4.1-stable; using

[symfony-users] Re: Getting the value of a field from an another template???

2010-06-04 Thread pghoratiu
You just set it up in the action of step3 so it's available in the template. gabriel On Jun 4, 3:12 pm, bedomon leray.a...@gmail.com wrote: Hi, I work on symfony 1.0.21, and get a probleme with a form. My form got 3 step with for each an execute and validate method in action class.

[symfony-users] Re: Question about jq_link_to_remote()

2010-06-04 Thread pghoratiu
Try with: 'update' = 'myDialog', gabriel On Jun 4, 8:04 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, i have a template with this below to show a dialog when the link is clicked: div id=myDialog /div echo jq_link_to_remote('Enviar mensaje 2', array(                          

[symfony-users] Re: recursive redirect :-/

2010-06-03 Thread pghoratiu
You should store in the session the timestamp of the last request so you can decide when to do the redirect for the user. gabriel On Jun 3, 12:44 pm, comb sa...@gmx.net wrote: Thanks, I solved it with the users session: // redirect to referrer if not in this action here if

[symfony-users] Re: sfWidgetFormInputFileEditable: where is the code that removes the file?

2010-06-03 Thread pghoratiu
Check your class inheritance tree, it's defined in one of your ORM's base classes, depending on what you use: Propel: symfony/lib/plugins/sfPropelPlugin/lib/form/ sfFormProppel.class.php Doctrine: symfony/lib/plugins/sfDoctrinePlugin/lib/form/ sfFormDoctrine.class.php Search for unlink().

[symfony-users] Re: Lucene-Search

2010-06-02 Thread pghoratiu
@pghoratiu: Yeah I know about Solr, but I cannot use it, like I wrote in the first post :-( Is there an alternative PHP-Search-Engine to Zend Lucene? Sphinx is a good alternative, I did not use it personally but my colleagues have and they are content with it. It very much depends

[symfony-users] Re: Cache problem? I don't know

2010-06-02 Thread pghoratiu
Do you redirect after the form data is saved? After a form is processed and data is saved the best practice is to do redirect to avoid the re-POST of form data, make sure you have this. gabriel On Jun 2, 7:44 pm, wueb webmaster@gmail.com wrote: I'm having a problem with symfony on my

[symfony-users] Re: recursive redirect :-/

2010-06-02 Thread pghoratiu
You need to evaluate your routes into a module/action tuple, see the last example on this page: http://pookey.co.uk/wordpress/archives/80-playing-with-symfony-routing-without-symfony You can probably load the routes separately from the YAML as well. gabriel On Jun 3, 12:24 am, comb

[symfony-users] Re: batch import

2010-06-02 Thread pghoratiu
I have done something similar and the memory leak problem was difficult to solve. In my case it was due to circular references between objects and I always had to use unset() explicitely on individual objects after saving them into the database. Make sure the objects you are trying to save do not

[symfony-users] Re: Lucene-Search

2010-06-01 Thread pghoratiu
Lucene is not slow, only the Zend PHP re-implementation of the Lucene file format + search. In my opinion it's close to unusable for real life scenarios (large data set, fast indexing ...). It probably would work ok for a small dataset such as 1. I recomend Solr as alternative which is Java

[symfony-users] Re: Affordable managed hosting for use with symfony

2010-05-29 Thread pghoratiu
I use Dreamhost, it costs around 9 USD / month and they provide SSH access for their accounts so deploying the application is quite easy this way. Search for a provider that gives you ssh access and an admin panel. As far sa VPS providers go I recomend http://www.intovps.com/. gabriel On

[symfony-users] Re: why not host symfony1.4 on shared-hosting?

2010-05-29 Thread pghoratiu
The major issue with shared hosting in my experience are: - performance, can be really poor in some cases with no performance guarantees - you can have a page responding in 1 sec, another time 20 sec and you have no control over this. Also if you are over your quota in resource usage (cpu

[symfony-users] Re: why not host symfony1.4 on shared-hosting?

2010-05-29 Thread pghoratiu
I recommend Ubuntu 10.04 if you start now because: a. Enterprise support - 5 yrs of updates b. Ships with latest PHP version (5.3.2). Other Linux distributions are still shipping PHP 5.2.x series because of many PHP software that still relies on it. gabriel -- If you want to report a

[symfony-users] Re: Routing based on environment

2010-05-28 Thread pghoratiu
As far as i know there is no support out of the box for this. I think that in this case the flexibility does not make too much sense because you want each your environments dev, staging, prod to be configured exactly the same so you can replicate bugs consistently across environments. gabriel

[symfony-users] Re: multiple problems with Symfony 1.4 installation

2010-05-28 Thread pghoratiu
You should check the logs for both symfony and apache. gabriel On May 28, 2:33 pm, sdwdd serg.buslov...@gmail.com wrote: Hi, All. Having a couple of problems with Symfony 1.4 installation: 1. While I'm using development environment sometime an error application frontend not found

[symfony-users] Re: Relative path with reverse proxy

2010-05-27 Thread pghoratiu
You will probably have to implement your own set of helpers and use those instead of the the ones provided by symfony: include_javascripts() - my_include_javascripts() include_stylesheets() - my_include_stylesheets() link_to - my_link_to() image_tag - my_image_tag() And in those you can manipulate

  1   2   >