[symfony-users] Re: How to manage big uploads

2009-10-29 Thread Gareth McCumskey
http://php.net/manual/en/function.ini-set.php

On Thu, Oct 29, 2009 at 8:35 AM, DEEPAK BHATIA wrote:

> Please send me the code for same if possible. Thanks
>
> On Thu, Oct 29, 2009 at 10:47 AM, Gareth McCumskey 
> wrote:
>
>> I think what he means is PHP's built in script execution time limitations
>> and so on.
>>
>> One thing that you can do is dynamically alter the max execution time and
>> memory limits during the upload process based on the file size.
>>
>>
>> On Wed, Oct 28, 2009 at 5:30 PM, DEEPAK BHATIA 
>> wrote:
>>
>>> Every web application has a limit on upload else your server could be
>>> crashed for no space
>>>
>>>
>>> On Wed, Oct 28, 2009 at 4:41 PM, Gorka  wrote:
>>>

 When it comes to video or audio files, uploading via http forms does
 not seem to be the best approach: timeouts, size limits, etc...
 usually get on the way.

 How would you manage big (+20MB) or batch uploads? I guess the best
 solution would be a client-side code either in java, flash o
 silverlight using FTP to upload the files and server-code to process
 the uploaded files if needed, but I'd like to know how people are
 solving this issue.


>>>
>>>
>>>
>>
>>
>> --
>> Gareth McCumskey
>> http://garethmccumskey.blogspot.com
>> twitter: @garethmcc
>>
>> >>
>>


-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: change the value on the form with ajax

2009-10-29 Thread Adrien Mogenet

Humm I'm not using link_to_remote, but you can find an example of what
I did here :

http://code.google.com/p/piwam/source/browse/trunk/apps/front/modules/cotisation/templates/_form.php

At the end of this source file, you can find JS function using
ajaxupdater to update the "amount" text field.

Good luck,

Adrien

On 28 oct, 02:26, Martin Ibarra Cervantes 
wrote:
> i have a gallery with gallerific but when change the picture i need
> change the ID on my form its possible change the value with the ajax.
>
> 
>
> onClick="
>                                 'update' => 'description',
>                    'url'    => 'retratos/show?id='.$imagen->getId(),
>                    )) ?>
> "
>
> retratos the model
> show is the action and in the action i have this.
>
>  public function executeShow(sfWebRequest $request)
>   {
>         $this->form = new MrImagenComentarioForm();
>         $this->form->setDefault('id_imagen', $this->getParam( 'id'));
>         $this->setTemplate('show');
>   }
>
> id_imagen is i hidden in my form.
--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: change the value on the form with ajax

2009-10-29 Thread Gareth McCumskey
First of all why the onClick? link_to_remote creates a link with an onClick
for you.

To get the ajax to update the value of a form you will need to use JSON
encoding in your action to return the value you want then you can use the
"complete" callback option to set the value from the returned data.

On Wed, Oct 28, 2009 at 3:26 AM, Martin Ibarra Cervantes <
ibarra.cervan...@gmail.com> wrote:

>
> i have a gallery with gallerific but when change the picture i need
> change the ID on my form its possible change the value with the ajax.
>
>
>
> 
>
> onClick="
>   'update' => 'description',
>   'url'=> 'retratos/show?id='.$imagen->getId(),
>   )) ?>
> "
>
>
> retratos the model
> show is the action and in the action i have this.
>
>
>  public function executeShow(sfWebRequest $request)
>  {
>$this->form = new MrImagenComentarioForm();
>$this->form->setDefault('id_imagen', $this->getParam( 'id'));
>$this->setTemplate('show');
>  }
>
> id_imagen is i hidden in my form.
>
> >
>


-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: how to implement sfWidgetFormInputSWFUploadPlugin tutorial?

2009-10-29 Thread Alexandre SALOME
Contact the creator of the plugin or have a look at source code, maybe a
README file, or something similar.

Last solution : read sourcecode.

2009/10/28 mel_06 <06melc...@gmail.com>

>
> i'm just really knew to symfony. is anyone knows how to use
> sfWidgetFormInputSWFUploadPlugin?
>
> thanks!
> >
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.com

--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: functional tests : issue with auto-increment and userID

