Re: [symfony-users] symfony2 - how to do s.th. after a users has logged in?

2011-06-17 Thread Michael Holm
Hi, Yes you can.. just put it in as an argument: arguments: [@session] then get the session class in the constructor of the class.. http://symfony.com/doc/current/book/service_container.html Best regards, Michael Holm On Thu, Jun 16, 2011 at 8:33 PM, Flo wrote: > Hi, > > what I

Re: [symfony-users] [sf2] [beta4] options to forms

2011-06-17 Thread Michael Holm
, im trying to come up with some solution for making such a form which fill my needs.. Best regards, Michael Holm On Thu, Jun 16, 2011 at 4:20 PM, Luis Cordova wrote: > Hi Mike, > > can you show what you are trying to do with some code? > I am eager to see, thanks > > Luis

Re: [symfony-users] [beta5] routing problem, problem with generated file ../../app/cache/dev/appdevUrlMatcher.php

2011-06-17 Thread Michael Holm
Hi, Thanks fabian.. for peoples information it will be fixed by this patch, and will properly come in the next release: https://github.com/symfony/symfony/commit/c536797cc9ee81986210cbcfbaf6c8337dfdad9e Best regards, Michael Holm On Fri, Jun 17, 2011 at 1:55 PM, Fabien Potencier wrote

[symfony-users] [beta5] routing problem, problem with generated file ../../app/cache/dev/appdevUrlMatcher.php

2011-06-17 Thread Michael Holm
er/AdminUserController.php" type: annotation prefix: /admin It worked perfectly in Beta4.. so, hope someone can help me..? It really seems like a bug with the routing generator.. Best regards, Michael Holm -- If you want to report a vulnerability issue on symfony, please send it to secur

[symfony-users] [sf2] [beta4] options to forms

2011-06-16 Thread Michael Holm
regards, Michael Holm -- 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@googlegro

[symfony-users] Type Guessing in Standalone Symfony2\Form Component

2011-06-15 Thread Michael Gatto
xception: "Expected argument of type Symfony\Component\Form\FormTypeGuesserInterface, NULL given" How can I get around this? Am I using the standalone Form component correctly? Thanks, - Michael Gatto -- If you want to report a vulnerability issue on symfony, please send it to s

Re: [symfony-users] [sf2] Trying to import resources (routing)

2011-06-10 Thread Michael Holm
Hi, I think you are missing an @ before you resource.. does it help? Best regards, Michael Holm On Fri, Jun 10, 2011 at 1:17 PM, Javier Garcia wrote: > Hi, > > I'm gettin this error: > > Cannot import resource "'UserBundle/Resources/config/routing/ > r

[symfony-users] [sf2][Beta4], serialize object with relations

2011-06-10 Thread Michael Holm
;)->get('filter.admin_user')); $filter = ($filter instanceOf \Club\UserBundle\Entity\User) ? $filter : new \Club\UserBundle\Entity\User(); $filter_form = $this->createForm(new \Club\UserBundle\Filter\User()); $filter_form->setData($filter); Can someone give me a hint,

Re: [symfony-users] Event Listeners on ORM

2011-06-10 Thread Michael Holm
here. Best regards, Michael Holm On Tue, Jun 7, 2011 at 5:37 PM, ymadh wrote: > Is there a way (or any good documentation) on how to setup an event > listener for saving a record to a particular table / entity? > > Thanks for any info! > > Amy > > -- > If you want to r

[symfony-users] sf2, form with id as field

2011-06-06 Thread Michael Holm
hLocation(), $location); That gives me the following error: An exception has been thrown during the rendering of a template ("Expected argument of type object, integer given") in ::base.html.twig at line 54. I dont see how to make this dropdown box, can someone help me? Best regards,

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 t

[symfony-users] [SF2] form and OneToMany relationship

2011-05-30 Thread Michael Holm
someone has a simulair setup and it works fine, then i better check my entities, but i have been there, cannot find any problems.. Best regards, Michael Holm -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message beca

[symfony-users] Re: embedded forms, collection

