[symfony-users] symfony1 + Symfony2

2011-06-03 Thread Denis.Gorbachev
Hello, everybody! I've got an internal management system based on symfony1. However, the client wants to add some major enhancements (so big that they would require 4 months or so to develop). Is there any way to use both symfony1 and Symfony2 in the same project? -- If you want to report a vuln

Re: [symfony-users] Using Sonata AdminBundle for a front end management panel

2011-06-03 Thread Thomas Rabaix
Duplicating base code is not ideal. It would be better on the long run to have 2 differents applications, you are not forced to have a dedicaded subdomain. You can initialize the Frontend and Backend from within a single index.php by matching url. On Thu, Jun 2, 2011 at 1:45 PM, keymaster wrote

[symfony-users] Automatic selection which layout to use on AJAX calls?

2011-06-03 Thread FractalizeR
Hello. I would like my AJAX site to be usable with Javascript disabled also. That means most pages can be loaded by AJAX calls and by normal page request calls in browser. Is there a way to automatically handle AJAX calls in symfony2 so that on AJAX calls templates are not decorated by the layo

Re: [symfony-users] Can not send email via Symfony2

2011-06-03 Thread Michael Holm
Hi, Just a hint, are you sure that you not just redirect after sending the mail, and the mail are held back in you local mail queue? I just know what i have done that a couple of times.. :) Best regards, Michael Holm On Fri, Jun 3, 2011 at 8:00 AM, Haulyn Jason wrote: > Hi, > I want to send

Re: [symfony-users] Can not send email via Symfony2

2011-06-03 Thread Haulyn Jason
I am confused, after I send the email, I only redirect to dashboard page. BUT: nothing was pushed to my sendmail queue. Regards, Haulyn Jason Founder, http://domix.in Rm. 807, Qilu Software Tower, Qilu Software Park 1 Shunhua Rd., High-Tech Development Zone Jinan, Shandong 250101, P. R. China T

Re: [symfony-users] symfony1 + Symfony2

2011-06-03 Thread Thomas Rabaix
Symfony1 can be used on top of symfony2, but this required some works and a good understanding on how frameworks works. On Fri, Jun 3, 2011 at 9:48 AM, Denis.Gorbachev wrote: > Hello, everybody! > > I've got an internal management system based on symfony1. However, the > client wants to add some

Re: [symfony-users] Re: Is there demand for a Symfony2 Eclipse Plugin?

2011-06-03 Thread Johannes Schmitt
There is another thing that would be cool that have IDE support for, and that are annotations. Eclipse PDT has already autocompletion for the "@var" annotation, but maybe that is extensible to include all annotations such as @Route, @Template, @Secure, etc. Another thing that might be helpful, but

Re: [symfony-users] Using Sonata AdminBundle for a front end management panel

2011-06-03 Thread keymaster
> You can initialize the Frontend and Backend from within a single index.php by matching url. Thanks for the response, Thomas. While in principle I understand what you are recommending, I have no clue on what changes to make to get that setup. Would you know of any example code somewhere on h

Re: [symfony-users] Using Sonata AdminBundle for a front end management panel

2011-06-03 Thread Thomas Rabaix
On Fri, Jun 3, 2011 at 11:31 AM, keymaster wrote: > > You can initialize the Frontend and Backend from within a single > index.php by matching url. > > Thanks for the response, Thomas. > > While in principle I understand what you are recommending, I have no clue > on what changes to make to get t

[symfony-users] app_dev.php works on local and server, but app.php only works local

2011-06-03 Thread Haulyn Jason
Hi, I deployed my symfony 2.0 application to the server, it's simple CRUD application. On my dev machine, no matter visit to /app_dev.php/ or /app.php, everything works well. On my production machine, I can visit to /app_dev.php/, everything works well, but when I visit /app.php or /app.php/, I g

Re: [symfony-users] Can not send email via Symfony2

2011-06-03 Thread Haulyn Jason
OK, I know the problem, mailer_transport="sendmail", I wrote this line to production config, but not in dev config, I set it to smtp to dev config. Sorry for the stupid issue. Regards, Haulyn Jason Founder, http://domix.in Rm. 807, Qilu Software Tower, Qilu Software Park 1 Shunhua Rd., High-Te

Re: [symfony-users] Re: Is there demand for a Symfony2 Eclipse Plugin?

2011-06-03 Thread Robert Gründler
On 03.06.11 11:31, Johannes Schmitt wrote: There is another thing that would be cool that have IDE support for, and that are annotations. Eclipse PDT has already autocompletion for the "@var" annotation, but maybe that is extensible to include all annotations such as @Route, @Template, @Secure,

Re: [symfony-users] Using Sonata AdminBundle for a front end management panel

2011-06-03 Thread keymaster
Just confirming to see if I understand correctly: Two app folders - frontApp, backApp. Single code base. Single db. Each userland bundle has AdminFront and AdminBack classes as well as AdminFrontController and AdminBackController classes. The AdminBundle config is differen

[symfony-users] Re: Using Sonata AdminBundle for a front end management panel