2009-10-29 Thread Alexandre SALOME
Have you set environments ?

a "dev", "test" "prod" ? Have you different databases ?

In which one are you running your tests ?

And if you drop all DB except the "test", does it works ?



2009/10/27 Adrien Mogenet 

>
> Hi everyone,
>
> I'm using fixture to fill my database with 3 fake user accounts, the
> first one is my "demo" account.
> I'm writing my tests using a $browser as sfGuardTestFunctional, which
> signs me in automatically.
>
> The first time I launch my test, my $browser works perferctly and
> shows that my User ID is #1 [OK]
>
> But, second time, fixtures are put within my DB, so my "demo" account
> get the ID #4, but my $browser, which signs in again perfectly, says
> that I have the user ID #3 !!!
>
> This behaviour avoid any other INSERT operation, resulting in
> constraint issues.
>
> Thanks for helping me :-)
>
> --
> Adrien
> >
>


-- 
Alexandre Salomé -- alexandre.sal...@gmail.com

--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: core.php/ not working

2009-10-29 Thread david

Do you have the zend debugger installed on the server?
Check your web server (apache) error logs for Zend Debugger entries when  
you use the page with Opera.

Sometimes the Zend debugger gets stuck trying to communicate with the  
server side module - clearing your Opera cookies for your site will fix it.

On Thu, 29 Oct 2009 05:38:50 +0100, Avani  wrote:

>
> Hey, this is the problem only with "opera", in other browsers, its
> working ok.
>
>
>
> On Oct 29, 12:12 pm, Avani  wrote:
>> Hi friends,
>>
>> In my application, I am facing some strange problem
>>
>> I have a link  "profile"
>>
>> Profile
>>
>> When I run the site, when I click on "profile" link,
>>
>> it goes to  "myprojecturl/core.php/"  and shows blank page.
>>
>> when I press "refresh" button, it shows profile page properly.   why
>> is it so?
>>
>> Any idea?
> >


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfWidgetFormPropelJQueryAutocompleter setdefault

2009-10-29 Thread Job

i solved partially the problem adding the following code to the render
method in the sfWidgetFormJQueryAutocompleter

if ($value != null)
$visibleValue = $value;



On 28 oct, 13:05, Job  wrote:
> hi there,
>
> i am using a sfWidgetFormPropelJQueryAutocompleter which works
> perfect.
>
> i am using setdefault function but does not work, anyone knows how to
> solve this?
>
> (i was using before sfWidgetFormTextarea and setDefault worked
> perfectly)
>
> thanks in advance,
--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: functional tests : issue with auto-increment and userID

2009-10-29 Thread Gareth McCumskey
This is the expected behaviour because symfony's load fixture methods dont
drop the tables and recreate them. If you drop the database yourself and
regenerate it before you run tests, or truncate each table, then you should
have things working as you want.

On Tue, Oct 27, 2009 at 6:09 PM, Adrien Mogenet wrote:

>
> Hi everyone,
>
> I'm using fixture to fill my database with 3 fake user accounts, the
> first one is my "demo" account.
> I'm writing my tests using a $browser as sfGuardTestFunctional, which
> signs me in automatically.
>
> The first time I launch my test, my $browser works perferctly and
> shows that my User ID is #1 [OK]
>
> But, second time, fixtures are put within my DB, so my "demo" account
> get the ID #4, but my $browser, which signs in again perfectly, says
> that I have the user ID #3 !!!
>
> This behaviour avoid any other INSERT operation, resulting in
> constraint issues.
>
> Thanks for helping me :-)
>
> --
> Adrien
> >
>


-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Tiny mce not working

2009-10-29 Thread asi007

i am getting this error message

You must install TinyMCE to use this helper (see rich_text_js_dir
settings).
--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Tiny mce not working

2009-10-29 Thread Alexandru-Emil Lupu
that means you have to install Tiny_mce (which was embeded into sf 1.0 )
Alecs

On Thu, Oct 29, 2009 at 12:33 PM, asi007  wrote:

>
> i am getting this error message
>
> You must install TinyMCE to use this helper (see rich_text_js_dir
> settings).
> >
>


