[symfony-users] HowTo: Datetime return single_text

2011-05-31 Thread Louardi Abdeltif
Hello all, I want to integrate datetimepiker (http://trentrichardson.com/examples/timepicker) in my case i use datetime type but that return choice or (input for date and input for time) please i want this datetime type return a single_text Thanks. -- If you want to report a vulnerability

[symfony-users] Using memcache for session storage

2011-05-31 Thread Phil Moorhouse
With a previous sf1.0 project I used sfMemcachePlugin and it's sfMemcacheSessionStorage class for saving the session to memcache so we could share sessions across multiple hosts. I'd like to do the same thing with my current sf1.4 project but there doesn't appear to be a compatible plugin? Is

[symfony-users] [sf1.4] Calling external URL and modifying header

2011-05-31 Thread Sebastian Göttschkes
Hi, I want to write something like a mockup for clickandbuy for development, so I need a Action which calls a URL and sends some special header, setting variables like $_SERVER['HTTP_X_TRANSACTION']. I tried to use redirect, which doesn't work, as I cannot set the variables. If I use

[symfony-users] [Symfony2] Best way for using a base locale in URL (no I18N)

2011-05-31 Thread Mauricio Morales
Hi there community :) I'm trying to build a URL routing scheme for a web application that will be offered in different languages. It's a Symfony2 app and I've been wondering what the best way to address this situation is. What we need is as simple as this, i.e.: example.com/es/services

Re: [symfony-users] [Symfony2] Best way for using a base locale in URL (no I18N)

2011-05-31 Thread Christophe COEVOET
Le 31/05/2011 13:14, Mauricio Morales a écrit : Hi there community :) I'm trying to build a URL routing scheme for a web application that will be offered in different languages. It's a Symfony2 app and I've been wondering what the best way to address this situation is. What we need is as

[symfony-users] Re: Long loading

2011-05-31 Thread Dark
Hi chafik. Its a fresh and clean sf2 beta 3 version. It is not configured with database. On May 31, 4:51 am, chafik chafik.hn...@gmail.com wrote: Hi Dark, Is it a fresh install of Symfony, or a project that you've already developed ? Check the logs with the sf toolbar (number of requests

Re: [symfony-users] Re: Long loading

2011-05-31 Thread Haris Fauzi
Hi Dark, On your Windows it takes only 300 seconds - that's 5 minutes. Are you sure you consider 3-10 sec as long loading or are you presenting the wrong figure? Anyway, try to access a simple index.php (e.g. only contains phpinfo()) on your Ubuntu and see the difference. It could be the Symfony,

Re: [symfony-users] Strange routing

2011-05-31 Thread Haris Fauzi
Hi Michele, After you enable mod_rewrite, edit .htaccess under web/, find the RewriteRule near the bottom and change it to /web/index.php instead of index.php (default). That /web/ represent the URL path. Regards, Haris On 31 May 2011 00:54, Gábor Fási maerl...@gmail.com wrote: Enable

[symfony-users] Multiple kind of profile with sfGuard

2011-05-31 Thread Olivier Revollat
I want to use http://www.symfony-project.org/plugins/sfDoctrineApplyPlugin To allow users to register themselves but I have two kind of profile with different fields ... for example say that profile_type_1 has type_1_fields_1 and type_1_field_2, ... and profile_type_2 has type_2_fields_1 and

[symfony-users] Re: [Symfony2] Best way for using a base locale in URL (no I18N)

2011-05-31 Thread Mauricio Morales
Thanks Crhistophe, So I do this: homepage: pattern: /{_locale}/ defaults: { _controller: WebsiteBundle:Home:index } requirements: _locale: en|es But then I have to do this: a href={{ path('homepage', {'_locale': app.request.attributes.get('_locale')}) }}/a What I'd

[symfony-users] R: Using memcache for session storage

2011-05-31 Thread Daniel Londero
Hi Phil, you don't need a plugin. Have a look here http://www.symfony-project.org/reference/1_4/en/05-Factories#chapter_05_storage there's a builtin sfMemcacheCache class. Cheers Daniel -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Re: getting a fatal error using swiftmailer

2011-05-31 Thread Diego Henrique Oliveira
Does anyone can help-me with this issue? -- 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 post to this group, send email to

Re: [symfony-users] Re: [Symfony2] Best way for using a base locale in URL (no I18N)