2011-06-03 Thread dbu
hi thomas, > something I have in mind, the only restriction for now is how the Admin > class are used by the routing and it is not hard to change. But for now I am > focused on the security layer with ACL. i played with the adminbundle today (some general follows in a separate thread). i found no

[symfony-users] Integrate Sf2 with jquery

2011-06-03 Thread smontes
I rode the following messages http://groups.google.com/group/jquery4php/browse_thread/thread/d7291256b04885e , but I do not know if this works for symfony 2 , to beginning the autoload what I have is in php. I do not know how do it work with jquery. -- If you want to report a vulnerability issue

[symfony-users] Symfony2 configuration types - which one to choose?

2011-06-03 Thread Dmitry Bykadorov
Hello all! What we have for configuration? - YAML (default in Symfony standard distribution) - XML (in my opinion most powerfull option - with validation via DTD & XSD but more complex to human) - PHP (ugly but native )) - Annotations (looks very cool in file but... maybe hard to debug, no valida

[symfony-users] Aw: Re: Can't get MongoDB working

2011-06-03 Thread Conrad
Thanks Mathias, I will try it next week (hopefully :) -- 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 t

Re: [symfony-users] Symfony2 configuration types - which one to choose?

2011-06-03 Thread Christophe COEVOET
Le 03/06/2011 14:56, Dmitry Bykadorov a écrit : Hello all! What we have for configuration? - YAML (default in Symfony standard distribution) - XML (in my opinion most powerfull option - with validation via DTD& XSD but more complex to human) The configuration of bundles are validated whatever f

[symfony-users] [Sonata AdminBundle] documentation

2011-06-03 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 hi thomas, some feedback and hints on the AdminBundle. (i post this to the list, as people might stumble over the same details as i did...) i followed http://rabaix.net/AdminBundle/html/index.html first: THANKS! this is an awesome tool! tutorial c

Re: [symfony-users] Integrate Sf2 with jquery

2011-06-03 Thread David Buchmann
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 this sounds spanish to me :-) but maybe you want to have a look at https://github.com/sonata-project - they provide a jquery bundle, and the adminbundle is using it... maybe you can figure things out from the admin bundle source code... cheers,david

[symfony-users] Re: Symfony2 configuration types - which one to choose?

2011-06-03 Thread Dmitry Bykadorov
Thanks, Christophe! You're right, PHP configuration I've never using. But for my projects I need some code conventions ) E.g. only YAML or only Annotations. Now I'm trying to use XML in my bundles. p.s. Can anyone give me a link to full default configuration in XML? ) On Jun 3, 5:04 pm, Chris

Re: [symfony-users] Using Sonata AdminBundle for a front end management panel

2011-06-03 Thread Thomas Rabaix
2 app folders with 1 different configuration for routing and templating. You can share the Admin class, but this is not a good idea, it would be better to have 2 dedicated Admin class, behaviors can change a lot between super admin and simple user. On Fri, Jun 3, 2011 at 2:12 PM, keymaster wrote

Re: [symfony-users] Re: Using Sonata AdminBundle for a front end management panel

2011-06-03 Thread Thomas Rabaix
The is a ACL branch which for now allows to select which actions can be done upon roles. The next step will be to select which fields users can view or edit. On Fri, Jun 3, 2011 at 2:46 PM, dbu wrote: > hi thomas, > > > something I have in mind, the only restriction for now is how the Admin >

Re: [symfony-users] app_dev.php works on local and server, but app.php only works local

2011-06-03 Thread Καρακούσης Απόστολος
try changing $kernel = new AppKernel('prod', false); to $kernel = new AppKernel('prod', true); in app.php On Jun 3, 2011, at 1:25 PM, Haulyn Jason wrote: > Hi, > > I deployed my symfony 2.0 application to the server, it's simple CRUD > application. > > On my dev machine, no matter visit t

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

2011-06-03 Thread Kevin
I was also having this issue, updating to sf2 master cleared it up for me. On Jun 2, 10:35 am, keymaster wrote: > Getting the identical error, also on Sf2 Beta3. > > *Fatal error*: Call to a member function clearAll() on a non-object in > *C:\Program > Files > (x86)\Zend\Apache2\htdocs\Symfony\v

[symfony-users] symfony2: sharing global values between templates

2011-06-03 Thread Rytis Daugirdas
Hello, Is there a way to easily set a value in one template and make it available in another (both templates are included by the same layout)? For example, in a page template I want to set a string value representing the selected menu item and use this value in a mini- template that contains the

Re: [symfony-users] The route "#" does not exist

2011-06-03 Thread Javier Garcia
I think you don't need link_to() to create an static link. Use href="#"> directly. Javi On 06/03/2011 06:40 AM, Imran wrote: Hi Folks, I am new to symfony1.4 and few issues are coming with link_to() helper. when i use write as link_to('text', '#), it throws error The route "#" does not exist

[symfony-users] Months in date field not always in same format

2011-06-03 Thread umpirsky
i use form date field like: // ... ->add('valid_untill', 'date', array( 'label' => 'Valid untill', 'years' => range(date('Y'), date('Y') + 5) )); // ... render it like: {{ form_row(form.valid_untill, { 'date_pattern': '{{ month }} {{ year }}' }) }} I

