[symfony-users] Upload image and showing image

2011-02-23 Thread Kiran
Hello Friends, I am developing a application using symfony 1.1.1 and orm propel I have done uploading image in application. I want to create a link which will show uploaded image respectively Please give me some idea to create link and showing image. Thanks In advanced Kiran -- If you want to rep

Re: [symfony-users] Form widgets

2011-02-23 Thread Gareth McCumskey
Anytime you create a new class, be it a form class or an auto-generated class from a new table in your schema or even one of your own classes, you MUST clear the cache. On 24/02/2011 02:51, Parijat Kalia wrote: Oh Thank you. It worked, but somehow did not cross my mind. On Wed, Feb 23, 2011

Re: [symfony-users] I get a 500 instead of a 404

2011-02-23 Thread Gareth McCumskey
those functions need to be within a class to actually work ;) On 23/02/2011 18:00, Manu wrote: Hi, I've created custom 404 error pages for my symfony application, but they don't seem to work. In dev I see : This request has been forwarded to a 404 error page by the action "blabla". But in

Re: [symfony-users] Is there any way to set post parameters?

2011-02-23 Thread Gareth McCumskey
As Gergely said, create a hidden input in your form. If you need the client-side to add something you can change its value through Javascript before submission. On 23/02/2011 14:07, Javier Garcia wrote: Hi, is there any way to set post parameters? When i submit a form I would like to set a v

[symfony-users] How to access config.yml values in controller in Symfony 2?

2011-02-23 Thread Zap
I am sorry for this newbie question, but I didnt figured out, how I can use values from my config.yml in controler. For example to compare value defined as: app.config: charset: utf-8 It is not through container nor request. Thank for your patience with me... -- If you want to report a vu

Re: [symfony-users] [Symfony2] - Dynamic Subforms

2011-02-23 Thread Sebastien Armand [Pink]
I haven't played enough with symfony2 to get you a definitive answer, but here are some ways you could look first: from my understanding, the form framework in sf2 stayed mostly the same as the sf 1.4 form framework. In this case you could have a look at the code of this plugin: sfDoctrineDynamicF

Re: [symfony-users] Form widgets

2011-02-23 Thread Parijat Kalia
Oh Thank you. It worked, but somehow did not cross my mind. On Wed, Feb 23, 2011 at 4:36 PM, Stéphane wrote: > sf cc ? > > > Before Printing, Think about Your Environmental Responsibility! > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! > > > On Thu, Feb 24, 2011 at 1:20 AM,

Re: [symfony-users] Form widgets

2011-02-23 Thread Stéphane
sf cc ? Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Thu, Feb 24, 2011 at 1:20 AM, Parijat Kalia wrote: > Hi guys, > > I am following the Symfony form's tutorials and have reached upto listing > 1-2 on htt

[symfony-users] New autocomplete plugin

2011-02-23 Thread Yitzchak Schaffer
I'm pleased to announce that I have just released a new autocomplete plugin for 1.3/1.4. It uses jQueryUI Autocomplete. I have not been able to upload a PEAR package, but the plugin can be found at http://svn.symfony-project.com/plugins/ynWidgetAjaxAutocompletePlugin/tags/0.1.0b1/ A demo inst

[symfony-users] Form widgets

2011-02-23 Thread Parijat Kalia
Hi guys, I am following the Symfony form's tutorials and have reached upto listing 1-2 on http://www.symfony-project.org/forms/1_1/en/01-Form-Creation I have executed all steps up until listing 1-2 but while i attempt to run the webpage, it reads the following error: * * *Fatal error*: Class 'Regi

Re: [symfony-users] [symfony2] SecurityBundle: logout configuration question

2011-02-23 Thread Christophe COEVOET
Le 23/02/2011 23:46, olimination a écrit : Hello, I have started to do a simple webapp with the new Symfony2(with sandbox version commit 1fc745d). I have added the SecurityBundle for authentication and somehow the logout configuration seems to work in a special way or maybe I don't understand

[symfony-users] [symfony2] SecurityBundle: logout configuration question

2011-02-23 Thread olimination
Hello, I have started to do a simple webapp with the new Symfony2(with sandbox version commit 1fc745d). I have added the SecurityBundle for authentication and somehow the logout configuration seems to work in a special way or maybe I don't understand something. My app/config/config.yml secur

Re: [symfony-users] Symfony Live 2011 Last Minute Plans

2011-02-23 Thread Pablo Godel
I stayed in this hotel last year and it was OK. Pablo On Wed, Feb 23, 2011 at 5:13 PM, catchamonkey wrote: > Cheers Pablo, > > That is one of the Hotel's i've got in my list but thanks for confirming > the location is OK. > I would be arriving on the 2nd at the earliest, there is a chance I wou

