Re: [symfony-users] permissions issue please help

2011-04-21 Thread Helloise Smit
no there is no log directory, can i just mkdir log? thanks -- 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

[symfony-users] [Symfony2] DataFixtures in Tests

2011-04-21 Thread Pierre
Does anybody know how to effectively use Doctrine\Common\DataFixtures in Tests? (e.g. Controller tests) -- I know there's a LoadDataFixturesDoctrineCommand in the DoctrineBundle, but I can't find any documentation about using them in Tests. -- If you want to report a vulnerability issue on

[symfony-users] Re: mergeForm id issue

2011-04-21 Thread dagger
any one? -- 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

[symfony-users] Aw: Re: error in using link_to in symfony

2011-04-21 Thread Sebastian Göttschkes
Hi, at first you should post the code in question, so in your case the whole link_to-statement. From your posts it seems you're mixing things up a bit. When using link_to (or url_for), you either use the name of the routing (e.g. employeerecord, and add an @ in front of it), or you use the

[symfony-users] Re: error in using link_to in symfony

2011-04-21 Thread Kush
thanks sebestian am sorry i mingled up the things... k here is my code in layout.php the body section... body ?php echo $sf_content ? centerul lia href=?php echo url_for('employeerecord') ? class=currentEmployee Record/a/li /ul/center /body i have

[symfony-users] Re: error in using link_to in symfony

2011-04-21 Thread Kush
one more thing the page is working well through http://localhost/smt/web/frontend_dev.php/employeerecord -- 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

Re: [symfony-users] permissions issue please help

2011-04-21 Thread Gareth McCumskey
Yes On Thu, Apr 21, 2011 at 8:22 AM, Helloise Smit helloi...@miranetworks.netwrote: no there is no log directory, can i just mkdir log? thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because

Re: [symfony-users] how to get PK after save()

2011-04-21 Thread Ethan
thanks! -- 少许诺多兑现 -- 在 2011年4月20日 下午5:42,Gareth McCumskey gmccums...@gmail.com写道: $user=new user(); $user-setUname('ethan'); $user-setPassword('111'); $user-save(); *$id = $user-getId();*

Re: [symfony-users] [Symfony2] Controller before and after action (controller filters)

2011-04-21 Thread sheik mohamed
hi all,I m new in doctrine symfony1.4. please help for this follwing problems, i have five tables.the first table is tbl_businees.it contains name,address and mode. the second table tbl_mode it contain id,name.the third table tbl_sip it contains four field,the fourth table contain four field,and

[symfony-users] Newbie Question

2011-04-21 Thread Stephen Cerniglia
Hello, I've been using symfony for a couple of weeks now and I am starting to create my own form classes, which extend the sfForm class. My question is, where should these custom class files be placed? For example, I have a changePasswordForm that extends sfForm and I defined it in the file

[symfony-users] Re: Recaptcha validation in symfony 2

2011-04-21 Thread Kevin
Working fine for me, and actually the author just updated the README on github with new instructions (not sure if there have also been other fixes recently). What was missing from the README earlier was that you need to add validation metadata on the recaptcha form field. This looks like:

[symfony-users] Re: Seems to be some problem with swiftmailer?

2011-04-21 Thread Kevin
Hi Michael, I had a similar problem - for me the issue was that the file swift_init.php, which initializes the swiftmailer internal dependency container, wasn't being included. You could include it manually, but I think the cleaner way is to let Symfony do it - basically you need to force the

[symfony-users] chance in the logo the symfony2??

2011-04-21 Thread Helysm
Greetings Symfoneros In one of my wanderings through the web page comes to a foundation called Dojo Foundation, and immediately I noticed the great similarity with the logo of them with the new style also symfony page. http://dojofoundation.org/ Hely Suarez Marin Member of Research and

Re: [symfony-users] chance in the logo the symfony2??

2011-04-21 Thread Fabien Potencier
On 4/21/11 9:19 AM, Helysm wrote: Greetings Symfoneros In one of my wanderings through the web page comes to a foundation called Dojo Foundation, and immediately I noticed the great similarity with the logo of them with the new style also symfony page. http://dojofoundation.org/ The logos

