Re: [symfony-users] How to properly override Doctrine_Record::delete()?

2010-02-08 Thread Thomas Rabaix
You should use preDelete and postDelete methods. class YouModel extends BaseModel { public function postDelete() { // no your code // ex: unlink($this-file) } } On Sat, Feb 6, 2010 at 9:54 AM, Absalón Valdés absal...@gmail.com wrote: hi. you can use a event handler adn the catch

[symfony-users] Re: Memory Leak using Doctrine in Tasks?

2010-02-08 Thread Matt Robinson
On Feb 2, 7:59 pm, Brandon Turner btur...@bltweb.net wrote: In the meantime, you could set up a new environment and disable the profiler in that environment.  This can be done in your databases.yml by adding param: profiler: false.   Great tip Brandon. I've modified it slightly - I set

[symfony-users] link_to2 and query_string

2010-02-08 Thread HiDDeN
I have this route: category_listing_pag: url: /:slug/:num_products_page/:page.html class: sfDoctrineRoute param: { module: listing, action: category } options: { model: Category, type: object } And I'm trying to display this link: ?php echo link_to('Previous',

[symfony-users] Changing group title in admin generator edit view

2010-02-08 Thread axel at
hello, how can I change the displayed group title from an admin generated edit view: form: fields: display: NONE: [a,b,c] Group1: [x,y,z ] Group2: [u,v,w ] from eg Group1: special i18n title with öüß -- You received this message because you

[symfony-users] Functional tests for file uploads

2010-02-08 Thread johnwards
Hello, The documentation says that I should be able to do the following: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/11 The browser also simulates file uploads if you pass the absolute path to the file to upload However I can't seem to get it to work, the code actually works I have

[symfony-users] Edit/Show - protect against non permission access

2010-02-08 Thread wueb
Hello buddies, need help! On my Edit/Show actions i use the route to get the object to Edit/ Show. Edit: $this-form = new LeadsForm($this-getRoute()-getObject()); Show: $this-leads = $this-getRoute()-getObject(); All normal here and works fine, but i need something more secure. For example:

[symfony-users] Re: how to set up and configure memcache?

2010-02-08 Thread Joshua
Is the sfMemcacheCache link you provide in the blog the same as http://www.symfony-project.org/plugins/sfMemcachePlugin The link you provide says 1.1 and the link above says 1.0 (also has other WARNINGS). I'm using 1.2, a little reluctant to use what appears to be a fringe plugin no one is

[symfony-users] Re: Functional tests for file uploads

2010-02-08 Thread johnwards
Oh God. Ignore me I am being stupid. My tests were working as expected I hadn't completed a part of the code. On 8 Feb, 16:08, johnwards johnwa...@gmail.com wrote: Hello, The documentation says that I should be able to do the following:

[symfony-users] Re: Error using sfFacebookConnectPlugin and sfGuardPlugin

2010-02-08 Thread Zach
I have a question regarding the getSfGuardUserByFacebookSession function of the sfFacebook class. I am overriding the BasesfFacebookConnectAuthActions executeSignin() function to see if an sfGuardUser has been created and if not redirect to a different page to confirm some details and add the

[symfony-users] Re: How to properly override Doctrine_Record::delete()?

2010-02-08 Thread Darren884
Thank you Thomas that worked perfectly and ironically deleting a file was what I was after. Thanks, Darren On Feb 8, 12:55 am, Thomas Rabaix thomas.rab...@gmail.com wrote: You should use preDelete and postDelete methods. class YouModel extends BaseModel {   public function postDelete()   {

[symfony-users] Re: I18n: database configuration

2010-02-08 Thread EddieG
You do it like that: database:mysql://MYUSER:my...@unix+%2ftmp%2fmysql5.sock/MY_DB Note the unix+ and the encoded socket url which you can generate by using rawurlencode('/tmp/mysql5.sock');. Man, that was a lot of work figuring that out! Eddie -- You received this message because

[symfony-users] Error on extending profile for sfguard

2010-02-08 Thread Samuel Morhaim
What am I doing wrong? I keep getting errors rebuilding and also importing fixtures.. Schema # config/doctrine/schema.yml Organization: actAs: { Timestampable: ~ } columns: sf_guard_user_id: { type: integer(5) } name: { type: string(255), notnull: true, unique: true } first_name:

[symfony-users] symfony memcache support by default?

2010-02-08 Thread Joshua
Does symfony come with any level of support for memcache out of the box? One of our sites was brought down from an influx of traffic from email blasts. Monitoring the slow query log, I made some changes to a few propel queries. That relieved a lot of the stress, the site went from crashed to

[symfony-users] How to get raw data in a partial???

2010-02-08 Thread Darren884
In my template I am trying to do ?php include_partial('global/ navigator', array('User' = $sf_user)); ? But when I run $User-getAttributes() in my partial it is cleaning the code which makes it so it does not work. How can I get around this?? Thanks, Darren -- You received this message because

[symfony-users] Re: How to get raw data in a partial???

2010-02-08 Thread Darren884
It seems I was able to pass the second argument ESC_RAW, but this butchers my ability to read credentials either way. Is there any I can just a simple damn array? I mean its Symfony's own variable. What is going on here? On Feb 8, 11:41 am, Darren884 darren...@gmail.com wrote: In my template I

Re: [symfony-users] Re: How to get raw data in a partial???

2010-02-08 Thread Nathan
Just use $value-getRawValue() --- nat...@nathan.gs : http://nathan.gs : http://twitter.com/nathan_gs On Mon, Feb 8, 2010 at 8:49 PM, Darren884 darren...@gmail.com wrote: It seems I was able to pass the second argument ESC_RAW, but this butchers my ability to read credentials either way. Is

[symfony-users] set a value to a widget in the actions

2010-02-08 Thread Relez
Hi there, I have a sfWidgetFormInputHidden that its value depends of the others widgets, I would like to set its value in the actions (ex:executeCreate or processForm), how can I do that? Thanks... -- You received this message because you are subscribed to the Google Groups symfony users

Re: [symfony-users] How to get raw data in a partial???

2010-02-08 Thread Norbert
Am 08.02.10 20:41, schrieb Darren884: In my template I am trying to do?php include_partial('global/ navigator', array('User' = $sf_user)); ? But when I run $User-getAttributes() in my partial it is cleaning the code which makes it so it does not work. How can I get around this?? Thanks,

[symfony-users] Getting object-specific form options/labels from the database

2010-02-08 Thread Paddy McCann
I'm new to symfony, so this may be trivial, but I'm getting frustrated trying to find a solution. I'm having a problem creating a form to edit a set of objects associated with another specified object. Here's an abridged version of the relevant part of the schema (assume id fields are

[symfony-users] one module - many models (tables)

2010-02-08 Thread Martin Henits
Hi, I'm new to symfony and am trying to learn it. I am trying to develop a new module (something like a forum). in a very simple form, this module works with 2 database tables: forum_threads and forum_posts. First, I think that I should not develop 2 different modules, because forum sounds like

[symfony-users] Re: Error on extending profile for sfguard

2010-02-08 Thread Filipe
same problem here On Feb 8, 7:16 pm, Samuel Morhaim samuel.morh...@gmail.com wrote: What am I doing wrong? I keep getting errors rebuilding and also importing fixtures.. Schema # config/doctrine/schema.yml Organization:   actAs: { Timestampable: ~ }   columns:     sf_guard_user_id: {

Re: [symfony-users] Re: how to set up and configure memcache?

2010-02-08 Thread Norbert
just rtfm ;-) http://www.doctrine-project.org/documentation/manual/1_2/en/caching http://www.symfony-project.org/book/1_2/18-Performance Am 08.02.10 17:29, schrieb Joshua: Blogs blogs blogs. How am I supposed to know where to find these things short of a google search? On Feb 8, 1:52 am,

Re: [symfony-users] symfony memcache support by default?

2010-02-08 Thread Eno
On Mon, 8 Feb 2010, Joshua wrote: Does symfony come with any level of support for memcache out of the box? It has some support but it has to be explicitly enabled. Then we installed memcache on the servers. A few minutes later, before making any actual code updates to use memcache, the slow

Re: [symfony-users] one module - many models (tables)

2010-02-08 Thread Alexandru-Emil Lupu
You should see the sfsimpleforum. Also .. you could use embed form or merge form... sent via htc magic On Feb 8, 2010 10:17 PM, Martin Henits martin.hen...@googlemail.com wrote: Hi, I'm new to symfony and am trying to learn it. I am trying to develop a new module (something like a forum). in a

Re: [symfony-users] set a value to a widget in the actions

2010-02-08 Thread Eno
On Mon, 8 Feb 2010, Relez wrote: Hi there, I have a sfWidgetFormInputHidden that its value depends of the others widgets, I would like to set its value in the actions (ex:executeCreate or processForm), how can I do that? When initializing the form, you can add a configure() method to

Re: [symfony-users] Re: Error on extending profile for sfguard

2010-02-08 Thread Samuel Morhaim
I found this http://jonocode.wordpress.com/2009/07/11/adding-sf_guard_user_profile-to-the-sfdoctrineguardplugin/ but still get the issue, can't fix it... My complete schema and eror are here http://pastebin.com/m4a2812bd in case anyone wants to help.. thanks.. On Mon, Feb 8, 2010 at 3:07 PM,

Re: [symfony-users] Re: Error on extending profile for sfguard

2010-02-08 Thread Samuel Morhaim
I removed the primary: true and it worked.. i hope this helps. On Mon, Feb 8, 2010 at 4:46 PM, Samuel Morhaim samuel.morh...@gmail.comwrote: I found this http://jonocode.wordpress.com/2009/07/11/adding-sf_guard_user_profile-to-the-sfdoctrineguardplugin/ but still get the issue, can't fix

[symfony-users] Re: How to get raw data in a partial???

2010-02-08 Thread Richtermeister
Just to your specific point, $sf_user is accessible from every template or partial anyways.. no need to pass it along. Daniel On Feb 8, 1:09 pm, Darren884 darren...@gmail.com wrote: I solved it guys but the above would not work so I had to do a different way. I found out about hasCredential

[symfony-users] Proper way to access object..

2010-02-08 Thread Samuel Morhaim
I am trying to access the object of the extended profile for sfguard.. http://pastebin.com/md823309 How is the correct way of doing that? # config/doctrine/schema.yml Organization: actAs: { Timestampable: ~ } columns: sf_guard_user_id: { type: integer(4) } name: { type: string(255),

[symfony-users] Where to put the model code?

2010-02-08 Thread Augusto Flavio
Hi. I create a partial file that will be added in all page request by users. I put this partial file, i.e. partial.php in the global layout template? layout.php. Ok. My doubt is where to put the model code of the partial file. some idea? Augusto Morais -- You received this message

[symfony-users] How to deal with sequences (PostgreSQL) and Doctrine

2010-02-08 Thread ReynierPM
Hi every: I'm creating my schema.yml file but have one doubt concerning sequences. I've see that serial datatype doesn't exists in Doctrine so I can't do this: id_group: { type: serial, primary: true } But I need this field autoincrement. I was thinking in use this syntax: id_group: { type:

[symfony-users] Re: Where to put the model code?

2010-02-08 Thread Augusto Flavio
HI. I use the sfComponents class to do it. Worked fine. bye. Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send

[symfony-users] Help with Schema

2010-02-08 Thread Samuel Morhaim
I am trying to create the following schema with the following requirements. * One to one Organization to sfGuardUser * Each organization, may have multiple campaigns. * Each campaign may have multiple addressbooks. * MessageQueue holds general information for all

Re: [symfony-users] Re: how to set up and configure memcache?

2010-02-08 Thread Gareth McCumskey
I used the definitive guide to symfony to do it myself. I was only trying to help by offering a link to an article I wrote with practical information on it. So sorry for trying :S On Mon, Feb 8, 2010 at 6:29 PM, Joshua houseaddi...@gmail.com wrote: Blogs blogs blogs. How am I supposed to know

[symfony-users] default selection value

2010-02-08 Thread Parijat Kalia
Hey guys, Wondering how to specify a default value for select tags in symfony say for e.g i have a select_tag with options 1,2,3,4,5,6,7,and I want 4 to be the default selected value, how can I get this done? -- You received this message because you are subscribed to the Google Groups

[symfony-users] Re: ORDER BY insists on using sort_order

2010-02-08 Thread Tom Ptacnik
As I said: sorting is saved into the session, so if you change something wits that, you have to destroy your session... e.g.: clear browser cookies and cache, restart browser. clear cache in symfony. voila! On 7 ún, 19:09, michael hodges mhodg...@gmail.com wrote: Issue: updating the list sort

[symfony-users] changing symfony project structure

2010-02-08 Thread Tom Ptacnik
Hello, I want to know what do you think about my new Somfony project structures which I've created. I needed to change it, because of my clients hosting. He host on the server, where he can't change anything in apache configuration. He has configured hosting that way, that every folder in his

[symfony-users] Where are the whole page cache files in sf 1.4?

2010-02-08 Thread chrisyue
I set the view cache option's dir in %sf_view_cache_dir% and i can see those cache files in the view cache folder when the cache's with_layout option is false but if I set the with_layout option to true the cache would never appear in the view cache folder, so where are the with_layout cache

[symfony-users] AJAX Helpers

2010-02-08 Thread DEEPAK BHATIA
Hi, It seems link_to_remote and form_remote_tag has been deprectaed in Symfony 1.4. How do we achieve this functionality in Symfony 1.4. The Jobeet tutorial for 1.4 discusses briefly about AJAX. Thanks in advance. Regards Deepak Bhatia -- You received this message because you are subscribed

Re: [symfony-users] AJAX Helpers

2010-02-08 Thread Sid Bachtiar
Learn to use jQuery! Seriously, it's very easy to replace those functions with plain jQuery. On Tue, Feb 9, 2010 at 8:20 PM, DEEPAK BHATIA toreachdee...@gmail.com wrote: Hi, It seems link_to_remote and form_remote_tag has been deprectaed in Symfony 1.4. How do we achieve this functionality in

Re: [symfony-users] AJAX Helpers

2010-02-08 Thread Земсков Юрий
http://www.symfony-project.org/plugins/sfProtoculousPlugin ;) 9 2010 ., 10:20:27: Hi, It seems link_to_remote and form_remote_tag has been deprectaed in Symfony 1.4. How do we achieve this functionality in Symfony 1.4. The Jobeet tutorial for 1.4 discusses briefly about AJAX.

Re: [symfony-users] AJAX Helpers

2010-02-08 Thread Gareth McCumskey
Is this the same old obtrusive Javascript version or has it been refactored as an unobtrusive version? 2010/2/9 Земсков Юрий y...@zemskov.name http://www.symfony-project.org/plugins/sfProtoculousPlugin ;) Вы писали 9 февраля 2010 г., 10:20:27: Hi, It seems link_to_remote and