Re: [symfony-users] Symfony Live 2011 Last Minute Plans

2011-02-23 Thread catchamonkey
Cheers Pablo, That is one of the Hotel's i've got in my list but thanks for confirming the location is OK. I would be arriving on the 2nd at the earliest, there is a chance I would have to travel early thursday, but would still arrive in time... just! Thanks, Chris -- If you want to report a

[symfony-users] Re: sf2 + sf2Forms + Twig over escaping issue

2011-02-23 Thread OlegZinchenko
Fabien, still actual issue. Use: TWIG 1.0.0-RC2, Last Symfony2 commit from 2011-02-22 19:58:15 (https://github.com/ fabpot/symfony/commit/f54cedfe5e89ef4e02c35dca5e0ca6afbf249a5a) On Jan 12, 6:14 pm, OlegZinchenko <1cdeco...@gmail.com> wrote: > Thanks Fabien for quick answer. As far as I

Re: [symfony-users] Symfony Live 2011 Last Minute Plans

2011-02-23 Thread Pablo Godel
Hi Chris, I don't speak much french, but I have been able to survive 3 trips to Paris. Check out this hotel which is close to the conference location: http://hotelparisparcmontsouris.com/English/rates.html Most people arrive on the 1st. Hope to see you there! Pablo On Wed, Feb 23, 2011 at 11

Re: [symfony-users]

2011-02-23 Thread Maryam FATIHI
thanks for your replying, I actually tried to solve out this problem by defining a new function _toString() and without arguments this time,but it didn't seem to work,I got a different error: "Fatal error: Cannot redeclare sfModelFinder::__toString()" you'll see below in my sfModelFinder.php,that

Re: [symfony-users] Re: Are there something resource for learning Symfony2.0?

2011-02-23 Thread oscar balladares
Opps, I miss spelled "In other words, you should have a css dir and file like sandbox/web/css/style.css and some images in there... sandbox/css/images_for_my_css_file/" I meant sandbox/web/css/images_for_my_css_file/ 2011/2/23 oscar balladares > A few minutes ago, I found out that there is a "

Re: [symfony-users] Re: Are there something resource for learning Symfony2.0?

2011-02-23 Thread oscar balladares
A few minutes ago, I found out that there is a "branch docs" for the official PR6 of Symfony, it is a little more detailed documentation, with more in deep focus and examples. You will find it in docs.symfony-reloaded.org/master/ There, is also a CookBook. For the css issue, if you have previous

Re: [symfony-users] Re: [PR6] ACL

2011-02-23 Thread Christophe COEVOET
Le 23/02/2011 22:09, Кирилл Кокоша a écrit : I have latest version from github, and my config sems like: doctrine: dbal: driver: pdo_mysql dbname: dbname user: user password: pass security: acl: connection: default try to change. The subject says he uses

[symfony-users] Re: [PR6] ACL

2011-02-23 Thread Кирилл Кокоша
I have latest version from github, and my config sems like: doctrine: dbal: driver: pdo_mysql dbname: dbname user: user password: pass security: acl: connection: default try to change. -- If you want to report a vulnerability issue on symfony, please send it to

Re: [symfony-users] Re: How to handle 404 and 500 Errors in Symfony 2?

2011-02-23 Thread Christophe COEVOET
Le 23/02/2011 21:58, oscar balladares a écrit : Holly SH**T! There is a lot different (more detailed) information in the /master/guides!!! Im feeling like in Super Mario World when you find a secret place! Thanks for this info!!! The doc under /master/ contains the latest version of the doc. So

[symfony-users] testing in symfony2

2011-02-23 Thread violyn
hi, this is part of a test for my controller: $client->request('GET', '/myroute/mytemplate?user=auser'); $crawler = $client->getCrawler(); $this->assertTrue($crawler->filter('html:contains("blah")')->count() > 0); $this->assertRegExp('/blah/', $client->getR

Re: [symfony-users] Re: How to handle 404 and 500 Errors in Symfony 2?

2011-02-23 Thread oscar balladares
Holly SH**T! There is a lot different (more detailed) information in the /master/guides!!! Im feeling like in Super Mario World when you find a secret place! Thanks for this info!!! 2011/2/23 Zap > > > On 23 ún, 20:56, Christophe COEVOET wrote: > > Le 23/02/2011 20:22, Zap a crit :> Hi, > > >

[symfony-users] Re: How to handle 404 and 500 Errors in Symfony 2?

2011-02-23 Thread Zap
On 23 ún, 20:56, Christophe COEVOET wrote: > Le 23/02/2011 20:22, Zap a crit :> Hi, > > > 1) I wonder, how to define template for 404 or 500 errors? - is it > > documented somewhere yet, because I could not find it? > > The doc about this has been written today and is available > here:http://do

Re: [symfony-users] How to handle 404 and 500 Errors in Symfony 2?

2011-02-23 Thread Christophe COEVOET
Le 23/02/2011 20:22, Zap a écrit : Hi, 1) I wonder, how to define template for 404 or 500 errors? - is it documented somewhere yet, because I could not find it? The doc about this has been written today and is available here: http://docs.symfony-reloaded.org/master/guides/controller.html#managi

