[symfony-users] Bitwise Criteria's

2009-04-29 Thread Gareth McCumskey
Hi all, I need the great minds that populate this liust to assist me with a small dilema. We currently use an integer field that stores a range of values as a bitwise number depending on certain criteria of an item stored in the db. What we want to do now is write a sql query like: SELECT

[symfony-users] Implementing email login with sfGuardPlugin

2009-04-29 Thread Sid Bachtiar
Hi all, For those who might be interested, I wrote an article about and step by step on how to implement email login with sfGuardPlugin (as opposed to using username). http://bluehorn.co.nz/2009/04/29/implementing-email-login-with-sfguardplugin/ Peace, Sid

[symfony-users] Re: Updating the session in a cached action

2009-04-29 Thread Thomas Rabaix
Hello, I just have no time to write the documentation, I have posted some information on my blog. Some features are not fully tested and might change with no notice. On Tue, Apr 28, 2009 at 12:43 AM, Richtermeister nex...@gmail.com wrote: Hey Thomas, just curious, I have not come across

[symfony-users] About Doctrine create object and insert records too slow

2009-04-29 Thread Tadas
Hello symfony users :) , I just started use off symfony framework and very great work I would say, but... I have some performance issue when inserting more than 1000 records to database it very too long!!! I just tested from Doctrine created object: public function executeGo(sfWebRequest

[symfony-users] sfGuardPlugin fatal error

2009-04-29 Thread Pierre Lecocq
Hello people, I have a problem with the sfGuardPlugin. I installed it successfully, I plaed with its default version without any problem. But I wanted to customize it. In the documentation (readme of the plugin), it is written that if we want to change configuration / actions / templates, we

[symfony-users] Re: sfGuardPlugin fatal error

2009-04-29 Thread Steve the Canuck
The name of your module should be sfGuardAuth, not sfGuardUser. Your module effectively overrides the sfGuardPlugin's version, so it needs to follow exactly the same directory structure as the plugin's. On Apr 29, 6:08 am, Pierre Lecocq pierre.lec...@gmail.com wrote: Hello people, I have a

[symfony-users] application exceptions

2009-04-29 Thread Steve the Canuck
I haven't been able to find out much from the documentation regarding how to throw exceptions in my code and how Symfony will deal with them. I'm not talking about 404 errors and stuff, I know how to handle those. But I have some cases where I encounter exception conditions in my business logic

[symfony-users] Remove js and css from view?

2009-04-29 Thread Mark Smith
I don't want to use my layout for one of my actions. I am doing $this- setLayout(false) in the action. And that has stopped it from parsing layout.php However all my style sheets and javascripts are still being added. How do I stop this? Thanks for any help.

[symfony-users] Re: sfGuardPlugin fatal error

2009-04-29 Thread Pierre Lecocq
All right, I will try this. Thanks a lot for your answer. On Apr 29, 3:22 pm, Steve the Canuck steve.san...@gmail.com wrote: The name of your module should be sfGuardAuth, not sfGuardUser.  Your module effectively overrides the sfGuardPlugin's version, so it needs to follow exactly the same

[symfony-users] Re: Remove js and css from view?

2009-04-29 Thread Alexandru-Emil Lupu
in your module/config/view.yml set yourActionSuccess: has_layout: off or has_layout: false On Wed, Apr 29, 2009 at 5:02 PM, Mark Smith marksmith5...@jungle-monkey.com wrote: I don't want to use my layout for one of my actions. I am doing $this- setLayout(false) in the action.

[symfony-users] Re: Remove js and css from view?

2009-04-29 Thread Jacob Coby
$this-getResponse()-removeJavascript() and removeStylesheet(). Or put a '-' in front of the javascript and css files you want to omit in your view.yml for that action. There might be a better way but it's hard to tell what you're trying to accomplish from your email. On Apr 29, 2009, at

[symfony-users] Re: Remove js and css from view?

2009-04-29 Thread Mark Smith
Thanks both for your replies. To answer your question I am trying to write an action to make looking up help content easier. The plan is to have a bunch of HTML fragments in static files to allow looking up help to be displayed in context, either as ajax tooltips, or popups. For both of these

[symfony-users] Re: Seem like 1.2.6 breaks embedForm in Admin Generator

2009-04-29 Thread virtualize
Thanks for your answer. Your suggestion is exacly what I do right now. Shall I open a ticket for this issue? --~--~-~--~~~---~--~~ 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: Remove js and css from view?

2009-04-29 Thread Jacob Coby
On Apr 29, 2009, at 10:25 AM, Mark Smith wrote: Thanks both for your replies. To answer your question I am trying to write an action to make looking up help content easier. The plan is to have a bunch of HTML fragments in static files to allow looking up help to be displayed in context,

[symfony-users] After reload setFlash() doesn't work!

2009-04-29 Thread Konrad
Hi. The problem is method setFlash is not setting variable again after use. Little scenario: request test1 __redirect test2 reload test2 __404 ( witch is wrong, i think) (see comments) class testActions extends sfActions { public function executeTest1(sfWebRequest $request) {

[symfony-users] Prevent partial to be cached

2009-04-29 Thread Ahmed
I have a dynamic menu Managed since the backoffice, I put this menu in a partial. My question is how to prevent this partial to be cached so that modifs will be immediate ? Thanks . --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

[symfony-users] Re: Prevent partial to be cached

2009-04-29 Thread Miloslav Kmeť
make a config file cache.yml in your module where the partial is placed with content: _partial_name: enabled: false 2009/4/29 Ahmed ghaliano2...@gmail.com: I have a dynamic menu Managed since the backoffice, I put this menu in a partial. My question is how to prevent this partial to be

[symfony-users] Doctrine 1.1 migrations.

2009-04-29 Thread Jack
Hi. I would like to use the new feature for Doctrine migrations (diff). Since changing the doctrine lib does not change the plugin, the tasks don`t get updated. I am wondering, is there a sfDoctrineGenerateMigrationsDiffTask.php file somewhere i could add to my project, or a sfDoctrinePlugin 1.1

[symfony-users] Re: Bitwise Criteria's

2009-04-29 Thread Gareth McCumskey
If you used just integers then you wouldn't be able to work backwards from the totalled number. For example: - is_low_socring = 1 - is_high_scoring = 2 - is_virus = 3 - is_badcontent = 4 If I had something that was just bad content it would be a 4. But If I had something that was low_scoring and

[symfony-users] Re: Bitwise Criteria's

2009-04-29 Thread Gareth McCumskey
I will give that a spin thanks. I wasn't sure if that would actually work as PHP's negation operator is in fact ! ... but I'll try both. GOt a little side tracked after I sent the original post with another problem On Wed, Apr 29, 2009 at 11:28 PM, Konrad konrad.nowi...@gmail.com wrote: Hi.

[symfony-users] Custom form

2009-04-29 Thread alessandro
Hi all, I'm building a website where there is a Services section. My client asked me the possibility to have a form for requesting services customized for each different service. How can I do that? Thanks --~--~-~--~~~---~--~~ You received this message because

[symfony-users] Re: Custom form

2009-04-29 Thread Paolo Mainardi
On Thu, Apr 30, 2009 at 12:26 AM, alessandro alessandro.dimag...@gmail.comwrote: Hi all, I'm building a website where there is a Services section. My client asked me the possibility to have a form for requesting services customized for each different service. How can I do that? Thanks

[symfony-users] Re: Custom form

2009-04-29 Thread Sid Bachtiar
Are you asking how to create custom form class? What Symfony version? I think these are all in the documentation. On Thu, Apr 30, 2009 at 10:26 AM, alessandro alessandro.dimag...@gmail.com wrote: Hi all, I'm building a website where there is a Services section. My client asked me the

[symfony-users] Re: Custom form

2009-04-29 Thread Sid Bachtiar
Hi Paolo, So true! hehe But I think we should be a little bit nicer as a community :) On Thu, Apr 30, 2009 at 10:31 AM, Paolo Mainardi paolomaina...@gmail.com wrote: On Thu, Apr 30, 2009 at 12:26 AM, alessandro alessandro.dimag...@gmail.com wrote: Hi all, I'm building a website where

[symfony-users] Re: Custom form

2009-04-29 Thread alessandro
symfony 1.0 On Apr 30, 12:50 am, Sid Bachtiar sid.bacht...@gmail.com wrote: Are you asking how to create custom form class? What Symfony version? I think these are all in the documentation. On Thu, Apr 30, 2009 at 10:26 AM, alessandro alessandro.dimag...@gmail.com wrote: Hi all,

[symfony-users] Re: Custom form

2009-04-29 Thread Paolo Mainardi
On Thu, Apr 30, 2009 at 12:53 AM, alessandro alessandro.dimag...@gmail.comwrote: symfony 1.0 Ciao Alessandro, http://www.symfony-project.org/book/1_0/ This is the bible of Symfony ;) On Apr 30, 12:50 am, Sid Bachtiar sid.bacht...@gmail.com wrote: Are you asking how to create custom

[symfony-users] Re: Custom form

2009-04-29 Thread alessandro
Precisely my doubt is: how can I attach a custom form to every new service? Should I let my customer insert something like field type, field name, ecc, store it into database and then create the form int the view with a component? thanks On Apr 30, 12:50 am, Sid Bachtiar sid.bacht...@gmail.com

[symfony-users] Re: Custom form

2009-04-29 Thread alessandro
Precisely my doubt is: how can I attach a custom form to every new service? Should I let my customer insert something like field type, field name, ecc, store it into database and then create the form int the view with a component? thanks On Apr 30, 12:50 am, Sid Bachtiar sid.bacht...@gmail.com

[symfony-users] Re: Custom form

2009-04-29 Thread Paolo Mainardi
On Thu, Apr 30, 2009 at 12:59 AM, alessandro alessandro.dimag...@gmail.comwrote: Precisely my doubt is: how can I attach a custom form to every new service? Should I let my customer insert something like field type, field name, ecc, store it into database and then create the form int the

[symfony-users] Re: Custom form

2009-04-29 Thread alessandro
what would you do in my case? On Apr 30, 1:02 am, Paolo Mainardi paolomaina...@gmail.com wrote: On Thu, Apr 30, 2009 at 12:59 AM, alessandro alessandro.dimag...@gmail.comwrote: Precisely my doubt is: how can I attach a custom form to every new service? Should I let my customer insert

[symfony-users] Re: Custom form

2009-04-29 Thread Paolo Mainardi
On Thu, Apr 30, 2009 at 1:12 AM, alessandro alessandro.dimag...@gmail.comwrote: what would you do in my case? Mmmh...probably a good reading of documentation :P On Apr 30, 1:02 am, Paolo Mainardi paolomaina...@gmail.com wrote: On Thu, Apr 30, 2009 at 12:59 AM, alessandro

[symfony-users] Re: Custom form

2009-04-29 Thread Sid Bachtiar
Should I let my customer insert something like field type, field name, ecc, store it into database and then create the form int the view with a component? I think this is a good solution. And it is not that hard to implement with Symfony 1.0. On Thu, Apr 30, 2009 at 11:12 AM, alessandro

[symfony-users] Re: Custom form

2009-04-29 Thread alessandro
ok guys, are you here to help people or what? Anyway I'm not asking you how the code, I'm just trying to understand how to put fields information in the database, if it is the best way or if there is a better solution. On Apr 30, 1:14 am, Sid Bachtiar sid.bacht...@gmail.com wrote: Should I

[symfony-users] Re: Custom form

2009-04-29 Thread Paolo Mainardi
On Thu, Apr 30, 2009 at 1:19 AM, alessandro alessandro.dimag...@gmail.comwrote: ok guys, are you here to help people or what? Anyway I'm not asking you how the code, I'm just trying to understand how to put fields information in the database, if it is the best way or if there is a better

[symfony-users] Re: Custom form

2009-04-29 Thread alessandro
Thanks Sid. There's not much to know about this project... is a simple website with few particular features in the backend side... I asked your opinion because I always try to implement the cleanest way instead of doing something that just simply does the work. I have another doubt now... as

[symfony-users] Re: application exceptions

2009-04-29 Thread Richtermeister
Hey Steve, as a general rule, any exception (even a normal php exception) that you throw from within your code will ultimately be caught by symfony and displays either an error 500 or a stacktrace (in dev mode), UNLESS you catch the exception within your own code first. Creating your own

[symfony-users] Re: Bitwise Criteria's

2009-04-29 Thread Richtermeister
Hi Gareth, thanks for the explanation. The part about the 1, 2, 4, 8 step I get.. but to me those would still be integers.. albeit not continuous. I guess I am just not familiar with the bit datatype and how it is used. If you don't mind me asking, what database storage type does this use?

[symfony-users] Re: Custom form

2009-04-29 Thread Sid Bachtiar
Hi alessandro, it's rarely simple for other people not working in your project who doesn't even know what the website is for. For example: What is this service you're talking about? What are the fields in it? On Thu, Apr 30, 2009 at 11:35 AM, alessandro alessandro.dimag...@gmail.com wrote:

[symfony-users] Re: Bitwise Criteria's

2009-04-29 Thread Gareth McCumskey
It uses an integer type, or tiny int if you will not be using many types. The bitwise operations don't need any specific type. If you want more info there is a nice little tutorial at http://www.litfuel.net/tutorials/bitwise.htm . That should explain better. Perhaps another small example here

[symfony-users] Re: Bitwise Criteria's

2009-04-29 Thread Gareth McCumskey
Oh yes and per your original question .. the Criteria:BINARY_AND is a way to tell your database to do a bitwise comparison. In SQL that would be (not ) just like in PHP. On Thu, Apr 30, 2009 at 7:45 AM, Gareth McCumskey gmccums...@gmail.comwrote: It uses an integer type, or tiny int if you