[symfony-users] drag drop do not auto scroll

2009-09-08 Thread avani pujara
Hi everyone, I have implemented symfony ajax drag drop code into my project. Everything wokrs fine. But my project is not shopping cart. It is to drag details to calender from left side to right side. In my page, left side shows details and right side there are added details of different dates.

[symfony-users] Re: dynamic tables/forms/models with symfony

2009-09-08 Thread klemens_u
Hi Cosmy, sorry for the late answer - I've been on vacation. UllFlowDoc stores basic information similar to a normal row like id, created_at, etc. whereas UllFlowValue stores the actual value of a virtual column. :-) Klemens On 14 Aug., 15:17, cosmy c.zec...@gmail.com wrote: Very very

[symfony-users] Re: How can I set a different base class for each Doctrine record?

2009-09-08 Thread Bernhard Schussek
Hi Georg, As far as I understand, you can only do that by using Doctrine's inheritance mechanism. Adress: inheritance: extends: ClientAwareDoctrineRecord Bernhard -- Software Architect Engineer Blog: http://webmozarts.com 2009/9/4 Georg Gell geor...@have2.com: Dear list, is it

[symfony-users] Re: Admin Generator translation

2009-09-08 Thread Bernhard Schussek
Hi Matías, Add a file sf_admin.XX.xml to the directory apps/MY_APP/i18n/, where XX is the culture you want to translate it to and MY_APP is your application. Put inside the following content: ?xml version=1.0 encoding=UTF-8? !DOCTYPE xliff PUBLIC -//XLIFF//DTD XLIFF//EN

[symfony-users] Re: how to use sfCallbackValidator in sfGuard?

