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()-
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
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
, 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 the
actual rotation.
Say for a period of 7, do I have to run it everyday
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
() 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 schema.yml in a project
level. I really dont want to change anything in a plugin
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 PluginName.schema.yml
format.
I just hope there's a better way.
Regards,
Ken
On Nov 12, 4:59 am, Jonathan Wage [EMAIL PROTECTED
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
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
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 change
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 ineffective
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:
action: sample
then in actions.php
public function executeSample(sfWebRequest
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
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.
On Tue, Nov 18, 2008 at 6:10 PM, ken [EMAIL PROTECTED] wrote:
that doesnt work either.
On Nov 18, 11:56 am, Eus [EMAIL PROTECTED] wrote
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
sensiolabs.com | symfony-project.com | aide-de-camp.org
Tél: +33 1 40 99 80 80
ken wrote:
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
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
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
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, send
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
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.
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
Why is it that submitting a form tag using module_object route
results in a 404 exception.
Say my module is foo
form action=?php echo url_for('foo/cancel?id='.$form-getObject()-
getId().''.http_build_query($helper-getFormUrlParams($form), '',
'')) ? method=POST ?php if($form-isMultipart() and
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
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
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.
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
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
you might want to check this ticket
http://www.doctrine-project.org/jira/browse/DC-271
On Nov 24, 2:20 pm, Alexandre SALOME alexandre.sal...@gmail.com
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.
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
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
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 ty...@mda.ch wrote:
Yeah, I thought so. But I can use the fieldset of the filter form
anyway. I was mainly curious because the form
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
override protected function doUpdateObject($values)
protected function doUpdateObject($values)
{
//do something
$this-object-something();
parent::doUpdateObject($values);
}
On Dec 27, 7:47 pm, dziobacz aaabbbcccda...@gmail.com wrote:
I have table for uploaded images:
Image:
you can use $object-getRaw('property');
On Jan 5, 6:34 pm, chrisyue blizzch...@gmail.com 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
It's actually recommended to leave outputscaping on be default.
On Jan 7, 10:21 am, chrisyue blizzch...@gmail.com wrote:
thank you ken :)
ken wrote:
you can use $object-getRaw('property');
On Jan 5, 6:34 pm, chrisyue blizzch...@gmail.com wrote:
I also encountered a problem like
you need to explicitly call ini_set('arg_separator.output', '');
before ProjectConfigutation
On Jan 8, 10:43 am, chrisyue blizzch...@gmail.com 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
What's your purpose of clearing the form of its values?
On Jan 15, 7:23 pm, DoRiaN doria...@gmail.com 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
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 to...@tomor.cz wrote:
Left it unfilled, and then when
If you are using the admin generator, override apps/myapp/modules/
mymodule/lib/mymoduleGeneratorConfiguration.php
public function getFilterOptions()
{
return array('sf_user' = sfContext::getInstance()-getUser());
}
On Jan 15, 6:35 pm, Tom Ptacnik to...@tomor.cz wrote:
you can access to a
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 to...@tomor.cz wrote:
Nobody filter a list
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 tirengar...@gmail.com wrote:
On 01/14/2010 11:20 PM, Gabo wrote:
Help!!
Are you trying to override a module in a plugin?
On Jan 15, 9:47 pm, Tom Ptacnik to...@tomor.cz wrote:
It should be located(generated) in
/cache/controlpanel/modules/page/lib/
On 15 led, 10:46, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
wrote:
When I go to my application, it says
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
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,
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 doria...@gmail.com wrote:
Ok there are lot of solutions, buf does sfForm have a method to this ?
On
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
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 garak...@gmail.com wrote:
On 18 Gen, 10:05, Nicolas CHARLOT
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 darren...@gmail.com wrote:
I had this problem before, you will have to take the user object and
pass it to the
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 darren...@gmail.com wrote:
When I make my actions I use camel case:
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,
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 ten...@tripitinc.com wrote:
Hi,
How can I specify a particular db to use a controller dispatches a
request?
For
Sometimes you will need to run the custom filter before the security
filter.
On Jan 26, 5:02 pm, Asif Ali M l...@reloadtheweb.com 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
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'
)
)
}
?php foreach($fieldsets['Profile']
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
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 digital_...@yahoo.com.hk wrote:
Dear ken,
Is this possible to avoid modifiying the database
sfOutputEscaperObjectDecorator::offsetExists
On Feb 4, 12:38 am, Mark Smith marksmith5...@jungle-monkey.com
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
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 a...@speedypin.com wrote:
I think he means not making a template but messing around with
As for me, I ended up overriding sfDoctrineRoute and
sfDoctrineRouteCollection
On Feb 11, 5:51 am, Fabrizio fabrizio.pucci...@gmail.com 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
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
michael.pie...@googlemail.com wrote:
That sounds good.
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 mhodg...@gmail.com wrote:
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 felix.k...@inka.de wrote:
I am looking for a simple
Or
echo passthru('/usr/bin/wkhtmltopdf http://google.com/ -');
On Oct 26, 9:26 pm, Florian sideral.undergro...@gmail.com 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
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
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
/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
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
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.com
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
Ticketed!
On Mar 5, 1:49 am, Jonathan Wage jonw...@gmail.com 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, ken marfillas
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
'enctype=multipart/form-data')?]
[?php if(!$form-isNew() and print $form-getWidgetSchema()-
renderTag('input', array('type' = 'hidden', 'name' = 'sf_method',
'value' = 'PUT', 'id' = false)))?]
I hope someone has a better idea.
On Mar 11, 3:41 pm, ken marfillas...@gmail.com wrote:
Im
bump
On Apr 4, 1:49 pm, ken marfillas...@gmail.com 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
bump again.
On Apr 9, 3:53 pm, Ken Marfilla marfillas...@gmail.com wrote:
bump
On Apr 4, 1:49 pm, ken marfillas...@gmail.com 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
--
Fabien Potencier
Sensio CEO - symfony lead developer
sensiolabs.com | symfony-project.org | fabien.potencier.org
Tél: +33 1 40 99 80 80
Ken Marfilla wrote:
bump again.
On Apr 9, 3:53 pm, Ken Marfilla marfillas...@gmail.com wrote:
bump
On Apr 4, 1:49 pm, ken marfillas...@gmail.com
bump, please avoid posting unrelated replies
On May 5, 7:55 pm, Andrei Dziahel trickster...@gmail.com wrote:
Hi.
Follow plugins' README first.
2009/5/5 maithili.k shalu0...@gmail.com
Hi ken,can u please tell me the steps for implementing
sfGuardDoctrinePlugin with symfony.I
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.username
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
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=filterfilters[owner_id]=' . $this-
getRequestParameter('id'));
This
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
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
ok, got the hint, thanks!
On Aug 7, 8:46 pm, Marc mweistr...@uneviemoinschere.com 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
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
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
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
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,
(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 1:22 AM, Ken Golovin ken.golo...@gmail.com wrote:
I
87 matches
Mail list logo