[symfony-users] Re: Determine sfGuardPermission required for action, from within an action or filter

2010-06-30 Thread Tom Ptacnik
Try this http://www.symfony-project.org/api/1_4/sfAction#method_getcredential On 30 čvn, 14:49, Donald wrote: > I'm trying to determine what sfGuardPermission was required for an > action, from within the action. Is this possible? > > myModule/config/security.yml: > > show: >   credentials: view

[symfony-users] Re: Imploding an array before saving

2010-06-30 Thread Tom Ptacnik
I think you can do this in the doUpdateObject() method of the form class something like that: protected function doUpdateObject($values) { // implode the age $values['age_separation'] == $this->implodeAge($values); parent::doUpdateObject($values); } On 30 čvn, 11:08, Dantes wrote: > Hi

[symfony-users] Re: Re-populate file input field after validation error

2010-06-30 Thread Tom Ptacnik
Problem with automatic refilling file input is due to the security - it's restricted by browsers. (think about what can happen if you could change the file path...you can stole files from the users computer easily.) So if you'll google you'll find many topics where people complain about this...and

[symfony-users] Re: Different Cache for different user groups

2010-06-30 Thread pghoratiu
I do not know much about your application but usually it is not a good strategy to cache pages or partials accessible only to one user. Usually these type of pages are not highly traffic-ed (compared to public pages) and the cache will not be hit so many times (compared to public pages). If those

Re: [symfony-users] Different Cache for different user groups

2010-06-30 Thread Eno
On Wed, 30 Jun 2010, Richtermeister wrote: > I have an app with 2 usergroups (admins and dealers), and dealers can > fall into 3 brands. Those two factors affect the content of certain > lists. Now, I'd like to cache certain sections, but of course I need > to still worry about who sees what, and

[symfony-users] Different Cache for different user groups

2010-06-30 Thread Richtermeister
Hi all, I have an app with 2 usergroups (admins and dealers), and dealers can fall into 3 brands. Those two factors affect the content of certain lists. Now, I'd like to cache certain sections, but of course I need to still worry about who sees what, and I'm thinking that in theory this should be

[symfony-users] Re: Frequent PHP Fatal Errors with APC enabled

2010-06-30 Thread mstralka
No luck - I configured apc.stat = 0 this morning and still saw the issue occurring 2 hours later. Then I disabled APC completely - and it still happens! I'm beginning to think it's a problem in apache or PHP because if I open several links from a page into separate tabs in rapid succession, at le

Re: [symfony-users] Symfony2 validation in the sandbox

2010-06-30 Thread Bernhard Schussek
Hi, I just noticed that the documentation is not up to date. You need to enable the validator like this in config.yml: web.config: validation: true Bernhard -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this messag

[symfony-users] Re: Object as array

2010-06-30 Thread Richtermeister
$object -> toArray(BasePeer::TYPE_FIELDNAME) returns the array you're looking for. For more reference, check this: http://propel.posterous.com/getting-to-know-propel-15-when-you-really-nee On Jun 30, 6:14 am, HAUSa wrote: > Is there a way in Symfony / Propel to get an object as array? > > User:

Re: [symfony-users] Re: Plugin from Embedded form in new window

2010-06-30 Thread Leandro
hi, this solution does't meet my need because i need a input select with "plus" in side when click open the form in new window or modal window to after inserted data return this data to re-populate input select with this data like django related field i send before email. I'm search one widget or

[symfony-users] Symfony2 validation in the sandbox

2010-06-30 Thread djones
I have an up-to-date copy of the Symfony2 sandbox and I'm working through the various guides, but I'm having trouble with the Validation guide. I get an exception 'The service "validator" does not exist.', using $validator = $this->container->getValidatorService(); or $validator = $this->container

[symfony-users] Re: Frequent PHP Fatal Errors with APC enabled

2010-06-30 Thread axe
that's strange... try to add apc.stat=0 this will stop checking file modification time, maybe it can help... just if you change any php file, you have to manually clear apc cache -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You r

[symfony-users] Object as array

2010-06-30 Thread HAUSa
Is there a way in Symfony / Propel to get an object as array? User: - id - nickname - email_address - password Instead of using $user->getNickname() I want to do something like $user['nickname'] or $user->getField('nickname') -- If you want to report a vulnerability issue on symfony, pl

Re: [symfony-users] Re: Organization of library applications

2010-06-30 Thread Romeu Godoi
It did not work. Returns the message: *Invalid schema element named "generatePath" at path "Bo" * * * * * Att. 2010/6/30 Tom Ptacnik > try generatePath: parameter in the schema.yml > > > http://groups.google.com/group/symfony-devs/browse_thread/thread/124582b39dd19a55 > > > On 29 čvn, 14:29,

[symfony-users] Re: ahDoctrineEasyEmbeddedRelationsPlugin bug when sfWidgetFormInputFile used?

2010-06-30 Thread slau
btw: with your new release 1.4.3 this is fixed now. thanks a lot for the cool plugin. works like a charme :-) -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "s