2009-09-08 Thread Bernhard Schussek
Hi, I would not use a callback validator in case, but a combined validator. You can override the default form of sfGuardUser by modifying sfGuardUserForm in your project: sfGuardUserForm { configure() { $this-validatorSchema['username'] = new sfValidatorOr(array( new

[symfony-users] Re: Checkboxes in a list of entries

2009-09-08 Thread Bernhard Schussek
Little information don't understand. --~--~-~--~~~---~--~~ 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@googlegroups.com To unsubscribe from this group, send

[symfony-users] Re: Textarea value

2009-09-08 Thread Bernhard Schussek
Hi, You should not pass the default value by overriding the HTML attributes, but by calling setDefault: configure() { ... $this-setDefault('Notes', 'My default value'); } Bernhard -- Software Architect Engineer Blog: http://webmozarts.com

[symfony-users] Re: external parameters to a sfForm

2009-09-08 Thread Bernhard Schussek
Hi Stefan, Transmitting the type in the constructor is actually a very good idea. It's architecturally the cleanest solution IMO. SignupForm { __construct($type, ...) } MemberForm { __construct($type, Member $member, ...) } Bernhard -- Software Architect Engineer Blog:

[symfony-users] Re: where do most Symfony developers resize images, in the Form class, or in a validator?

2009-09-08 Thread Bernhard Schussek
Hi Jake, As the previous poster said, I usually use a custom class for resizing, but you can simply use sfThumbnail from sfThumbnailPlugin. As for resizing itself, a good place to do this IMO is the method doSave() in Doctrine/Propel forms. Bernhard -- Software Architect Engineer Blog:

[symfony-users] Re: sfGrid and Custom query

2009-09-08 Thread Florian
Hi, just my 2 cents, but the message says : [code] Class Idea has no method called getideaRelationId. [/code] Symfony complains a bout not being able to find a setter. - understandable. I believe i need make a setter, but where? in Idea? So you surely are talking about a Getter , no ?

[symfony-users] Re: save() or doSave() for an embedded form

2009-09-08 Thread Bernhard Schussek
Hi Stefan, Unfortunately neither save() nor doSave() is executed in nested forms. You can intercept bind() in MemberForm though to pass the variables to the nested form: MemberForm { bind() { parent::bind(); if ($this-isValid()) {

[symfony-users] Re: [1.2] Caching despite query string being passed?

2009-09-08 Thread Stephen Melrose
Hi Eno, Thanks for your reply. I have to disagree with you I'm afraid. Everywhere I read states that when a query string (non Symfony formatted) is appended to the URL, the caching system is disabled, e.g. this line from the Practical Symfony book, Instead of clearing the cache each time you

[symfony-users] how to send e-mail independent of an action?

2009-09-08 Thread dagger
How can i send an e-mail from within an action, but the action shall not wait for the method to return in order to send the response to the browser/user... for example the standard subscription confirmation e-mail ... at the time of signup the action invokes a method to send e-mail but does not

[symfony-users] How to Read execl sheet data and save it into mysql database

2009-09-08 Thread NOOR Mustafa
can anyone tell me about the how to read and write excel sheet, when i save it, after some modification and changing ., same excel sheet i want to read with uploaded file and save it into databases . Regard, NOOR --~--~-~--~~~---~--~~ You received this message

[symfony-users] Re: how to send e-mail independent of an action?

2009-09-08 Thread aalexand
As PHP doesn't support multi-threading, you cannot execute parallel activities in a single request. I think the most common solution in this case is to put the task you want to be executed independently in some kind of message queue (like dropr http://dropr.org), which works as a separate process

[symfony-users] Re: calendar using new sfWidgetFormDate()

2009-09-08 Thread Krishan .G
Friends, I could not use extra jquery plugin for date js calendar. It was because, if I have to select date of birth then, I need to go many years back click by click. The solution I used is already available in symfony's sf folder in web. I did following similar to Noor M's solution Step #1

[symfony-users] cross application functional testing possible?

2009-09-08 Thread Martin
I need to write a test which does tests in the frontend and backend application. I tried to switch the Context from frontend to backend with sfContext::createInstance and sfContext::switchTo but run into problems cause some classes like sfGuardAuth are redefined. Is there an elegant way for cross

[symfony-users] Re: How to Read execl sheet data and save it into mysql database

2009-09-08 Thread DEEPAK BHATIA
Use sfPhpExcel Plugin Read required cell of Excel and store it into the database. I have attached the actions.class.php which loads the excel file, verify the required cells for content to be present. Line 103 to 136 are relevant where I am reading the cell and writing to the database table.

[symfony-users] existing user credentials return false?

2009-09-08 Thread Artur Martins
I'm having problems to verify existing credentials. The code is very simple: $sfUser = sfContext::getInstance()-getUser(); $C = 'student' $sfUser-addCredential($C); var_dump ($sfUser-hasCredential($C)); # returns bool(false) print_r($sfUser); # dumps the object myUser Object (

[symfony-users] Re: Symfony aspires to be pure OOP, so why the hell are helpers implemented as functions instead of as methods of classes?

2009-09-08 Thread Tom Boutell
The short answer is that Rails does it that way, and Symfony began life as a Rails clone (though it has evolved considerably since then). Longish answer... as long as helpers are really, truly view-layer-specific code you will never, ever want to call from the controller layer, the helper

[symfony-users] How do the *.css from a forms getStylesheets() get on the final web page?

2009-09-08 Thread Christian Hammers
Hello I built my own Form (below) but neither the stylesheets nor the JavaScripts get included on the final web page. The form widget itself does work fine. What did I miss? class ncWidgetFormDynDateTime extends sfWidgetFormInput ... public function getStylesheets() {

[symfony-users] Re: Symfony aspires to be pure OOP, so why the hell are helpers implemented as functions instead of as methods of classes?

2009-09-08 Thread Stefan Koopmanschap
Hi, I believe this is a legacy from the symfony 1.0 days when this was the standard way to do things. Unless you're using some of the default symfony helpers that are still set up that way, you can of course simply write classes for helpers. This is what I usually do. This also saves you from

[symfony-users] Re: existing user credentials return false?

2009-09-08 Thread Artur Martins
Ok, I found out the problem. My problem is that I'm giving credentials to anonymous users. So, despite the users have credentials at session, they are unable to use credentials since they aren't authenticated. Now I just learn why we have user atributes functions for :) Regards, Artur Martins

[symfony-users] Re: How do the *.css from a forms getStylesheets() get on the final web page?

2009-09-08 Thread José Nahuel Cuesta Luengo
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christian Hammers escribió: Hello I built my own Form (below) but neither the stylesheets nor the JavaScripts get included on the final web page. The form widget itself does work fine. What did I miss? class ncWidgetFormDynDateTime extends

[symfony-users] ERROR: edit data in the database

2009-09-08 Thread Germana Oliveira
Im getting this error when i try to edit something: *Catchable fatal error*: Argument 1 passed to sfFormPropel::__construct() must be an instance of BaseObject, integer given, called in /home/germana/www/indepabis/lib/form/DenunciaForm.class.php on line 71 and defined in

[symfony-users] Re: how to send e-mail independent of an action?

2009-09-08 Thread Farrukh Abbas
Ok thanks, is there a way i can perform the e-mail sending after the response has been sent to the browser? On Tue, Sep 8, 2009 at 12:56 PM, aalexand alexander.s.alexand...@gmail.comwrote: As PHP doesn't support multi-threading, you cannot execute parallel activities in a single request. I

[symfony-users] Re: Symfony aspires to be pure OOP, so why the hell are helpers implemented as functions instead of as methods of classes?

2009-09-08 Thread Stefan Koopmanschap
On Tue, Sep 8, 2009 at 4:15 PM, Jacob Cobyjc...@portallabs.com wrote: On Sep 8, 2009, at 9:52 AM, Szabolcs Heilig wrote: After reading that i'm imagining a helper system where symfony form helpers, link helpers, etc will be in helper classes. These classes can be inherited by AJAX,

[symfony-users] Doctrine: Importing tables sequences from Oracle database

2009-09-08 Thread teddy
Hi all, I'm looking to import my existing tables into Doctrine. I'm able to connect to the database with Doctrine already (which I suspect I made into a bigger job that it needed to be). I already have a set of tables which have been used throughout the application, but using our own database

[symfony-users] Re: Caching despite query string being passed?

2009-09-08 Thread pghoratiu
My suggestion is to use Apache rewrite and filter out the arguments that may interfere with the caching (if you don't need them). If you still need them in the application you would have to go into the symfony core to make changes, probably a symfony dev could tell more about where to make this

[symfony-users] Re: Caching despite query string being passed?

2009-09-08 Thread Stephen Melrose
mod_rewrite didn't even cross my mind! Smashing idea and worked a treat. Thanks. 2009/9/8 pghoratiu pghora...@gmail.com My suggestion is to use Apache rewrite and filter out the arguments that may interfere with the caching (if you don't need them). If you still need them in the application

[symfony-users] Re: How do the *.css from a forms getStylesheets() get on the final web page?

2009-09-08 Thread Christian Hammers
Hello On Tue, 08 Sep 2009 10:48:06 -0300 José Nahuel Cuesta Luengo ncue...@cespi.unlp.edu.ar wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Christian Hammers escribió: Hello I built my own Form (below) but neither the stylesheets nor the JavaScripts get included on the

[symfony-users] Re: Symfony aspires to be pure OOP, so why the hell are helpers implemented as functions instead of as methods of classes?

2009-09-08 Thread Szabolcs Heilig
Hi, 2009/9/8 Stefan Koopmanschap stefan.koopmansc...@symfony-project.com This also saves you from calling the use_helper() function, because classes are autoloaded. It can be argued that the seperate methods are easier to read within views (since views are supposed to be very light on

[symfony-users] NestedForms + Doctrine problem

2009-09-08 Thread Alexey
Hi All! I have a strange problem: I'm using symfony1.2.8 and doctrine. In DB i have a one-to-many relationship (Offer - Visits). I have such nested forms for implementing one-to-many relationship: OfferForm (main form) - sfForm (visit's forms holder) - VisitForm (1 or more forms for child

[symfony-users] Re: how to send e-mail independent of an action?

2009-09-08 Thread Eno
On Tue, 8 Sep 2009, Farrukh Abbas wrote: Ok thanks, is there a way i can perform the e-mail sending after the response has been sent to the browser? I think what Alexander meant was that you would have to write some sort of background task that runs on the server that sends out the email

[symfony-users] Re: Symfony aspires to be pure OOP, so why the hell are helpers implemented as functions instead of as methods of classes?

2009-09-08 Thread Kris
As Tom says above, helper functions should not be used in controller or model code. Breaking scope is not ideal. Each method should be a 'black box' that knows nothing beyond it's scope, and gets required objects/variables through dependency injection. Functions in PHP have the global scope.

[symfony-users] Re: can't use Criteria() class in frontendConfiguration.class.php

2009-09-08 Thread javo
One last question Is there any way how to skip next filter? I have a condition and I need my next filter (settings) not to be executed if the result is false I was thinking about setting some parameter to the request but I'd appreciate some native symfony way (sth. like $filterChain-

[symfony-users] Re: Symfony aspires to be pure OOP, so why the hell are helpers implemented as functions instead of as methods of classes?

2009-09-08 Thread Jacob Coby
On Sep 8, 2009, at 9:52 AM, Szabolcs Heilig wrote: After reading that i'm imagining a helper system where symfony form helpers, link helpers, etc will be in helper classes. These classes can be inherited by AJAX, Lightbox link helper classes and use and extend codebase of the basic

[symfony-users] Re: how to send e-mail independent of an action?

2009-09-08 Thread Gábor Fási
I'd do it like this way: when you need to send a mail, add a new row to a dedicated emails table with all the neccesary info. Create a task, that checks this table, and if it has rows (= there are mails to be sent), it fetches the first few and sends them. Finally, schedule this task via cron to

[symfony-users] Re: how to send e-mail independent of an action?

2009-09-08 Thread Farrukh Abbas
ok - let me have another shot at explaining it Problem statement: I have build a simple bloging application where multiple people can post articles, and readers can post comments. At the backend the administrator can approve and reject a comment. Now when the admin Approves a comment the system

[symfony-users] Re: how to send e-mail independent of an action?

2009-09-08 Thread Farrukh Abbas
ok thanks ... i will try this solution ... can an event be used for this? On Tue, Sep 8, 2009 at 7:49 PM, Gábor Fási maerl...@gmail.com wrote: I'd do it like this way: when you need to send a mail, add a new row to a dedicated emails table with all the neccesary info. Create a task, that

[symfony-users] Autoincrement unique string

2009-09-08 Thread moreweb
Hi, is there some tool to create a autoincrement unique sting like this? (pcode column) ALPHA01 ALPHA02 ALPHA03 CODE01 CODE02 CODE03 TEXT01 TEXT02 TEXT03 When I create a new pcode I want retrieve last ALPHAXX (or CODE, or TEXT), increment it (XX+1) and save the new string. Doctrine behavior? Or

[symfony-users] overriding sfFormField renderRow method

2009-09-08 Thread steady
I'm wondering if there are any suggestions on how to cleanly override sfFormField's renderRow method. I'd like to extend some of the functionality within that method. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[symfony-users] Re: how to send e-mail independent of an action?

2009-09-08 Thread Gábor Fási
If you mean the event dispatcher, no. Cron will start the task in the background, so it will not interfere with your site's frontend. If you need, you can schedule it to run more often, like 5 minutes - if there's no mail to send, it'll quit in a few seconds anyway. On Tue, Sep 8, 2009 at 20:56,

[symfony-users] Re: Symfony aspires to be pure OOP, so why the hell are helpers implemented as functions instead of as methods of classes?

2009-09-08 Thread naholyr
As I demonstrated before helpers could simply be functions generated from classes, the feasbility is proven here : http://trac.symfony-project.org/browser/plugins/nahoClassHelpersPlugin Take a look at this forever-draft work that tries to give a toolkit to get rid of these silly helpers as

[symfony-users] Re: Symfony aspires to be pure OOP, so why the hell are helpers implemented as functions instead of as methods of classes?

2009-09-08 Thread Jake Barnes
Does it make sense to load an entire class for a few functions designed to make writing templates easier? Isn't that an argument against auto-loading in general? The big frameworks (Drupal, CakePHP, Symfony) are wasteful when it comes to resources. And they are slow. We don't use Symfony

[symfony-users] Re: how to send e-mail independent of an action?

2009-09-08 Thread Eno
On Tue, 8 Sep 2009, Farrukh Abbas wrote: ok - let me have another shot at explaining it I did not have difficulty understanding what you're trying to do (maybe you had did not quite understand my reply?). In other words, you will have to write a background task that is run periodically on

[symfony-users] Many-to-many Relation -- Display fields comma separated in a list-view

2009-09-08 Thread Al3ssio
Hi everybody! I'm new with Symfony (Symfony 1.2 + Doctrine) and I'm trying to develop a little project. The db schema is: Book: tableName: books actAs: { Timestampable: ~ } columns: isbn:{type: string(13), fixed: true, notnull: true} title: {type:

[symfony-users] wizard tutorial for multiple tables

2009-09-08 Thread Pabz Sarquilla
hi All, I'm wondering if anyone have tried creating a wizard for multiple tables? i'm trying to create one using doctrine but having problems doing it. Can anyone guide me please? Thanks in advance. -- *===--.. Pabz ..--===* --~--~-~--~~~---~--~~ You received

[symfony-users] how to use the cli command data-dump

2009-09-08 Thread sunny
hi i have appliaction name civil and my file name is filenew.yml in data /fixture directory how to dump data into it i have syntax $ php symfony propel-dump-data APPLICATION_NAME FIXTURES_DIR_OR_FILE [ENVIRONMENT_NAME] --~--~-~--~~~---~--~~ You received this