[symfony-users] Re: jobeet tutorial http://localhost:8080/frontend_dev.php/job

2011-04-20 Thread voidpointer
On Apr 20, 8:48 am, Haris Fauzi haris.fa...@gmail.com wrote: So what's the problem now? You said your web page looks like rubbish, that was because you didn't have the images stylesheets. Now you have them in place, you should be able to have a better view of the display. Just continue the

[symfony-users] Re: Pre-execute under SF2

2011-04-20 Thread Szymek
OK. So, 1. Add service eg. service id=some.listener class=Namespace\To\Your\Listener\Class \YourListener tag name=kernel.listener event=onCoreController / /service 2. Create listener class eg. namespace Namespace\To\Your\Listener\Class; use

[symfony-users] Re: jobeet tutorial http://localhost:8080/frontend_dev.php/job

2011-04-20 Thread voidpointer
On Apr 20, 9:30 am, voidpointer voidpoin...@rocketmail.com wrote: On Apr 20, 8:48 am, Haris Fauzi haris.fa...@gmail.com wrote: So what's the problem now? You said your web page looks like rubbish, that was because you didn't have the images stylesheets. Now you have them in place, you

Re: [symfony-users] Bundle does not contain any mapped entities.

2011-04-20 Thread seven seven
Hi, You should use php app/console doctrine:schema:create assuming that you have already created your database ( you can do this with doctrine:database:create ). generate:entities is used when you have defined your entity in .yml or .xml file(s). I am new to symfony , so someone please correct

Re: [symfony-users] Re: jobeet tutorial http://localhost:8080/frontend_dev.php/job

2011-04-20 Thread Haris Fauzi
Oh dear, Well of course! If you want to show that image then you must enclose it in img src=filename / tag. Why would you print the filename instead? Go on to day 4, you will see the code to access the image file in the HTML way. :-) It will be printed like: img src=/uploads/jobs/?php echo

[symfony-users] Re: Pre-execute under SF2

2011-04-20 Thread Dmitry Bykadorov
wow ) Thanks for quick response! I'll try your solution On Apr 20, 10:37 am, Szymek szewczyk.szy...@gmail.com wrote: OK. So, 1. Add service eg. service id=some.listener class=Namespace\To\Your\Listener\Class \YourListener             tag name=kernel.listener event=onCoreController /

Re: [symfony-users] The test false does not exist = 500 Internal Server Error - Twig_Error_Syntax

2011-04-20 Thread Toni Van de Voorde
Hello Jordi, Thx for the info. I updated my vendors and now it works :) grtz Toni -- 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

[symfony-users] Re: Pre-execute under SF2

2011-04-20 Thread Szymek
No problem. In my application this solution works very well. On 20 Kwi, 08:57, Dmitry Bykadorov dmitry.bykado...@gmail.com wrote: wow ) Thanks for quick response! I'll try your solution On Apr 20, 10:37 am, Szymek szewczyk.szy...@gmail.com wrote: OK. So, 1. Add service eg.

[symfony-users] Re: jobeet tutorial http://localhost:8080/frontend_dev.php/job