-- 
As programmers create bigger & better idiot proof programs, so the universe
creates bigger & better idiots!
I am on web:  http://www.alecslupu.ro/
I am on twitter: http://twitter.com/alecslupu
I am on linkedIn: http://www.linkedin.com/in/alecslupu
Tel: (+4)0748.543.798

--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Tiny mce not working

2009-10-29 Thread asim nizam
i have installed and donr setting in view.yml

--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Tiny mce not working

2009-10-29 Thread asim nizam
Any body who used this tiny mce


On Thu, Oct 29, 2009 at 4:39 PM, asim nizam  wrote:

> i have installed and donr setting in view.yml
>
>

--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] How to set error_404_module for one module?

2009-10-29 Thread Tomasz Ignatiuk

Hi

I have set error_404_module for my app.
I also added web services in a module called API. And I would like to
change error_404_module for this module, in order to prepeare an error
page as a formatted XML page. Does anyone know how to make it?

Tom
--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Tiny mce not working

2009-10-29 Thread Eno

On Thu, 29 Oct 2009, asim nizam wrote:

> Any body who used this tiny mce

When you say you installed it, what does that mean precisely? Normally 
tinymce should inside the js folder under your web folder (or whatever 
folder you're using for your front controllers).


-- 



--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Tiny mce not working

2009-10-29 Thread asim nizam
thanks i have used tiny mce using simple way not symfony way.

--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Tiny mce not working

2009-10-29 Thread Eno

On Thu, 29 Oct 2009, asim nizam wrote:

> thanks i have used tiny mce using simple way not symfony way.

There's not much to it: the js files need to be in the right place but you 
still haven't told us what you've done. Secondly, if tinymce is installed 
you pass the correct parameters to the helper. Have you?

If you've written code then show it. Kind of hard to troubleshoot without 
some answers and seeing code.

You know tinymce can only be used for TEXTAREA input fields right?



-- 



--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to manage big uploads

2009-10-29 Thread Gorka


Thanks, Gareth and Deepak, but Im not searching for php.ini
configurarion and there is no code i can show. Im asking for the best
practice when it comes to uploading big files such as video files.

Thanks, anyway :)

On Oct 29, 8:02 am, Gareth McCumskey  wrote:
> http://php.net/manual/en/function.ini-set.php
>
> On Thu, Oct 29, 2009 at 8:35 AM, DEEPAK BHATIA wrote:
>
>
>
>
>
> > Please send me the code for same if possible. Thanks
>
> > On Thu, Oct 29, 2009 at 10:47 AM, Gareth McCumskey 
> > wrote:
>
> >> I think what he means is PHP's built in script execution time limitations
> >> and so on.
>
> >> One thing that you can do is dynamically alter the max execution time and
> >> memory limits during the upload process based on the file size.
>
> >> On Wed, Oct 28, 2009 at 5:30 PM, DEEPAK BHATIA 
> >> wrote:
>
> >>> Every web application has a limit on upload else your server could be
> >>> crashed for no space
>
> >>> On Wed, Oct 28, 2009 at 4:41 PM, Gorka  wrote:
>
>  When it comes to video or audio files, uploading via http forms does
>  not seem to be the best approach: timeouts, size limits, etc...
>  usually get on the way.
>
>  How would you manage big (+20MB) or batch uploads? I guess the best
>  solution would be a client-side code either in java, flash o
>  silverlight using FTP to upload the files and server-code to process
>  the uploaded files if needed, but I'd like to know how people are
>  solving this issue.
>
> >> --
> >> Gareth McCumskey
> >>http://garethmccumskey.blogspot.com
> >> twitter: @garethmcc
>
> --
> Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> twitter: @garethmcc
--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to manage big uploads

2009-10-29 Thread Miloslav Kmeť

I do it exactly like you described.  I have no code to share, but you can 
really look in the php.ini settings especially on the settings
upload_max_filesize
post_max_size

There is no magic. Metadata from the uploaded video i am retrieving with 
ffmpeg-php and I never need to increase the max_execution_time (because I 
never process the video in a web request).

If you would like to use some kind of progressbar for user, you need to find 
your uploader (uploadify, swfupload) or you can do it yourself for example 
with APC. There are many example on the internet.

~
Miloslav Kmeť

