[symfony-users] Checkboxes in a list of entries

2009-09-06 Thread sunny

Checkboxes in a list of entries and to change status of each data in a
frontend application

how can it be done on frontend .
--~--~-~--~~~---~--~~
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 aspires to be pure OOP, so why the hell are helpers implemented as functions instead of as methods of classes?

2009-09-06 Thread Eno

On Sun, 6 Sep 2009, Jake Barnes wrote:

> So I am puzzled: why are helpers implemented as functions, instead of
> as methods of classes?

Does it make sense to load an entire class for a few functions designed to 
make writing templates easier?

> The use of functions seems incongruous with the
> stated aims of Symfony. It seems clunky to have such an advanced
> framework that falls back to functions for some things.

In that case, you may also ask why Ruby on Rails also uses helpers despite 
Ruby being a pure OOP language? I think symfony is more pragmatic than 
purist.



-- 



--~--~-~--~~~---~--~~
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 aspires to be pure OOP, so why the hell are helpers implemented as functions instead of as methods of classes?

2009-09-06 Thread Jake Barnes



On Sep 6, 9:43 pm, Sid Bachtiar  wrote:
> I believe helper is a remnant of symfony 1.0 when it was "framework
> for lazy developers" or something like that.
>
> I get the feeling that helper is slowly being phased out.


Okay, so what is considered best practice right now? When we write our
own helpers, is there any reason we should write them as functions?

I'm assuming that at this point we should write helpers as classes?
Especially since the classes get included automatically, whereas the
helpers have to be loaded by hand?










> On Mon, Sep 7, 2009 at 1:20 PM, Jake Barnes wrote:
>
> > I am confused. In most respects Symfony presents itself an OOP
> > framework which implements several best-practice   design patterns,
> > such as MVC and Front Controller, and Symfony takes advantage of some
> > of the most advanced aspects of PHP 5. On the symfony-project.org
> > site, the first headline of body text says:
>
> > "Symfony is a full-stack framework, a library of cohesive classes
> > written in PHP."
>
> > I note the use of "cohesive classes".
>
> > So I am puzzled: why are helpers implemented as functions, instead of
> > as methods of classes? The use of functions seems incongruous with the
> > stated aims of Symfony. It seems clunky to have such an advanced
> > framework that falls back to functions for some things.
>
> > Does anyone know why this particular decision was made?
>
> --
> 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: sfphpExcelPlugin installation problem

2009-09-06 Thread asim nizam
Yes i installed sfexcelplugin successfully using new version for symfony1.2

thanks alll

On Sun, Sep 6, 2009 at 7:00 PM, DEEPAK BHATIA wrote:

>
> Did you do
>
> php symfony cc
>
> On Sat, Sep 5, 2009 at 9:51 AM, asim nizam wrote:
> > i did same i downloaded it manually and copied in plugin folder and also
> > enabled in sfconfigurationfile but when i run the example file it says
> > phpexcel class doesnot exist
> >>
> >
> >
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
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 aspires to be pure OOP, so why the hell are helpers implemented as functions instead of as methods of classes?

2009-09-06 Thread Sid Bachtiar

I believe helper is a remnant of symfony 1.0 when it was "framework
for lazy developers" or something like that.

I get the feeling that helper is slowly being phased out.

For example, in Symfony 1.2, we use sfForm instead of Form helper. I'm
pretty sure in Symfony 1.2, form helper isn't included by default like
in Symfony 1.0.

On Mon, Sep 7, 2009 at 1:20 PM, Jake Barnes wrote:
>
>
> I am confused. In most respects Symfony presents itself an OOP
> framework which implements several best-practice   design patterns,
> such as MVC and Front Controller, and Symfony takes advantage of some
> of the most advanced aspects of PHP 5. On the symfony-project.org
> site, the first headline of body text says:
>
> "Symfony is a full-stack framework, a library of cohesive classes
> written in PHP."
>
> I note the use of "cohesive classes".
>
> So I am puzzled: why are helpers implemented as functions, instead of
> as methods of classes? The use of functions seems incongruous with the
> stated aims of Symfony. It seems clunky to have such an advanced
> framework that falls back to functions for some things.
>
> Does anyone know why this particular decision was made?
>
>
>
>
>
>
>
> >
>