2011-04-20 Thread voidpointer
Hello again and sorry for this. I have installed symfony-1.4.11 I have come across some stuff in the day 3 tutorial about modifying or creating (it's not made clear) class declarations for JobeetCategory, JobeetJob and JobeetAffiliate. The comments indicate these to be at lib/model. They are

[symfony-users] Re: jobeet tutorial http://localhost:8080/frontend_dev.php/job

2011-04-20 Thread voidpointer
Haris, I agree, it should be img but the symfony has generated it the way it is. The tutorial does not mention that the page will be built wrong like this. I think the tutorial needs a section setting the expectations of the user. Or something. Cheers - VP -- If you want to report a

[symfony-users] Log raw SQL queries

2011-04-20 Thread coviex
Hi, We have some problems with SQL and cannot find the code which causes them. So I'd like to inherit from Propel and override some of it's methods so I can log application state upon certain query types execution. The question is how to switch Propel with child class application- wide? Thanks,

Re: [symfony-users] R: Symfony Simplepie Plugin

2011-04-20 Thread Cornelius Parkin
Hi That's the first route I took. I tried installing it directly from the zip file too, but no luck pls see below * c:\wamp\www\crothonsymfony plugin:install c:\\simplePie.zip --force-license plugininstalling plugin c:\\simplePie.zip sfPearFrontendPlugin Attempting to discover channel

Re: [symfony-users] Re: jobeet tutorial http://localhost:8080/frontend_dev.php/job

2011-04-20 Thread Haris Fauzi
On 20 April 2011 17:15, voidpointer voidpoin...@rocketmail.com wrote: Hello again and sorry for this. I have installed symfony-1.4.11 I have come across some stuff in the day 3 tutorial about modifying or creating (it's not made clear) class declarations for JobeetCategory, JobeetJob and

[symfony-users] Re: R: Symfony 1.4 cache.yml

2011-04-20 Thread codecowboy
Thanks for your reply. My application config settings: settings.yml - http://pastie.org/1814563 cache.yml: default: enabled: false with_layout: false lifetime:86400 On Apr 19, 6:44 pm, ftassi tassi.france...@gmail.com wrote: To enable caching you have to set   .settings:    

[symfony-users] Re: R: Symfony 1.4 cache.yml

2011-04-20 Thread codecowboy
I figured this out - nothing gets written unless you enable caching at a module level too. On Apr 19, 6:44 pm, ftassi tassi.france...@gmail.com wrote: To enable caching you have to set   .settings:     cache: true in settings.yml and default:   enabled:     false in cache.yml (in

Re: [symfony-users] Re: Pre-execute under SF2

2011-04-20 Thread Alvaro Touzon
Great, i'try too, supose it works, thanks i've been expecting this for a lot. Thanks 2011/4/20 Szymek szewczyk.szy...@gmail.com No problem. In my application this solution works very well. On 20 Kwi, 08:57, Dmitry Bykadorov dmitry.bykado...@gmail.com wrote: wow ) Thanks for quick

[symfony-users] Re: ajax in symfony 2

2011-04-20 Thread symfonyMan
Hello Oscar, Thanks you for this nice replay :) yes this work now have a good day On 20 avr, 00:43, oscar balladares liebegr...@gmail.com wrote: Oh, for sure. If you want just to validate a field with ajax and a controller you probably need to grep the EmailField value and attach it to a

Re: [symfony-users] Log raw SQL queries

2011-04-20 Thread Gareth McCumskey
If you are using symfony 1, I know you can turn on logging through the settings.yml file and get even the raw sql queries to log to the logs directory under your project root. On Wed, Apr 20, 2011 at 9:24 AM, coviex cov...@gmail.com wrote: Hi, We have some problems with SQL and cannot find

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

2011-04-20 Thread Ethan
hello, everybody, I'm a newer in symfony. Now I have a question. when I set attributes and use save() to store data in database, then I need to get the PK of this new row. How can I get it? e.g. $user=new user; $user-setUname('ethan'); $user-setPassword('111'); $user-save(); then I need to getId

[symfony-users] Re: SF2 Advanced routing

2011-04-20 Thread Aleksey Parshukov
You can create an abstract controller, where you will check the permissions. On Apr 19, 1:56 pm, symfonyMan ezziani.cha...@gmail.com wrote: Hello, In my symfony2 project i will have many routing ( /login, /account, / group, /group/create, /user/edit ..) how to secure all routes in my

[symfony-users] Adding a new item to an array without actually replacing the entire array

2011-04-20 Thread Pouledodue
Hello! In the new forms, is it possible to add an item to an array without having to re-send ALL the items of a collection? The actual behavior seems to be that when a form is submitted the array is entirely replaced by the collection in the form submitted If a collection already contains 3

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

2011-04-20 Thread Gareth McCumskey
$user=new user(); $user-setUname('ethan'); $user-setPassword('111'); $user-save(); *$id = $user-getId();* 2011/4/20 Ethan ruanx...@gmail.com hello, everybody, I'm a newer in symfony. Now I have a question. when I set attributes and use save() to store data in database, then I need to get the

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

2011-04-20 Thread A A
Yeah, if anyone is interested that's how I did it: https://bitbucket.org/noRerih/sections/src/57819d2ccc33/src/Sections/Bundle/GatewayBundle/RequestListener.php src/My/Bundle/RequestListener.php: public function onCoreController(FilterControllerEvent $event) { $evntController =

[symfony-users] Re: Log raw SQL queries

2011-04-20 Thread coviex
It turned out to be easy. Exact db class is set in databases.yml. On Apr 20, 12:23 pm, Gareth McCumskey gmccums...@gmail.com wrote: If you are using symfony 1, I know you can turn on logging through the settings.yml file and get even the raw sql queries to log to the logs directory under your

[symfony-users] permissions issue please help

2011-04-20 Thread Helloise Smit
i run ./symfony project:permissions then get: Permissions on the following file(s) could not be fixed: SF_ROOT_DIR/log how must i fix this from the command line please? i have php script im running that creates a .txt file and writes to it, but it is not creating the file...is it because of

Re: [symfony-users] permissions issue please help

2011-04-20 Thread Gábor Fási
You may need root rights to change the permissions. On debian prefix the command with `sudo`, on gentoo you'll need to `su` first, others I don't know. On Wed, Apr 20, 2011 at 16:02, Helloise Smit helloi...@miranetworks.net wrote: i run ./symfony project:permissions then get: Permissions on

Re: [symfony-users] permissions issue please help

2011-04-20 Thread Haris Fauzi
log/ is a directory. Is it created already? Regards, Haris On 21 April 2011 00:11, Helloise Smit helloi...@miranetworks.net wrote: i am running the permissions as su/root :) -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] mergeForm id issue