Re: [symfony-users] permissions issue please help

2011-04-21 Thread Helloise Smit
i sorted it thank you very much -- 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] permissions issue please help

2011-04-21 Thread charanjeet kaur
try changing the permission of log/ to 777. Regards Charanjeet Kaur --- On Thu, Apr 21, 2011 at 1:00 PM, Helloise Smit helloi...@miranetworks.netwrote: thank you i created it but the script is stil not creating my file??? i am on a live server, but when i run it on my

[symfony-users] Aw: Re: error in using link_to in symfony

2011-04-21 Thread Sebastian Göttschkes
Hi, did you get your virtual host (if you're using apache) right? As you try to access to web-directory, it doesn't seem like that. Maybe you should try to make a vhost with a special port (8080 or something), which is pointing directly to the /web-directory of your symfony application, and

Re: [symfony-users] Newbie Question

2011-04-21 Thread Gareth McCumskey
That is perfectly fine :) On Wed, Apr 20, 2011 at 4:04 PM, Stephen Cerniglia cerni...@gmail.comwrote: Hello, I've been using symfony for a couple of weeks now and I am starting to create my own form classes, which extend the sfForm class. My question is, where should these custom class

[symfony-users] Re: error in using link_to in symfony

2011-04-21 Thread Kush
hi sebastian thanks again i just checked the error.log file. it states... [Thu Apr 21 13:11:11 2011] [error] [client 127.0.0.1] Action sf/ sf_default does not exist., referer: http://localhost/smt/web/employeerecord can u tell me whats wrong here and how can i fix this. i dnt know how to make a

[symfony-users] Aw: Re: error in using link_to in symfony

2011-04-21 Thread Sebastian Göttschkes
Hi, please have a look at the jobeet tutorial, day 1 [1] or the docu [2]. The installation of symfony is covered there as well as the webserver configuration. Sebastian [1] http://www.symfony-project.org/jobeet/1_4/Doctrine/en/01 [2]

[symfony-users] Deleting Embedded Form Objects

2011-04-21 Thread Richard
Hello everyone, I am having some trouble with embedded forms and removal of these. I have a form that represents an image. Many images can belong to an image group. I have created a form that embeds many image forms into one image group form. Each embedded image form has a checkbox widget, so

[symfony-users] Re: FOSUserBundle doesn't work with Symfony2 PR12?

2011-04-21 Thread toberger
I've got the same issue. This is my firewall setting: http://www.pastie.org/1818418 And this is the fos_user config: http://www.pastie.org/1818423 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because

[symfony-users] Re: Deleting Embedded Form Objects

2011-04-21 Thread Richard
I have re-factored slightly, but still no luck. I don't understand how a new image object is trying being created, when I am trying to remove an existing image object. R ?php /** * ImageGroup form. * * @packagesweet16 * @subpackage form * @author Richard Harwood * @version

[symfony-users] Re: [Symfony2] DataFixtures in Tests

2011-04-21 Thread Albert Jessurum
I'd recommend you to try LiipFunctionalTestBundle: https://github.com/liip/FunctionalTestBundle It comes with examples on how to used them: https://github.com/liip/FunctionalTestBundle/blob/master/FunctionalTests/ExampleFunctionalTest.php I'm using it for my tests right now, and it's working

[symfony-users] Re: Symfony2 and Netbeans

2011-04-21 Thread Gayatri
How did you create the default directory structure for Symfony2? Do you unpack the archive every time and copy the folders in your project directory? On Apr 8, 10:55 am, Conrad conrad.barthel...@googlemail.com wrote: I'm working in Netbeans too for a couple of days in a sf2 project and it works

[symfony-users] Re: FOSUserBundle doesn't work with Symfony2 PR12?

2011-04-21 Thread Carl
It looks like you're missing an entry for firewall_name under fos_user. That's required and can't be left blank. If you look at FOS\UserBundle\DependencyInjection\Configuration.php, it has the following: $rootNode -children()