Dňa Št 29. október 2009 Gorka napísal:
> Thanks, Gareth and Deepak, but Im not searching for php.ini
> configurarion and there is no code i can show. Im asking for the best
> practice when it comes to uploading big files such as video files.
>
> Thanks, anyway :)
>
> On Oct 29, 8:02 am, Gareth McCumskey  wrote:
> > http://php.net/manual/en/function.ini-set.php
> >
> > On Thu, Oct 29, 2009 at 8:35 AM, DEEPAK BHATIA 
wrote:
> > > Please send me the code for same if possible. Thanks
> > >
> > > On Thu, Oct 29, 2009 at 10:47 AM, Gareth McCumskey 
wrote:
> > >> I think what he means is PHP's built in script execution time
> > >> limitations and so on.
> > >>
> > >> One thing that you can do is dynamically alter the max execution time
> > >> and memory limits during the upload process based on the file size.
> > >>
> > >> On Wed, Oct 28, 2009 at 5:30 PM, DEEPAK BHATIA 
wrote:
> > >>> Every web application has a limit on upload else your server could be
> > >>> crashed for no space
> > >>>
> > >>> On Wed, Oct 28, 2009 at 4:41 PM, Gorka  
wrote:
> >  When it comes to video or audio files, uploading via http forms does
> >  not seem to be the best approach: timeouts, size limits, etc...
> >  usually get on the way.
> > 
> >  How would you manage big (+20MB) or batch uploads? I guess the best
> >  solution would be a client-side code either in java, flash o
> >  silverlight using FTP to upload the files and server-code to process
> >  the uploaded files if needed, but I'd like to know how people are
> >  solving this issue.
> > >>
> > >> --
> > >> Gareth McCumskey
> > >>http://garethmccumskey.blogspot.com
> > >> twitter: @garethmcc
> >
> > --
> > Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> > twitter: @garethmcc
>
> 


--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: functional tests : issue with auto-increment and userID

2009-10-29 Thread Adrien Mogenet

I run tests under 'test' env which works perfectly, using a app-test
database :-)

The point I would like to figure out is really the issue with the ID
that my sfBrowser is returning after signing in, which is different
from the ID in Database, but not the first time, just after reloading
fixtures automatically at least once time !

Thanks for helping me,

Adrien

On 29 oct, 11:28, Gareth McCumskey  wrote:
> This is the expected behaviour because symfony's load fixture methods dont
> drop the tables and recreate them. If you drop the database yourself and
> regenerate it before you run tests, or truncate each table, then you should
> have things working as you want.
>
> On Tue, Oct 27, 2009 at 6:09 PM, Adrien Mogenet 
> wrote:
>
>
>
>
>
> > Hi everyone,
>
> > I'm using fixture to fill my database with 3 fake user accounts, the
> > first one is my "demo" account.
> > I'm writing my tests using a $browser as sfGuardTestFunctional, which
> > signs me in automatically.
>
> > The first time I launch my test, my $browser works perferctly and
> > shows that my User ID is #1 [OK]
>
> > But, second time, fixtures are put within my DB, so my "demo" account
> > get the ID #4, but my $browser, which signs in again perfectly, says
> > that I have the user ID #3 !!!
>
> > This behaviour avoid any other INSERT operation, resulting in
> > constraint issues.
>
> > Thanks for helping me :-)
>
> > --
> > Adrien
>
> --
> Gareth McCumskeyhttp://garethmccumskey.blogspot.com
> twitter: @garethmcc
--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Symfony 1.3, load data failed (override plugin schema)

2009-10-29 Thread FlyLM [ML]

Hello,

I use Symfony 1.3 (with doctrine) and my application database schema
overrides the database schema of the plugin "sfDoctrineGuardPlugin".

My "sf_guard_user" definition look like that :

**
sfGuardUser:
  actAs: [Timestampable]
  columns:
id: { type: integer(4), primary: true, autoincrement: true }
username: { type: string(128), notnull: true, unique: true }
gender: { type: enum, values: ['Mr','Mrs','Miss'], notnull: true }
first_name: { type: string(255), notnull: true }
last_name: { type: string(255), notnull: true }
email: { type: string(255), unique: true, notnull: true }
algorithm: { type: string(128), default: sha1, notnull: true }
salt: { type: string(128) }
password: { type: string(128) }
is_active: { type: boolean, default: 1 }
is_super_admin: { type: boolean, default: false }
last_login: { type: timestamp }
  indexes:
