Re: [symfony-users] Re: many to many relationships at admin not working

2009-11-29 Thread Farrukh Abbas
d the generator.yml file to > edit: > fields: > role_permission: { type: admin_double_list, params: > through_class=RolePermissionRef } > display: [name, role_permission] > > and its working now :) > > On Sep 16, 9:06 pm, Abraham Montilla

[symfony-users] Re: How to execute a stored procedure on a remote db server throught symfony?

2009-10-01 Thread Farrukh Abbas
yeah thanks for the heads up ... i don't have a choice, my application has to interact with a third party service and the only way they provide is through stored procedures ... so really don't have a choice ... any pointers to where i can get some good read about propel custom queries? and also con

[symfony-users] Re: how to create a download link to a file in uploads directory?

2009-09-28 Thread Farrukh Abbas
aults in sf 1.2? sfConfig::get('sf_upload_dir_name') returns nothing) or just generally good programming tips within the context of building links ... On Mon, Sep 28, 2009 at 8:45 PM, Eno wrote: > > On Mon, 28 Sep 2009, Farrukh Abbas wrote: > > >

[symfony-users] Re: how to create a download link to a file in uploads directory?

2009-09-28 Thread Farrukh Abbas
thanks people but this solves the purpose download attachement public_path returns a url like http://localhost:8080/myproject/web/uploads/b3a2fe88caa89fa97a7443cdcf55e608.pdf exactly what was needed... any suggestions to improve ? On Mon, Sep 28, 2009 at 1:19 PM, Johnny Lattouf wrote: > > You

[symfony-users] Re: How to execute a stored procedure on a remote db server throught symfony?

2009-09-28 Thread Farrukh Abbas
I'm using propel as orm -- Kind regards Farrukh Abbas On 28 Sep 2009, at 09:20, Gareth McCumskey wrote: > Are you using Propel or Doctrine as your ORM? > > On Mon, Sep 28, 2009 at 2:42 AM, dagger > wrote: > > Hi, > > in my current project I have to connect t

[symfony-users] Re: how to create a download link to a file in uploads directory?

2009-09-27 Thread Farrukh Abbas
Yes I believe it is the solution i was looking for... I will try it out as soon as I get back home... Thanks a lot. :) -- Kind regards Farrukh Abbas On 27 Sep 2009, at 19:27, Gábor Fási wrote: > > Check out the public_path() helper, I believe that's what you need. > > On

[symfony-users] Re: how to create a download link to a file in uploads directory?

2009-09-27 Thread Farrukh Abbas
code the folder structure "myproject/web" just like image_tag() helper -- Kind regards Farrukh Abbas On 27 Sep 2009, at 17:47, Eno wrote: > > On Sun, 27 Sep 2009, dagger wrote: > >> A simple question... How can i create a download link to a file >> uploaded to

[symfony-users] Re: how to create a download link to a file in uploads directory?

2009-09-27 Thread Farrukh Abbas
using symfony 1.2 On Sun, Sep 27, 2009 at 2:54 PM, dagger wrote: > > Hi, > > A simple question... How can i create a download link to a file > uploaded to uploads directory under web of symfony? > > something like - file.pdf')?> > > thanks for the reply > > > -- kind regards Farrukh K. Muham

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-23 Thread Farrukh Abbas
Yeah never really got the time to look into creating plugins Just used a few.. Will look into it... Thanks Any how symfony is doing a great... N it a piece of work well done! Thanks to the team building it. -- Kind regards Farrukh Abbas On 24 Sep 2009, at 03:48, zeek wrote: > > F

[symfony-users] Re: How to get ID of last object insert

2009-09-23 Thread Farrukh Abbas
i have always used the construct below if($this->form->isValid()){ $object = $this->form->save(); $id = $object->getId(); } seeing bindandsave for the first time... the save function of the form automatically sets the id of the object or in other words returns the recently saved object. On Thu

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-23 Thread Farrukh Abbas
er as well ... -- Kind regards Farrukh Abbas On 23 Sep 2009, at 22:30, Sid Bachtiar wrote: > >> the schema model n peer classes in >> one folder so all one would need is to copy the folder n customize it > > You mean like, plugin? :) > > On Thu, Sep 24, 2009 at 1:51 AM, F