Re: [symfony-users]

2011-02-23 Thread Gábor Fási
Did you edit the file? The version in svn [1] has __toString at a different place, and without arguments. [1] http://trac.symfony-project.org/browser/plugins/DbFinderPlugin/trunk/lib/sfModelFinder.php On Wed, Feb 23, 2011 at 19:13, Maryam FATIHI wrote: > Hi everybody! > I'm new to Symfony,and I

Re: [symfony-users] Re: Symfony PR6 (github 22.02.2011) doesn't work doctrine:generate:entities

2011-02-23 Thread Christophe COEVOET
Le 23/02/2011 19:24, Кирилл Кокоша a écrit : Thanks! It's realy help. I sew it, but I think, it's for configurating DB from php file, but I configured it from yml. Does you YAML filename match the fully qualified class name of your entity (using . as a separator) ? This is needed for Doctrine.

[symfony-users] How to handle 404 and 500 Errors in Symfony 2?

2011-02-23 Thread Zap
Hi, 1) I wonder, how to define template for 404 or 500 errors? - is it documented somewhere yet, because I could not find it? 2) is it possible to override 500 Internal server error (when route typed URL do not match requirements... Parameter "ID" for route "detail" must match ...) and show 400 no

[symfony-users]

2011-02-23 Thread Maryam FATIHI
Hi everybody! I'm new to Symfony,and I wonder if anyone of you has faced this problem before: *"**Fatal error*: Method sfModelFinder::__tostring() cannot take arguments in *C:\..\..\plugins\DbFinderPlugin\lib\sfModelFinder.php* on line *149*" ** What can I do to solve this problem? thanks in adv

[symfony-users] Re: Symfony PR6 (github 22.02.2011) doesn't work doctrine:generate:entities

2011-02-23 Thread Кирилл Кокоша
Thanks! It's realy help. I sew it, but I think, it's for configurating DB from php file, but I configured it from yml. -- 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

[symfony-users] Re: Are there something resource for learning Symfony2.0?

2011-02-23 Thread Joel
Agree. Start from Symfony and can't find any complete reference for Symfony 2. Is it any plan to release a complete book together with Symfony 2 release? On 21 fev, 20:17, Haulyn Jason wrote: > Hi, > > I am starting a new project, I want to start from Symfony2.0, because > it's about March now.

[symfony-users] Re: sfGuardPlugin, rememberme cookie storage