is_active_idx:
  fields: [is_active]
  relations:
groups: { class: sfGuardGroup, local: user_id, foreign: group_id,
refClass: sfGuardUserGroup, foreignAlias: Users }
permissions: { class: sfGuardPermission, local: user_id, foreign:
permission_id, refClass: sfGuardUserPermission, foreignAlias: Users }
**

I have added 4 columns : gender, first_name, last_name and email.

All works fine until I try to load data like this :

**
sfGuardUser:

  sgu_admin:
username:   admin
password:   admin
gender: Mr
first_name: admin
last_name:  admin
email:  admin-...@cnsx.net
is_super_admin: false

  sgu_superadmin:
username:   adminsu
password:   adminsu
gender: Mr
first_name: superadmin
last_name:  superadmin
email:  superadmin-...@cnsx.net
is_super_admin: false
**

All additional method (setGender, setFirstName, etc...) seems to be
unknown (Console message : Unknown method sfGuardUser::setGender ).

Can you see a mistake, or it a bug of Symfony 1.3 ? I don't understand.

Thx,
Fabien

ps: sorry for my english.

--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Production routing vs. dev environment routing.

2009-10-29 Thread Zach

Hi Eno,

I am not using a virtual host...

This is an existing application that has been working fine for over a
year. Everything else on the site works great, it's just this one URL
that I am having a problem with. What is the difference between the
dev environment and the production environment that could be causing
this error?

Thanks for your responses,
Zach


On Oct 28, 4:54 pm, Eno  wrote:
> On Wed, 28 Oct 2009, Zach wrote:
>
> > ok... so I ran phpinfo() just to check, and yes I do have mod_rewrite
> > listed under the loaded modules.
>
> Is your vhost configured to look at .htaccess files and allow directives
> in them? The AllowOverride directive (or something like that).
>
>
>
>
>
> > On Oct 28, 3:31 pm, Sid Bachtiar  wrote:
> > > > 2. yes... I have RewriteEngine On in the .htaccess (that enables
>
> > > mod_rewrite right?)
>
> > > Not just there. Your apache web server must have it enabled.
>
> > > If you're on linux: sudo a2enmod rewrite
>
> > > then restart apache
>
> > > On Thu, Oct 29, 2009 at 9:23 AM, Zach  wrote:
>
> > > > Thanks for the fast reply!
>
> > > > 1. yes I did symfony cc
> > > > 2. yes... I have RewriteEngine On in the .htaccess (that enables
> > > > mod_rewrite right?)
>
> > > > On Oct 28, 3:07 pm, Sid Bachtiar  wrote:
> > > > > 1. Did you clear cache? ./symfony cc
> > > > > 2. Do you have mod_rewrite enabled on your production server?
>
> > > > > On Thu, Oct 29, 2009 at 8:56 AM, Zach  wrote:
>
> > > > > > I've been stuck on this for quite some time and hope someone can 
> > > > > > help
> > > > > > me. It's probably something simple that I am overlooking (and I hope
> > > > > > it is) but I can't figure it out.
>
> > > > > > I am integrating PayPal Payments Pro Recurring Billing using Express
> > > > > > Checkout. I have already successfully integrated Recurring Billing
> > > > > > using Direct Payment.
>
> > > > > > Everything is working fine except I need certain parameters to 
> > > > > > process
> > > > > > the payment after the user is directed back to my site from paypal. 
> > > > > > So
> > > > > > I specify the return url to include those parameters like this
> > > > > > $returnUrl = "https://mysite/payment/param/$value/param2/$value2";;
>
> > > > > > when paypal redirects to this url it appends a few parameters of 
> > > > > > it's
> > > > > > own so I end up with something like this:
>
> > > > > >https://mysite/payment/param/$value/param2/$value2?token=value&PayerI.
> > > > ..
>
> > > > > > I wasn't sure if this would work, but it did just fine until I
> > > > > > moved to my other testing server and tried it in the production
> > > > > > environment instead of frontend_dev.php.
> > > > > > Now I just get a 404 not found. But if I insert frontend_dev.php 
> > > > > > into
> > > > > > the url it works fine.
> > > > > > How can I get this to work in the production environment?
>
> > > > > > Summary:
>
> > > > > > Works:
>
> > > > > >https://mysite/frontend_dev.php/payment/param/$value/param2/$value2?t.
> > > > ..
>
> > > > > > Doesn't Work:
>
> > > > > >https://mysite/payment/param/$value/param2/$value2?token=value&PayerI.
> > > > ..
>
> > > > > > Thank you for you help,
> > > > > > Zach
>
> > > > > --
> > > > > Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
>
> > > --
> > > Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Production routing vs. dev environment routing.