[symfony-users] automated response

2010-06-30 Thread Saad Tazi | Twist Image
Merci de votre message. Je suis présentement absent du bureau. Je serai de retour le 5 juillet 2010. L'accès à mes courriels pourrait être limité durant cette période. En cas d'urgence, veuillez contacter Tisha au 514 987-9992 #150 ou par courriel à ti...@twistimage.com. Cordialement, Saad T

[symfony-users] Determine sfGuardPermission required for action, from within an action or filter

2010-06-30 Thread Donald
I'm trying to determine what sfGuardPermission was required for an action, from within the action. Is this possible? myModule/config/security.yml: show: credentials: view something myModule/actions/actions.class.php: class myModuleActions extends sfActions { public function executeShow(sfRe

[symfony-users] Frequent PHP Fatal Errors with APC enabled

2010-06-30 Thread mstralka
We're running our symfony 1.4 app on: dedicated server RHEL 5.x 64bit 8 GB Ram Mysql 5.0.x APC 3.1.13p1 (latest, compiled from source) PHP 5.3.1 Apache 2.2.3 APC is enabled with the following settings: extension=apc.so apc.enabled=1 apc.shm_size=64 We enabled Doctrine_Cache_Apc in ProjectConfigur

Re: [symfony-users] Customizable processes

2010-06-30 Thread Sebastien Armand [Pink]
Probably each of them will have their own install for now. I took a look at ez components that has a workflow component. But I need to spend a lot more time on it to understand what it actually does and from there on, how it could be used in our case. 2010/6/30 Georg > I too would be very

[symfony-users] sfDoctrineGardPlugin login - csrf problem

2010-06-30 Thread Sameer I
Hi, I am using sfDoctrineGardPlugin for both the applications frontend and backend. Login for backend is happening through stock login screen that comes with plugin. Since frontend has completely different UI and login form is displayed on all pages minus 'remember me', I cannot use login form tha

[symfony-users] Re: Organization of library applications

2010-06-30 Thread Tom Ptacnik
try generatePath: parameter in the schema.yml http://groups.google.com/group/symfony-devs/browse_thread/thread/124582b39dd19a55 On 29 čvn, 14:29, Romeu Godoi wrote: > English > Hello everyone! > > I am migrating some projects from S

[symfony-users] Re: Custom filter for admin generated sfGuardUser module

2010-06-30 Thread Tom Ptacnik
This is how i create filter for joined table.. class sfDtProduktFormFilter extends BasesfDtProduktFormFilter { public function configure() { $this->widgetSchema['title'] = new sfWidgetFormFilterInput(); $this->validatorSchema['title'] = new sfValidatorPass(); } public function get

Re: [symfony-users] Customizable processes

2010-06-30 Thread Georg
I too would be very interested in a workflow engine/builder of some kind. Has anybody realised any part of this in a project? @Sebastien: Do you want to run all sub company custom processes in one symfony installation, or does each sub company receive their own installation? BR Georg Am 30.06.20

[symfony-users] [admin generator] Imploding an array before saving

2010-06-30 Thread Dantes
Hi everyone! First of all, before I forget I use symfony v. 1.2.9. Please, do not suggest me to upgrade as my client's application is in use during the holidays and I am going to update after the holiday's season finishes. ;) I think that my problem is quite simple, unfortunately the solution is