2011-05-30 Thread Michael Holm
Hi, Stupid.. made a typo in my annotations.. could not map to a undefined property: profile_id, the name was profile. Best regards, Michael Holm On Fri, May 27, 2011 at 2:02 PM, Michael Holm wrote: > Hi, > > I have a problem with embedded forms.. i get a notice: undefined index >

[symfony-users] embedded forms, collection

2011-05-27 Thread Michael Holm
;); $builder->add('contact_type','choice',array( 'choices' => array( 'home' => 'Home', 'work' => 'Work' ) )); $builder->add('is_default','hidden'); }

[symfony-users] symfony settings form

2011-05-26 Thread Michael Holm
a form with a long form list with all the configuration for each location: I mean: Label : Label : Can someone see how i can use the form builder to make such a form? Best regards, Michael Holm -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] code on all requests #sf2

2011-05-25 Thread Michael Holm
Hi Stof, Oh, ofcaurse.. thanks a lot. Best regards, Michael Holm On Wed, May 25, 2011 at 3:46 PM, Christophe COEVOET wrote: > Le 25/05/2011 15:45, Michael Holm a écrit : > > Hi, > > In symfony2, if i want to request some code on all page requests.. how > can i do that in

[symfony-users] code on all requests #sf2

2011-05-25 Thread Michael Holm
request? Best regards, Michael Holm -- 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 sym

Re: [symfony-users] Symfony2 Routing & optional parameters

2011-05-21 Thread Michael Piecko
See, i was wrong :o) To access GET parameters from the example above i have to use: $this->get('request')->*query->*get('id') and not $this->get('request')->request->get('id') Michael -- If you want to report a vulnerabilit

Re: [symfony-users] Symfony2 Routing & optional parameters

2011-05-21 Thread Michael Piecko
that want to provide some flexibility public function get($key, $default = null) { ... } But the trick is not to use: $this->get('request')->get('id'); instead use: $this->get('request')->*request->*get('id'); Thank you very much, Michae

[symfony-users] Symfony2 Routing & optional parameters

2011-05-21 Thread Michael Piecko
request this controller with http://.../debug?id=500 i expect to have an $id = 500 inside my action. But no, $id is still 100. Is this the expected behaviour? Do i have always to use $this->get('request')->get('id')to get any GET parameters? Thanks, Michael -

[symfony-users] Re: Trigger login event

2011-05-13 Thread Michael
Hi Christophe can you give me a quick example how to run it from within a controller? -- 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] Trigger login event

2011-05-13 Thread Michael
I'm using the latest Symfony2 code and already got the build-in form login to work. Now I need a way to trigger an event that will log a new user right after validating the registration form. Any ideas how to do it? -- If you want to report a vulnerability issue on symfony, please send it to se

Re: [symfony-users] about form, and name tag

2011-05-05 Thread Michael Holm
form manually for the login form? so im still looking for a way for build "anonymous forms" with the new form framework, or just confirm that it is just not possible? it would be really useful for doing the validation in my rest api, also just to build the login form.. Best regards, Mi

Re: [symfony-users] about form, and name tag

2011-05-05 Thread Michael Holm
uest(). > > On Thu, May 5, 2011 at 9:03 AM, Michael Holm wrote: >> >> Hi, >> >> Im building a REST API for my application, and what i want to do is >> use the form component to validate the input from the users.. >> >> But the problem is: >>

[symfony-users] about form, and name tag

2011-05-05 Thread Michael Holm
l just make the api a whole lot more complicated, are there any way to make the form expect a html tag like this: Hope that someone can help me.. Best regards, Michael Holm -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this m

[symfony-users] Re: Re : Re: EWZRecaptchaBundle

2011-04-30 Thread Michael
Hi guy, this is really weird why it's not working for you.. the updated README got all the last changes and it works fine. As for the changes Carl propose to make, a different approach to loading the RecaptchType. But it is unnecessary as it already been loaded in the recaptcha.xml:

