Re: [symfony-users] Get all logged in users

2011-01-18 Thread Gabriel Petchesi
You should look into server push technologies to get updated information from the clients. http://en.wikipedia.org/wiki/Push_technology http://en.wikipedia.org/wiki/Comet_(programming) As for storing user state use memcache with some locking mechanism to see which users are active or not. g

Re: [symfony-users] Re: I18n + Umlauts: not working without utf8_encode

2011-01-18 Thread Gabriel Petchesi
You have probably content with two different charsets in the database, it may look the same but the encoding used is different. In this case I would say the translation text is not correct in the database, having ISO-8859-1, probably it was inserted in the DB by someone who had only ISO-8859-1

[symfony-users] Re-write rule

2011-01-18 Thread corneliusparkin
Hi Hope someone can help... I have a Symfony project which contains a folder web/abstracts. I would like to be able to access this folder directly with http://symfonyapp.localhost/abstracts/. When doing this, I receive an internal 500 server error. Please let me know if you have a solution for t

Re: [symfony-users] Using Symfony models and database config for standalone PHP script?

2011-01-18 Thread Gareth McCumskey
Look at the documentation around the testing framework used in symfony 1.x as the test scripts are standalone and the documentation gives details on including configs for database and models etc. On Tue, Jan 18, 2011 at 1:20 AM, Christian Hammers wrote: > Hello > > How can I use my Propel models

Re: [symfony-users] [Symfony2] MongoDB Exception: "Every Document must have an identifier/primary key"

2011-01-18 Thread stof
On Mon, 17 Jan 2011 16:16:34 -0800 (PST), Philipp Schächtele wrote: > Hey Symfony Users, > > when trying to persist a Document with MongoDB in the current version > of the Symfony2 Sandbox I receive the following Exception: > > "No identifier/primary key specified for Document 'Application > \Te

[symfony-users] i18n web interface

2011-01-18 Thread jackjoe
Hi! Check this: http://digitalkaoz.net/2010/12/symfony-i18n-plugin-written-in-extjs -- 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 subscribed to the Google Groups "symfony users" group. To p

[symfony-users] Re: After installing sfPropel15Plugin: error when i try to build classes

2011-01-18 Thread Javier Garcia
Sorry, I was commeting/removing also this line below in config/ propel.ini: propel.behavior.default = symfony,symfony_i18n Javier On Jan 17, 10:15 pm, Gabriel Petchesi wrote: > Check the autoloader cache, it's found in cache/. > In my app is cache/frontend/dev/config/config_autoload.yml.php >

[symfony-users] Re: Updating symfony1.4 official documents

2011-01-18 Thread shin
Thank you for responding me Massimiliano! Actually, I got a mail just after I posted this message to symfony- users, and the updated documents is on the site now. :) I think the link you mentioned is updated now, too. It seems that there was a bug in reflecting to the official web site, but Fabie

Re: [symfony-users] Re-write rule

2011-01-18 Thread Gareth McCumskey
My first question is why you would want to? The web folder is meant to store only your app assets such as images, css files and javascript files for example. On Tue, Jan 18, 2011 at 11:02 AM, corneliusparkin < cornelius.par...@gmail.com> wrote: > Hi > > Hope someone can help... > > I have a Symfo

Re: [symfony-users] I18n does not encode special chars -> W3C validation fails

2011-01-18 Thread Gábor Fási
In xml you also need to strore it encoded - so when you store "&" in the xml, it comes out as a simple amperstand on the other end. If you need an encoded one in your output, you need to double-encode it in the xml: "&". On Mon, Jan 17, 2011 at 16:01, chrigu wrote: > Hi everybody, > > I'm usi

Re: [symfony-users] Re-write rule

2011-01-18 Thread Cornelius Parkin
Hi Thanks for responding... Basically we have a few files that we need to make available within the same web application for Google harvesting. The application is stored as a unit in SVN, so we do not want to split the files into a non-symfony, non-versioned folder. Thus, I am not sure if the we

Re: [symfony-users] Re-write rule

2011-01-18 Thread Gareth McCumskey
So why not just use the scripts directly? If one of the non-symfony scripts you want to use is called custom.php put it into web and then call it as http://symfonyproject.localhost/custom.php On Tue, Jan 18, 2011 at 12:32 PM, Cornelius Parkin < cornelius.par...@gmail.com> wrote: > Hi > > Thanks f

Re: [symfony-users] Re-write rule

2011-01-18 Thread Gareth McCumskey
To add, allowing directory listing is actually very dangerous to do. You should rather not allow directories to allow you to see the contents. It just opens the way for hackers On Tue, Jan 18, 2011 at 12:32 PM, Cornelius Parkin < cornelius.par...@gmail.com> wrote: > Hi > > Thanks for respondi

Re: [symfony-users] Re-write rule

2011-01-18 Thread Cornelius Parkin
Hi It works if I do that, I can for example access http://symfonyproject.localhost/images/image.jpgwithout a problem, but let's say there are 10 images and I want to list all 10 images, accessing just http://symfonyproject.localhost/images

Re: [symfony-users] Re-write rule

2011-01-18 Thread Gabriel Petchesi
Did not test but something like this should work: RewriteRule /abstracts(.*)/abstracts$1[L] Make sure you place this rule above the default symfony rule (the order counts) You should check why you get an error 500, it should be 404 in case a directory is not found. gabriel -- If y

Re: [symfony-users] Re-write rule