[symfony-users] Re: symfony2: sharing global values between templates

2011-06-03 Thread Rytis Daugirdas
JavaScript? It has nothing to do with my question. On Jun 3, 8:38 pm, Justin Hilles wrote: > why not use js? -- 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] Re: getting a fatal error using swiftmailer

2011-06-03 Thread Roger Webb
I went through this *exact* issue and found an answer on the list. You *MUST* retrieve the "mailer" before creating a new Swift_Message $mailer = $this->get('mailer'); $message = \Swift_Message::newInstance()->... Roger On Jun 3, 9:27 am, Kevin wrote: > I was also having this issue, updating

Re: [symfony-users] app_dev.php works on local and server, but app.php only works local

2011-06-03 Thread Haulyn Jason
Thanks, it works now. What's the difference between the different parameter? Regards, Haulyn Jason Founder, http://domix.in Rm. 807, Qilu Software Tower, Qilu Software Park 1 Shunhua Rd., High-Tech Development Zone Jinan, Shandong 250101, P. R. China Tel: +86 158 5410 3759 Website: http://haulyn

[symfony-users] Problem with DoctrineMongoDBBundle

2011-06-03 Thread amit
Hi, I am trying to use DoctrineMongoDBBundle but not able to create documents using CLI. This is what I did. - Downloaded symfony beta3 - Downloaded DoctrineMongoDBBundle from GIT - Downloaded doctrine/common from git - Downloaded doctrine/dbal from git - Downloaded doctrine/mongodb from git - D

[symfony-users] Re: New to PHP

2011-06-03 Thread Ton Yeung
Well I seem to have found a framework that might work. According to the hiphop mailing lists, it looks like code igniter might work. I'll be using that it seems. I am unsubscribing from this list, so if anyone has any questions regarding hiphop, please go to their mailing list. On Jun 1, 6:04 pm,

[symfony-users] Re: DataBase Migration

2011-06-03 Thread Bart van Wissen
On 3 jun, 08:14, Gareth McCumskey wrote: > If you are using symfony 1.1 or up (not Symfony 2), then there is a command > you can give from within the project root to create a schema.yml from the > existing database: > > ./symfony propel:build-sql > > I think regenerating the schema.yml for an exi

[symfony-users] Re: app_dev.php works on local and server, but app.php only works local

2011-06-03 Thread t.lesniak
Hi Please try to clear cache, simply remove everything from app/cache dir. Should help. Regards, Tomasz Leśniak -- 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] symfony2 custom validation

2011-06-03 Thread cosmin
i am trying to build custom validation in symfony2 for passwords and username/email unique but i can`t figure out: how to access passconfirm property? hot to access the database? from within the validator class the documentation does not write about this:( -- If you want to report a vulnerabi

Re: [symfony-users] The route "#" does not exist

2011-06-03 Thread Justin Hilles
Javier is right but if you had to use link_to link_to('Link Text", $sf_request->getPath(), array("anchor" => "#")); I think that works, i like having all my links in symland -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You receiv

[symfony-users] Re: symfony2: sharing global values between templates

2011-06-03 Thread Justin Hilles
why not use js? -- 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@googlegroups.com To un

[symfony-users] How to use mongoDB in Beta3?

2011-06-03 Thread Zap
Following guide at http://symfony.com/doc/current/cookbook/doctrine/mongodb.html I get exception: InvalidArgumentException: There is no extension able to load the configuration for "doctrine_mongodb" (in /home/zap/public_html/v2/app/ config/config.yml). In PR6 which I used for last mongo experime

[symfony-users] Symfony 1.2 Admin Generator not using Form Classes

2011-06-03 Thread Mazdak
I am using generator.yml to generate admin side. The code in the cache is not using Form class ( extended from BaseFormPropel). What I read in tutorials is that Form class is used and I can use setWidgets to customize it. Why Symfony is not using Forms generated in lib/form/? -- If you want to re

[symfony-users] [Validation] Custom validator symfony2

2011-06-03 Thread cosmin
Is there a way to access two properties from the same entity that isValidated like password and passconf without using CLASS_CONSTRAINT?? my second problem is that i can`t set a new configuration so i can use entityManager services: validator.unique: class: MyNsp\UserBundle\Valida

[symfony-users] Re: app_dev.php works on local and server, but app.php only works local

2011-06-03 Thread Tomasz Leśniak
With second parameter you decide whether enable debugging or not. Try to set this parameter back to false, and clear cache. You can simply delete all files from app/cache directory. Refresh your browser to see results. Should be ok. On 4 Cze, 03:42, Haulyn Jason wrote: > Thanks, it works now. Wha

[symfony-users] How to upload images in symfony 2

2011-06-03 Thread Tomasz Leśniak
Hi everyone! How to uload file to the server using symfony 2. I want to build a simple gallery bundle where I could upload files, but images only (jpg | gif | png). How to do that? how to limit upload files to image files? how to configure upload dir, the name of uploaded file? Regards -- If yo