2011-02-23 Thread Craig Wright
Very interesting! Thanks for the link. Maybe this will be the motivation I need to switch the project to Doctrine. Thanks, Craig On Feb 21, 3:33 pm, Matt Gibson wrote: > On 21 Feb 2011, at 21:59, Craig Wright wrote: > > > So my question: this seems like both a non-optimal solution (will need > >

Re: [symfony-users] I get a 500 instead of a 404

2011-02-23 Thread Gábor Fási
Public is only usable within class context - you're missing the `class defaultActions extends sfActions` line and the connecting brackets. On Wed, Feb 23, 2011 at 17:00, Manu wrote: > Hi, I've created custom 404 error pages for my symfony application, > but they don't seem to work. In dev I see :

Re: [symfony-users] symfony's design patterns

2011-02-23 Thread Justen Doherty
http://tinyurl.com/4da43s6 On Wed, Feb 23, 2011 at 3:08 PM, manuelle wrote: > hello community, I am developing my thesis in symfony. I need to know > some things about the design patterns related to symfony, symfony used > a few design patterns, but i want to know how and where symfony use > them

Re: [symfony-users] Re: EntityChoiceField : two issues

2011-02-23 Thread stof
On Wed, 23 Feb 2011 09:08:33 -0800 (PST), Lideln wrote: > Hi Carlos, > > Thank you for the answer ! > This is a good idea to use options to pass the EM, I will follow your > advice ! Using an option is the good way to give the em to the form. This is how it has to be passed to the EntityChoiceFi

[symfony-users] symfony's design patterns

2011-02-23 Thread manuelle
hello community, I am developing my thesis in symfony. I need to know some things about the design patterns related to symfony, symfony used a few design patterns, but i want to know how and where symfony use them , if someone could give some info would be greatly appreciate it... -- If you want

[symfony-users] Re: EntityChoiceField Issue with QueryBuilder params

2011-02-23 Thread Roger Webb
This worked. Thanks. On Feb 22, 12:25 pm, Nathan Mudie wrote: > You need to use the use option for the closure as the variable your > trying to use isn't in the correct scope. > > See example 3 on this page:http://php.net/manual/en/functions.anonymous.php > > Your code will look like this: > > '

[symfony-users] DbFinderPlugin installing error

2011-02-23 Thread Mariah
Hi everyone! I'm new to Symfony and I'm trying to install DbFinderPlugin,but still getting this error: C:\wamp\www\milkshare>symfony plugin-install http://plugins.symfony-project.com/ DbFinder PHP Fatal error: Uncaught exception 'InvalidArgumentException' with message 'Th e plugin "DbFinderPlugin

[symfony-users] Re: EntityChoiceField : two issues

2011-02-23 Thread Lideln
Hi Carlos, Thank you for the answer ! This is a good idea to use options to pass the EM, I will follow your advice ! Nevertheless, it would be easier to be able to access the EM globaly, with an utility class or whatever (and this is not restricted to the em, but it would be great to be able to ac

Re: [symfony-users] Is there any way to set post parameters?

2011-02-23 Thread Gergely Csépány
Hi, What about using a hidden input field, set dinamically in the action? Or where do you want to set it? Gergely On Wed, Feb 23, 2011 at 13:07, Javier Garcia wrote: > Hi, > > is there any way to set post parameters? > > When i submit a form I would like to set a variable (that I give a > value

[symfony-users] Symfony Live 2011 Last Minute Plans

2011-02-23 Thread catchamonkey
Hi everyone, I have now got the last minute opportunity of going to sflive2011 next week. I hope that some of you can help me out here. I would like to know; Some places people are staying so I can get a price. When you are going so I can plan my arrival. And for those going from the UK, when are

[symfony-users] Re: I get a 500 instead of a 404

2011-02-23 Thread Manu
If I remove the "public" keywords, I get : PHP Fatal error: Uncaught exception 'sfError404Exception' with message 'Action "default/error404" does not exist.' -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this messa

[symfony-users] Need to do form->setValue to send unique emails to mulitple recipients in symfony 1.4.8

2011-02-23 Thread dmitrypol
I have a page where user can send invitation emails to multiple recipients. Emails have to be unique (they contain URLs with unique keys) and logged into the DB so I know when recipients respond. #assign CSV email address(es) to array, loop through it $email_to_array = preg_split("/[\

[symfony-users] I get a 500 instead of a 404

2011-02-23 Thread Manu
Hi, I've created custom 404 error pages for my symfony application, but they don't seem to work. In dev I see : This request has been forwarded to a 404 error page by the action "blabla". But in prod, the page is just blank; I get a 500 error. In the logs, the error is : PHP Parse error:

Re: [symfony-users] Backup MySQL via php, in a Symfony application

2011-02-23 Thread Gareth McCumskey
Try using the API of the sfDatabaseManager class On 23/02/2011 15:09, Manu wrote: Hi, I'm trying to do a php script to backup my database. Here's what I've tried so far (in an action) : $command = "mysqldump -u [username] -p [password] [databasename] | gzip> db.sql.gz"; $this->output = sy

Re: [symfony-users] Symfony PR6 (github 22.02.2011) doesn't work doctrine:generate:entities

2011-02-23 Thread taidehuone
First double-check that you have the @orm:Entity annotation set for your Entity class in this way because it's what essentially makes doctrine aware that your entity class is an entity. /** * @orm:Entity */ class MyEntity { } -- If you want to report a vulnerability issue on symfony, please se

[symfony-users] [Symfony2][PR6] ACL

2011-02-23 Thread Nikita Korotaev
Hi everyone, I can't get command php app/console init:acl to work. My config is simple: doctrine.dbal: driver: pdo_mysql dbname: dbname user: user password: pass security.acl: connection: default When I run the command, I'm getting this error: [InvalidArgumentExcep

[symfony-users] DIC: save var within my kernel listener, retrieve within Controller ?

2011-02-23 Thread matmar10
Hi All, First off I'll say I'm loving Symfony2!!! I am having a slight problem, however, updating to PR6. In our application we connect to a web services to perform authentication and do other SOA type stuff. We had this working with RC3 a while back, but the changes to DIC scoping seem to make o

[symfony-users] Got Symfony E-Learning Framework or Application?

2011-02-23 Thread Dedrick Van der Meer
Does anyone know of an E-Learning framework as a symfony project that can be merged with an existing application to extend its functionalities? These are the online training / learning activities needed: 1. Create tests using multiple question types: single answer (multiple choice and true/false)

[symfony-users] number of arguments in Console component

2011-02-23 Thread ecentinela
Hi all! I'm learning about symfony console component with the help of this tutorial "http://dev.umpirsky.com/building-cli-apps-with-symfony- console-component/". I would know if it's posible to get a variable number of arguments on a command. For example In the 'Add' command from the tutorial, the

[symfony-users] [Problem] Using sfFilter to update DB with Doctrine

2011-02-23 Thread Pablo Abramowicz
Hello, i'm having a problem using a custom sfFilter to update DB with Doctrine... I've created a sfFilter to update the current module where the user is at: class SessionFilter extends sfFilter { public function execute($filterChain){ if ($this->isFirstCall()){ $user = $th

[symfony-users] Symfony PR6 (github 22.02.2011) doesn't work doctrine:generate:entities

2011-02-23 Thread Кирилл Кокоша
Hello to all. I have some problem with generating entitles. I'm following http://docs.symfony-reloaded.org/guides/doctrine/orm/overview.html I have latest Symfony PR6(github 22.02.2011) #app\config\config.yml # Doctrine Configuration doctrine: dbal: driver: pdo_mysql host:

[symfony-users] Re: EntityChoiceField Issue with QueryBuilder params

2011-02-23 Thread Nathan Mudie
You need to use the use option for the closure as the variable your trying to use isn't in the correct scope. See example 3 on this page: http://php.net/manual/en/functions.anonymous.php Your code will look like this: 'query_builder' => function($repository) use ($state_id) { return $reposi

Re: [symfony-users] Symfony 1.4, Linux and MsSQL

2011-02-23 Thread Ernesto Garcia
Hi. if I try: $conection=mssql_connect($server,$user,$passwor); $session= mssql_select_db($database, $conection); $sql="select * from trable"; $result = mssql_query($sql); print_r (mssql_fetch_array($result)); mssql_close($connection); run without problems, on the s

[symfony-users] Backup MySQL via php, in a Symfony application

2011-02-23 Thread Manu
Hi, I'm trying to do a php script to backup my database. Here's what I've tried so far (in an action) : $command = "mysqldump -u [username] -p [password] [databasename] | gzip > db.sql.gz"; $this->output = system($command); 1) How do I get the password and username from databases.yml ? 2) How

[symfony-users] Re: Symfony as a webservice for an iPhone app

2011-02-23 Thread Nei Rauni Santos
I have an application on iphone that connect to my sf app running xml- rpc, I think that session should be managed in your iphone application. On 22 fev, 15:35, HiDDeN wrote: > Hello. > > I'm building a simple iPhone app that synchronizes to a webservice > served by Symfony 1.4. This app requires

[symfony-users] Is there any way to set post parameters?

2011-02-23 Thread Javier Garcia
Hi, is there any way to set post parameters? When i submit a form I would like to set a variable (that I give a value dinamically) as a post parameter. Is that possible? sf 1.4 Javi -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

Re: [symfony-users] Symfony with MS-SQL Server

2011-02-23 Thread Alex Pilon
Works great for me. My company built a job board using sf and mssql. On Feb 23, 2011 6:05 AM, "axel at" wrote: Hello list, are there any experiences running symfony 1.4 with Microsoft SQL Server backends? is it stable, are there any known bugs or problems? thx axel -- If you want to report a

[symfony-users] Symfony with MS-SQL Server

2011-02-23 Thread axel at
Hello list, are there any experiences running symfony 1.4 with Microsoft SQL Server backends? is it stable, are there any known bugs or problems? thx axel -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message bec

Re: [symfony-users] [PR6] Using ESI tag renders nothing

2011-02-23 Thread Fabien Potencier
On 2/23/11 7:37 AM, Christophe Beyer wrote: I found the right syntax : http://docs.symfony-reloaded.org/master/guides/cache/http.html#symfony2-reverse-proxy-configuration In the app.config section (not framework) : esi: enabled: true But now, I have this error in the area rendered by the ESI ta

[symfony-users] [Symfony2] - Dynamic Subforms

2011-02-23 Thread jdewit
I'm trying to implement subforms to allow for adding/removing multiple instances of a oneToMany relation. I have it working for a single instance but how do I go about being able to process multiple fields that are added with jquery? I'm used to doing this using array notation so some help with