-- 
Blue Horn Ltd - System Development
http://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] Symfony aspires to be pure OOP, so why the hell are helpers implemented as functions instead of as methods of classes?

2009-09-06 Thread Jake Barnes


I am confused. In most respects Symfony presents itself an OOP
framework which implements several best-practice   design patterns,
such as MVC and Front Controller, and Symfony takes advantage of some
of the most advanced aspects of PHP 5. On the symfony-project.org
site, the first headline of body text says:

"Symfony is a full-stack framework, a library of cohesive classes
written in PHP."

I note the use of "cohesive classes".

So I am puzzled: why are helpers implemented as functions, instead of
as methods of classes? The use of functions seems incongruous with the
stated aims of Symfony. It seems clunky to have such an advanced
framework that falls back to functions for some things.

Does anyone know why this particular decision was made?







--~--~-~--~~~---~--~~
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: File uploads doesn't work with an another server

2009-09-06 Thread Sid Bachtiar

Did you check maximum allowed file size in your Debian server?

E.g.: ini php.ini?

On Mon, Sep 7, 2009 at 11:30 AM, William
DURAND wrote:
>
> Hi,
>
> I'm writing an application using sf 1.2 & Doctrine.
> Under windows XP, Ubuntu 9+ and OS X no problems, but under Debian one
> of my forms doesn't work.
>
> That form allows user to upload files but under Debian, upload doesn't
> work.
> The method isValid() always returns false, it seems to be a problem
> with mime types.
> I checked several config points like permissions, apache config,
> php.ini ...
>
> Could somebody help me ?
>
> Thanks.
> >
>



-- 
Blue Horn Ltd - System Development
http://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] File uploads doesn't work with an another server

2009-09-06 Thread William DURAND

Hi,

I'm writing an application using sf 1.2 & Doctrine.
Under windows XP, Ubuntu 9+ and OS X no problems, but under Debian one
of my forms doesn't work.

That form allows user to upload files but under Debian, upload doesn't
work.
The method isValid() always returns false, it seems to be a problem
with mime types.
I checked several config points like permissions, apache config,
php.ini ...

Could somebody help me ?

Thanks.
--~--~-~--~~~---~--~~
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: Textarea value

2009-09-06 Thread Hellmich Dennis

I think you should call the render function and overgive the value as  
the second parameter. E.g.
  $w = new sfWidgetFormTextarea();
  echo $w->render('the_name', 'the_value_of_the_textarea');

The second parameter in the constructor you used just adds stupidly  
any html attributes you specify. So if you have an element called  
'value' in your array it adds a value-attribute.

Am 01.09.2009 um 13:09 schrieb Mark Smith:

>
> Hi,
>
> I am contructing a text area widget inside the configure method of my
> form like this:
>
> $this->setWidget("Notes", new sfWidgetFormTextarea(array(),array
> ('value'=>$this->entity->Notes)));
>
>
> In the template when I try to print out the widget like this:
>
> 
>
> The resulting html is:
>
> 
>
> For a textarea element the value goes between the opening and closing
> tags, not as an attribute like on input elements. The result for the
> user is the text area appears blank.
>
> Is this a bug in symfony? (I am currently on 1.2.0) Or is there
> another way I should be printing out this form field?
>
> Thanks
> >


--~--~-~--~~~---~--~~
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: about generator.yml

2009-09-06 Thread Abraham Montilla
Exactly Dennis, the generator.yml file sems to work only with generate-admin
command, however, the 14th chapter of "the definitive guide to symfony"
talks a lot about it, maybe you want to check it out
http://www.symfony-project.org/book/1_2/14-Generators Good luck