2009-10-29 Thread Zach

Ok, so it ended up being a simple issue...

one of the parameters had a numeric value with a decimal... which was
breaking my url.

If I remove the dot first, everything works fine.

Thanks everyone for their ideas. Does anyone know why the dot works in
the dev environment but not the prod environment?

Thanks again,
Zach

On Oct 29, 10:49 am, Zach  wrote:
> Hi Eno,
>
> I am not using a virtual host...
>
> This is an existing application that has been working fine for over a
> year. Everything else on the site works great, it's just this one URL
> that I am having a problem with. What is the difference between the
> dev environment and the production environment that could be causing
> this error?
>
> Thanks for your responses,
> Zach
>
> On Oct 28, 4:54 pm, Eno  wrote:
>
>
>
> > On Wed, 28 Oct 2009, Zach wrote:
>
> > > ok... so I ran phpinfo() just to check, and yes I do have mod_rewrite
> > > listed under the loaded modules.
>
> > Is your vhost configured to look at .htaccess files and allow directives
> > in them? The AllowOverride directive (or something like that).
>
> > > On Oct 28, 3:31 pm, Sid Bachtiar  wrote:
> > > > > 2. yes... I have RewriteEngine On in the .htaccess (that enables
>
> > > > mod_rewrite right?)
>
> > > > Not just there. Your apache web server must have it enabled.
>
> > > > If you're on linux: sudo a2enmod rewrite
>
> > > > then restart apache
>
> > > > On Thu, Oct 29, 2009 at 9:23 AM, Zach  wrote:
>
> > > > > Thanks for the fast reply!
>
> > > > > 1. yes I did symfony cc
> > > > > 2. yes... I have RewriteEngine On in the .htaccess (that enables
> > > > > mod_rewrite right?)
>
> > > > > On Oct 28, 3:07 pm, Sid Bachtiar  wrote:
> > > > > > 1. Did you clear cache? ./symfony cc
> > > > > > 2. Do you have mod_rewrite enabled on your production server?
>
> > > > > > On Thu, Oct 29, 2009 at 8:56 AM, Zach  wrote:
>
> > > > > > > I've been stuck on this for quite some time and hope someone can 
> > > > > > > help
> > > > > > > me. It's probably something simple that I am overlooking (and I 
> > > > > > > hope
> > > > > > > it is) but I can't figure it out.
>
> > > > > > > I am integrating PayPal Payments Pro Recurring Billing using 
> > > > > > > Express
> > > > > > > Checkout. I have already successfully integrated Recurring Billing
> > > > > > > using Direct Payment.
>
> > > > > > > Everything is working fine except I need certain parameters to 
> > > > > > > process
> > > > > > > the payment after the user is directed back to my site from 
> > > > > > > paypal. So
> > > > > > > I specify the return url to include those parameters like this
> > > > > > > $returnUrl = "https://mysite/payment/param/$value/param2/$value2";;
>
> > > > > > > when paypal redirects to this url it appends a few parameters of 
> > > > > > > it's
> > > > > > > own so I end up with something like this:
>
> > > > > > >https://mysite/payment/param/$value/param2/$value2?token=value&PayerI.
> > > > > ..
>
> > > > > > > I wasn't sure if this would work, but it did just fine until I
> > > > > > > moved to my other testing server and tried it in the production
> > > > > > > environment instead of frontend_dev.php.
> > > > > > > Now I just get a 404 not found. But if I insert frontend_dev.php 
> > > > > > > into
> > > > > > > the url it works fine.
> > > > > > > How can I get this to work in the production environment?
>
> > > > > > > Summary:
>
> > > > > > > Works:
>
> > > > > > >https://mysite/frontend_dev.php/payment/param/$value/param2/$value2?t.
> > > > > ..
>
> > > > > > > Doesn't Work:
>
> > > > > > >https://mysite/payment/param/$value/param2/$value2?token=value&PayerI.
> > > > > ..
>
> > > > > > > Thank you for you help,
> > > > > > > Zach
>
> > > > > > --
> > > > > > Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
>
> > > > --
> > > > Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Symfony 1.3, load data failed (override plugin schema)