Re: [symfony-users] Re: Symfony2 and Netbeans

2011-04-21 Thread Conrad Barthelmes
I'm not sure if I understand what you mean.. my folder structure with a netbeans project looks like this: project_for_customer: nbproject/ Symfony/ app/ bin/ src/ vendor/ web/ if that helps you.. I dont pack/unpack any folders 'everytime' ... only in the beginning when I

[symfony-users] [Symfony2] Overriding Services

2011-04-21 Thread Carl
Hello, I'm currently working on extending FOSUserBundle and I've run into a few issues. My first issue is that I need to override the default encoder with my own. My site needs to integrate with phpBB3. Therefore I need to use their methods for encoding passwords. Unfortunately, this bundle

[symfony-users] [Symfony2][Security] Using an alternative AuthenticationToken

2011-04-21 Thread Don Pinkster
Hi, For my security implementation I use an external XML service. I send the username and password and I receive a 1 or 0 based on if the authentication was successful or not. This happens in the UserProvider. What is the ideal way to handle this? I think I need to use something different then

[symfony-users] 404 error not coming in production mode

2011-04-21 Thread charanjeet
Hello all, In case a route url does not exist it does not give 404 error, but displays a blank page. Please suggest what could be the possible reason. I can not go live with it. :( Thanks in Advance Charanjeet Kaur -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] How to get Modules list dynamically in symfony

