Re: [symfony-users] Question: The best way to embed javascript : in parial or in js files

2010-11-05 Thread oscar balladares
A partial is what it is, just a piece of code that appears where you called it; you should have 1 .js file per action. Think about 4 partials for 1 action, it is better to have 1 js file to refer that action instead 4 js pieces of code. This is for sure an advice only ;) 2010/11/3 JoJo

Re: [symfony-users] Publishing a Symfony project with the front controller on the web-root directory like, instead of a Virtual Host on Apache

2010-11-19 Thread oscar balladares
Thank you Bernhard and Thank you Gareth!!! Those are great news! 2010/11/19 Gareth McCumskey gmccums...@gmail.com Googling symfony shared hosting provided many pages with the answer. On Fri, Nov 19, 2010 at 6:14 AM, oscar balladares liebegr...@gmail.comwrote: Hi guys and girls

[symfony-users] i18n for the Filter Form in the Backend app (Admin)

2010-11-22 Thread oscar balladares
Hi boys and girls. I want to change the labels of the Filter Form for a module in the Backend generated by the admin generator plugin. This is the background: I'm from latam, so my navite language is spanish. I have manually traslated the labels for the backend module User, I did it overriding

Re: [symfony-users] Re: On $form-save() and knowing if anything has changed

2010-11-22 Thread oscar balladares
Im not an expert, but I would suggest you to implement a getHashCode() method for your objects. What I recall, a hashcode is like a unique number result of a calculation based on the attributes values and types of a class; it is like a check sum. So if you have an updated_at attribute, the old

Re: [symfony-users] Pass variables through actions

2010-11-28 Thread oscar balladares
Hi. Yes, it is possible, but currently I only now the GET method. Look for this snippet: if ($this-form-isValid()){ $this-redirect('contact/thankyou?'.http_build_query($this-form-getValues()));} On this Resource... http://www.symfony-project.org/forms/1_4/en/02-Form-Validation It is the

Re: [symfony-users] Re: Acces denied for user www-data

2010-11-28 Thread oscar balladares
Hi. For permission an the owner properties: sudo chown -R yourUserName.yourUserGroup smyfony_project/ The -R option is to change the whole dir and subdirs and files from your project directory. sudo chmod -R 777 symony_project/ Again -R is for the same purpose. 2010/11/28 Nicolas Hurman

Re: [symfony-users] Re: How to set the title to each page dynamically

2010-11-28 Thread oscar balladares
Yes, Jobeet Tutorial is not an option, it is mandatory [?] 2010/11/28 el-sid sydneyari...@gmail.com or you can modify the title per module basis using the view.yml. However, make sure that you have not written anything between title/ title tags in the global layout, then you can specify title

Re: [symfony-users] Publishing a Symfony project with the front controller on the web-root directory like, instead of a Virtual Host on Apache

2010-11-28 Thread oscar balladares
no at this moment. and I dont want to do it the DIY way (Symfony advantages are good marketing advertising). Thanks everybody! 2010/11/18 Szél Péter sze...@gmail.com 2010.11.19. 05:14:33 dátumon oscar balladares liebegr...@gmail.com írta: Hi guys and girls! Is there a way to publish a Symfony

Re: [symfony-users] Re: Custom 404 - Problem with CSS

2010-12-20 Thread oscar balladares
That is the cascade configuration rule. You can avoid loading some JS or CSS like this. Lets say you have a app/frontend/config/view.yml file like this: default: stylesheets:[admin, default, global] So, if you want not to laod a stylesheet for a module you should create a config dir and

Re: [symfony-users] Re: how to check if a form contains the expected value

2010-12-20 Thread oscar balladares
Thanks ! 2010/12/10 Don_Busi dominik.busin...@gmail.com Hi, I found a solution. The following works fine. $browser- with('response')-begin()- checkElement('input[id=sf_guard_user_last_name] [value=expectedValue]', true)- end(); This page is a good reference about CSS-Selectors:

Re: [symfony-users] The error is not showed in the backend

2010-12-20 Thread oscar balladares
When dev doesnt match prod, you should always clear the chache. php symfony cc If you already did it, please let us know ;) 2010/12/6 Javier Garcia tirengar...@gmail.com Hi, I have these models: user: name: { type: varchar(255) } age: { type: integer } article: title:

Re: [symfony-users] help with symfony chapter 3...data model

2010-12-23 Thread oscar balladares
Of course, feel free to create that directory web/uploads/jobs/ ;) That should gonna make it. 2010/12/22 Wiynn wiynn...@gmail.com in the data model chapter this is explaind but i donot get it The job fixture file references two images. You can download them

Re: [symfony-users] Admin Generator removes sortable headers