2009-10-29 Thread FlyLM [ML]

I just try with an other computer, I've updated the working copy and
the "data-load" works fine ^^
Sorry for the noise.

Fabien

2009/10/29 FlyLM [ML] :
> Hello,
>
> I use Symfony 1.3 (with doctrine) and my application database schema
> overrides the database schema of the plugin "sfDoctrineGuardPlugin".
>
> My "sf_guard_user" definition look like that :
>
> **
> sfGuardUser:
>  actAs: [Timestampable]
>  columns:
>    id: { type: integer(4), primary: true, autoincrement: true }
>    username: { type: string(128), notnull: true, unique: true }
>    gender: { type: enum, values: ['Mr','Mrs','Miss'], notnull: true }
>    first_name: { type: string(255), notnull: true }
>    last_name: { type: string(255), notnull: true }
>    email: { type: string(255), unique: true, notnull: true }
>    algorithm: { type: string(128), default: sha1, notnull: true }
>    salt: { type: string(128) }
>    password: { type: string(128) }
>    is_active: { type: boolean, default: 1 }
>    is_super_admin: { type: boolean, default: false }
>    last_login: { type: timestamp }
>  indexes:
>    is_active_idx:
>      fields: [is_active]
>  relations:
>    groups: { class: sfGuardGroup, local: user_id, foreign: group_id,
> refClass: sfGuardUserGroup, foreignAlias: Users }
>    permissions: { class: sfGuardPermission, local: user_id, foreign:
> permission_id, refClass: sfGuardUserPermission, foreignAlias: Users }
> **
>
> I have added 4 columns : gender, first_name, last_name and email.
>
> All works fine until I try to load data like this :
>
> **
> sfGuardUser:
>
>  sgu_admin:
>    username:       admin
>    password:       admin
>    gender:         Mr
>    first_name:     admin
>    last_name:      admin
>    email:          admin-...@cnsx.net
>    is_super_admin: false
>
>  sgu_superadmin:
>    username:       adminsu
>    password:       adminsu
>    gender:         Mr
>    first_name:     superadmin
>    last_name:      superadmin
>    email:          superadmin-...@cnsx.net
>    is_super_admin: false
> **
>
> All additional method (setGender, setFirstName, etc...) seems to be
> unknown (Console message : Unknown method sfGuardUser::setGender ).
>
> Can you see a mistake, or it a bug of Symfony 1.3 ? I don't understand.
>
> Thx,
> Fabien
>
> ps: sorry for my english.
>

--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Unknown method JobeetJob::getDateTimeObject

2009-10-29 Thread HiDDeN

I'm following the Jobeet tutorial, and in the Day 11, just before the
"Forms Security" section, in the last portion of code, there is a line
that says "$job->getDateTimeObject('expires_at')->format('y/m/d')".

When running that code, I get this error: Unknown method
JobeetJob::getDateTimeObject

Is the getDateTimeObject supposed to be implemented by myself? Is it
part of Doctrine? (I have not found it in the api).
--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Unknown method JobeetJob::getDateTimeObject

2009-10-29 Thread Jonathan Wage
Are you using Symfony 1.3?

- Jon

On Thu, Oct 29, 2009 at 5:17 PM, HiDDeN  wrote:

>
> I'm following the Jobeet tutorial, and in the Day 11, just before the
> "Forms Security" section, in the last portion of code, there is a line
> that says "$job->getDateTimeObject('expires_at')->format('y/m/d')".
>
> When running that code, I get this error: Unknown method
> JobeetJob::getDateTimeObject
>
> Is the getDateTimeObject supposed to be implemented by myself? Is it
> part of Doctrine? (I have not found it in the api).
> >
>


-- 
Jonathan H. Wage (+1 415 992 5468)
Open Source Software Developer & Evangelist
sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org

You should follow me on Twitter: http://www.twitter.com/jwage