[symfony-users] Re: Symfony has definitely become too complicated framework

2009-09-23 Thread Farrukh Abbas
older n customize it ... It's just n idea... So would like to know the drawebacks n strenghts of doing so... For that to be possible the model has to be stand alone... Feel free to critizie constructively -- Kind regards Farrukh Abbas On 23 Sep 2009, at 15:37, Alexandru-Emil Lupu wrote:

[symfony-users] Re: many to many relationships at admin not working

2009-09-16 Thread Farrukh Abbas
com/group/symfony-users/msg/627be2a11e61990e> On Wed, Sep 16, 2009 at 8:14 PM, Abraham Montilla wrote: > oh, try deleting the module and generate it again, i think that's the > problem then... > > 2009/9/16 Farrukh Abbas > > yes i did, build-model, form, sql, and in

[symfony-users] Re: many to many relationships at admin not working

2009-09-16 Thread Farrukh Abbas
t; 2009/9/15 Farrukh Abbas > >> changed the schema to the following (propel), but still no luck ... >> >> permission: >> id: >> method_name: { type: VARCHAR, size: 50, required: true } >> action_name: { type: VARCHAR, size: 50,

[symfony-users] Re: many to many relationships at admin not working

2009-09-15 Thread Farrukh Abbas
changed the schema to the following (propel), but still no luck ... permission: id: method_name: { type: VARCHAR, size: 50, required: true } action_name: { type: VARCHAR, size: 50, required: true } role: id: name: { type: VARCHAR, size: 100, required:

[symfony-users] Re: Problems with session

2009-09-10 Thread Farrukh Abbas
you also have to specify a namespace like this $this->getUser()->setAttribute('quantity', '10', 'shopping_cart'); $this->getUser()->getAttribute('quantity', 'a default value if quantity does not exist', 'shopping_cart'); $sf_user->getAttribute('quantity', '', 'shopping_cart'); and if u want to r

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

2009-09-08 Thread Farrukh Abbas
ke when creating a newsletter. > > Gábor > > > On Tue, Sep 8, 2009 at 19:37, Farrukh Abbas > wrote: > > ok - let me have another shot at explaining it > > Problem statement: I have build a simple bloging application where > multiple > > people can post articles, a

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

2009-09-08 Thread Farrukh Abbas
nk page in case of an exception or take too much time if the smtp server is busy ... i hope this is a better description ... thanks for your time On Tue, Sep 8, 2009 at 5:56 PM, Eno wrote: > > On Tue, 8 Sep 2009, Farrukh Abbas wrote: > > > Ok thanks, > > is there a way i

[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 wrote: > > As PHP doesn't support multi-threading, you cannot execute parallel > activities in a single request. I think the most common solution i

[symfony-users] Re: implementing one to many relation between User and Images at backend

2009-07-30 Thread Farrukh Abbas
yeah - thanks :) On Wed, Jul 29, 2009 at 3:29 PM, despai - wrote: > bool *unlink* ( string $nombrearchivo [, resource $contexto ] ) > > > > > 2009/7/29 dagger > > >> I guess it will be better if I define a template for image editing ... >> as i also create 2 scaled versions at the time the user

[symfony-users] Re: problem with foreign key field

2009-07-21 Thread Farrukh Abbas
Hi I'm new with 1.2 myself ... and have not really made a new project in 1.2 yet ... so far only been upgrading my existing projects from 1.0 Never the less you could try and put the following parameters in the attribute definition { type: INTEGER, required: true, default: '', foreignTable: user,

[symfony-users] Re: File Upload not working in symfony 1.2.7 when 2 forms are embadded in one view

2009-06-12 Thread Farrukh Abbas
Thanks... looking into a work around - any other solutions to this problem? On Fri, Jun 12, 2009 at 2:41 PM, Sid Ferreira wrote: > As I said, we need a ticket...http://trac.symfony-project.org/ticket/6618 > Did it. > > > On Fri, Jun 12, 2009 at 06:33, Benjamin Grandfond < > benjamin.grandf...@gm