[symfony-users] Advanced Forms example styling

2011-01-09 Thread codecowboy
Hi, I'm following this example - http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-Forms and *have used the installer script*. Is there a way to quickly style the forms as per the screenshot? I just have raw HTML output with no styling. I already tried *./symfony

[symfony-users] Re: A simple Wiki written in Symfony 2 (aka an interesting sandbox-derived practice project)

2011-01-09 Thread Vit228
Yes, please do it! There's a total leak of any step-by-step project creation documentation. I intend to ultimately write some articles based on this experience for everyone's benefit. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

[symfony-users] [SF2] Php / Twig fatal error

2011-01-09 Thread Jérémie
Hi all, I have this line in a php template : ?php view-extend('MailboxBundle::mailbox_layout.php') ? Which raises this exception : Uncaught exception 'LogicException' with message 'A php template cannot extend a twig template.' I just followed the master/docs from symfony-reloaded webpage :)

[symfony-users] Propel criteria: undefined offset

2011-01-09 Thread Javier Garcia
Hi, i have this schema below, i have generated the classes using symfony and created a pair of objects using the form class generated. moto: marca: { type: varchar(255), required: true } matricula: { type: integer, required: true } Now i have this criteria: $c = new Criteria();

[symfony-users] [symfony2] validate issue

2011-01-09 Thread rouffj
Hi, I'm trying Symfony2 and I have a problem with validate feature. When i have the following code in my controller : public function newAction() { $validator = $this-container-get('validator'); $author = new Author(); print $validator-validate($author);

[symfony-users] Pear installation problem