2011-04-21 Thread Muhammad Majid Saleem
Hello All - I hope you all are doing your best. I am new to symfony and I am learning it. I want to get all working modules and their methods dynamically to bulild a list to implement ACL. like: foreach(getModules() as $module) { echo $moudule .' has following methods: '; foreach( $module

[symfony-users] Re: FOSUserBundle doesn't work with Symfony2 PR12?

2011-04-21 Thread toberger
In my Configuration.php the method looks like this: public function getConfigTree() { $treeBuilder = new TreeBuilder(); $rootNode = $treeBuilder-root('fos_user', 'array'); $rootNode -scalarNode('db_driver')-cannotBeOverwritten()-

[symfony-users] Aw: 404 error not coming in production mode

2011-04-21 Thread Sebastian Göttschkes
Hi, did you remove the default routes from your route.yml? Second question would be if the response is a 404 and just a blank page or if there is really no 404. You can verify this with the web developer toolbar for firefox, using the information = response header (or something similar) and

[symfony-users] How to conditionally enable plugins in Symfony 1.4

2011-04-21 Thread codecowboy
Hi, I would like to programatically enable plugins for a Symfony 1.4 app based on the current environment. e.g. if I'm in the dev environment, I want to enable the sfFirePHP plugin. I've tried using sfContext::getInstance()-getConfiguration()- getEnvironment(); but get: Fatal error: Uncaught

[symfony-users] Re: FOSUserBundle doesn't work with Symfony2 PR12?

2011-04-21 Thread Carl
I'm really not sure which version of UserBundle you're using but that definitely isn't the latest version. In the latest master, the Configuration class looks like this: https://github.com/FriendsOfSymfony/UserBundle/blob/master/DependencyInjection/Configuration.php -- If you want to report a

[symfony-users] Re: FOSUserBundle doesn't work with Symfony2 PR12?

2011-04-21 Thread Carl
Ah, I see. You're using the old Knplabs version: https://github.com/knplabs/UserBundle/blob/master/DependencyInjection/Configuration.php That version isn't maintained anymore and the project has moved to here: https://github.com/FriendsOfSymfony/UserBundle -- If you want to report a

[symfony-users] Re: FOSUserBundle doesn't work with Symfony2 PR12?

2011-04-21 Thread toberger
Ah right, that's the point. Didn't see the advice that the project has moved. Thanks for help! -- 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] Re: How to conditionally enable plugins in Symfony 1.4

2011-04-21 Thread Gabriel Petchesi
You could do the following: 1. In frontend_dev.php define a flag define ('INCLUDE_FIREPHP', true); 2. In config/ProjectConfiguration.class.php check for that flag and enable the plugin. gabriel -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] symfony: trying to run all the tests of an app.

2011-04-21 Thread Javier Garcia
Hi, I'm trying to launch all the functional tests of an app, but when I do it, I get this: [mbpPlatformApi] functionaldistritoActionsTest...dubious Test returned status 255 Failed tests: 0 [mbpPlatformApi] functionaleventoActionsTest..dubious

Re: [symfony-users] How to conditionally enable plugins in Symfony 1.4

2011-04-21 Thread Georg
I do it in the setup() method of ProjectConfiguration: if (isset($this-environment) $this-environment == 'dev') { $plugins[] = 'sfFirePHPPlugin'; } Am 21.04.2011 16:59, schrieb codecowboy: Hi, I would like to programatically enable plugins for a Symfony 1.4 app based on the current

[symfony-users] Re: FOSUserBundle doesn't work with Symfony2 PR12?

2011-04-21 Thread JC
I didn't change those files in my last attempt to get this working. They are/were as shipped under PR12. So, they don't have any reference to fos_user. I didn't think that they would come into play when all I did was to enable the FOSUser bundle in the application kernel and autoloader files. On

[symfony-users] user isEnabled()

2011-04-21 Thread symfonyMan
Hello, I have a question about Security in Symfony2. In my user entity i have a column enabled, when the user registred for the first time I set *enabled *to *false* like the FOSUserBundle. before validate the registration ( confirmation by email = set enabled to true ), i can authenticate

[symfony-users] Re: FOSUserBundle doesn't work with Symfony2 PR12?

2011-04-21 Thread Carl
It'd be helpful if you'd post your firewall and your configuration for UserBundle. Otherwise, I'm kind of in the dark and just guessing. :) Also, do you have the latest version of UserBundle? Or are you using an older version? How did you install it? Do you have the same problem when you

[symfony-users] Re: FOSUserBundle doesn't work with Symfony2 PR12?

2011-04-21 Thread Carl
One more thing. If you enable UserBundle and don't configure it, it will fail to initialize and prevent your application from working. db_driver and firewall_name *must* be configured. There are other required options as well. -- If you want to report a vulnerability issue on symfony, please

Re: [symfony-users] user isEnabled()

2011-04-21 Thread Gareth McCumskey
One method we use to validate a users email account is to actually send him an email with a link which he can use to set his password. Therefore once the password is set, his account is validated. On Thu, Apr 21, 2011 at 7:30 PM, symfonyMan ezziani.cha...@gmail.comwrote: Hello, I have a

Re : Re: [symfony-users] user isEnabled()

2011-04-21 Thread symfonyMan
But in my website, the user set his password in the firt step of registration, than i send him an email for validation -- 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: FOSUserBundle doesn't work with Symfony2 PR12?

2011-04-21 Thread JC
OK, got past the intial problem. I did see the reference to the new GIT repository, but went through the GIT button and was using the old (sorry about that), so I fixed that one problem. Thanks. However, I did get the next exception: Fatal error: Uncaught exception

[symfony-users] [symfony2]default bundle doc

2011-04-21 Thread sam
Hello, I'm searching the doc for the bundles integrated in the symfony framework, specialy the asseticBundle's documentation. Does anyone know where I can found it ? Thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] Symfony2 extends twig - creating a new filter

2011-04-21 Thread melopoeia
I have a problem and I don't find what's wrong, I would like to add a filter for twig and using DIC. The filter name is recognized in the template but the associated function it's not found : Fatal error: Call to undefined function twig_my_new_filter() My code : code namespace

[symfony-users] Form helper problems in Twig templates: Twig was looking for the with or from keyword