You can contact Jonathan about Doctrine, Symfony and Open-Source or for
training, consulting, application development, or business related questions
at jonathan.w...@sensio.com

--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Unknown method JobeetJob::getDateTimeObject

2009-10-29 Thread HiDDeN

Nope, I'm using the version that comes with Jobeet (it's 1.2.9-DEV).


On 29 oct, 22:28, Jonathan Wage  wrote:
> Are you using Symfony 1.3?
>
> - Jon
>
> On Thu, Oct 29, 2009 at 5:17 PM, HiDDeN  wrote:
>
> > I'm following the Jobeet tutorial, and in the Day 11, just before the
> > "Forms Security" section, in the last portion of code, there is a line
> > that says "$job->getDateTimeObject('expires_at')->format('y/m/d')".
>
> > When running that code, I get this error: Unknown method
> > JobeetJob::getDateTimeObject
>
> > Is the getDateTimeObject supposed to be implemented by myself? Is it
> > part of Doctrine? (I have not found it in the api).
>
> --
> Jonathan H. Wage (+1 415 992 5468)
> Open Source Software Developer & Evangelist
> sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org
>
> You should follow me on Twitter:http://www.twitter.com/jwage
>
> You can contact Jonathan about Doctrine, Symfony and Open-Source or for
> training, consulting, application development, or business related questions
> at jonathan.w...@sensio.com
--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Unknown method JobeetJob::getDateTimeObject

2009-10-29 Thread HiDDeN

Ok, I have seen it is a method only present in 1.3 version. I have
downloaded 1.3 BETA1 and tried to go to the homepage, but I'm getting
this error:

Configuration file "/var/www/jobeet/lib/vendor/symfony/lib/config/
config/filters.yml" specifies category "common" with missing class
key.


On 29 oct, 23:39, HiDDeN  wrote:
> Nope, I'm using the version that comes with Jobeet (it's 1.2.9-DEV).
>
> On 29 oct, 22:28, Jonathan Wage  wrote:
>
>
>
> > Are you using Symfony 1.3?
>
> > - Jon
>
> > On Thu, Oct 29, 2009 at 5:17 PM, HiDDeN  wrote:
>
> > > I'm following the Jobeet tutorial, and in the Day 11, just before the
> > > "Forms Security" section, in the last portion of code, there is a line
> > > that says "$job->getDateTimeObject('expires_at')->format('y/m/d')".
>
> > > When running that code, I get this error: Unknown method
> > > JobeetJob::getDateTimeObject
>
> > > Is the getDateTimeObject supposed to be implemented by myself? Is it
> > > part of Doctrine? (I have not found it in the api).
>
> > --
> > Jonathan H. Wage (+1 415 992 5468)
> > Open Source Software Developer & Evangelist
> > sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org
>
> > You should follow me on Twitter:http://www.twitter.com/jwage
>
> > You can contact Jonathan about Doctrine, Symfony and Open-Source or for
> > training, consulting, application development, or business related questions
> > at jonathan.w...@sensio.com
--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Symfony 1.3, sfDoctrineGuardPlugin error

2009-10-29 Thread FlyLM [ML]

Hi,

I use "admin generator" to manage my "sf_guard_user" in my backend.
The project is under Symfony 1.3 (trunk) and I use
"sfDoctrineGuardPLugin" from the trunk too.

When I save (edit) I get this error :

"Unknown method sfGuardUser::reloadGroupsAndPermissions"

If I remove "goups_list" from the form fields, the record is saved.

Any idea ?

Fabien

--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Speed & Javascript

2009-10-29 Thread roberto german puentes diaz
Awesome
http://blog.sproutcore.com/post/225219087/faster-loading-through-eval

-- 
Cr. Puentes Diaz
MP 10.12726.9
Córdoba - Argentina

www.puentesdiaz.com.ar/blog/
www.puentesdiaz.com.ar/blog/novedades
www.twitter.com/puentesdiaz
Linux User n° 441474
Ubuntu/Symfony/Eclipse Rocks!

Sign for Free License for Project Zero
http://www.petitiononline.com/zerogpl/

--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Tiny mce not working

2009-10-29 Thread asim nizam
i have not get help on google group just wastage of time

--~--~-~--~~~---~--~~
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 email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---