2011-01-09 Thread Kiran
Hello Friend, Please help somebody, I got following problem when i click on go-pear.bat file. C:\wamp\bin\php\php5.3.3go-pear.bat phar C:\wamp\bin\php\php5.3.3\PEAR\go-pear.phar does not have a signaturePHP W arning: require_once(phar://go-pear.phar/index.php): failed to open stream: pha r

[symfony-users] Doctrine i18n Choice Widget

2011-01-09 Thread Nils Abegg
Hey Guys, i have the following schema.yml and i want to get the zodiac sign ID as a selectbox with the zodiac signs in the users language. But i only get the primary keys in the Selectbox. I use Symfony 1.4.8 and the included Doctrine Version. Could anyone give me a hint what to do. Thanks in

[symfony-users] Grails to Symfony2 Benchmark

2011-01-09 Thread maxarbos
Hello, I just found this post ( http://grails.1312388.n4.nabble.com/Symfony-2-0-vs-Grails-benchmark-td3094892.html ) and wanted to know if there are any different benchmarks or speed comparisons between the two? We have been using grails for a year or so now and it's a dog, so if symfony2 is

[symfony-users] Schema Validation in XmlFileLoader

2011-01-09 Thread jamesgorrie
There seems to be a problem with Symfony/Component/DependencyInjection/ Loader/schema/dic/service/services-1.0.xsd. When trying to run it through schemaValidateSource (Symfony/Component/ DependencyInjection/Loader/XmlFileLoader.php) the schema doesn't validate. When I take the check off,

[symfony-users] Re: HelloBundle _format: Unable to find the controller

2011-01-09 Thread Yan
Thank you. Solved. On Jan 7, 9:47 pm, mwsaz mwk...@gmail.com wrote: Hi again, You need to add the format bit in your 'pattern' line : hello:     pattern:  /hello/:name.:_format     defaults:         _controller: HelloBundle:Hello:index     requirements:         _format: html|xml|json

[symfony-users] blog post form with images best practice question from new user

2011-01-09 Thread Eliott
Hi! I am a rail developer but for my own pet project I'd like to use symfony so I learn just a new framework. The app I'd like to do includes a blogpost like feature that contains html form fields and picture links (just like a post on wordpress) I have seen the sfWidgetFormTextareaTinyMCE but it

[symfony-users] Symfony2 console

2011-01-09 Thread umpirsky
Hi. Is there any resource where I can read about symfony2 code generation console. For now I only managed to create bundles, but that just creates empty bundle, then I should register it by hand (well that's ok), and I can't see commands for creating new controllers, routes, views... Regards,

[symfony-users] Cannot create schema

2011-01-09 Thread Yan
Hacking ORM according to this page: http://docs.symfony-reloaded.org/guides/doctrine/orm/overview.html Created following files and past the codes from the example, // Application/HelloBundle/Entity/User.php Application/HelloBundle/ Resources/config/doctrine/metadata/orm/

[symfony-users] Re: doctrine:generate:entities generating classes in wrong folder?

2011-01-09 Thread pzwosta
Hi jorge, do you think it might be possible we two develop on Windows and all the others are on Linux? Do you think we are doing something wrong? :-) regards Peter On 5 Jan., 16:29, jopoli...@gmail.com jopoli...@gmail.com wrote: thank you so much!! that solved the problem, but why only

[symfony-users] setLayout() equivalent in Symfony2/Twig?

2011-01-09 Thread gruner
Is there a Symfony2 setLayout() equivalent for Twig or PHP templates? I'm storing my Twig templates in the database and rendering them like this in the controller: $twigLoader = new \Twig_Loader_String(); $twig = $this-get('twig'); $twig-setLoader($twigLoader); $template =

[symfony-users] Doctrine i18n Choice Widget

2011-01-09 Thread Nils Abegg
Hey Guys, i have the following schema.yml and i want to get the zodiac sign ID as a selectbox with the zodiac signs in the users language. But i only get the primary keys in the Selectbox. Could anyone give me a hint what to do. Thanks in advance for any help. ;) Girl: actAs: I18n:

Re: [symfony-users] How to include a form in a template in every page?

2011-01-09 Thread Ramunas
Title: Re: [symfony-users] How to include a form in a template in every page? Hello Eric, You can use components for that. Read this: http://www.symfony-project.org/gentle-introduction/1_4/en/07-Inside-the-View-Layer#chapter_07_sub_components -- http://www.symfonyreference.com- Symfony

[symfony-users] Re: A simple Wiki written in Symfony 2 (aka an interesting sandbox-derived practice project)

2011-01-09 Thread jack
Hi Tom, A great thanks from France. I love symfony and most of all, I love it's community and sharing knowledge. Thanks you. Mike On 9 jan, 03:03, Tom Boutell t...@punkave.com wrote: Welcome to SillyCMS: https://github.com/boutell/SillyCMS SillyCMS, despite the name, is really more of a

Re: [symfony-users] Grails to Symfony2 Benchmark

2011-01-09 Thread Michał Piotrowski
Hi, 2011/1/7 maxarbos maxar...@yahoo.com: Hello, I just found this post ( http://grails.1312388.n4.nabble.com/Symfony-2-0-vs-Grails-benchmark-td3094892.html ) and wanted to know if there are any different benchmarks or speed comparisons between the two? We have been using grails for a

Re: [symfony-users] Grails to Symfony2 Benchmark

2011-01-09 Thread Tom Boutell
Claiming that similar graphs can be made in paintbrush is not helpful. If you click through to the original blog post that backs the article: http://cutiecode.maniacmansion.it/ He presents very complete source code and software and hardware specs and shows a good understanding of what he is

Re: [symfony-users] Grails to Symfony2 Benchmark

2011-01-09 Thread Dean Glazeski
The link to the test information appears to be here: http://cutiecode.maniacmansion.it/. If I'm not mistaken, this appears to really just be hitting the database abstractions. It also doesn't look very exhaustive. // Dean Glazeski 2011/1/9 Michał Piotrowski mkkp...@gmail.com Hi, 2011/1/7

[symfony-users] Minified JavaScript in Production

2011-01-09 Thread Felix E. Klee
I want to compile a bunch of JavaScript files into one minified file, for example with Google's Closure Compiler: http://code.google.com/closure/compiler/ That's for production. In development mode, however, I would like to work with the original JavaScript files. What is the recommended

[symfony-users] Re: Minified JavaScript in Production

2011-01-09 Thread Tom Boutell
Apostrophe (a CMS plugin for Symfony, among other things) includes a minifier for JS and CSS which is integrated into Symfony so that whatever you have in view.yml, etc. will wind up as part of the minified bundle. I'm not an expert on Closure but I'm not sure whether you can count on JS code

Re: [symfony-users] Grails to Symfony2 Benchmark

2011-01-09 Thread Tom Boutell
Mmm. But hitting the database abstractions would probably be friendlier to PHP than, say, a math benchmark (: -- 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: Minified JavaScript in Production

2011-01-09 Thread chok
You can use sfCombinePlugin or sfDynamicsPlugin maybe others... On 9 jan, 19:51, Tom Boutell t...@punkave.com wrote: Apostrophe (a CMS plugin for Symfony, among other things) includes a minifier for JS and CSS which is integrated into Symfony so that whatever you have in view.yml, etc. will

[symfony-users] How to populate a non-view template and return as text?

2011-01-09 Thread Eric B
Hi, Given that Symfony is built around templates, I am trying to figure out how I can leverage the power of the templates for other things, such as emails. For example, I would like to write up my email in a template form, then simply pass it the necessary variables to populate it. Finally, if I

Re: [symfony-users] How to populate a non-view template and return as text?

2011-01-09 Thread Georg
http://www.symfony-project.org/plugins/ggEmailPlugin Am 09.01.2011 22:23, schrieb Eric B: Hi, Given that Symfony is built around templates, I am trying to figure out how I can leverage the power of the templates for other things, such as emails. For example, I would like to write up my

[symfony-users] Re: A simple Wiki written in Symfony 2 (aka an interesting sandbox-derived practice project)

2011-01-09 Thread Tom Boutell
I have updated this project to demonstrate the user authentication component (a little). That raised some bug reports and questions which I've sent to symfony-devs. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this

[symfony-users] change for index

2011-01-09 Thread Sela
i changed one of the index and would like to change only that specific model as the model coz i had a unique constraint when i use the admin it still think the index is there, when it isn't so if i directly insert something to the database it works, but not through the admin. how can i change only

Re: [symfony-users] How to populate a non-view template and return as text?

2011-01-09 Thread Gareth McCumskey
You can also create your email body as a partial and then use the $this-getPartial() function to essentially run the partial and store the output of it in a variable: $email-setBody( $this-getPartial('myEmailPartial', array('partial_variable'=$partial_variable ); On Sun, Jan 9, 2011 at 11:23

Re: [symfony-users] How to populate a non-view template and return as text?

2011-01-09 Thread Eric B
Perfect! Just what I was looking for! Thanks! Eric On Mon, Jan 10, 2011 at 12:19 AM, Gareth McCumskey gmccums...@gmail.comwrote: You can also create your email body as a partial and then use the $this-getPartial() function to essentially run the partial and store the output of it in a