[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 symf

[symfony-users] Re: Assetic not working for prod

2011-04-09 Thread Michael
Nevermind, I got it to working. Thanks > when I set "use_controller: true" so it will generate on-the-fly in > prod it fail loading page. -- 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 subsc

[symfony-users] Re: Assetic not working for prod

2011-04-09 Thread Michael
when I set "use_controller: true" so it will generate on-the-fly in prod it fail loading page. -- 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" g

[symfony-users] Re: Assetic not working for prod

2011-04-09 Thread Michael
No... I was thinking it will generate on-the-fly to the cache folder (like in "dev").. are there any more configs I need to define? -- 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 t

[symfony-users] Assetic not working for prod

2011-04-09 Thread Michael
I have the latest vendors update and been trying to use the AsseticBundle, but it's not working when I use the prod env (work fine for dev): assetic: debug: %kernel.debug% use_controller: false filters: cssrewrite: ~ stylesheets('@AcmeBundle/Resources/ public/css/demo

[symfony-users] sf2, multiple mappings

2011-04-05 Thread Michael Holm
: [ preUpdate ] Best regards, Michael Holm -- 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 sym

[symfony-users] Re: Is there a AsseticBundle Tutorial?

2011-03-24 Thread Michael
http://groups.google.com/group/symfony-users/browse_thread/thread/5b2b10cc0ef8aced -- 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 pos

[symfony-users] Is there a AsseticBundle Tutorial?

2011-03-23 Thread Michael
Were can I find a good tutorial/examples about this Bundle? -- 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 e

[symfony-users] Re: Production environment

2011-03-14 Thread Michael Van Sickle
Is your production deployment on the root of the domain? If not, then mod_rewrite needs to know the base name using the RewriteBase directive in your .htaccess. For example, if your base address for your site is http://www.example.com/mysite, then the .htaccess would need a line 'RewriteBase /mys

[symfony-users] Re: Symfony 1.4 PHPUnit 3.5.10 - Code coverage problem

2011-03-13 Thread Michael Van Sickle
Are you bootstrapping the framework? I can't claim to be anywhere near an expert, but I have gotten PHPUnit to work with symfony 1.4. In my setUp() function (at the beginning of the test) , I have the following code: $configuration = ProjectConfiguration::getApplicationConfiguration('frontend

[symfony-users] Re: Security with Cookies

2011-03-10 Thread Michael
Two more question: 1. with the build-in security, is there a way to trigger login action? 2. after the login success, is there away to forward to an action without redirecting (will allow sending extra params with login form)? -- If you want to report a vulnerability issue on symfony, please send

[symfony-users] Re: Security with Cookies

2011-03-10 Thread Michael
Nevermind got it: $response->headers->setCookie( new \Symfony\Component\HttpFoundation\Cookie( 'remember_me', base64_encode(implode(':', array($user- >getUsername(), $user->getPassword(,

[symfony-users] Re: Security with Cookies

2011-03-10 Thread Michael
No, I do.. the only thing is that my login/register forms require additional customization that the build-in system don't support. there got to be a way to save cookies somehow. right? when I try setcookie() it's not working.. how would you recommend doing this? -- If you want to report a vulnera

[symfony-users] Security with Cookies

2011-03-10 Thread Michael
I have created my own login form, once submitting it call an Ajax (controller) action that execute a login function from a service I wrote. The service gets an instance of SecurityContext ($this- >security).. here is the login function: public function login($userId, $rememberMe = false) { ...

[symfony-users] Re: query error

2011-02-19 Thread Michael Van Sickle
Doctrine query returns a Doctrine_Collection when you do a $query- >execute(). You need to reference one item specifically to change it (e.g.$user[0]). If you just want to get a single return from a query use $query->fetchOne(). -- If you want to report a vulnerability issue on symfony, please se

[symfony-users] Extension load() config

2011-02-15 Thread Michael
I have updated to the latest Symfony and implement the load() to all my bundles: -public function configLoad(array $configs, ContainerBuilder $container) +public function load(array $configs, ContainerBuilder $container) also remove the ".config" from the /app/config/config.yml: - search

[symfony-users] Login directly from code

2011-01-29 Thread Michael
Is there a way to directly use the security feature to login in the PHP code? In my project (Latest Symfony2.0), I submit the login/registration using ajax when processing the data. On failure I return a string with the error and on success I login the user and return "true" which call a redirect

[symfony-users] [Symfony2] setcookie()

2011-01-15 Thread Michael
I'm trying to create a login process for my website. Once you click "login" and ajax call is been made to process the data. If successfully I try to create a cookie to store the data: // Create new key $key = base64_encode(serialize(array($this->user->getUsername(), $this- >user->getPassword(;

[symfony-users] Re: PHP Intl extension

2011-01-03 Thread Michael
when i run the command it asks me: "Specify where ICU libraries and headers can be found [DEFAULT] :" do i need to install ICU? if yes, that should i do? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message becaus

[symfony-users] Re: Symfony2 SetCookie

2011-01-02 Thread Michael
Note: the $response object is being set when the service is loaded (as a dependency) %demo.user.options.session_path% %demo.user.options.remember_me_cookie_name% %demo.user.options.remember_me_cookie_lifetime%

[symfony-users] Symfony2 SetCookie

2010-12-31 Thread Michael
I have created a login with remember-me checkbox. After I submit and validate the form I call a login function that save the user into a session. if remember-me checked i set cookie also: // create new key $key = base64_encode(serialize(array($this->user->getUsername(), $this- >user->getPassword()

[symfony-users] PHP Intl extension

2010-12-21 Thread Michael
One of the recent Symfony2 updates force to use the Intl extension.. I have a MAMP 1.9.4 with PHP 5.3.2. Does anyone knows how to add this extension? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because yo

[symfony-users] Configure Hydrator Dir

2010-12-18 Thread Michael
I'm using Doctrine Mongo as my database, today I have updated all the vendors and got the following error "You must configure a hydrator directory. See docs for details". Does any one know how to solve this? -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] Re: Routing with sf_method question

2010-12-06 Thread Michael Smith
even from a form post. The sfDoctrineRouteCollection routes I have work perfect and do this internally but my custom route will not. Any other ideas? Thanks, Michael On Dec 6, 11:14 am, Alex Pilon wrote: > http://redotheweb.com/2008/08/08/add-request-method-requirement-to-ro... > &

[symfony-users] Routing with sf_method question

2010-12-06 Thread Michael Smith
, sf_format: html } requirements: { sf_method: post } and an importUploadSuccess.php: But when the form is submitted the importUpload action is called again instead of the importConfig action. The form's method is post am I missing something here? Thanks, Michael -- If you want to r

[symfony-users] admin-generator, dynamic forms

2010-11-27 Thread Michael Holm
a module if i would like to get this functionality? Hope that someone will give me some feedback, just trying to keep everything as simple as possible.. but i cannot really see how symfony can help me with this task? Best regards, Michael Holm -- If you want to report a vulnerability issue on

[symfony-users] Symfony2 support multi apps

2010-11-05 Thread Michael
How can i set a Symfony2 application to support multi application (subdomains). is there a way in the rounding I can difference between each one. for example: set the NewsBundle "\" to point NewsBundle:Default:index, and AboutBundle "\" to point to AboutBundle:Default:index -- If you want to rep

[symfony-users] Re: Symfony2 Security

2010-10-24 Thread Michael
another issue i noticed, when calling "/login_check" or even "/logout" it will only run the FormAuthenticationListener even handler if they are relative.. in this case "/user/logout". maybe when trying to match the request path check special links -- If you want to report a vulnerability issue on

[symfony-users] Re: Symfony2 Security

2010-10-23 Thread Michael
I have looked over and over and for some reason its not working.. I have configured based on http://docs.symfony-reloaded.org/master/guides/security/authentication.html#form-based-authentication .. and it does redirect to the login page. but after submitting the form i get the following error "Una

[symfony-users] Re: Symfony2 Security

2010-10-23 Thread Michael
I have looked over and over and for some reason its not working.. here are the configuration I did: 1. added to app/config/config.yml: security.config: providers: default: password_encoder: sha1 entity: { class: SecurityBundle:User, property: username } fi

[symfony-users] Symfony2 Security

2010-10-22 Thread Michael
Does anybody have any clue how to use this featured.. i have looked at the document at http://docs.symfony-reloaded.org/master/guides/security/index.html but: 1. only work for Doctrine, not for MongoDB 2. there is no instructions on how to validate the form and execute the login / logout process

Re: [symfony-users] [symfony 1.4] checking permissions in layout.php to make links active or inactive

2010-09-25 Thread Michael Hodges
Thanks, that's exactly what I needed to know about. I'll spend time rereading helpers since it must be time for my second pass. Much appreciated. - Michael On Sat, Sep 25, 2010 at 12:41 PM, Wanderson wrote: > You could make use of link_to_if helper with $sf_user->hasPermi

Re: [symfony-users] Re: Help on sfValidatorDoctrineUnique during UPDATE please

2010-09-25 Thread Michael Hodges
One idea might be to make use of isNew to differentiate between an INSERT and and UPDATE in your logic. I've not tried this, so it's just an idea. If it doesn't work, write a custom validator and pass an option in to control the validation logic. best of luck - Michael [form.php]

[symfony-users] [symfony 1.4] checking permissions in layout.php to make links active or inactive

2010-09-25 Thread Michael Hodges
ially, to gray them out. Has anyone accomplished this or know of a good reference for me to read? I've been combing the Internet for ideas, but so far, nothing. Thanks, - Michael -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com Yo

[symfony-users] Re: [doctrine 1.2] dropping a record from a doctrine_collection

2010-09-18 Thread Michael Hodges
tUnset($fee_ofs); } } return $fees; } On Thu, Sep 16, 2010 at 7:33 PM, Michael Hodges wrote: > Hello all, > > I'm not having a luck looking this up, or with the description in the > documentation. > Hoping you can help. > > I have a function that cre

[symfony-users] [doctrine 1.2] dropping a record from a doctrine_collection

2010-09-16 Thread Michael Hodges
cords. I've run this through a debugger (netbeans with xdebug) and the flow through the code is correct, but the remove statement doesn't effectively remove the record. Any ideas what I'm overlooking? Thanks - Michael public static function getFeesForInvoice() {

[symfony-users] Re: Sf1.4 custom boolean field in generator results in "1" rather than checked-icon

2010-09-06 Thread Michael Hodges
[Resolved] Rereading the documentation more carefully, my [yml] was in error and needed the following correction: "type: Boolean" with a capital B. Thanks for the feedback. - Michael On Sun, Sep 5, 2010 at 6:54 PM, Michael Hodges wrote: > Hello all, > > I found

Re: [symfony-users] readonly related value in form

2010-09-06 Thread Michael Hodges
I'm also new to SF and struggled with this. My solution was a combination of javascript and php code. Hopefully the example code fragments are helpful for you. Basically, my javascript updates the readonly field rather than the user. - Michael [_form.php] echo $form['rece

[symfony-users] Sf1.4 custom boolean field in generator results in "1" rather than checked-icon

2010-09-05 Thread Michael Hodges
gets displayed in the List is a blank or a '1', but the check-icon would be more consistent. Attempts to use the params: and checkbox_tag did not help. Anyone gone down this road successfully? Thanks, - Michael -- If you want to report a vulnerability issue on symfony, please send it

Re: [symfony-users] Problem using ahAdminGenerataorThemesPlugin, Customizable titles for sf 1.4

2010-09-05 Thread Michael Hodges
f the Doctrine equivalents. I'll post here once I've identified the root problem. Thanks again for your help. I've learned quite a bit as a result. - Michael On Sat, Sep 4, 2010 at 12:23 PM, Michael Hodges wrote: > Reduced the plugins to the following, cleared cache, clear

Re: [symfony-users] Problem using ahAdminGenerataorThemesPlugin, Customizable titles for sf 1.4

2010-09-04 Thread Michael Hodges
u point me to where in the source of the plugin I can disable the Customizable Titles functionality so that I have more time to trouble shoot this? Thanks, - Michael On Sat, Sep 4, 2010 at 8:11 AM, Michael Hodges wrote: > No title displays. When I view

Re: [symfony-users] Problem using ahAdminGenerataorThemesPlugin, Customizable titles for sf 1.4

2010-09-04 Thread Michael Hodges
ueryReloadedPlugin', 'sfPhpExcelPlugin', )); Doesn't seem like this would be the problem, but I'll change the order of the plugins, eliminate them, etc to see if I can isolate the problem. Thanks again for sharing your insights. Sorry for the long delays between emails. I t

Re: [symfony-users] Problem using ahAdminGenerataorThemesPlugin, Customizable titles for sf 1.4

2010-09-03 Thread Michael Hodges
e is named something else > I hope you'll spot it in there. > > Cheers, Daniel > > On 03.09.2010, at 09:07, Michael Hodges wrote: > > Thanks Daniel for the suggestions. I worked my way down the list. > The results are the same regardless of the yml section. > If I understand

Re: [symfony-users] Problem using ahAdminGenerataorThemesPlugin, Customizable titles for sf 1.4

2010-09-03 Thread Michael Hodges
http://pastebin.com/tRhm2jaW I'm new to looking at these, but the title is correctly inserted it seems to me. I'll experiment with the other objects to see if I can figure out what's different about this one. thanks again for your help and for recommending ways to troubleshoot th

Re: [symfony-users] Problem using ahAdminGenerataorThemesPlugin, Customizable titles for sf 1.4

2010-09-03 Thread Michael Hodges
Hello Daniel, I tested view.yml as you suggested and my results were consistent with all previously reported results. I'm now working on finding the info in the cache you requested and will have that posted in a little while. Thanks again for your help with tracking this down. - Michae

Re: [symfony-users] Problem using ahAdminGenerataorThemesPlugin, Customizable titles for sf 1.4

2010-09-03 Thread Michael Hodges
, that would work fine for now. - Michael generator: class: sfDoctrineGenerator param: model_class: Student theme: ahAdmin# or: ahAdminGeneratorThemesPluginAdmin #theme: admin non_verbose_templates: true with_show:

[symfony-users] Problem using ahAdminGenerataorThemesPlugin, Customizable titles for sf 1.4

2010-09-02 Thread Michael Hodges
es not render. When I view the browser source I have the following: For some reason 'list.title' is not resolving correctly. Any recommendations? Thanks - Michael -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-proje

Re: [symfony-users] Can't get app.yml working for me

2010-09-01 Thread Michael Dichirico
I had a typo. should be an 's', not a 'z': $x = sfConfig::get('app_mbc_organisation_id'); On Wed, Sep 1, 2010 at 6:19 PM, Michael Dichirico wrote: > Untested, but I believe this is what you need: > > # default values > all: > .mbc: > orga

Re: [symfony-users] Can't get app.yml working for me

2010-09-01 Thread Michael Dichirico
Untested, but I believe this is what you need: # default values all: .mbc: organisation_id: 1 .mail: method: native and then: $x = sfConfig::get('app_mbc_organization_id'); On Wed, Sep 1, 2010 at 6:10 PM, Jochen Daum wrote: > Hi, > > I have /config/app.yml: > > # You can find more

[symfony-users] Generate Document Classes for MongoDb

2010-08-23 Thread Michael
I'm trying to move from MySQL to MongoDb, and start creating a test class: container- >getDoctrine_Odm_Mongodb_DefaultDocumentManagerService(); $user = new User(); $user->setName('John Doe); $dm->persist($user); $dm->flush(); But I keep getting this error: "No identifier/primary key specified

[symfony-users] Generate Document Classes for MongoDb

2010-08-23 Thread Michael
I'm trying to move from MySQL to MongoDb, and start creating a test class: container- >getDoctrine_Odm_Mongodb_DefaultDocumentManagerService(); $user = new User(); $user->setName('John Doe); $dm->persist($user); $dm->flush(); But I keep getting this error: "No identifier/primary key specified f

[symfony-users] Using Session in Symfony2 PR3

2010-08-19 Thread Michael
I created a class for UserSecurity which extends the Symfony\Components \HttpFoundation\Session. Then i use $this->session- >setAttribute('isAuthenticated', true); to tell the code that the user is logged-in. but it doesn't store it in the session. Any ideas why? do I have to run something after I

[symfony-users] Generate Repositories

2010-08-14 Thread Michael
I'm trying to create an EntityRepository to one of my Entities: /** * Product * * @Entity(repositoryClass="Bundle\HelloBundle\Entity\Repository \ProductRepository") * @Table(name="product") */ class Product { } class ProductRepository extends EntityRepository { public function getTopProd

[symfony-users] Re: Doctrine.ORM Proxy

2010-08-12 Thread Michael
I run the console script (doctrine:generate:proxies) to create proxy classes, but still getting this error, what do i need to do? On Aug 11, 11:02 pm, Tim Nagel wrote: > Sounds like you havent generated your Proxy objects based on the Entities. > > t > > On Thu, Aug 12, 2010 at

[symfony-users] Doctrine.ORM Proxy

2010-08-11 Thread Michael
Been trying to create a simple findAll() request: $users = $this->getEntityManager() ->createQuery('Bundle\HelloBundle\Entity\User') ->findAll(); but keep getting the following error: Fatal error: Class 'Proxies\BundleHelloBundleEntityProfileProxy' n

[symfony-users] Doctrine.ORM Proxy

2010-08-11 Thread Michael
Trying to run this script: $products = $this->getEntityManager() ->getRepository('Bundle\HelloBundle\Entity \Product') ->findAll(); But keep getting this error: Fatal error: Class 'Proxies\BundleHelloBundleEntityCategoryProxy' not fou

[symfony-users] Symfony 1.4/Doctrine 1.2: specifying initial autoincrement value in a schema yaml file

2010-07-25 Thread Michael Hodges
ve to remember to manually alter tables before loading fixtures? Reading through the doctrine 1.2 manual I didn't see anything and also came up empty handed after searching the web. Thanks for any help - Michael -- If you want to report a vulnerability issue on symfony, please send it to s

Re: [symfony-users] Re: How I get the sf_user (the logged user) in my controller action???

2010-07-01 Thread Michael Hodges
sfContext::getInstance()->getUser() might work too On Tue, Jun 29, 2010 at 4:26 PM, Ricardo Jose Guzman Milanes < guzman.ricardoj...@gmail.com> wrote: > Hello Rodrigo > > Two weeks ago I was trying to find a way to display info only related to > the logged user. > > I used this in my action.php

[symfony-users] Re: Foreign keys are not getting populated when saving details records

2010-06-27 Thread Michael Hodges
recommendations for improving the code are always welcomed. This is my first PHP and first Symfony project and I'm already indebted to many of those that have posted their examples on the web. - Michael - - - sample code - - - The configure () function for the following form is based on the Sy

Re: [symfony-users] Output a excel file with phpexcel

2010-06-26 Thread Michael Steinboeck
cel, you dont need phpexcel, but create a regular html file, containing a table with your content, and put the excel-headers on top. -- LG, Michael Steinböck -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message b

Re: [symfony-users] Re: Get record id and set it into form

2010-06-21 Thread Michael Hodges
n the SQL INSERT statement, but won't have a chance to test until late this evening. - Michael On Mon, Jun 21, 2010 at 3:06 AM, titiyoyo wrote: > Hi there > > thanks for that. > > for now i have this : > > public function executeNew(sfWebRequest $request) &

Re: [symfony-users] Functional tests for Form validators?

2010-06-15 Thread Michael Hodges
ng to your personal bookshelf. cheers, - Michael On Mon, Jun 14, 2010 at 8:30 PM, Christopher Schnell wrote: > Thanks for the suggestion. Until my boss orders this book, could you give > me a short answer ? > > > > Just curious J > > > > Regards, >

Re: [symfony-users] Functional tests for Form validators?

2010-06-14 Thread Michael Hodges
*"The Pragmatic Programmer: From Journeyman to Master" *by Andrew Hunt and David Thomas labels their chapter on this topic "Ruthless Testing" which suggests one answer to your question. It's an excellent book. - Michael On Mon, Jun 14, 2010 at 4:12 AM, Christopher S

[symfony-users] Re: Foreign keys are not getting populated when saving details records

2010-06-13 Thread Michael Hodges
ign keys (record_id). Hope someone has experience trouble-shooting this type of problem. Thanks, - Michael On Sat, Jun 12, 2010 at 8:23 PM, Michael Hodges wrote: > Hello all, > > 

I have a problem with Foreign keys are not getting populated when saving > details records. The relat

[symfony-users] Foreign keys are not getting populated when saving details records

2010-06-12 Thread Michael Hodges
ign keys. Tracing beyond the Save I see that SaveRelatedLocalKeys never encounters any local keys. Unless there is something to correct in my schema, would I be well advised to take advantage of $record->invokeSaveHooks('post', 'insert', $event); to update rec

Re: [symfony-users] Re: Symfony 1.4 project with embedded forms, user data in embedded forms not being saved

2010-06-03 Thread Michael Hodges
Hold the phone, my custom validator was not returning $values. suddenly it is all very clear. Thanks everyone who spend any time looking at this thread. On Wed, Jun 2, 2010 at 7:46 PM, Michael Hodges wrote: > Can someone help me understand how the sfFormDoctrine handles the cleaned > d

Re: [symfony-users] Re: Symfony 1.4 project with embedded forms, user data in embedded forms not being saved

2010-06-02 Thread Michael Hodges
case since all forms and subforms have to be validated before anything is saved. If it is the first case, I've not figured out what the array of cleaned values is called and where best for me to put debug statements. On Mon, May 31, 2010 at 4:50 PM, Michael Hodges wrote: > The traci

Re: [symfony-users] Re: Symfony 1.4 project with embedded forms, user data in embedded forms not being saved

2010-05-31 Thread Michael Hodges
et xdebug (using NetBeans) to continue stepping me through source code once I've pressed the save button. I'll ask this in another thread if I can't eventually figure it out.] Thanks for any help with resolving the subform save problem. - Michael On Mon, May 31, 2010 at 3:00 PM,

[symfony-users] Symfony 1.4 project with embedded forms, user data in embedded forms not being saved

2010-05-30 Thread Michael Hodges
0; $i < $this->getOption('count', $count); $i++) { $paymentDetail = new PaymentDetail(); $paymentDetail->TransactionReceipt = $receipt; $subForm = new PaymentDetailForm($paymentDetail); $this->embedForm($i, $subForm); } $this->mergePos

[symfony-users] problem with error message being applied to the form field

2010-05-01 Thread Michael Hodges
rms, but their mergePostValidators are working perfectly. Thanks for any help, - Michael -- 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" g

Re: [symfony-users] How would one suppress the +New in a form

2010-04-18 Thread Michael Hodges
Thanks Daniel, I was focused on the 'new: ~' portion of the generator and didn't consider the list actions. Thanks also for hint on how to redirect. Time for me to review, again, Jobeet. - Michael On Sun, Apr 18, 2010 at 10:19 AM, Daniel Lohse wrote: > Hey Michael, > &

[symfony-users] How would one suppress the +New in a form

2010-04-18 Thread Michael Hodges
saction/new' to another url, that would be okay too. I'm not yet entirely clear on how routing.yml works, but it doesn't look like I can use it to redirect to a different module. Thanks for any help. - Michael Symfony 1.4.4 with Doctrine -- If you want to report a vulnerability issue

Re: [symfony-users] use_javascripts_for_form($form) apparently not working

2010-04-12 Thread Michael Hodges
Thanks Gábor. Makes sense. I can't implicitly associate a js file with a form, but rather have to specify the association. I think that http://www.symfony-project.org/more-with-symfony/1_4/en/05-Custom-Widgets-and-Validatorswill also be helpful documentation. - Michael On Sun, Apr 11,

[symfony-users] use_javascripts_for_form($form) apparently not working

2010-04-11 Thread michael hodges
After searching the forums and web, I've had no luck finding suggestions. Any advice would be appreciated. Thanks. Directory structure: /backend/modules/transaction_receipt/templates/ _form.php _form.js For Symfony 1.4.2, Doctrine 1.2 - Michael -- If you want to report a vul

  1   2   3   >