2011-05-31 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi mauricio, the _locale is automatically taken from the session, no need to configure anything there. you can just to path('homepage') if you want the path to the homepage in the current session language. cheers,david Am 31.05.2011 14:48, schrieb

[symfony-users] Aw: Re: [sf2] form_rest won't render repeated?

2011-05-31 Thread Sebastian Göttschkes
That's strange, as this happens to me as soon as I add the repeated field. I don't know what else could cause this behaviour! -- 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

[symfony-users] Re: Aw: Re: [sf2] form_rest won't render repeated?

2011-05-31 Thread Carl
The good news is that this is a known issue: https://github.com/symfony/symfony/issues/1051 https://github.com/symfony/symfony/issues/1115 The bad news is it isn't fixed yet. What I've done as a temporary solution is I manually render all of my hidden fields and just avoid using form_rest()

[symfony-users] Re: getting a fatal error using swiftmailer

2011-05-31 Thread Carl
Which version of Swiftmailer are you using? -- 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 post to this group, send email to

[symfony-users] Re: Form + oneToMany + EntityType; cascade not working

2011-05-31 Thread Stephan Petzl
Without knowing whether cascade:persist should do the job, i guess it could be an issue with owning and inverse side of your relation.[1] The owning side of a relationship determines the updates to the relationship in the database. The owning side is your comment (since it is the one with the

[symfony-users] Re: @extra annotations - what is the new format?

2011-05-31 Thread bkuberek
Hi all, is there a list of Annotation exceptions? Like, @var, @param, @return, etc, those are not used by Doctrine (as far as I understand) and don't need to be imported. I have some of my own that I tried using and get the AnnotationException. For example, I very often use the @todo and @fixme

Re: [symfony-users] Re: @extra annotations - what is the new format?

2011-05-31 Thread Christophe COEVOET
Le 31/05/2011 20:29, bkuberek a écrit : Hi all, is there a list of Annotation exceptions? Like, @var, @param, @return, etc, those are not used by Doctrine (as far as I understand) and don't need to be imported. I have some of my own that I tried using and get the AnnotationException. For

Re: [symfony-users] Re: @extra annotations - what is the new format?

2011-05-31 Thread Bastian Kuberek
Le 31/05/2011 20:29, bkuberek a écrit : Hi all, is there a list of Annotation exceptions? Like, @var, @param, @return, etc, those are not used by Doctrine (as far as I understand) and don't need to be imported. I have some of my own that I tried using and get the AnnotationException. For

[symfony-users] Re: Assetic and php template

2011-05-31 Thread John Blobsmith
Hi, I work in dev mod and my css folder is in /scr/Blobsmith/MyBundle/ Resources/public/css/. Sorry for this very late response... On May 23, 5:03 pm, Kris Wallsmith kris.wallsm...@symfony- project.com wrote: Where are your stylesheets located in your project directory — web/public/css/* ??On

Re: [symfony-users] Re: Generate proxies in Test mode ?

2011-05-31 Thread [BLZ] 梁振警
i don't know why it does not generate automatically, but you can generate it yourself by run this command: app/console doctrine:generate:proxies -e test 2011/5/31 spike3111 gilles.gauthie...@gmail.com: No ideas? Someone writing tests and have proxies generated in cache? On 29 mai, 15:35,

[symfony-users] Symfony and Zend Lucene highlighter

2011-05-31 Thread denys281
Hi! I use symfony 1.4.11 with Zend Lucene,I use I make my search like in Jobbet I need to make Search Results Highlighting (http:// framework.zend.com/manual/en/ zend.search.lucene.searching.html#zend.search.lucene.searching.highlighting) , but I do not now how iplement it with symfony. --

[symfony-users] how to generate model or form only from one/two tables

2011-05-31 Thread abdimahkieu
dear all, do you have a trick to generate model or from only from one/two tables in symfony 1.4 ? because when i tried use doctrine:build --model -- forms, it replace my old form and model thanks and regards -- If you want to report a vulnerability issue on symfony, please send it to security

[symfony-users] Re: [Assetic] on compass configuration file

2011-05-31 Thread matteosister
many thanksI'll follow the discussion there! On 29 Mag, 23:24, Paul Dugas p...@dugasenterprises.com wrote: FYI, MoOk is working on a way to use the compass executable and generate a config in /tmp. https://github.com/kriswallsmith/assetic/issues/43 Paul On Fri, May 27, 2011 at

[symfony-users] Re: on compass configuration file

2011-05-31 Thread matteosister
After some investigation...I found that is impossible to use the full flexibility of compass command linebecause it is bound to a folder structure, instead of a single file to be converted. And this is what assetic does. Maybe there must be some way to extend the sass command line to import

[symfony-users] [AsseticBundle] Infinity recursion when use predefined asset

2011-05-31 Thread Vyacheslav Slinko
config.xml: assetic:assets assetic:asset name=jquery assetic:input%kernel.root_dir%/Resources/js/ jquery.min.js/assetic:input /assetic:asset /assetic:assets base.html.twig: {% javascripts '@jquery' %} b{{ asset_url }}/b {%

[symfony-users] New to PHP

2011-05-31 Thread Ton Yeung
I'm coming from an ASP.NET MVC background, where I can compile and obfuscate my source. How can do this with php and symfony? -- 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

[symfony-users] Re: [Symfony2] Deleting default security.yml file

2011-05-31 Thread Alessandro Desantis
I forgot to remove the bundles from AppKernel.php and the JMS configuration from config.yml. It works now. Thank you. -- Alessandro 'alessandro1997' Desantis desa.alessan...@gmail.com On 30 Mag, 08:10, oscar balladares liebegr...@gmail.com wrote: What I'm doing is to override the defaults, this

[symfony-users] Adding Validation Constraints via $builder-addValidator?

2011-05-31 Thread Eric Clemmons
I'm consuming a data feed from an API that defines which form fields to present to the user. However, I'd like to, whenever an email field appears, add the Email constraint to the form. I see that I can use `$builder-addValidator(new DelegatingValidator(...))`, but for the life of me I can't

[symfony-users] Can you please unsubscribe me

2011-05-31 Thread Chinthaka Rukshan Weerakkody
Hi, I need to unsubscribe from this group and can you please help me for that. Thank You. -- Chinthaka Rukshan Department of Computer Science and Engineering, University of Moratuwa, Sri Lanka. -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] symfony2

2011-05-31 Thread salmyke
I need to know the real method to add in database by using orm doctrine? than for all groups ! -- 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

[symfony-users] [Symfony2] Please help with Assetic

2011-05-31 Thread Anton Patrikeyev
I have little problem with AsseticBundle and don't know how to solve it. In my bundle I place my css files in *MyBundle/Resources/public/css/* Every time if I wont to change my css in public root I need to use symfony console *app/console assets:install web* It works ok, but itisn't comfortable

Re: [symfony-users] Re: Long loading

2011-05-31 Thread John Bohn
Do you have APC installed and on? That be my first guess. On May 30, 2011, at 5:03 PM, Dark d46...@gmail.com wrote: ubuntu-server 10.10 apache 2.2.16 mysql 5.1.49 php 5.3.3 php-exts: curl, eAccelerator, gd, imagick, imap, mcrypt, memcache, mysql, SQLite, tidy, xsl On May 31, 1:00

Re: [symfony-users] Re: which is the correct way to deliver binary content?

2011-05-31 Thread Romain
Hello, by the way, if anyone uses Nginx, there's nearly the same with X-Accel-redirect headers http://wiki.nginx.org/XSendfile Romain On Thu, May 26, 2011 at 7:08 PM, Bart van Wissen bartvanwis...@gmail.comwrote: On 11 mei, 11:24, David Buchmann david.buchm...@liip.ch wrote: hi, i

[symfony-users] [Symfony 1.4] Google Calendar

2011-05-31 Thread Inori
In my project I need to use google calendar (be able to add/view events). While searching I've found only 2 mentions of it. 1.) http://symfohub.com/repo/sfGoogleCalendarPlugin With documentation in japanese and only 1 initial commit this plugin is not exactly what I need, but I still tried to use

Re: [symfony-users] Re: Long loading

2011-05-31 Thread Anton Patrikeyev
See your app_dev.php Does you have next line: $kernel-loadClassCache();? If not - add/uncomment it. Also, what bundle you use? Standard AcmeDemoBundle or other? 2011/5/31 Dark d46...@gmail.com ubuntu-server 10.10 apache 2.2.16 mysql 5.1.49 php 5.3.3 php-exts: curl, eAccelerator, gd,

Re: [symfony-users] Re: Long loading

2011-05-31 Thread John Bohn
Whoops. Didn't see eAccelerator in you list. That should handle the opcode caching. On May 30, 2011, at 5:03 PM, Dark d46...@gmail.com wrote: ubuntu-server 10.10 apache 2.2.16 mysql 5.1.49 php 5.3.3 php-exts: curl, eAccelerator, gd, imagick, imap, mcrypt, memcache, mysql, SQLite,

[symfony-users] Symfony2 Forms createView

2011-05-31 Thread Sebastian
Hi there, so I created a project using Symfony2Project. In my controller I am creating a form using a service. Service definition: form.search_form: class: MyNs\MyBundle\Form\SearchForm form.stock_search: class: Symfony\Component\Form\Form factory_service:

[symfony-users] symfony2

2011-05-31 Thread salmyke
if there is a great tutorial for learning symfony2 from the beginning to the Professionalism ? thank for all the gourp ! -- 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

[symfony-users] Re: Selective caching with edge side includes

2011-05-31 Thread Bart van Wissen
On May 26, 6:12 pm, Bart van Wissen bartvanwis...@gmail.com wrote: if (req.http.Authorization || (req.http.Cookie req.request ~ ^(/ _internal/))) {    /* Not cacheable by default */    return (pass); } I realize by looking at it again that the regular expression is wrong, but I hope

