Re: [symfony-users] Re: [symfony 2] app/cache and permissions

2011-06-10 Thread ken
I change the umask. # add your user to www-data and vise versa sudo usermod -a -G www-data myusername sudo usermod -a -G myusername www-data # override umask in ~/.bashrc and /etc/init.d/apache2 umask 002 #restart sudo /etc/init.d/apache2 restart -- If you want to report a vulnerability is

[symfony-users] Re: Interface hardware device

2011-04-07 Thread ken
try an active x for IE -- 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 "symfony users" group. To post to this group, send email to symfony-users@googlegroups.co

Re: [symfony-users] nginx Symfony2

2011-03-29 Thread ken
Ok here's a working one. Works in Windows and ubuntu https://gist.github.com/879378 -- 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 "symfony users" group. To p

[symfony-users] nginx Symfony2

2011-03-18 Thread ken
/ken/Dev/symfony-sandbox/web; location / { try_files $uri /app.php; } location ~ \.php(/.*)?$ { include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name

[symfony-users] Re: Setup Symfony in Windows

2011-03-13 Thread ken
it's not a linux specific command. as long as php binary is in your PATH environment, you can execute it in command line aka dos. you just have to make sure that you cd to the project directory -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-pro

[symfony-users] Re: custom validator with sfValidator

2010-12-23 Thread ken
you can simply pass the min number as a form option then pass as "min" option of http://www.symfony-project.org/api/1_4/sfValidatorNumber -- 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 subs

[symfony-users] Re: Enable partial caching on pages with query string

2010-11-24 Thread Ken Golovin
tered > (save() or delete() methods), remove the record from APC so that the next > query gets the updated result. We use this quite extensively on one of our > projects and has dropped a lot of db load off our server. > > > > > > > > > > On Tue, Nov 23, 2010 at

[symfony-users] Enable partial caching on pages with query string

2010-11-22 Thread Ken Golovin
I would like to be able to cache a partial on a search results page that uses query strings, however symfony ignores caching settings. The page on http://www.symfony-project.org/reference/1_4/en/09-Cache says: "An incoming request with GET parameters in the query string or submitted with the POST,

[symfony-users] Re: WkHtmlToPdf in Symfony

2010-10-26 Thread ken
Or echo passthru('/usr/bin/wkhtmltopdf http://google.com/ -'); On Oct 26, 9:26 pm, Florian wrote: > In order to get the html result of the action execution, yoi can use > another solution(, which is a way better than the file_get_contents > solution mentionned here:http://www.symfonyexperts.com/

[symfony-users] Re: Setting up a Staging Environment - Suggestions?

2010-09-14 Thread ken
make use of the rsync task. move all data load into doctrine migration. setting up is as easy as rsync task doctrine:build-db doctrine:build-model doctrine:build-forms doctrine:build-filters doctrine:migrate On Sep 14, 11:40 pm, "Felix E. Klee" wrote: > I am looking for a simple way to setup a s

[symfony-users] Re: Symfony 1.4 project with embedded forms, user data in embedded forms not being saved

2010-05-31 Thread ken
I would advise tracing through sfDoctrineForm::save() method. Embedded forms save is not actually fired on containing form save. So if you have many many relation or another embedded form inside an embedded form, they wont be persisted. On May 31, 1:28 pm, Michael Hodges wrote: > Hello Symfony fa

[symfony-users] Re: sf/doctrine performance

2010-05-06 Thread ken
Or you can add optional argument offset and limit for your task. This however is not for sql but for the xml. The idea is to process only a part of the xml for a given run. This will allow you to run the task in many segments. On May 7, 10:17 am, dan wrote: > Hmm - I don't think this is going to

[symfony-users] Re: Symfony 2 - "Extremly Configurable"

2010-02-20 Thread ken
The debug bar is also really sexy. It blends well if you're using chrome. And I'm really itching to use it with my upcoming projects. I really hope Symfony 2 stable will be released sooner. On Feb 20, 6:03 pm, "michael.pie...@googlemail.com" wrote: > That sounds good. And yes, the sandbox already

[symfony-users] Re: How to change the route created by the admin generator

2010-02-10 Thread ken
As for me, I ended up overriding sfDoctrineRoute and sfDoctrineRouteCollection On Feb 11, 5:51 am, Fabrizio wrote: > I found another discussion on the exact same problem > > http://groups.google.com/group/symfony-users/browse_thread/thread/61a... > > I already tried this solution (in my case, add

[symfony-users] Re: sfOutputEscaperObjectDecorator with isset() ?

2010-02-04 Thread ken
eratorDecorator and an ArrayDecorator, but not an > ObjectDecorator... > > On Feb 4, 4:44 am, ken wrote: > > > > > sfOutputEscaperObjectDecorator::offsetExists > > > On Feb 4, 12:38 am, Mark Smith > > wrote: > > > > Hi, > > > > In m

[symfony-users] Re: generator.yml : disallow a field modification for a user that doesn't have a credential

2010-02-03 Thread ken
As for me, I usually keep generator.yml in it's default form. All of my customizations are done by overriding the generated classes and templates. Keeps me more sane. On Feb 3, 11:35 pm, "a...@speedypin.com" wrote: > I think he means not making a template but messing around with the > generator y

[symfony-users] Re: sfOutputEscaperObjectDecorator with isset() ?

2010-02-03 Thread ken
sfOutputEscaperObjectDecorator::offsetExists On Feb 4, 12:38 am, Mark Smith wrote: > Hi, > > In my template I only want to print properties that exist. > > In pure PHP I would use isset: > > echo isset($object->property) ? $object->property : ""; > > However when the object is an sfOutputEscaperO

[symfony-users] Re: Making sure a login id only has one session at any moment

2010-01-28 Thread ken
This is my solution. shema http://gist.github.com/289418 myUser http://gist.github.com/289424 then insert this filter before the security filter http://gist.github.com/289425 On Jan 29, 12:31 am, "yth" wrote: > Dear ken, > > Is this possible to avoid modifiying the database

[symfony-users] Re: Making sure a login id only has one session at any moment

2010-01-28 Thread ken
The best solution for this is use database session. Add session_id column in the Profile table. This field has to be set during login. So if you are using sfGuardUserPlugin, you can override the signIn method in myUser. With the session_id at hand you will be able to check if user is signed in in a

[symfony-users] Re: sfForm > sfFormField without foreach

2010-01-27 Thread ken
If you mean like dividing your form into different fieldsets/groups then what you can to is add like a public property in the form organizing the fields. someForm extends sfForm { public $fieldsets = array( 'Profile' => array( 'field_a' ) ) } On Jan 27, 11:46 pm, DoRiaN wr

[symfony-users] Re: Symfony Filter

2010-01-26 Thread ken
Sometimes you will need to run the custom filter before the security filter. On Jan 26, 5:02 pm, Asif Ali M wrote: > Thanks Dheeraj. > > You are right. the flow is what you explained. > > What I am trying to find is... > > Is it a good practice in symfony to have my custom filter run before > th

[symfony-users] Re: select db before controller dispatch() ??

2010-01-24 Thread ken
sfDoctrinePlugin fires doctrine.configure event in which Doctrine_Manager is passed. Maybe you can listen for that event in project configuration. On Jan 25, 8:40 am, gamename wrote: > Hi, > > How can I specify a particular db to use a controller dispatches a > request? > > For example, I have 3

[symfony-users] Re: Complex conditional validation, symfony 1.3/4

2010-01-22 Thread ken
create a custom validator that extends sfValidatorSchema $this->mergePostValidator(myValidatorSchemaCustom); all submitted values are passed to its doBind method. this is an example class myValidatorSchemaChangePassword extends sfValidatorSchema { public function __construct($password, $new,

[symfony-users] Re: "_" in actions?

2010-01-20 Thread ken
I have the same issue. I don't think an underscorized route is automatically camelized to match an action. So what I do is create an entry in routing.yml to match the underscorized route. On Jan 21, 1:14 am, Darren884 wrote: > When I make my actions I use camel case: > WholesalePrice > > however

[symfony-users] Re: set or unset a field based on the user credentials

2010-01-18 Thread ken
You can pass the sfUser instance as an option of the form or sub class the form so you can switch form class in the controller based on user credentials. On Jan 19, 1:29 am, Darren884 wrote: > I had this problem before, you will have to take the user object and > pass it to the form class and che

[symfony-users] Re: Best way to get 2 cache versions : anonymous / authenticated users

2010-01-18 Thread ken
You can probably set up a filter to check for settings in cache.yml. like add a boolean setting but you will also need to override sfCacheConfigHandler to persist the setting into the cache. On Jan 18, 8:57 pm, Massimiliano Arione wrote: > On 18 Gen, 10:05, Nicolas CHARLOT wrote: > > > > > > >

[symfony-users] Re: Save Embedded Forms

2010-01-18 Thread ken
Override public function saveEmbeddedForms($con = null, $forms = null). I also suggest that you investigate about sfValidatorSchema, it helps a lot processing just any kind requirement that you may have. I'm just not sure if a merged post validator of a subform is actually taken into account by th

[symfony-users] Re: sfForm clean bind

2010-01-18 Thread ken
It doesn't have. And it is highly advisable that a redirect is executed after a form is processed. The only time no redirection will happen is if the form is invalid. On Jan 18, 7:02 pm, DoRiaN wrote: > Ok there are lot of solutions, buf does sfForm have a method to this ? > > On 15 jan, 14:39, T

[symfony-users] disable view cache expire

2010-01-17 Thread ken
Is there a way to disable view manager from automatically cleaning up the old cache templates? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, s

[symfony-users] Re: move project to another server

2010-01-17 Thread ken
Is the index of the application in a sub directory relative to the root url? If that't the case then you have to override the default relative_url_root in factories.yml under request key. see http://www.symfony-project.org/reference/1_4/en/05-Factories#chapter_05_sub_relative_url_root On Jan 18,

[symfony-users] Re: Base GeneratorConfiguration not found

2010-01-15 Thread ken
Are you trying to override a module in a plugin? On Jan 15, 9:47 pm, Tom Ptacnik wrote: > It should be located(generated) in > /cache/controlpanel/modules/page/lib/ > > On 15 led, 10:46, HAUSa > wrote: > > > > > When I go to my application, it says only this: > > Fatal error: Class 'BasePageGene

[symfony-users] Re: widget multiple option

2010-01-15 Thread ken
Have you defined the relation of documents_users to users in your schema.yml? Are you trying to achieve the behavior of sfGuardUser to sfGuardPermission via sfGuardUserPermission? On Jan 15, 7:01 pm, Javier Garcia wrote: > On 01/14/2010 11:20 PM, Gabo wrote: > > > > > > > Help!! > > > I have this

[symfony-users] Re: FormFilter - sfWidgetFormChoice 'multiple' => true ... error

2010-01-15 Thread ken
You need to add a custom query method in your filter class. public function addTkskateColumnQuery($query, $field, $value) { if (!empty($value)) { $query->addWhereIn('p. tkstate', $value); } } On Jan 15, 5:50 pm, Tom Ptacnik wrote: > Nobody filter a list by checkboxes

[symfony-users] Re: Having trouble modifying filters.

2010-01-15 Thread ken
If you are using the admin generator, override apps//modules/ /lib/GeneratorConfiguration.php public function getFilterOptions() { return array('sf_user' => sfContext::getInstance()->getUser()); } On Jan 15, 6:35 pm, Tom Ptacnik wrote: > you can access to a user object via sfContext::getInstan

[symfony-users] Re: Have it so if a user doesnt fill in a field it stays as it was?

2010-01-15 Thread ken
You mean the form fills the field with the password as default value? I don't think that is ever a good idea. If you want a change password form, here is the class that I'm using. http://gist.github.com/278064 On Jan 15, 6:38 pm, Tom Ptacnik wrote: > Left it unfilled, and then when saving the pr

[symfony-users] Re: sfForm clean bind

2010-01-15 Thread ken
What's your purpose of clearing the form of its values? On Jan 15, 7:23 pm, DoRiaN wrote: > Hello, > > How to delete values after bind() ? > I want to clean my form. > > Thank, -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this gr

[symfony-users] Re: redirect method covert & to &

2010-01-07 Thread ken
you need to explicitly call ini_set('arg_separator.output', '&'); before ProjectConfigutation On Jan 8, 10:43 am, chrisyue wrote: > yes I've already know that, but I've also found that when I use a > route name directly (put a '@' before the route name),  sf will always > throw error "the route n

[symfony-users] Re: Accessing arrays from templates turns them into sfOutputEscaperArrayDecorator objects?

2010-01-06 Thread ken
It's actually recommended to leave outputscaping on be default. On Jan 7, 10:21 am, chrisyue wrote: > thank you ken :) > > > > ken wrote: > > you can use $object->getRaw('property'); > > > On Jan 5, 6:34 pm, chrisyue wrote: > > > I also e

[symfony-users] Re: Accessing arrays from templates turns them into sfOutputEscaperArrayDecorator objects?

2010-01-05 Thread ken
you can use $object->getRaw('property'); On Jan 5, 6:34 pm, chrisyue wrote: > I also encountered a problem like that: when I pass a DOMDocument > object $dom to view, I found that I can't treat $dom as array > anymore, > I put $dom in a foreach statement: > > foreach ($dom->getElementsByTagName('

[symfony-users] Re: Is it possible to add values to fields: extension and mime_type after submit form and before $form->save() ?

2009-12-27 Thread ken
override protected function doUpdateObject($values) protected function doUpdateObject($values) { //do something $this->object->something(); parent::doUpdateObject($values); } On Dec 27, 7:47 pm, dziobacz wrote: > I have table for uploaded images: > > Image: >   actAs: { Timestampab

[symfony-users] Re: Development infrastructure

2009-12-22 Thread ken
If you're in a windows environment and do not have much choice and deployment and testing happens in linux then cygwin + rsync + ssh will do just fine. For the utf8 issue, you can set the default encoding per file type in Eclipse. Virtual os is just too heavy for my machine. -- You received this

[symfony-users] Re: How to use Filter Forms without Admin Generator?

2009-12-10 Thread ken
You can reuse them out of admin generator. If you want to investigate what is the usage then check the generated cache. On Dec 10, 3:48 pm, Christopher Schnell wrote: > Yeah, I thought so. But I can use the fieldset of the filter form > anyway. I was mainly curious because the form filters are no

[symfony-users] sfWidgetFormSchemaFormatter access to widget

2009-12-09 Thread ken
Is there a possibility that sfWidgetFormSchemaFormatter will have the ability to access the widget it is rendering at least in renderRow? There is access for sfWidgetSchema but theres is no way to access the specific field for custom rendering. -- You received this message because you are subscri

[symfony-users] Re: Major deploment issue!

2009-11-24 Thread ken
Make sure that the target directory is writable by you. I also have the same development environment, cygwin + rsync. This is the command im using. ./symfony project:deploy production --go --rsync-options="-rltzC -- force --delete --chmod=og=rx" On Nov 24, 4:53 pm, Gareth McCumskey wrote: > So

[symfony-users] Re: sfDoctrineGuardPlugin errors with 1.3/1.4

2009-11-24 Thread ken
you might want to check this ticket http://www.doctrine-project.org/jira/browse/DC-271 On Nov 24, 2:20 pm, Alexandre SALOME wrote: > I use it with the 1.3 symfony. I only get errors in the backend (user edit > form). > > Don't hesistate to create ticket/purpose patches. > > Alexandre > > 2009/11

[symfony-users] sfWebRequest::getRelativeUrlRoot inside sfWidgetForm

2009-11-20 Thread ken
What is the best way of referencing sfWebRequest::getRelativeUrlRoot inside sfWidgetForm without needing sfContext? Is it a good idea for a widget image assets to be dependent on the relativeurlroot or it is better to use absolute path? -- You received this message because you are subscribed to t

[symfony-users] dynamically alter @hompage after routes initialization

2009-10-18 Thread ken
I've been scouring the net for the best way how to change the @hompage route after it is matched. I've tried to create my own custom route (HomepageRoute) but it is not feasible because I'm basing the output on user's credential. I know for sure that route registration happens before basicsecurit

[symfony-users] Re: Custom FormFilter

2009-10-04 Thread Ken Marfilla
Instead of modifying each filter class, i only modified BaseFormFilterDoctrine abstract class BaseFormFilterDoctrine extends sfFormFilterDoctrine { public function setup() { foreach($this as $name => $field) { if($field->getWidget() instanceof sfWidgetFormFilte

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

2009-09-18 Thread Ken Marfilla
symfony gives you option not to use its entire arsenal of features.That's why when 1.1 took off the project aimed to decouple every single component. You will always have to trade between flexibility and complexity. For the documentations, i find them highly organized. When I was just new using t

[symfony-users] Re: Custom rendering of widgets

2009-08-17 Thread Ken Marfilla
The formatter also has a serious limitation. Currently, it doesn't have any idea about the widget it is rendering. I for example wanted to use a different row format if the widget is an embedded form, i will not be able to. It's not just extending the formatter to suit my needs but i will also ha

[symfony-users] task and partial

2009-08-14 Thread ken
It seems it's impossible to use get_partial via partial helper in symfony 1.2 task system without initializing the context. Is there anyway Is there any alternative for this? Initializing context flushes out html into the console which is really ugly. --~--~-~--~~~---~-

[symfony-users] Doctine build-all - execute custom sql for a model

2009-08-10 Thread Ken Golovin
Hi, I've created a custom model that uses mysql view instead of a table, so I don't need symfony to create a table for me. When I do build-all, however, Doctrine creates a table for that model. Is there a way in the model to disable table generation and/or execute a custom sql query that will dro

[symfony-users] Re: Memory leaks symfony + doctrine

2009-08-07 Thread Ken Golovin
ok, got the hint, thanks! On Aug 7, 8:46 pm, Marc wrote: > It's a common problem with PHP < 5.3. > > Try to switch with 5.3 and it might magically solve your issues. > > Marc > > Le 7 août 09 à 10:43, KenGolovina écrit : > > > > > > > Thomas, > > > I know very well how to parse XML and load it i

[symfony-users] Re: Memory leaks symfony + doctrine

2009-08-07 Thread Ken Golovin
t on Doctrine internals. > > As far as I can say: wow 50k objects. > > Try PHP 5.3 because it finally has a GC that not only uses reference > > counting. > > > Fabian > > > On Thu, Aug 6, 2009 at 1:56 PM, Ken Golovin wrote: > > > > Hi, > > > &g

[symfony-users] Memory leaks symfony + doctrine

2009-08-06 Thread Ken Golovin
Hi, I am processing a large XML, the module I created iterates through about 50,000 records, creates an object for each record and saves it to the DB, and am running into memory issues. The memory usage measured by memory_get_usage() keeps growing with each new object created. I have tried flushi

[symfony-users] Row level security/permission with Doctrine

2009-07-16 Thread Ken Golovin
I am developing a job tracking website which will be used by multiple companies to manage their orders. As it is very important that each company only has access to their own data, I need to be able to restrict access to DB records based on the record owner. On top of that, companies will have sev

[symfony-users] filter=filter does not work in admin

2009-07-16 Thread Ken Golovin
Hi, I am to trying to do a redirect from one module to another's list action, and add a filter to the url of the second module, however the filters don't have any effect. Here is my code: $this->redirect('feed/index?filter=filter&filters[owner_id]=' . $this- >getRequestParameter('id')); This r

[symfony-users] modify sfDoctrineRouteCollection requirements param

2009-05-11 Thread ken
How do I modify sfDoctrineRouteCollection requirements param to allow POST on _object routes? Performing POST request will not match the route _object associated with sfDoctrineRouteCollection. --~--~-~--~~~---~--~~ You received this message because you are

[symfony-users] Re: Security doubts on sfDoctrineGuardPlugin

2009-05-06 Thread Ken Marfilla
It does, if you will look closely at PluginsfGuardUserTable.php class PluginsfGuardUserTable extends Doctrine_Table { public static function retrieveByUsername($username, $isActive = true) { return Doctrine_Query::create() ->from('sfGuardUser u') ->where('u.usernam

[symfony-users] Re: need advice: am switching from a Linux to a Windows development environment

2009-05-06 Thread Ken Marfilla
you can place symfony core anywhere, but i prefer placing it near the root i also use tortoise svn for checking out example C:\symfony12 dont forget to add the path of C:\symfony12\data\bin to path so that you can run symfony in any directory. On May 7, 9:18 am, Jake Barnes wrote: > I just

[symfony-users] Re: sfGuardDoctrinePlugin admin problems with Timestampable

2009-05-06 Thread Ken Marfilla
bump, please avoid posting unrelated replies On May 5, 7:55 pm, Andrei Dziahel wrote: > Hi. > > Follow plugins' README first. > > 2009/5/5 maithili.k > > > > > > > > > > > Hi ken,can u please tell me the steps for implementing > > s

[symfony-users] sfGuardDoctrinePlugin admin problems with Timestampable

2009-05-02 Thread ken
I'm using latest releases of symfony doctrine and sfGuardDoctrinePlugin. Everything works fine except the Permission, Group, and User objects when updated will replace both updated and created with -00-00 00:00:00 instead of current time. I'm guessing this has something to do with the Timestam

[symfony-users] Re: sfServiceContainerBuilder

2009-04-15 Thread Ken Marfilla
has been instantiated, > especially if it is not shared, where it does not make any sense. > > Fabien > > -- > Fabien Potencier > Sensio CEO - symfony lead developer > sensiolabs.com | symfony-project.org | fabien.potencier.org > Tél: +33 1 40 99 80 80 > > Ken Marf

[symfony-users] Re: sfServiceContainerBuilder

2009-04-11 Thread Ken Marfilla
bump again. On Apr 9, 3:53 pm, Ken Marfilla wrote: > bump > > On Apr 4, 1:49 pm, ken wrote: > > > The service container can only detect if a service is registered via > > hasService method. Is there a way to know if the said service h

[symfony-users] Re: sfServiceContainerBuilder

2009-04-09 Thread Ken Marfilla
bump On Apr 4, 1:49 pm, ken wrote: > The service container can only detect if a service is registered via > hasService method. Is there a way to know if the said service has been > instanciated? --~--~-~--~~~---~--~~ You received this message becaus

[symfony-users] sfServiceContainerBuilder

2009-04-03 Thread ken
The service container can only detect if a service is registered via hasService method. Is there a way to know if the said service has been instanciated? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users"

[symfony-users] 1.2 admin _object route

2009-03-25 Thread ken
Why is it that submitting a form tag using _object route results in a 404 exception. Say my module is foo isMultipart() and print 'enctype="multipart/form-data"')?>> This is the generated link /frontend_dev.php/foo/8/cancel When the form is submitted, incorrect route will match Mar 26 11:32:

[symfony-users] 1.1 Plugins with 1.2 Install

2009-03-19 Thread Ken
Hello, Newbie here. Looking to use Symfony for my next project and was curious if the 1.1 plugins will work with the 1.2 installation, more specifically the PayFlow Pro plugin: http://www.symfony-project.org/plugins/sfPayflowProPlugin Thank you in advance! Ken

[symfony-users] Re: form_tag_for

2009-03-11 Thread Ken Marfilla
den', 'name' => 'sf_method', 'value' => 'PUT', 'id' => false)))?] I hope someone has a better idea. On Mar 11, 3:41 pm, ken wrote: > Im currently creating my own doctrine admin theme and added tabbing > functionality but I just cam

[symfony-users] form_tag_for

2009-03-11 Thread ken
Im currently creating my own doctrine admin theme and added tabbing functionality but I just came across a problem and I cant find any answer in the net. How do I pass additional query_string to form_tag_for in _form.php template? There seems to be no way according to the api. --~--~-~--~

[symfony-users] Re: sf 1.2: is all the documentation about the admin generator wrong?

2009-03-05 Thread Ken Marfilla
if your referring to edit action, you better read more about the form framework. the generator will only help you on how the widgets will be displayed. But the list action is superb, only problem are conditional object actions and batch actions. And if the admin generator is not good enough you ca

[symfony-users] Re: doctrine admin buildQuery

2009-03-04 Thread Ken Marfilla
Ticketed! On Mar 5, 1:49 am, Jonathan Wage wrote: > I chose r for rootAlias as that is the variable used internally in Doctrine. > > Can you create a ticket and we'll include this information in the > documentation. > > Thanks, Jon > > On Wed, Mar 4, 2009 at 4:57 AM

[symfony-users] doctrine admin buildQuery

2009-03-04 Thread ken
I checked sfFormFilterDoctrine just to find out what Doctrine::Query is using as alias for the base table in buildQuery method. I did this because i'm having trouble doing joins to improve the performance of the admin list. Lo and behold, it is 'r'! Is there any reason why 'r' is used instead of

[symfony-users] sfForm wrap checkbox with its label

2009-02-05 Thread ken
is it possible to do this? currently, the label and checkbox are separated. --~--~-~--~~~---~--~~ 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

[symfony-users] admin 1.2 list date only type column but with time

2009-02-05 Thread ken
How can I change the format of the column? --~--~-~--~~~---~--~~ 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, sen

[symfony-users] sfForms widget and validator

2008-12-01 Thread ken
Does calling $this->setWidget('control_name', new sfWidgetXXX) also reset its associated validator given the widget has already a declared validator from its base class? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[symfony-users] Re: symfony 1.1 - creating form classes

2008-11-26 Thread ken
I suggest that you convert your schema using this http://www.symfony-project.org/cookbook/1_1/en/alternative_schema I dont know if the form generator is basing on the schema or the model but I strongly suggest that you make your schema definition more explicit and also use this combination instea

[symfony-users] Re: sfPropelRouteCollection

2008-11-25 Thread ken
s lists. > > But it is not used anymore by the admin gen. It has been replaced by the > with_wilcard_routes option. > > Fabien > > -- > Fabien Potencier > Sensio CEO - symfony lead developer > sensiolabs.com | symfony-project.com | aide-de-camp.org > Tél: +33 1 40 99 8

[symfony-users] sfPropelRouteCollection

2008-11-25 Thread ken
Does anyone know what is the use of the object_actions option for sfPropelRouteCollection in routing.yml. This is for symfony 1.2 created by admin generator. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony us

[symfony-users] Re: Admin 1.2 Routing

2008-11-18 Thread ken
nds .html to all generated links. How can I disable this behaviour? Is there any workaround for the error? On Nov 19, 12:15 am, "Kiril Angov" <[EMAIL PROTECTED]> wrote: > Do you have any routing rules defined? I no longer seem to understand > the problem you are having. &g

[symfony-users] Routing Error

2008-11-18 Thread ken
Im getting this errors in prod admin generated module for symfony 1.2 500 | Internal Server Error | InvalidArgumentException The "/lead/:id/edit.:sf_format" route has some missing mandatory parameters (:id). stack trace * at () in SF_SYMFONY_LIB_DIR/routing/sfRoute.class.php line 212 .

[symfony-users] Re: Admin 1.2 Routing

2008-11-18 Thread ken
that doesnt work either. On Nov 18, 11:56 am, Eus <[EMAIL PROTECTED]> wrote: > Hi Ho! > > --- On Tue, 11/18/08, ken <[EMAIL PROTECTED]> wrote: > > > > > I have this in foo admin module > > > object_actions: > >   sample: > >     actio

[symfony-users] Re: The most painless way to adopt the form's auto-validation in 1.1 in 1.0

2008-11-18 Thread ken
You can just modify the schema.yml and define the length attribute for each column. the form generating task will even map out all unique indexes that you define there. On Nov 17, 4:30 pm, Eus <[EMAIL PROTECTED]> wrote: > Hi Ho! > > I am involved in a project that uses symfony-1.0. > > One ineffe

[symfony-users] Re: Sf1.2 Admin generator: how to retain non display fields in DB

2008-11-18 Thread ken
just edit the generated Form Class then unset the fields you dont want to be edited class ArticleForm extends BaseArticleForm { public function configure(){ unset($this['field_to_ignore']); } } On Nov 18, 10:06 pm, Mian <[EMAIL PROTECTED]> wrote: > Hi all, > > I noticed that when I cha

[symfony-users] Re: sfPropelOptimisticLockBehaviorPlugin ?

2008-11-18 Thread ken
It is actually still working even on 1.2, check the old wiki of plugins. On Nov 18, 10:54 pm, Richtermeister <[EMAIL PROTECTED]> wrote: > Whatever happened to the sfPropelOptimisticLockBehaviorPlugin? > > It is referenced in the documentation, but I can't seem to find it.. > > Thanks, > Daniel --

[symfony-users] Admin 1.2 Routing

2008-11-17 Thread ken
I have this in foo admin module object_actions: sample: action: sample then in actions.php public function executeSample(sfWebRequest $request) { } when i try to use link_to in sampleSuccess.php link_to('Sample', 'admin/sample?id=1') the generated url is /admin/1%2Fcreate/action_sample

[symfony-users] Re: sfForm postValidator issue

2008-11-15 Thread ken
check sfGuardUserForm from sfGuardPlugin for example snippet On Nov 15, 6:43 pm, "Rytis Daugirdas" <[EMAIL PROTECTED]> wrote: > Hello, > > I've noticed that my password sfValidatorSchemaCompare validator that is set > as the post validator is run even if the passwords it compares do not pass > th

[symfony-users] forms 1.2 fieldsets

2008-11-14 Thread ken
How can I group specific fields into fieldset? via forms api and does field grouping is handled automatically by configuration.yml? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to t

[symfony-users] Re: Best Practice: Override plugin schema.yml

2008-11-11 Thread ken
As a stop gap solution, I hosted myself the plugins that I'm using and renamed all plugins' shema.yml to shema.yml.tmp. And then just copied them to config with .schema.yml format. I just hope there's a better way. Regards, Ken On Nov 12, 4:59 am, "Jonathan Wage"

[symfony-users] Re: Best Practice: Override plugin schema.yml

2008-11-11 Thread ken
the setTableDefinition() in > lib/model/doctrine/sfDoctrineGuardPlugin/sfGuardUser.class.php and add > you're columns there. > > - Jon > > On Tue, Nov 11, 2008 at 2:21 PM, ken <[EMAIL PROTECTED]> wrote: > > > I need suggestion on how to override plugin sch

[symfony-users] Best Practice: Override plugin schema.yml

2008-11-11 Thread ken
I need suggestion on how to override plugin schema.yml in a project level. I really dont want to change anything in a plugin except the contents of om and map directory. In the case of sfGuardPlugin, I needed to add 2 more column for profile cacheing support so I copied plugins/sfGuardPlugin/conf

[symfony-users] Re: Log rotate

2008-11-06 Thread ken
e task must be executed once per a week, in your case... > right? :) > > On Wed, 2008-11-05 at 16:23 -0800, ken wrote: > > Does symfony automatically rotate logs without manually running log- > > rotate task? > > I am assuming that running log-rotate task is necessary to do

[symfony-users] Re: Search form and paging system.

2008-11-06 Thread ken
It is highly recommended that you serialize the filters so that the user will not have to enter the same filter in case he/she left the list module On Nov 6, 7:19 pm, Adrien Mogenet <[EMAIL PROTECTED]> wrote: > Hi everyone. > > I developped a "complex" search form (with about 30 criteria) and I

[symfony-users] Log rotate

2008-11-05 Thread ken
Does symfony automatically rotate logs without manually running log- rotate task? I am assuming that running log-rotate task is necessary to do the actual rotation. Say for a period of 7, do I have to run it everyday or only every 7 days? --~--~-~--~~~---~--~~ You r

[symfony-users] Re: How to add the sf_debug on prod but only for certain credentials?

2008-09-28 Thread ken
a filter after security can do this functionality i guess class myDebugEnablerForCertainCredentialsFilter extends sfFilter { public function execute ($filterChain) { if ($this->isFirstCall() and $this->getContext()->getUser()- >isAuthenticated() and $this->getContext()->getUser()- >hasCre