2010-12-23 Thread oscar balladares
Yes, you did something wrong for sure. That happened to me but for a foreign related object column. You should give more info to us, may be we can help you to debug it. 2010/12/22 Gandalf ganda...@gmail.com This is probably a bug in your code somewhere. Works for me. On 12/22/10, Scott

[symfony-users] Time investment. Symfony 1.x VS Symfony 2.x

2010-12-23 Thread oscar balladares
Hi everybody! I have a month (almost 2) studying Symfony 1.4. I would appreciate your comments about if I should improve my sf_1.4 skills or move to sf_2.x (I would start from zero) I have read the jobeet tutorial, Forms in action, Doctrine, a gentle introduction to Symfony 1.4. So I have put a

Re: [symfony-users] Re: Time investment. Symfony 1.x VS Symfony 2.x

2010-12-24 Thread oscar balladares
Hi Gabriel, thanks for answering! And Thank you very much Jamie! I will follow your suggestions!!! I have planned to develop some production apps, so I will stick with 1.4. And learn v2.0 in my free time!!! Thanks! Merry Christmas! 2010/12/24 Jamie Hall jstevenh...@gmail.com Gabriel,

Re: [symfony-users] admin login action / stylesheets

2010-12-26 Thread oscar balladares
Did you ... php symfony plugin:publish-assets ? Do it again if you are not sure. 2010/12/25 introvert aljaz.faj...@gmail.com Hello, I followed the Jobeet tutorial. When I implemented the user login part it appears that when I implement this functionality, Symfony won't include the

Re: [symfony-users] admin login action / stylesheets

2010-12-26 Thread oscar balladares
in the configuration? Is there something else I'm missing? Thanks for help On 26 December 2010 20:05, oscar balladares liebegr...@gmail.com wrote: Did you ... php symfony plugin:publish-assets ? Do it again if you are not sure. 2010/12/25 introvert aljaz.faj...@gmail.com Hello, I

Re: [symfony-users] error clearing the cache

2010-12-26 Thread oscar balladares
Last time I got that error (on my local server) was due to Doctrine. It was a poor optimization queries. You should look for recursive queries. 134217728 bytes is good size. Probably apache reaches a high demand of memory due to Doctrine. Try to optimize your code:

Re: [symfony-users] admin login action / stylesheets

2010-12-26 Thread oscar balladares
configuration to set? Thanks in advance On 26 December 2010 23:05, oscar balladares liebegr...@gmail.com wrote: Hoho, Sorry, I didn't realized that it was specific to the login module. Yes, you are right, they won't be included in the login module cause they -- stylesheets -- belong

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

2011-01-10 Thread oscar balladares
Thanks as well 2011/1/10 Tom Boutell t...@punkave.com A further update: login and logout buttons are now implemented, and edit buttons shown only when logged in, thanks to answers from symfony-devs. -- If you want to report a vulnerability issue on symfony, please send it to security

[symfony-users] [Symfony2] Get the current requested bundle's name in the View.

2011-02-21 Thread oscar balladares
Hi everybody. It may sound very weird to ask this question; but what I want to do is to create a custom navigation menu. So I want to get the current requested controller's or bundle's name not from a template but from the layout. I have to write the css class of a li element to highlight te

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 kuzela.al...@gmail.com On 23 ún, 20:56, Christophe COEVOET s...@notk.org wrote: Le 23/02/2011

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 liebegr...@gmail.com A few minutes ago, I found out

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

2011-02-24 Thread oscar balladares
joel.da...@gmail.com Awesome. Thanks for the usefull info. Anybody known if is it possible to use Netbeans IDE with Symfony 2? On 23 fev, 18:22, oscar balladares liebegr...@gmail.com wrote: A few minutes ago, I found out that there is a branch docs for the official PR6 of Symfony

[symfony-users] [symfony2][PR6] Creating Form Fields Automatically AssertType(boolean) doesn't render a checkbox but a Textfield.

2011-02-24 Thread oscar balladares
Hi everybody. Have a nice day. Im following the Form guide from http://docs.symfony-reloaded.org/master/guides/forms/overview.html I have an entity named ContctRequest like this: namespace ...; class ContactRequest { .../*some attributes.. /** * @validation:AssertType(boolean) */

Re: [symfony-users] Main layout in app/ or in a bundle?

2011-02-24 Thread oscar balladares
Another thing to consider, is to put CSS and related stuff under yourApp/web/ dir unless you want to build a selfish (plugin like) bundle; in that case you can put your main Layout and css stuff in the Bundle's dir. 2011/2/24 taidehuone taidehu...@gmail.com Generally you put the main layout in

Re: [symfony-users] Re: [Symfony 2] Adding custom labels to form fields