[symfony-users] SF2 Forms - EntityType as text input for id

2011-05-31 Thread Bugsik
Hi, First of all, I am very new to Symfony. I started working on a kind of inventory project. To make things simple - I have a CultureBottle entity. The CultureBottle contains fruit flies (that proliferate) and have to be periodically moved (pushed) to another container. The database is supposed

[symfony-users] DataBase Migration

2011-05-31 Thread zemzoum89
Hi, Please help me, i'm in an internship and i'm working on a symfony project, i'd like to make changes to my database but the problem is that i don't have a schema.yml, i have a lot of other files that contains the model of the database and now i don't know how to make changes to my database...

Re: [symfony-users] Strange routing

2011-05-31 Thread Michele Pierri
Thank you so much! Da: Haris Fauzi haris.fa...@gmail.com A: symfony-users@googlegroups.com Inviato: Martedì 31 Maggio 2011 14:23 Oggetto: Re: [symfony-users] Strange routing Hi Michele, After you enable mod_rewrite, edit .htaccess under web/, find the

Re: [symfony-users] New to PHP

2011-05-31 Thread Diego Henrique Oliveira
You can use Zend Guard to do it. There is another solutions, but Zend Guard is, IMHO, the best choice. On Tue, May 31, 2011 at 2:24 PM, Ton Yeung tonyeun...@gmail.com wrote: I'm coming from an ASP.NET MVC background, where I can compile and obfuscate my source. How can do this with php and