2009/9/5 Dennis Riedel 

> Ok. Because I had created the backend forms with doctrine:generate-module
> and not with doctrine:generate-admin in the beginning, it did not work
> later. I deleted all modules and recreated them with
> doctrine:generate-admin. Now they all have by default a generator.yml which
> can be customized.
>
>
>
> On Sat, Sep 5, 2009 at 11:40 PM, Dennis Riedel wrote:
>
>> Hi Abraham
>> Did you solve your problem? I used generate-module and generate-admin to
>> create my backend form. But it never seems to use my custom configuration
>> that I have created in myModule/config/generator.yml. Cache was cleared...
>>
>> Regards,
>> Dennis
>>
>>
>> On Fri, Sep 4, 2009 at 7:57 PM, Abraham  wrote:
>>
>>>
>>> hello folks, i created a module with the "doctrine:generate-module --
>>> with-show --non-verbose-templates X Y Z" command, now i want to use a
>>> generator.yml to configure the forms and list view, but it doesn't
>>> work, why is that? i created the generator in the /apps/my-app/
>>> modules/-my-mod/config/generator.yml and things as simples as changing
>>> the list title just doesn't work, the list remain the same as
>>> default... is it mandatory to use generators only with modules created
>>> with the "generate-admin" command?
>>>
>>> thanks in advance.
>>>
>>>
>>
>
> >
>


-- 
Have a nice day.
Abraham Montilla.

--~--~-~--~~~---~--~~
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 Facebook Integration

2009-09-06 Thread Fabrice B

http://www.symfony-project.org/plugins/sfFacebookConnectPlugin

It's been released two weeks ago, and we are 4 people (I know) using
it in projects already. For the moment I did not open the svn, but I
am very responsive when given a patch. It is theoretically propel/1.0
and doctrine/1.2 compatible.

You can see our conversation on my blog :
http://www.theodo.fr/blog/2009/08/a-facebook-connect-plugin-for-symfony/

I am looking forward all of your suggestions !

Regards,

Fabrice Bernhard
--
http://www.theodo.fr

On Sep 4, 7:09 pm, Kieu Anh Tuan  wrote:
> Interesting question. I've heard about a plugin named
> sfFacebookConnectPlugin during the Symfony live in Paris but there's nothing
> so far. Any idea on the development state of the plugin or how to get
> involved?
>
> On Sep 4, 2009 6:36 PM, "Sorom Uzomah"  wrote:
>
> Hi Daniel,
>
> Thanks alot, any information on facebook integration ?
>
> --
> *From:* Richtermeister 
> *To:* symfony users 
> *Sent:* Friday, September 4, 2009 4:36:44 PM
> *Subject:* [symfony-users] Re: Symfony Facebook Integration
>
> Hey Surom, I 
> believehttp://www.symfony-project.org/plugins/sfPropelApplyPlugincould help.
> Haven...
--~--~-~--~~~---~--~~
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: sfphpExcelPlugin installation problem

2009-09-06 Thread DEEPAK BHATIA

Did you do

php symfony cc

On Sat, Sep 5, 2009 at 9:51 AM, asim nizam wrote:
> i did same i downloaded it manually and copied in plugin folder and also
> enabled in sfconfigurationfile but when i run the example file it says
> phpexcel class doesnot exist
>>
>
>
> >
>

--~--~-~--~~~---~--~~
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: Preferred Linux servers for symfony?

2009-09-06 Thread Giovanni Toraldo

On Sat, Sep 5, 2009 at 14:16, Tom Boutell wrote:
> Speaking of which: one best-of-all-possible-worlds scenario is to set
> up your Linux distribution of choice in a VirtualBox virtual machine.
> Doesn't cost a penny, and if you get the filesharing right you should
> be able to code in TextMate without any tedious syncing to your local
> test environment. You don't even have to set up the X GUI for the
> server in that scenario, which makes the VM a lot less heavy in CPU
> terms.