2011-02-26 Thread oscar balladares
It was actually easy. I also wanted to create custom labels from inside the Form Class. Lol Thanks for tha' tip. 2011/2/26 Jan Eichhorn j...@pixel-web.org Hi, thanks for your help. Thats actually helps a lot. Greets Jan -- If you want to report a vulnerability issue on symfony, please

Re: [symfony-users] Re: [Symfony 2] Adding custom labels to form fields

2011-02-27 Thread oscar balladares
The current way is fine for me. I think Labels should go on the View, and be references through the corresponding field's name. Setting the label inside the Form component is what I hated about Symfony 1.x. Lets say the layout desinger tell us that a label like a UserName (binded to a field named

[symfony-users] Web hosting provider for Symfony 2? What do you recommend?

2011-02-27 Thread oscar balladares
Hi everybody. As everyone knows, PHP 5.3 is not supported by all web hosting providers. I would be happy to hear about your experience and I would like you to recommend to me a good web hosting provider. There are lots cheaps WHP but I know that you get what you paid for. any suggestion?? --

Re: [symfony-users] Re: [Symfony 2] Adding custom labels to form fields

2011-02-28 Thread oscar balladares
In that case, I totally agree! [?] 2011/2/28 Christophe COEVOET s...@notk.org Le 28/02/2011 04:38, oscar balladares a écrit : The current way is fine for me. I think Labels should go on the View, and be references through the corresponding field's name. Setting the label inside the Form

[symfony-users] [symfony2] EntityToIDTransformer and xxxTranformer in PR6

2011-02-28 Thread oscar balladares
Hi everybody. I realize that in PR6 there is no Symfony\Bundle\DoctrineBundle\Form\ package-namespace So it is impossible to me to bind Forms to Entities and flush them into the database. According to Docs, you should use EntityToIDTransformer, CollectionToChoiceTransformer, or so, to be able to

Re: [symfony-users] [symfony2] EntityToIDTransformer and xxxTranformer in PR6

2011-02-28 Thread oscar balladares
day. Im in a rush learning Symfony, all days long untiil the official docs are being released. 2011/2/28 Christophe COEVOET s...@notk.org Le 28/02/2011 22:16, oscar balladares a écrit : Hi everybody. I realize that in PR6 there is no Symfony\Bundle\DoctrineBundle\Form\ package-namespace So

Re: [symfony-users] [symfony2] EntityToIDTransformer and xxxTranformer in PR6