2011-04-21 Thread Ville Mattila
Hi there, I just updated all my clones of git repositories - bleeding edge as always - and encountered some strange behaviour with {{ form_hidden(registration_form) }} line in my template. The error that is thrown looks like: Unexpected token. Twig was looking for the with or from keyword (twig

[symfony-users] [Symfony2] Locale in URL's site-wide

2011-04-21 Thread Christopher N
I need to get URL's with the locale embedded in them. For example, / example/12 for default English and /fr/example/12 and /de/example/12 for other languages. I can create routes with {_locale} in them, but generating links seems a little clumsy: welcome: pattern: {_locale}/welcome defaults:

[symfony-users] Strange behaviour on 11 shared host

2011-04-21 Thread woopidoo
Hi there, A client asked me to upload their website to 11. I said ok, expecting some database setup along with the file uploads but no great hassle. I took a look: it's a symfony1.4 app -- should be no problem, I thought, although I've never worked with symfony. After setting up the database and

[symfony-users] Re: Form helper problems in Twig templates: Twig was looking for the with or from keyword

2011-04-21 Thread Michael
see https://github.com/symfony/symfony/pull/609 -- 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: FOSUserBundle doesn't work with Symfony2 PR12?

2011-04-21 Thread Carl
I'm glad you got the other problem fixed. :) As for your configuration, two things immediately jump out at me. Firstly, provider_key is no longer a valid configuration option. It's now firewall_name. And secondly, the group configuration has changed as well. It's now its own category:

Re: [symfony-users] Re: FOSUserBundle doesn't work with Symfony2 PR12?

2011-04-21 Thread Luis Cordova
this is a different problem then {% trans label with a from 'b' %} {{ label|trans(a, 'b') }} I am working on it... On Thu, Apr 21, 2011 at 6:41 PM, Carl carl.par...@gmail.com wrote: I'm glad you got the other problem fixed. :) As for your configuration, two things immediately jump out at me.

Re: [symfony-users] Strange behaviour on 11 shared host

2011-04-21 Thread Haris Fauzi
Hi Woopidoo, The output you're showing is the result of functional test. That's strange. Please check the following: - The main application's index.php is located at $PROJECT_DIR/web/index.php. If you're not using Alias directive then you should point the domain's DocumentRoot to $PROJECT_DIR/web

[symfony-users] commit

2011-04-21 Thread Luis Cordova
I did a branch and pulled someone else's pull request now i am trying to pull request original repo, that is UserBundle wonder how do I do to pull request these files... # modified: Resources/views/Group/edit_content.html.twig # modified:

Re: [symfony-users] Symfony2 extends twig - creating a new filter

2011-04-21 Thread Jeremiah Dodds
On Thu, Apr 21, 2011 at 1:41 PM, melopoeia epereira...@gmail.com wrote: what's wrong ? Do you have it defined in your config.yml? You should have something along the lines of: services: my_twig_thing: class: My\Twig\Thing tags: - { name: twig.extension } --

[symfony-users] Re: FOSUserBundle doesn't work with Symfony2 PR12?

2011-04-21 Thread JC
Thank you. This helped me move the ball forward. I guess we just have to be patient to have the documentation updated with these changes (unless of course there is already an updated one and I am not aware of it :-) Regards On Apr 21, 4:41 pm, Carl carl.par...@gmail.com wrote: I'm glad you got

Re: [symfony-users] Re: FOSUserBundle doesn't work with Symfony2 PR12?

2011-04-21 Thread Luis Cordova
I have learned the hard way to always be attentive on for changes at the update markdown from symfony/symfony github and also about current pull requests as they often are the upcoming fixes for broken things if you notice someone else has probably noticed it too and it has even worked on a fix

Re: [symfony-users] Re: FOSUserBundle doesn't work with Symfony2 PR12?

2011-04-21 Thread Carl
I learned the hard way too. Paying close attention to the repositories on Github is a good way to keep up to date on stuff. You don't need to read that stuff constantly, but absolutely take a look at the update files, the latest commits, and pull requests before upgrading anything. If in doubt,

Re: [symfony-users] Aw: 404 error not coming in production mode

2011-04-21 Thread charanjeet kaur
Hi, I am using sfSmartyPlugin. With that it requires that template extension is .tpl I changed the extension of default error404 template. Its working now :) Thanks for your response Charanjeet Kaur -- 2011/4/21 Sebastian Göttschkes sebastian.goettsch...@googlemail.com