2011-01-18 Thread Gareth McCumskey
Like I said before, it is considered very bad practice to list the contents of a directory on your server and you should not do it. If you really need a way to list the contents, its very simple to create a PHP script to read the contents of a directory and list just the contents On Tue, Jan 18, 2

Re: [symfony-users] Re-write rule

2011-01-18 Thread Cornelius Parkin
Hi Thanks, I did it but keep getting the *The server returned a "500 Internal Server Error". This is what my web/.htaccess file looks like: Options +FollowSymLinks +ExecCGI RewriteEngine On # uncomment the following line, if you are having trouble # getting no_script_name to work #Rew

Re: [symfony-users] Re-write rule

2011-01-18 Thread Cornelius Parkin
Hi Yes, I have considered following this route :-). Regards CAP On Tue, Jan 18, 2011 at 1:52 PM, Gareth McCumskey wrote: > Like I said before, it is considered very bad practice to list the contents > of a directory on your server and you should not do it. If you really need a > way to list the

[symfony-users] Re: Get all logged in users

2011-01-18 Thread Vikos
Or if the Presence information doesn't matter... make a shoutbox... On Jan 18, 9:24 am, Gabriel Petchesi wrote: > You should look into server push technologies to get updated information > from the > clients.http://en.wikipedia.org/wiki/Push_technologyhttp://en.wikipedia.org/wiki/Comet_(program

[symfony-users] Why is Symfony Session data encrypted on my production server ?

2011-01-18 Thread Mathieu Comandon
I want to share a single authentificaition method for to Symfony websites sharing the same top-domain. I use a cookie valid on all subdomains and sfPDOSessionStorage for keeping session data. factories.yml is set up like this on both projects: all: storage: class: sfPDOSessionSt

Re: [symfony-users] Re: Get all logged in users

2011-01-18 Thread Justen Doherty
i would have a 'last_logged_in' date against a user and every time a user logs in, this timestamp is updated - once you have this time in the database, then define an offset (say 2 mins or 180 seconds) and query against the database for a count/users that are logged in.. On Tue, Jan 18, 2011 at 1

Re: [symfony-users] Re: I18n + Umlauts: not working without utf8_encode

2011-01-18 Thread Zach
Ahh... Thanks for all your help. You suggested many things I would have never thought of and didn't know about. I tried your earlier suggestions on the production site instead of the test site and found that wget was not displaying correctly. I checked the cache and the serialized data was also

[symfony-users] Re: Doctrine2 ODM missing hydrator files

2011-01-18 Thread Jérôme TEXIER
That works ! Thanks a lot. It was quite simple indeed. Where do you find that on the documentation ? On 18 jan, 01:00, Damon Jones wrote: > Add tbe following to your config.yml: > > doctrine_odm.mongodb: >     auto_generate_hydrator_classes: true > > On Jan 17, 11:30 pm, Jérôme TEXIER wrote: > >

[symfony-users] Re: Doctrine2 ODM missing hydrator files

2011-01-18 Thread Damon Jones
You're welcome, I'm glad I could help. I had the same problem and I couldn't find anything in the Symfony2 or Doctrine documentation. I spent a few hours scratching my head and eventually figured out that there was probably a config setting like the autogenerate proxies one and looked through the

Re: [symfony-users] Re-write rule

2011-01-18 Thread Gabriel Petchesi
*Use the following .htaccess file with the changes highlighted.* For setting up the Indexes configuration update within Apache virtual host settings so that it affects only the given directory. * * *Options +FollowSymLinks +ExecCGI* RewriteEngine On # uncomment the following line, if you ar

Re: [symfony-users] Re-write rule

2011-01-18 Thread Cornelius Parkin
Thanks, I will give it a try and let you know :-) CAP On Tue, Jan 18, 2011 at 9:09 PM, Gabriel Petchesi wrote: > *Use the following .htaccess file with the changes highlighted.* > For setting up the Indexes configuration update within Apache virtual host > settings so that it affects only the gi

Re: [symfony-users] Re-write rule

2011-01-18 Thread Justen Doherty
why not create a subdomain and serve the non-symfony application off a different directory? On Tue, Jan 18, 2011 at 7:17 PM, Cornelius Parkin < cornelius.par...@gmail.com> wrote: > Thanks, I will give it a try and let you know :-) > > CAP > > > On Tue, Jan 18, 2011 at 9:09 PM, Gabriel Petchesi wr

[symfony-users] Apostrophe 1.5 is out!

2011-01-18 Thread Tom Boutell
At long last, Apostrophe 1.5 has been released. It was worth the wait. Apostrophe, for those who don't know, is a content management system built on Symfony. It has been through several stable releases and is in use on many production sites. You can learn more here: http://www.apostrophenow.com/

[symfony-users] doctrine:generate-migrations-db error

2011-01-18 Thread Chris
Hi, I am getting the following error when using "php symfony doctrine:generate-migrations-db -t" immediately after "php symfony doctrine:build --all --and-load --no-confirmation && php symfony cache:clear". How do I resolve this? I am testing on ubuntu, php 5.3.3, symfony 1.4.8. Thanks, Chris

Re: [symfony-users] Re-write rule

2011-01-18 Thread Cornelius Parkin
Hi Gabriel You are an absolute genius :-)... Thank you so much for your help. It works perfectly... Regards CAP On Tue, Jan 18, 2011 at 9:09 PM, Gabriel Petchesi wrote: > *Use the following .htaccess file with the changes highlighted.* > For setting up the Indexes configuration update within Ap