I agree.

I bought recently a macbook, and I am using virtualbox on macosx.

My virtual machine is a debian minimal LAMP system, with docroot
mounted via NFS on my host mac, where I use netbeans to develop.

The advantages are:
- dev and prod environments are identical;
- you start the virtual machine only when you need it;
- I don't need to sync any files anywhere;

Bye

-- 
Giovanni "scorp" Toraldo

--~--~-~--~~~---~--~~
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: sfphpExcelPlugin installation problem

2009-09-06 Thread Sherif

On a bit of a side note, I tested out sfphpExcelPlugin and found it
was quite memory intensive compared to the Pear
SPREADSHEET_EXCEL_WRITER package. I ended up going for the Pear
package as I need to work with exporting several thousand rows and
kept reaching memory limits with the phpExcel.

Sherif

--~--~-~--~~~---~--~~
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: can't use Criteria() class in frontendConfiguration.class.php

2009-09-06 Thread javo

Thank you

Exactly what I needed to hear ...
I've read about Filters and everything works now :)

Thank you again

On 3. Sep., 11:31 h., CaffeineInc  wrote:
> I would suggest reading the filter chapter again.
>
> On Sep 2, 8:56 pm, javo  wrote:
>
> > Hi there,
>
> > I've read many Symfony docs and tried to explore Symfony code but I
> > can't figure out where can I put some code that will be executed by
> > every module/action (something like frontendConfiguration.class.php)
> > Unfortunatelly I can't use Criteria() class there
>
> > // I want to read some settings from my database using Peer object and
> > use them on my website
>
> > Is there any way how to do that? I'd really appreciate your help
>
> > Thank you
>
>
--~--~-~--~~~---~--~~
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: about generator.yml

2009-09-06 Thread Dennis Riedel
Ok. Because I had created the backend forms with doctrine:generate-module
and not with doctrine:generate-admin in the beginning, it did not work
later. I deleted all modules and recreated them with
doctrine:generate-admin. Now they all have by default a generator.yml which
can be customized.


On Sat, Sep 5, 2009 at 11:40 PM, Dennis Riedel wrote:

> Hi Abraham
> Did you solve your problem? I used generate-module and generate-admin to
> create my backend form. But it never seems to use my custom configuration
> that I have created in myModule/config/generator.yml. Cache was cleared...
>
> Regards,
> Dennis
>
>
> On Fri, Sep 4, 2009 at 7:57 PM, Abraham  wrote:
>
>>
>> hello folks, i created a module with the "doctrine:generate-module --
>> with-show --non-verbose-templates X Y Z" command, now i want to use a
>> generator.yml to configure the forms and list view, but it doesn't
>> work, why is that? i created the generator in the /apps/my-app/
>> modules/-my-mod/config/generator.yml and things as simples as changing
>> the list title just doesn't work, the list remain the same as
>> default... is it mandatory to use generators only with modules created
>> with the "generate-admin" command?
>>
>> 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: about generator.yml

2009-09-06 Thread Dennis Riedel
Hi Abraham
Did you solve your problem? I used generate-module and generate-admin to
create my backend form. But it never seems to use my custom configuration
that I have created in myModule/config/generator.yml. Cache was cleared...

Regards,
Dennis

On Fri, Sep 4, 2009 at 7:57 PM, Abraham  wrote:

>
> hello folks, i created a module with the "doctrine:generate-module --
> with-show --non-verbose-templates X Y Z" command, now i want to use a
> generator.yml to configure the forms and list view, but it doesn't
> work, why is that? i created the generator in the /apps/my-app/
> modules/-my-mod/config/generator.yml and things as simples as changing
> the list title just doesn't work, the list remain the same as
> default... is it mandatory to use generators only with modules created
> with the "generate-admin" command?
>
> 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
-~--~~~~--~~--~--~---