Re: [symfony-users] [Symfony2] Please help with Assetic

2011-05-31 Thread Christophe COEVOET
Le 30/05/2011 22:10, Anton Patrikeyev a écrit : I have little problem with AsseticBundle and don't know how to solve it. In my bundle I place my css files in *MyBundle/Resources/public/css/* Every time if I wont to change my css in public root I need to use symfony console *app/console

[symfony-users] Re: Generate proxies in Test mode ?

2011-05-31 Thread spike3111
I don't think to see this command, thank you! It's works! On 31 mai, 05:46, [BLZ]梁振警 liangzhenj...@gmail.com wrote: i don't know why it does not generate automatically, but you can generate it yourself by run this command: app/console doctrine:generate:proxies -e test 2011/5/31 spike3111

[symfony-users] R: how to generate model or form only from one/two tables

2011-05-31 Thread ftassi
do you have a trick to generate model or from only from one/two tables in symfony 1.4 ? because when i tried use doctrine:build --model -- forms, it replace my old form and model It should not replace your own code. Did you coded directly into the *Base classes ? All generated classes

[symfony-users] R: [sf1.4] Calling external URL and modifying header

2011-05-31 Thread ftassi
Is there a proper way to do this? As far as I know there isn't a tool to generate request built in symfony. You should create an action that send that request using CURL or something like that (try pear http_request2 or Zend_Http_Client Cheers Francesco -- If you want to report a