2011-02-28 Thread oscar balladares
Thanks again! 2011/2/28 Christophe COEVOET s...@notk.org Le 28/02/2011 22:32, oscar balladares a écrit : Before anything, thanks a lot... This is amazing, I was covering the guide and I saw the EntityChoiceField, but for some reason I decided to try the Transformers (not the movie Plop

[symfony-users] [Symfony 2]Validation on Form post: AssertsType like int, integer, decimal will always throw an error.

2011-02-28 Thread oscar balladares
Hi everybody. I have an entity which is validated via validation.yml file. Here is an extract of it: Sensio\HelloBundle\Entity\Person: properties: phone: AssertType: integer But this is tricky, because when I submit the form, the AssertType throws me a

Re: [symfony-users] [Symfony 2]Validation on Form post: AssertsType like int, integer, decimal will always throw an error.

2011-02-28 Thread oscar balladares
a different approach, then you could implement your own validator. Having said that, maybe these type validators could validate the coming string with a regex, and then, if it's valid, type cast to the according type? What do you think? Regards. On Mon, Feb 28, 2011 at 9:13 PM, oscar balladares

Re: [symfony-users] Re: ERP development ( SF 1.4 or 2.0 ? )

2011-03-01 Thread oscar balladares
Time will decide. If you have a DeadLine, you should stay with 1.4 If not, (something like a year) you could go with 2.0 I have little time (I mean days not hours) getting involved with 2.0 (about 4 or 5 hours a day) and at the end of this week I feel very confortable with it. You should know

Re: [symfony-users] Re: ERP development ( SF 1.4 or 2.0 ? )

2011-03-01 Thread oscar balladares
Also there is no Admin generator :( ( I didnt like it much anyway hoho) In previous message, I meant: There are NOT good Examples or HowTo for Plugins. 2011/3/1 oscar balladares liebegr...@gmail.com Time will decide. If you have a DeadLine, you should stay with 1.4 If not, (something like

Re: [symfony-users] a total newie question

2011-03-01 Thread oscar balladares
Hehe, you fell into the Slides trick. I had that same feeling, but if you follow the tutorial you will reach to some point where you will see the expected results. If you look carefully, you will see the jobs indexes that also are links. If you hit the link you will be redirected to de edit

Re: [symfony-users] strating with symfony2 step by step

2011-03-02 Thread oscar balladares
If you have have previous experience with Symfony 1.x you should have some pre concepts and expect some behaviours; it will help a lot. Doctrine is one of the hardest; you have to complement a lot with the official Doctrine docs. About Doctrine 2.0 I would recommed the getting started tutorial

Re: [symfony-users] [Symfony2] Base table or view not found error: Doctrine and case-sensitive table names

2011-03-02 Thread oscar balladares
Hi. I'm on a Unix like machine (Fedora Linux) and I never ran into that problem. I would say it is some sort of Doctrine bug. You should post on a Doctrine mailing list; they should know more about it. 2011/3/2 Gustavo Adrian comfortablynum...@gmail.com Did you tried to force the table name to

Re: [symfony-users] [Sf2] doctrine:schema:create

2011-03-02 Thread oscar balladares
Hi. This is my configuration, and might help: app/config.yml doctrine.dbal: driver: pdo_mysql dbname: Symfony2 user: root password: secret doctrine.orm: auto_generate_proxy_classes: %kernel.debug% mappings: HelloBundle: ~ Then, I map my User entity,

Re: [symfony-users] [Symfony 2] A way to load fixtures in a user defined order, taking into account associations?

2011-03-02 Thread oscar balladares
Good tip. I will tag this. 2011/3/2 Gustavo Adrian comfortablynum...@gmail.com Great! I didn't know it was a new interface for this. I'll give it a try now. Thanks a lot guys! On Wed, Mar 2, 2011 at 3:08 PM, Christophe COEVOET s...@notk.org wrote: Le 02/03/2011 19:06, Alex Pilon a écrit

Re: [symfony-users] [Sf2] doctrine:schema:create

2011-03-02 Thread oscar balladares
Sensio\Entity I meant Sensio\HelloBundle\Entity. [?] 2011/3/2 oscar balladares liebegr...@gmail.com Hi. This is my configuration, and might help: app/config.yml doctrine.dbal: driver: pdo_mysql dbname: Symfony2 user: root password: secret doctrine.orm

Re: [symfony-users] Integration of external PHP code in Symfony

2011-03-02 Thread oscar balladares
Symfony handle it very well. If you have third party code, you should put it in yourProjectName/lib directory. Thanks to the autoloader, Smyfony will scan for new classes inside that dir. You only have to simple reference a class on any controller. for expamle a class named Math; in a

Re: [symfony-users] Re: strating with symfony2 step by step

2011-03-03 Thread oscar balladares
a project with the necessary files? Thanks On 3 mar, 03:53, oscar balladares liebegr...@gmail.com wrote: If you have have previous experience with Symfony 1.x you should have some pre concepts and expect some behaviours; it will help a lot. Doctrine is one of the hardest; you have

Re: [symfony-users] Error:Call member function getDescription() in non object

2011-03-03 Thread oscar balladares
Do you have studentdocuments records on DB? Are you using Propel, right? Doctrine's defaults behavior is to return an empty array intance if database has no records; I don't know if Propel does that. If you tries to iterate (foreach) a non array instance variable you will get that error for

Re: [symfony-users] mysql_real_escape_string

2011-03-03 Thread oscar balladares
That function is meant to avoid html/sql injection. Symfony/Doctrine handles that by default. Alex is right, try out Jobeet tutorial. There are some guides that describes how to accept raw input data instead of escaping it. I can't remember the name of the guides, sorry. 2011/3/3 Alex Pilon

Re: [symfony-users] Re: Integration of external PHP code in Symfony

2011-03-04 Thread oscar balladares
then that 3rd party call, as long as it's organized into classes, should be easy to integrate... right? Saludos! Pablo On Mar 3, 2:35 am, oscar balladares liebegr...@gmail.com wrote: Symfony handle it very well. If you have third party code, you should put it in yourProjectName/lib

Re: [symfony-users] [symfony2, PR7] customizing validation messages for form fields

2011-03-08 Thread oscar balladares
Hi. If you are using a YML file, remember to override the message property. For example: someColumName: AssertType: type: Integer message: { This value must be an integer } If you have read the validation documentation you should get the idea :D Sorry, I

Re: [symfony-users] Symfony always redirects to https

2011-03-08 Thread oscar balladares
I totally agree with Gareth. When configuring apache to work with SSL; it will automatically redirects any request - under the SSL domain e.g jobeet.com - to https protocol. 2011/3/8 Gareth McCumskey gmccums...@gmail.com Eliminate the likely candidates: 1. Problem happens on one machine and

Re: [symfony-users] Problem with Jobeet Catagories

2011-03-10 Thread oscar balladares
Hi. What about showing your code? [?] 2011/3/9 Neve12ende12 neve12end...@cablemo.net I am having a problem with the catagories in the jobeet page. When I have more than one job in a catagory, my IndexSuccess page decides to display that catagory = to the number of jobs in that catagory.

Re: [symfony-users] Re: DoctrineBundle no longer recognized my DBAL config

2011-03-11 Thread oscar balladares
It is a shame that Docs are not sync with the changes. Thanks for the tip, I was about to start playing with PR7. 2011/3/11 Justin Fortier justfort...@gmail.com Thanks for the quick response, I didn't realize there was short/long syntax. I'm guessing this was done to standardize the

Re: [symfony-users] Re: DoctrineBundle no longer recognized my DBAL config

2011-03-11 Thread oscar balladares
Oh! I didnt know, thanks for the tip. I'll look after that repo [?] 2011/3/11 Christophe COEVOET s...@notk.org Le 11/03/2011 23:33, oscar balladares a écrit : It is a shame that Docs are not sync with the changes. Thanks for the tip, I was about to start playing with PR7. The symfony

Re: [symfony-users] Symfony Project - Linux

2011-03-12 Thread oscar balladares
Hi. You can look for installing symfony on shared hosting on Saint Google.. There is a chapter that describes how to solve that issue on this page http://www.symfony-project.org/book/1_0/03-running-symfony In resume, if you don't have access to httpd.conf at all, you have to create a index.php

Re: [symfony-users] Re: Symfony2 Doctrine2 cheat sheets Released

2011-03-24 Thread oscar balladares
5 out 5 2011/3/24 coolmec33 ezziani.cha...@gmail.com Hello, thank you for this amazing work.. :) On 24 mar, 17:04, Tristan Bessoussa tristan.bessou...@gmail.com wrote: Thank you, i'll pass the message @vincent_elao tomorrow at my office ;) Glad you'll use it. Le 24/03/2011

Re: [symfony-users] Symfony2 slow on windows (xp)

2011-03-24 Thread oscar balladares
Gedit out of the box is as good as notepad++. Gedit + plugins is way better than notepad++. Of course, they are like in the same weight. (like boxing). You also can try Aptana (based on Eclipse, Im starting to love it more than Netbeans). And if you are looking for the fastest/lighter IDE for

[symfony-users] [Symfony2] Redirect to especific route after login (_security_check)

2011-03-26 Thread oscar balladares
Hi everybody. [?] I want to redirect a user to an especific route after login/authentication according to his roles. I'm aware that Symfony2 authenticates users through _securty_check route and it does't require you to write a securityCheckAction() controller; also, if you request something like

Re: [symfony-users] [Symfony2] is_granted() results in error when not logged in

2011-03-27 Thread oscar balladares
Hi. Im using 'IS_AUTHENTICATED_FULLY' instead of 'IS_AUTHENTICATED_REMEMBERED' On PR8. 2011/3/27 Dennis Jacobfeuerborn djacobfeuerb...@gmail.com Hi, I'm trying to display a logout button in the header of the page but only if the user is logged in. Looking at the docs and the UserBundle on

Re: [symfony-users] Symfony users Group

2011-03-28 Thread oscar balladares
Welcome [?] 2011/3/25 Alfonso Martínez Arias fonsyma.poke...@gmail.com Congrats, for a excelent work. I would like to form a part of this group. Thank you. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this

Re: [symfony-users] Re: Redirect to especific route after login (_security_check)

2011-03-28 Thread oscar balladares
-tutorial-part-v-intro-to-security/ On Mar 26, 10:34 pm, oscar balladares liebegr...@gmail.com wrote: Hi everybody. [?] I want to redirect a user to an especific route after login/authentication according to his roles. I'm aware that Symfony2 authenticates users through _securty_check

Re: [symfony-users] [Symfony2] is_granted() results in error when not logged in

2011-03-28 Thread oscar balladares
Maybe you haven't set your security.yml properly? Here is mine, hope this help: security: encoders: Comercio\PulperiaBundle\Entity\Cliente: algorithm: sha512 encode-as-base64: true iterations: 10 providers: main: entity: {

Re: [symfony-users] Re: Newcomer: start symfony1 or Symfony2?

2011-03-28 Thread oscar balladares
+1 Symfony2. If you start studying hard, you could easily get the necessary knowledge in 1 month. I suggest 3 hours a day at least. To help you out deciding, I must remark some point: S1 has some good features like generating forms, and CRUD files and directories in one command (you have to

Re: [symfony-users] [symfony2] MediaBundle installation

2011-03-28 Thread oscar balladares
+1 Thomas' answer 2011/3/28 Thomas Rabaix thomas.rab...@gmail.com On 27 mars 2011, at 11:12, seven seven wrote: Hello everyone, I must say that this might be a stupid question, but I am stuck with installing MediaBundle in Symfony2. I am using xampp on windows7 and Cygwin as

Re: [symfony-users] doctrine:generate:entities duplicates entity file

2011-03-28 Thread oscar balladares
I have the same issue. In the old days (S1) you had to extend the base entity class, so when regenerating/updating your schema, your custom code remained intact. Now, if you regenerate the entity, it will append the new code to the end of the file. I hate it, but it is ok for me now. 2011/3/28

Re: [symfony-users] doctrine:generate:entities duplicates entity file

2011-03-28 Thread oscar balladares
About your issue, that is a unix behaviour, the ~user.php file is a backup file. I get those ~*.* files whenever I delete a file. 2011/3/28 oscar balladares liebegr...@gmail.com I have the same issue. In the old days (S1) you had to extend the base entity class, so when regenerating

Re: [symfony-users] Would be a simple admin - relational databases

2011-03-28 Thread oscar balladares
I didn't get you [?] Do you need the schema for that database requirements? or do you need the code to do it so in the admin application? 2011/3/25 PM tommymo...@gmail.com Hi, I'm new at symfony and im trying to do an admin that, besides the creation/edition/deletion of data for the main

Re: [symfony-users] Php notice in abstactToken.php

2011-03-28 Thread oscar balladares
Notice are not errror, nor Warnings The severity level is very low, it is not even something that would break your project. Just check that you have uncoment the notice display commented in your php.ini If errors and warining and notices are not configured to be displayed in your php.ini then

Re: [symfony-users] [Symfony2] is_granted() results in error when not logged in

2011-03-28 Thread oscar balladares
Is it maybe due to ACL heriarchy ? I suggest you to try to inverse the ACL like: access_control: - { path: /.*, roles: ROLE_USER } - { path: /login, roles: IS_AUTHENTICATED_ANONYMOUSLY } What I notice is that /*. match /login so they collide. 2011/3/28 Dennis Jacobfeuerborn

[symfony-users] [symfony2] link_for() /put/delete on twig views??

2011-03-28 Thread oscar balladares
Hi everyone. [?] I would like to implement something like the url_for() helper of S1 on S2. I've been reading Twig docs, they have macros to declare some functions, I could easily implement one to achieve a a/a tag with Javascript embedded to simulate a PUT/DELETE button. But on S1, the

Re: [symfony-users] Symfony2 authentication with User Entity

2011-03-28 Thread oscar balladares
Hi, this is the best security tutorial for S2 I have read. http://www.dobervich.com/2011/03/21/symfony2-blog-application-tutorial-part-v-intro-to-security/ 2011/3/23 Vincent Lechemin vincent.leche...@gmail.com Hi, On Wed, Mar 23, 2011 at 4:34 PM, Sergi sergi.arger...@gmail.com wrote:

Re: [symfony-users] [Symfony2] is_granted() results in error when not logged in

2011-03-28 Thread oscar balladares
What about removing the login path?? access_control: - { path: /login, roles: IS_AUTHENTICATED_ANONYMOUSLY } Symfony should grant anonymous access to the login path by default. Im interested in this issue, I think this is a common escenario like making the site's homepage, the

Re: [symfony-users] Re: link_for() /put/delete on twig views??

2011-03-28 Thread oscar balladares
: /my/route/{some_param} You'd do something like this: path('my_route, { 'some_param': xxx }) Roger On Mar 28, 4:59 pm, oscar balladares liebegr...@gmail.com wrote: Hi everyone. [?] I would like to implement something like the url_for() helper of S1 on S2. I've been reading Twig

Re: [symfony-users] [Symfony2] is_granted() results in error when not logged in

2011-03-28 Thread oscar balladares
Good tip. I'll save it for further implementations. Regards. 2011/3/28 Dennis Jacobfeuerborn djacobfeuerb...@gmail.com The problem was the security: false for the login firewall. This allows the user to visit the login page but because no security context is established you cannot use

Re: [symfony-users] Re: Injecting routes with parameters into javascript

2011-03-29 Thread oscar balladares
I need to be able to do that too. I'm looking for an Javascript based button. Actually it is an a tag that on its OnClick event triggered it will send an embedded post Form with the value of the Id of an X object to be handled in an Controller (for example something llike the link_to button in

Re: [symfony-users] shows only id not the name-string

2011-03-29 Thread oscar balladares
I recommend you to follow the Jobeet tutorial for S1.4 and Doctrine. It would have answered your question. public function __toString() { return $this-name; } 2011/3/29 Gábor Fási maerl...@gmail.com Create the __toString() function in your City class. On Tue, Mar 29, 2011 at 19:42, -Jab-

[symfony-users] [Symfony2] link_to() helper for Symfony2???

2011-03-30 Thread oscar balladares
Hi everybody [?] I need the functionallity of the link_to() helper. It generates a link tag when clicked it triggers an Onclick event that submit an embbeded form which is similar to: a href='#' onclick=if (confirm('Are you sure?')) { var f = document.createElement('form'); f.style.display

Re: [symfony-users] [Symfony2] I ~think I found a bug. I need your advice before submitting the issue.

2011-04-01 Thread oscar balladares
. Regards.! 2011/3/31 Fabien Potencier fabien.potenc...@symfony-project.com On 4/1/11 3:09 AM, oscar balladares wrote: Hi everybody, as I mentioned I think I found a bug in the Request component. Before submitting the issue I need you to confirm or advice me if this is really a bug

Re: [symfony-users] Re: How to extend from an app's template now?

2011-04-01 Thread oscar balladares
Hi. you might want to download the SE PR9 and import your bundle, anyway bundles are meant to be able to hook up very easily. I'm using PR9 and base.html.twig is in app/Resources/views and is working. Saludos. 2011/4/1 Gustavo Adrian comfortablynum...@gmail.com Yes, I cleared the cache and

Re: [symfony-users] Re: [Symfony 2] Embedding Controller to Template

2011-04-01 Thread oscar balladares
Hi nerdess. If you want to return a string from a controller instead returning a twig template you should: return new Response('HI, Im a string'); Also you have to: use Symfony\Component\HttpFoundation\Response; in the imports of the controller. 2011/4/1 nerdess sylvia.adam...@gmail.com

[symfony-users] [Symfony2] Return a 303 status (or any other) with RedirectResponse();

2011-04-03 Thread oscar balladares
Hi everybody [?] I'm working with Ajax. I have a html list with, for example 2 rows, and they can be removed via Ajax. If 1 row is removed, the Controller will return the updated list. And if the last row is removed, the Controller will return a RedirectResponse() to the homepage instead. The

Re: [symfony-users] [Symfony2] Return a 303 status (or any other) with RedirectResponse();

2011-04-03 Thread oscar balladares
Thank you both very much.! 2011/4/3 Jordi Boggiano j.boggi...@seld.be On 03.04.2011 20:17, Christophe COEVOET wrote: Le 03/04/2011 20:09, oscar balladares a écrit : Hi everybody I'm working with Ajax. I have a html list with, for example 2 rows, and they can be removed via Ajax

Re: [symfony-users] [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-04 Thread oscar balladares
Hi. Did you define the route for login_check? #app/config/routing.yml _security_login: pattern: /login defaults: { _controller: YourBundle:Security:login } _security_check: pattern: /login_check _security_logout: pattern: /logout 2011/4/4 Dennis Jacobfeuerborn

Re: [symfony-users] Re: The Hello Symfony! Page - Documentation

2011-04-04 Thread oscar balladares
Hi. I should add that Symfony2 is still in Preview Release state, not even Beta. So confusing is expected. I've been following the S2 development since PR6 so for me (and for many more) It hasn't be that hard to keep up. I'm pretty sure that S2 will come along with high quality docs when stable

Re: [symfony-users] autentication problem

2011-04-05 Thread oscar balladares
Hi. This is a great S2 security tutorial. It should fill your needs. http://www.dobervich.com/2011/03/21/symfony2-blog-application-tutorial-part-v-intro-to-security/ 2011/4/2 bitgandtter yasman...@gmail.com first i´m really new in symfony 2.0. I am developing an application using symfony

Re: [symfony-users] Re: [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-05 Thread oscar balladares
? On 5 Apr., 07:14, oscar balladares liebegr...@gmail.com wrote: Hi. Did you define the route for login_check? #app/config/routing.yml _security_login: pattern: /login defaults: { _controller: YourBundle:Security:login } _security_check: pattern: /login_check

Re: Re : [symfony-users] Re: [Symfony2] PR8-current: Unable to find the controller for path /login_check

2011-04-05 Thread oscar balladares
Just what I said. There must be a route defined for _security_check As Tim Nagel pointed. 2011/4/5 mamadou aliou diallo bobova...@yahoo.fr hello, i receive too many email from this group ... how can i stop that? regards. Mamadou Aliou Bobo Diallo -- *De :*

Re: [symfony-users] The CSRF token is invalid. Please try to resubmit the form

2011-04-05 Thread oscar balladares
You must render the hiddens fields. twig: form {{ form_hidden(form) }} . input type='submit' / /form 2011/4/5 symfonyMan ezziani.cha...@gmail.com Hello, i got this error when i try to submit my form. The CSRF token is invalid. Please try to resubmit the form it worked good in

Re: [symfony-users] The CSRF token is invalid. Please try to resubmit the form

2011-04-05 Thread oscar balladares
the hidden fields. Hope this solve your issue. Regards! 2011/4/5 oscar balladares liebegr...@gmail.com You must render the hiddens fields. twig: form {{ form_hidden(form) }} . input type='submit' / /form 2011/4/5 symfonyMan ezziani.cha...@gmail.com Hello, i got this error when

Re: [symfony-users] Errors in Creating pages in Symfony 2 chapter of the book

2011-04-06 Thread oscar balladares
Hi. May be they won't pay attention to the ticket as documentation is always changing. Posting it here is the best way. Regards! 2011/4/5 Mike Angstadt mike.angst...@gmail.com Hi all, I found some errors in the Creating pages in Symfony 2 chapter of the documentation

Re: [symfony-users] Symfony2 and Netbeans

2011-04-07 Thread oscar balladares
As far as I know there is no support for S2 in Netbeans. The file you are liooking for is ~/app/console Regards. 2011/4/7 JC julio.castillo.2...@gmail.com where did data/bin/symfony file go? It is required by NetBeans as part of the Symfony/Tools setup. It was there and assumed to be there

Re: [symfony-users] Re: ajax in symfony 2

2011-04-14 Thread oscar balladares
With JQuery you can request Marc's controller's route. That should do the trick. 2011/4/14 Marc MacLeod marbe...@gmail.com In your controller: public function fooAction() { // Is this an ajax request? if ($this-container-get('request')-isXmlHttpRequest()) {

Re: [symfony-users] Re: ajax in symfony 2

2011-04-14 Thread oscar balladares
The controller should return a template response, a common template (without inheritance of course) 2011/4/14 oscar balladares liebegr...@gmail.com With JQuery you can request Marc's controller's route. That should do the trick. 2011/4/14 Marc MacLeod marbe...@gmail.com In your controller

Re: [symfony-users] __check_login controller should return a response

2011-04-14 Thread oscar balladares
Hi. What about if you show us your code? Magic would be if we could help you out without one line of your code. [?] 2011/4/11 Yasmany Cubela Medina yasman...@gmail.com hi, i read every day all mesages in this mail list search for a solution to this error, many have the same problem and find

Re: [symfony-users] Re: ajax in symfony 2

2011-04-16 Thread oscar balladares
symfonyMan ezziani.cha...@gmail.com Hello, thanks for all this responses. the controller must return a template ? Me, I need ajax just for validate email, and print ok next to the email field... sorry i have a bad english :) thnaks On 15 avr, 00:12, oscar balladares liebegr...@gmail.com

Re: [symfony-users] twig check for array field existence

2011-04-16 Thread oscar balladares
Hi. You must use the 'length' filter: {{ entry|length }} That must do the trick. 2011/4/13 David Buchmann david.buchm...@liip.ch hi, for a symfony2 project, i use twig. i have a template that outputs a tree (nested php array) what i try to do is: check if there is a 'children' field on

Re: [symfony-users] [Symfony2] validation of runtime generated object properties / dynamic forms

2011-04-16 Thread oscar balladares
I want to do the same. Any help??? 2011/4/16 Holger holger.k...@100days.de Hi all, what I'm trying to achieve is to create fully dynamic forms out of a yaml config. The generation of the form-object itself should not be a problem utilizing Form::add(FieldType) according to the yaml config.

[symfony-users] [Symfony2] The S2 blog is not being updated!!!

2011-04-17 Thread oscar balladares
:'( Anybody knows when 'A week of Symfony' is going to be updated?? I really enjoy reading it!!! -- 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

[symfony-users] [Symfony2] PR11, DemoBundle error 'The controller must return a response ([array]() given)'

2011-04-18 Thread oscar balladares
Hi, I've just downloaded the PR11. When running the demo (when clicking the 'run the demo' button link) an error is trhown: The controller must return a response ([array]() given) Looking at the controller I found: /** * @extra:Route(/, name=_demo) * @extra:Template() */

Re: [symfony-users] Re: ajax in symfony 2

2011-04-19 Thread oscar balladares
(), .get()...) but il my ajaxAction, this test is skipped : (not an XMLHttpRequest()) if ($this-container-get('request')-isXmlHttpRequest()) { //some code here } i want to validate the email input (onblur) thanks ;) On 16 avr, 19:20, oscar balladares liebegr

[symfony-users] [Symfony2] unit testing entity repositories.

2011-04-26 Thread oscar balladares
Hi everybody. I've been searching how to test methods related to database functionality. I've found nothing on Doctrine 2 docs, nor PHPUnit docs, just some PDO basics. Can someone please point me the right direction??? I appreciate any kind of help! Regards! -- If you want to report a

  1   2   >