2011-04-20 Thread dagger
Hi people, I have 2 tables Account (id, email, password), and profile(id, account_id, name, dob, status). I thought to use mergeForm and make them as one form and keep things simple and clean. I followed this tutorial http://www.devexp.eu/2009/03/19/symfony-forms-framework-merge-2-forms/

[symfony-users] [sf2] Disable WDT

2011-04-20 Thread Paul Dugas
How can I disable the WDT in the results of one action if a SF2 controller? Paul -- 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

[symfony-users] Bug in Symfony2 php template rendering, security flaw?

2011-04-20 Thread Arief M Utama
Hi all, I'm resending this again to symfony-users, just realized that symfony-devs is moderated. First, I've to say I'm amazed by Symfony2 framework. I'm a symfony user/developer since symfony1.0, so I know a little about bits and pieces about symfony, but I still think that Symfony2

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

2011-04-20 Thread JC
I am stuck with a dependency injection issue just by trying to initialize the bundles. The exception that I get after simply doing the first two steps per documentation: - Add the FOS namespace to your autoloader - Add UserBundle to your application kernel is as follows: Fatal error: Call to

[symfony-users] how to use ahDoctrineEasyEmbeddedRelations to embed a form for each record in a related table?

2011-04-20 Thread Robert Speer
UserHasKey: Users have one or more ApiKeys CompanyKeyType: ApiKeys have one type Company: Company have one or more ApiKeys I'd like to embed a UserHasKey form for each active CompanyKeyType and have the form show up even if the user does not have an existing record for in

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

2011-04-20 Thread Carl
I haven't had any issues getting that particular bundle to work in PR12 (although I've had my own issues with it). Have you run bin/build_bootstrap.php? This needs to be done after framework upgrades. I'd also make sure your Symfony cache has been completely cleared as well. I've had the dev

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

2011-04-20 Thread Carl
Nice! Thanks for posting this. I had pretty much given up on that bundle and started to implement my own ReCAPTCHA system. I may give this a try again. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

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

2011-04-20 Thread JC
Well, I tried that, but no change. I will try to install both PR12 and the FOSUserBundle completely from scratch and see if I have better luck. Unless someone else has had run into it and has some insights into it. Regards. On Apr 20, 4:23 pm, Carl carl.par...@gmail.com wrote: I haven't had

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

2011-04-20 Thread JC
I just tried a reinstall from scratch of PR12 (no upgrade) and still get the Call to undefined method ArrayNodeDefinition::scalarNode exception related to the injection code FOS\UserBundle \DependencyInjection\Configuration.php . Unless I'm missing a configuration step here I'm at a loss. It only

Re: [symfony-users] propel:build-model fail

2011-04-20 Thread Prabudh Kushagra
thanks bro but am using xamppp 1.7.0... i guess no need to enable xsl as its already there by default.. i restarted the project again and this time it worked dnt knw wt the problm was On Tue, Apr 19, 2011 at 3:14 PM, Gabriel Filipiak gabriel.filip...@gmail.com wrote: Probably your PHP

[symfony-users] Set RequestFormat according to HTTP-header

2011-04-20 Thread winzou
I'm trying to set up a pajax organisation within my sf2 project. The aim is : if request has a P-AJAX header, then set RequestFormat to htmlRaw (for instance), but _before_ the route matching. I mean, I want to define in my routes if the htmlRaw format is allowed or not. So if the P-AJAX header

Re: [symfony-users] symfony propel:build-model - Giving Error

2011-04-20 Thread Prabudh Kushagra
well brother i agree with gabor. however an alternate solution is to use wamp or xampp version 1.7.0.. i had the same isue when i was using xampp 1.7.4 however i restarted the whole thin on xampp 1.7.0 and believe me it worked flawlessly. On Tue, Apr 19, 2011 at 6:40 PM, Gábor Fási

[symfony-users] error in using link_to in symfony

2011-04-20 Thread Kush
hi friends, i am using xampp and my project is in C:\Program Files\xampp\htdocs \smt i've created a few modules and configured routing.yml as employeerecord: URL: / param: { module: default, action: index } addnewemployee: URL: /addnewemployee param: { module: addnewemployee, action:

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

2011-04-20 Thread Carl
Hmm, ok, can you post the firewall you're having it use (from security.yml) as well as everything under fos_user in config.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

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

2011-04-20 Thread Kush
500 | Internal Server Error | sfConfigurationException The route addemployee does not exist. stack trace at () in SF_SYMFONY_LIB_DIR\routing\sfPatternRouting.class.php line 313 ... // named route if (!isset($this-routes[$name])) {