[symfony-users] Re: Templates in a single directory

2010-05-17 Thread Johannes
- not necessary to alter any classes, and thus can be provided by a plugin Cons: - more hacking involved Johannes On 17 Mai, 09:29, Georg Gell wrote: > It might be worth looking into using your own view class: > something along > > class myView extends sfPHPView { >   public f

[symfony-users] Re: SfValidatorAnd: does the order of the validators (arguments) care??

2010-05-22 Thread Johannes
The order matters. Just have a look at the doClean() method of the sfValidatorAnd class. Johannes On 21 Mai, 19:48, Javier Garcia wrote: > Sorry, in that order it doesn't work. In the reverse order it works. > > On May 21, 7:12 pm, Javier Garcia wrote: > > > > &g

[symfony-users] Re: How to retrieve the value of a field in configure() function

2010-05-22 Thread Johannes
You need to exchange the validator schema of the form with your own validator schema class, and overwrite the preClean() method there. This is the only way to ensure that your form behaves the same whether it is used standalone or embedded elsewhere. Johannes On 21 Mai, 15:04, kadia wrote: >

[symfony-users] Re: strip_tags validator

2010-05-25 Thread Johannes
romArray() which does not necessarily call mutators as far as Doctrine is concerned (not sure what Propel does here). Johannes On May 25, 2:36 pm, Tom Haskins-Vaughan wrote: > D'oh! I always have a tendency to over complicate things! Thanks, Gabriel! > > > > On Mon, May 24

[symfony-users] Re: Sending mail from a Form class.

2010-07-02 Thread Johannes
doSave() is probably not the right place since it never gets called if you embed the PostForm somewhere. Johannes On Jul 2, 3:12 pm, cosmy wrote: > On 2 Lug, 05:58, pghoratiu wrote: > > > From the first one the actual send is missing: > > >              

[symfony-users] Re: How to use "template.filter_parameters event" to change CSRF error message?

2010-07-15 Thread Johannes
Hm, this looks like quite a bit of overhead. Have you tried sfValidatorBase::setDefaultMessage()? Kind regards, Johannes On Jul 15, 1:56 am, Sid Bachtiar wrote: > http://bluehorn.co.nz/2010/07/15/how-to-change-csrf-attack-message-in... > > > > On Thu, Jul 15, 2010 at 11:25 A

[symfony-users] Re: EmbedForms/MainForm dependent field

2010-07-19 Thread Johannes
ReminderForm, and then throws errors for the fields in question (either a sfValidatorErrorSchema, or a sfValidatorError). kind regards, Johannes On 19 Jul., 13:19, "cloui...@gmail.com" wrote: > Hi, > > I have a main form and some embedforms : one Task and many reminders > form. &

[symfony-users] Re: ahDoctrineEasyEmbeddedRelationsPlugin many to many

2010-07-21 Thread Johannes
nested embedded relations/multiple relations by using some of this code. Kind regards, Johannes On 21 Jul., 13:19, Daniel Lohse wrote: > Sorry for getting back to you so late. > > Unfortunately many-to-many relations in embedded forms are *not* working and > probably won't b

[symfony-users] Re: problem with $form->getObject()

2010-07-26 Thread Johannes
I'd update the object directly instead of the values: $this->object->setPublication('test'); $this->object->Authors->get(null); kind regards, Johannes On 26 Jul., 02:18, Devang Modi wrote: > I found doUpdateObject to update publication and it worked. But same

[symfony-users] Re: issues after moving form code to a plugin

2010-08-05 Thread Johannes
What's the underlying inheritance structure? Is the BrandForm model represented by a Doctrine behavior plugin? The schema would be useful. Kind regards, Johannes On 5 Aug., 09:38, "Daniel Kucharski" wrote: > Hi, > > Thanks for taking time to look into the issue.  

[symfony-users] Re: Install plugins programmatically?

2010-08-13 Thread Johannes
No explicit method as far as I know, but this works: sfConfig::set('sf_enabled_modules', array_unique(array_merge(sfConfig::get('sf_enabled_modules'), array('my_first_module_name_to_enable', 'my_second_module', 'etc'; Kind regards, Johanne

[symfony-users] Re: Symfony 1.4-compatible minifier for Symfony now included in Apostrophe, can be used in any Symfony project

2010-08-15 Thread Johannes
en to combine, and when it's not worth it? In this case, only gzipping these scripts (thus leaving one file per script) should result in usually higher performance than generating two different, but combined files. Kind regards, Johannes On Aug 15, 2:04 pm, Tom Boutell wrote: > The cached

[symfony-users] Re: Doctrine + 2 different distinct queries affecting each others' results (bug?)

2010-09-02 Thread Johannes
ation from the database, or load the entire relation in the first place. Kind regards, Johannes On 2 Sep., 07:14, Guill Lo wrote: > Hi there! > > Still haven't found the solution, I'm skipping this and will find > another way to do it. But I think it's a Doctrine bug,

[symfony-users] Re: Security Component: how to authenticate a user manually?

2010-11-22 Thread Johannes
You need to retrieve the security.context service from the DI container, and call ->setToken() with an implementation of TokenInterface. Regards, Johannes On Nov 22, 9:03 am, gordonslondon wrote: > Make a request to the login page (with credientials in POST > parameters) works for me.

[symfony-users] Re: Grails to Symfony2 Benchmark

2011-01-20 Thread Johannes
My guess is that he didn't enable APC cache for doctrine metadata, and that can make quite a difference. On Jan 19, 6:15 pm, Gareth McCumskey wrote: > "Lies, damned lies and benchmarks"  (To mangle a popular phrase) > > > > On Wed, Jan 19, 2011 at 4:27 PM, Tom Boutell wrote: > > Mmm. His through

[symfony-users] Re: Login directly from code

2011-01-29 Thread Johannes
: firewalls: somename: form_login: success_handler: my.service.id failure_handler: my.service.id Kind regards, Johannes On Jan 29, 9:13 pm, Michael wrote: > Is there a way to directly use the security feature to login in the > PHP code? >

[symfony-users] Re: User authentication and session persistence problem

2011-01-29 Thread Johannes
This behavior has been changed in the HEAD revision. Kind regards, Johannes On Jan 28, 4:51 pm, DisTurBinG wrote: > I agree, I just ran into this problem as well and noticed the same > thing.  Thanks to your post! > > I don't understand why it was designed to authenticate

[symfony-users] Re: table_method problem

2009-08-04 Thread Johannes
I had the same problem, and I traced it back to Connection::getTable. The root cause is that your table class is not loaded, and autoload is turned off. I'm not if there is any valid for this behavior since it affects all routing objects. The solution is to setAttribute (Doctrine::ATTR_AUTOLOAD_T

[symfony-users] Admin generator, Doctrine, one-to-many relation

2010-02-19 Thread Johannes Trommer
gards, Johannes Trommer -- 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, send email to symfony-users+unsubscr...@googlegroups.com. F

[symfony-users] Admin generator, Doctrine, one-to-many relation

2010-02-20 Thread Johannes Trommer
lumns: gallery_id: { type: integer, notnull: true } file: { type: string(255), notnull: true, unique: true } caption: { type: string(255) } source: { type: string(255) } created_at: { type: timestamp, notnull: true } updated_at: { type: timestamp, notnull: true } Regards, Johannes Tr

[symfony-users] Transforming images after upload and before saving

2010-04-10 Thread Johannes Trommer
Hello, I've got a problem to solve, that I couldn't figure by myself. I've got a form with embedded forms. These embedded forms are there for uploading pictures. This works fine so far. What I need to be done is resizing AND thumbnailing the pictures with the sfImageTransformPlugin before the

Re: [symfony-users] Transforming images after upload and before saving

2010-04-11 Thread Johannes Trommer
Thanks! But there are still some ambiguities. All I want to to is to generate i resized image and a thumbnail from the uploaded image. The generation of the filename, etc. should remain with the symfony function. Do you have an advice, how that can be done? Am 11.04.2010 um 01:05 schrieb Ala

[symfony-users] Doctrine schema: two realtionships between two tables

2010-06-22 Thread Johannes Trommer
Hi, I need a little help creating my schema. I am creating a gallery- module containing the two tables Gallery and GalleryPicture. First one stores the galleries with additional information, the second one stores the pictures. The tables are related over the gallery.id-field and the galler

[symfony-users] backend: date format in form

2010-07-04 Thread Johannes Trommer
Hi symfonians! I need to create a backend form with a field for the created_at-date. I render it like this: renderRow() ?> I want just to output the day, month and year. How can I format the row? I need to format it in the form itself, not in the yaml-files. Greetings Johannes --

[symfony-users] sfEasyGMapPlugin: Mulitple maps on one page

2010-07-09 Thread Johannes Trommer
Hi folks, Is there any possibility to include more then one map into a template? Regards Johannes -- 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 "sy

[symfony-users] sfDoctrinePager: Retrieve all pages

2010-07-21 Thread Johannes Trommer
Headline E Page 3: Headline F Headline G Headline H Do you have an idea how I can realize that task? Regards Johannes -- 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

[symfony-users] change symfony installation type: PEAR to individual folder (lib/vendor)

2010-07-26 Thread Johannes Trommer
ion I need to adapt? Regards Johannes -- 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 t

[symfony-users] Symfony 1.4: Get current route name

2010-07-26 Thread Johannes Trommer
Hello, How can I get the current route name in the module's action? This is my route: powerplantsTypes: url: /type/:slug.html param: { module: powerplants, action: list } In the action i want the retrieve the route name 'powerplantsTypes'. Thanks in advance! -- If you want to report a vu

Re: [symfony-users] Re: change symfony installation type: PEAR to individual folder (lib/vendor)

2010-07-27 Thread Johannes Trommer
Fortunatly it worked without any huge problems. I just had to configure the link in the ProjectConfiguration.class.php. Best regards -- 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 subscrib

Re: [symfony-users] Symfony2 ACL and roles

2011-02-07 Thread Johannes Schmitt
You can write your own security voter to do this. There is no documentation on this yet as it is quite advanced, but you can use the built-in security voters as a starting point; overriding SecurityContext->vote() is a bad idea... Kind regards, Johannes On Mon, Feb 7, 2011 at 7:05 PM, ph

Re: [symfony-users] Symfony2 ACL and roles

2011-02-07 Thread Johannes Schmitt
As I said, this is a bad idea nonetheless... It might be working now, but it will only cause you problems further down the road. It's better to go with the proper solution I mentioned before. Kind regards, Johannes On Mon, Feb 7, 2011 at 10:05 PM, phil0 wrote: > Ok, what I'v

Re: [symfony-users] Re: Use compenents from symfony 2.0 in symfony 1.4

2011-02-09 Thread Johannes Schmitt
Note that there is no such concept like Object, or ObjectCollection routes in Symfony2. So, the routing systems are not functionally equivalent. Kind regards, Johannes On Wed, Feb 9, 2011 at 12:56 PM, Yelena Bunina wrote: > Oh I forgot to tell that we use APC :) > > > On Wed, Feb

Re: [symfony-users] Re: Logging security events (syslog)

2011-02-11 Thread Johannes Schmitt
What is a "security event" for you? Kind regards, Johannes On Fri, Feb 11, 2011 at 8:14 AM, Manfred Dohmen wrote: > Thanks Leon, but the question relates more to how to hook into > Symfony2 in order to observe security events (and then having them > logged). > > --

Re: [symfony-users] Symfony2 Security - Role Combinations

2011-03-02 Thread Johannes Schmitt
Yes, but it's not easy. You'd have to write your own security voter. Kind regards, Johannes On 3/1/11, Roger Webb wrote: > I couldn't find anything in the "Authorization" section of the > documentation covering this. > > Is there a way to restrict access to

Re: [symfony-users] [Symfony2] SecurityBundle - FailureHandler service

2011-03-06 Thread Johannes Schmitt
There is an open PR for that, see https://github.com/symfony/symfony/pull/98 I'm not sure if ornicar has time, but if you like to take this on, that would be appreciated. Kind regards, Johannes On Fri, Mar 4, 2011 at 10:55 PM, Francis Besset wrote: > Hi all, > I created my fail

Re: [symfony-users] ACL Groups

2011-03-10 Thread Johannes Schmitt
Technically, you can use the UserSecurityIdentity for that, but I think a better approach would be to use roles. Kind regards, Johannes On Thu, Mar 10, 2011 at 10:28 AM, Alvaro Garcia wrote: > Hi! > ACL in Symfony 2 is wonderful but I can't find how to manage groups. > In my app

Re: [symfony-users] Security with Cookies

2011-03-10 Thread Johannes Schmitt
Don't you like the built-in security for some reason? :) Kind regards, Johannes On Fri, Mar 11, 2011 at 1:15 AM, Michael wrote: > I have created my own login form, once submitting it call an Ajax > (controller) action that execute a login function from a service I > wrote. The s

Re: [symfony-users] Re: Security with Cookies

2011-03-10 Thread Johannes Schmitt
Whatever you're trying to do, this is certainly the wrong way. If you need remember-me, turn on the remember-me setting in the configuration. If you still need to do something upon a successful login, use a custom authentication success handler. Kind regards, Johannes On Fri, Mar 11, 2011

Re: [symfony-users] Re: ACL Groups

2011-03-12 Thread Johannes Schmitt
What I meant with using roles is that you can add ACL rules based on a role that the user has. Groups would basically only be used to assign a set of roles to the user and would have no meaning beyond that. Kind regards, Johannes On Fri, Mar 11, 2011 at 6:59 PM, maxpowel wrote: > And the

Re: [symfony-users] [Symfony2]: http-basic with sha1 password encoder doesn't work anymore

2011-03-12 Thread Johannes Schmitt
We have made a change in the way how passwords are hashed. Therefore, your sha1 hash will be different for the same password; you simply need to rehash your real password and put the new hash in the configuration. Kind regards, Johannes On Sat, Mar 12, 2011 at 8:11 PM, olimination wrote

Re: [symfony-users] Re: ACL Groups

2011-03-13 Thread Johannes Schmitt
tToken()->getUser() // true $user->getRoles() === array('ROLE_EDITOR'); // true $securityContext->isGranted('EDIT', $post); // true Kind regards, Johannes On Sun, Mar 13, 2011 at 5:26 PM, maxpowel wrote: > Your idea seems to be what I'm looking for but I hav

Re: [symfony-users] Re: ACL Groups

2011-03-13 Thread Johannes Schmitt
If you mean something like "$securityContext->isGranted('ROLE_EDITOR', $post)", that wouldn't invoke the ACL system. Kind regards, Johannes On Sun, Mar 13, 2011 at 7:30 PM, stof wrote: > On Sun, 13 Mar 2011 18:50:44 +0100, Johannes Schmitt > > wrote: &g

Re: [symfony-users] Re: ACL Groups

2011-03-13 Thread Johannes Schmitt
that user's account. Kind regards, Johannes On Sun, Mar 13, 2011 at 9:36 PM, maxpowel wrote: > For a blog your example is great, but I think that I have other > requirements. > In my app the users upload photos and this users decide who can view > their photos. With ACL it'

Re: [symfony-users] Re: ACL Groups

2011-03-15 Thread Johannes Schmitt
You shouldn't run into performance problems unless one user is on many blacklists in which case you probably want to disable that user anyway. Kind regards, Johannes On Tue, Mar 15, 2011 at 10:17 AM, maxpowel wrote: > Then I can use the format "ROLE_$groupName_$userId". The

Re: [symfony-users] Re: ACL Groups

2011-03-16 Thread Johannes Schmitt
ns he gets directly to that users account. If he is removed from the group, you delete these permissions from his user account. Kind regards, Johannes On Tue, Mar 15, 2011 at 6:03 PM, maxpowel wrote: > The blacklist is only an example. The problem is that every user > belongs to multiple group

Re: [symfony-users] [Symfony2] Services scoping question

2011-03-16 Thread Johannes Schmitt
On first sight, this looks like a bug. Could it be that you added a custom scope? Kind regards, Johannes On Wed, Mar 16, 2011 at 10:16 PM, Gustavo Adrian < comfortablynum...@gmail.com> wrote: > Hi all, > > I'm having some issues with service scoping. I'll try to describ

Re: [symfony-users] Re: Service Container's Service "Scope"

2011-03-17 Thread Johannes Schmitt
only create problems for yourself if you go down this road. Kind regards, Johannes On Thu, Mar 17, 2011 at 3:36 PM, Hany El-Kerdany wrote: > Thanks Gustavo, > > Where can I read about request scope and configuration attributes like > scope and synthetic, I couldn't find info

Re: [symfony-users] Re: Service Container's Service "Scope"

2011-03-17 Thread Johannes Schmitt
NP :) Unfortunately, there is no general solution, it depends. Maybe the following thread helps you: http://groups.google.com/group/symfony-devs/browse_thread/thread/a7207406c82ef07a/e2626c00f5cb9749 Kind regards, Johannes On Thu, Mar 17, 2011 at 4:01 PM, Gustavo Adrian wrote: > Ooops

Re: [symfony-users] [Symfony2] Security ACL question

2011-03-22 Thread Johannes Schmitt
h entry permissions was granted, to which object permission was granted, etc. The AuditLogger is only called if the value of audit_success/_failure is true. Kind regards, Johannes On Tue, Mar 22, 2011 at 9:42 PM, Gustavo Adrian wrote: > After implementing class-scope permissions thanks to Chri

Re: [symfony-users] [Symfony2] Security ACL question

2011-03-24 Thread Johannes Schmitt
nks, Johannes On Thu, Mar 24, 2011 at 4:03 PM, Gustavo Adrian wrote: > Can anyone verify this? if this is indeed a bug then I'll create a pull > request. If not, what I am doing wrong? > > > Thanks. > > On Wed, Mar 23, 2011 at 4:55 PM, Gustavo Adrian < > comfortably

Re: [symfony-users] [Symfony2] Injecting routes with parameters into javascript

2011-03-28 Thread Johannes Schmitt
I had written a JS route implementation for symfony 1.4 which should work with minor modifications for Symfony2. If it helps someone, the code is here (and it's actually unit-tested :)): https://gist.github.com/3d39cf593ceb1ea63713 See the tests for how to use it. Kind regards, Johannes

Re: [symfony-users] Re: How to retrieve related objects with ACL

2011-03-29 Thread Johannes Schmitt
Can you explain a bit what you want to do? On Tue, Mar 29, 2011 at 4:17 PM, badllama77 wrote: > I am guessing there is no easy solution? > > -- > 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

Re: [symfony-users] Re: [Symfony2] Security ACL: General questions

2011-03-29 Thread Johannes Schmitt
as exactly one ACL instance. That ACL instance will also hold the class-scoped ACEs, but you need to create an ACL for each object instance. Kind regards, Johannes On Tue, Mar 29, 2011 at 10:11 PM, Gustavo Adrian < comfortablynum...@gmail.com> wrote: > Another thing I'd wa

Re: [symfony-users] [Symfony2] Access a service from a entity

2011-04-04 Thread Johannes Schmitt
Why is accessing a service from an entity a bad practice? The only problem here is the PHP language, the design pattern itself is fine imo. Kind regards, Johannes On Mon, Apr 4, 2011 at 6:35 PM, Christophe COEVOET wrote: > Le 04/04/2011 17:37, Chris a écrit : > >> Hey everyone,

Re: [symfony-users] [Symfony2] Security ACL: Check for class-field / object-field permissions from the security context?

2011-04-04 Thread Johannes Schmitt
$securityContext->isGranted('CREATE', new FieldVote($oid, 'field')); On Mon, Apr 4, 2011 at 8:19 PM, Gustavo Adrian wrote: > Hi all, > > If we want to check a class permission / object permission like CREATE, we > would do: > > if ($securityContext->isGranted('CREATE', $objectIdentity) { > //

Re: [symfony-users] Re: [Symfony2] Security ACL and hierarchical tree of users and groups.

2011-04-06 Thread Johannes Schmitt
ation for the difference between "permission attributes", and "permission bitmasks". Kind regards, Johannes On Tue, Apr 5, 2011 at 10:41 PM, Gustavo Adrian wrote: > Ok I think I have an idea about this case. I'd appreciate if you can give > me your opinion about

Re: [symfony-users] php app/console init:acl PR10 not working anymore

2011-04-08 Thread Johannes Schmitt
This command is broken in PR10, but if you didn't change any of the table names, you can copy/paste the required SQL from Symfony/Component/Security/Acl/Resources/schema/. Johannes On Fri, Apr 8, 2011 at 12:49 AM, Malc wrote: > Hello, > > I have a problem with the installat

Re: [symfony-users] Re: [Symfony2] Security ACL: SQLSTATE 23000 error (duplicated entry) while updating field ACEs

2011-04-08 Thread Johannes Schmitt
It would be nice if you can provide a failing test case in MutableAclProviderTest, otherwise just create a ticket, and I'll take a look at it. Johannes On Fri, Apr 8, 2011 at 9:43 PM, Gustavo Adrian wrote: > MySQL logs show: > > 2940 Query START TRANSACTION > 2940 Query UPDAT

Re: [symfony-users] Re: [Symfony2] Security ACL: SQLSTATE 23000 error (duplicated entry) while updating field ACEs

2011-04-09 Thread Johannes Schmitt
security identity. Only changing the granting flag might cause problems in combination with the granting strategy, and I don't see the use case for it right now. Kind regards, Johannes On Fri, Apr 8, 2011 at 10:35 PM, Gustavo Adrian wrote: > Of course. I'll try to reproduce the issue

[symfony-users] [Sf2] - Documentation on ORM and CLI

2011-04-16 Thread Johannes Harestad
do anything because nothing new happened (it claims...). Thanks. 3. - Do I need to create entities through CLI? Can't I just manually create the files? After doing this, how can I tell Doctrine to create a table for it? Thanks. Regards, Johannes Harestad -- If you want to report a v

Re: [symfony-users] Re: Symfony2 ACL Performance Question

2011-05-03 Thread Johannes Schmitt
The ACL system supports batch loading ACLs (up to 30 in two queries). Kind regards, Johannes On Tue, May 3, 2011 at 3:49 PM, Gediminas Morkevicius < gediminas.morkevic...@gmail.com> wrote: > Your posts can have an author id, which can be mapped to all permissions, > same as grou

[symfony-users] Re: IDE code completion + service container ? (eclipse, netbeans)

2011-05-08 Thread Johannes Heinen
Hi, using Netbeans you might use the magic "vdoc" mechanism - i tried it out and it worked for me. By typing "vdoc" and pressing the tabulator key, a phpdoc template is generated that allows you to type-hint variable types at any (!) scope. An example may look like /* @var $em \Doctrine\ORM\Enti

Re: [symfony-users] Doxygen Annotations Broken in Beta2

2011-05-23 Thread Johannes Schmitt
Put an @IgnoreAnnotation("fn") in the doc comment of the class where this annotation is used. Johannes On Mon, May 23, 2011 at 5:05 PM, Roger Webb wrote: > Hey Everyone, > > I'm using Doxygen for my documentation generation. I updated to Beta2 > and fixed all of

Re: [symfony-users] Re: Doxygen Annotations Broken in Beta2

2011-05-23 Thread Johannes Schmitt
e the time that you spend with searching for missing imports, typos, or just sitting there wondering why something doesn't work. Johannes On Mon, May 23, 2011 at 5:26 PM, Roger Webb wrote: > The comment in question is below. This is still throwing the same > error. Also, it's g

Re: [symfony-users] Re: Is there demand for a Symfony2 Eclipse Plugin?

2011-06-03 Thread Johannes Schmitt
be helpful, but I'm not sure if it's possible, is to have auto-completion for objects returned from the dependency injection container through ($container->get(...)) calls. Anyway, if you decide to make such a plugin I'd like to use, and contribute to it. Kind regards, Johannes 201

[symfony-users] Symfony on shared host

2009-01-04 Thread Johannes Frandsen
I get this error when I try to run my symfony project on a shared host: Fatal error: Uncaught exception 'sfCacheException' with message 'Failed to make cache directory "/var/www/html/greenoak.dk/cache/ frontend/dev/config" while generating cache for configuration file "config/config_handlers

[symfony-users] Re: Symfony on shared host

2009-01-05 Thread Johannes Frandsen
I have already done that still no dice. any other suggestions? Joe On 04/01/2009, at 23.58, Lee Bolding wrote: > > cache and log need to be 777 *recursively* > > chmod -R 777 cache > chmod -R 777 log > > That should fix it :) > > On 4 Jan 2009, at 19:

[symfony-users] Re: Symfony on shared host

2009-01-05 Thread Johannes Frandsen
y* > > chmod -R 777 cache > chmod -R 777 log > > That should fix it :) > > On 4 Jan 2009, at 19:02, Johannes Frandsen wrote: > > > > > I get this error when I try to run my symfony project on a shared > > host: > > > > Fatal error: Uncaught exc

[symfony-users] Re: Symfony on shared host

2009-01-05 Thread Johannes Frandsen
The funny thing is. that if the following lines is added to the vhost file: php_admin_flag safe_mode off php_admin_value open_basedir "/" php_admin_flag allow_url_fopen On The page works. But, somewhat understandingly, I will not be allowed to have these settings enable

[symfony-users] Re: Symfony on shared host

2009-01-05 Thread Johannes Frandsen
I have tried to freeze my project several times with different versions of symfony but I have never gotten it to work. It always ends of with the script crashing... if i run it with my current version (1.1.6) it crashes with this error: symfony project:freeze /usr/share/php ... ... ...

[symfony-users] Doctrine admin generator edit resets fields that are not displayed

2009-02-11 Thread Johannes Frandsen
I have this generator config: generator: class: sfDoctrineGenerator param: model_class: Products theme: admin non_verbose_templates: true with_show: false singular: ~ plural:~ route_prefix:

[symfony-users] Re: [SOLVED] Doctrine admin generator edit resets fields that are not displayed

2009-02-11 Thread Johannes Frandsen
Hi Bernhard I could hug you... everything works perfect now. Joe On 11/02/2009, at 10.46, Bernhard Schussek wrote: > > Hi Joe, > > Did you unset the other columns in the ProductsForm? > > Your ProductsForm::configure() method should look something like: > > public function configure() > { >

[symfony-users] Problem with doctrine admin generator in 1.2.4

2009-02-11 Thread Johannes Frandsen
I have recently upgraded to 1.2.4 and so far everything has worked quite well. When I tried generate a admin module I ran in to a strange problem though. Having this doctrine schema: Products: columns: id: primary: true autoincrement: true type: integer ean:

[symfony-users] Re: Recommended distibution for Symfony

2009-02-12 Thread Johannes Frandsen
I have ben using Gentoo for 2 years now super stable and always up to date with its php versions. Granted it may be a bit difficult as a distribution if you are use to ubuntu, but I guess thats the price of being able to customize. If you need a easy start with gentoo try out Sabayon whic

[symfony-users] [sfValdatorDoctrineUnique]

2009-02-26 Thread Johannes Heinen
Hi all, im relatively new to symfony, so i say sorry in advance if my question is not appropriate. I wonder if the related UniqueValidator should be refactored partly to allow explicit mapping of form fields to database-attributes. It drove me crazy to determine which column names to pass - curi

[symfony-users] Extending sfController

2009-04-13 Thread Johannes Heinen
;( Greetings and many, many easter eggs Johannes Heinen --~--~-~--~~~---~--~~ 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

[symfony-users] Re: Extending sfController

2009-04-14 Thread Johannes Heinen
uestion and i surely will have to put some work into it ;). Best regards Johannes On Apr 14, 7:39 am, Gareth McCumskey wrote: > Perhaps consider creating your collection of CMS "modules" as apparent > modules instead of being defined as symfony modules, that way you can use > symf

[symfony-users] Re: Extending sfController

2009-04-16 Thread Johannes Heinen
predefined symfony-code to enrich my modules so that they have the same "look and feel" like a symfony action controller. That would have the advantage that a symfony dev-superhero feels familiar with it and could easyliy devolpe modules without lerning a new api. Thanks again for yo

[symfony-users] Re: Extending sfController

2009-05-11 Thread Johannes Heinen
- in advance. With best regards Johannes Heinen On Apr 16, 1:18 pm, Lee Bolding wrote: > Cool. OK, let's address some of your points, and through a few ideas   > around :) > > 1) OK, that's pretty much what I expected. The way I'd handle these   > "anchor points&

[symfony-users] sfValidatorXXXUnique

2009-05-16 Thread Johannes Heinen
ch though has the same filename as the file before. Thanks in advance and a nice weekend, johannes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send emai

[symfony-users] sfDoctrinePlugin/sf1.2

2009-05-18 Thread Johannes Heinen
tion about which columns have changed. Is there a method like (getOriginalValueForField('myField')) ? Thanks, Johannes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To pos

[symfony-users] Re: sfDoctrinePlugin/sf1.2

2009-05-18 Thread Johannes Heinen
whoho, got it. For the ones who want to know: http://www.doctrine-project.org/documentation/manual/1_1/en/component-overview getModified(true) is the keyword. thanks. On 18 Mai, 18:17, Johannes Heinen wrote: > HI all, > > is there a way to revert changes made to an doctrine object

[symfony-users] Re: sfDoctrinePlugin/sf1.2

2009-05-19 Thread Johannes Heinen
2 :) > Watch out though - It'll only work with the current record - with Doctrine > 1.1 you can also optionally check child records. > > -Original Message- > From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] > > On Behalf Of Johannes Hei

[symfony-users] Re: sfDoctrinePlugin/sf1.2

2009-05-19 Thread Johannes Heinen
e (as most times^^ ;)). I'll try it out and write a line on how it worked. Thanks :) On May 19, 10:31 am, Johannes Heinen wrote: > hey:) > Sorry for the confusion: I've found out that the doctrine plugin > shipped with symfony 1.2 is based on the 1.0 release of doctrine - as >

[symfony-users] Re: sfDoctrinePlugin/sf1.2

2009-05-19 Thread Johannes Heinen
'll > need to checkout for some additional changes you'll need to implement. > > jw probably has a better idea of the issues than anybody - so he might chip > in with some tips if he has the time. > > -Original Message- > From: symfony-users@googlegroups.com

[symfony-users] Re: sfDoctrinePlugin/sf1.2

2009-05-19 Thread Johannes Heinen
doctrine 1.1 libraries. I prefer to say "never change a running system" On May 19, 1:49 pm, Johannes Heinen wrote: > In this (my) special case it seems to work - but i did not even touch > the most complex doctrine possibilities. > > In my test environment i installed doctr

[symfony-users] Re: sfDoctrinePlugin/sf1.2

2009-05-25 Thread Johannes Heinen
? ;) Thank you in advance, de joshi On May 19, 1:53 pm, Johannes Heinen wrote: > :D ok, i have an idea: it *may* be that it works because i store > doctrine 1.1 in ./lib/ventor/doctrine, but there is also the origin > sfFilebasePlugin under ./lib/vendor/symfony/plugins/ > sfDoctrinePlugi

[symfony-users] Re: Doctrine File upload trouble

2009-06-08 Thread Johannes Heinen
It is probably not the best solution for your problem, but if you'd use sfFilebasePlugin which supports a few doctrine based asset management capabilities added to various file handling stuff based on SPL, you could help me to improve the plugin and provide a stable assets manager for sf 1.2 + doc

[symfony-users] mime type detection

2009-06-20 Thread Johannes Heinen
Hi all, i am looking for a kind of advanced mime type detection for a yet another symfony assets library plugin. For example, an open office document is simply a zip compressed folder, so it's mime type is detected as "application/zip". So man would have to check if a mime type application/zip o

[symfony-users] Re: mime type detection

2009-06-20 Thread Johannes Heinen
e these relations between a (raw-guessed) mime type and its "finer" guessed mime types, depending on a file's extensions are deposited? greetings de joshi On Jun 20, 4:08 pm, Eno wrote: > On Sat, 20 Jun 2009, Johannes Heinen wrote: > > i am looking for a kind of advance

[symfony-users] Re: doctrine errors

2009-06-21 Thread Johannes Heinen
Hey Rajat, could you *please* leave my Thread (its mine, my pecious ;)) and re-open a thread for your issue? Or is this a google database problem - because i had a mime type related question, and you actually want to discuss a doctrine specific issue in the same thread Thanks and a nice

[symfony-users] Re: mime type detection

2009-06-22 Thread Johannes Heinen
:40, Juampy72 wrote: > Johannes, > > I have been using fileinfo for two years with many different file > types and very rarely I had an unexpected mimetype. You can even > modify the magic database to add your own mimetypes. Have you actually > tested file info with an odt file? D

[symfony-users] Re: Image Upload safety help

2009-06-23 Thread Johannes Heinen
Hi, fancyupload and swfupload (google shows the urls) are the 2 flash upload scripts i know that can be easily integrated into a form (or can be used without one, though). There are symfony plugins for swfupload, i don't know if one for fancyupload also exists. On of them, the 1.2 plugin, was wr

[symfony-users] [solved] mime type detection

2009-06-23 Thread Johannes Heinen
an xml > structure for special cases. > > Cheers, > > Juan > > On Jun 22, 8:42 am, Johannes Heinen > wrote: > > > Hi Juan, > > > this is exactly what i actually trust in, namely that such cases won't > > occure really often. > > But i heard

[symfony-users] Re: Image Upload safety help

2009-06-23 Thread Johannes Heinen
gt; it appears to say not documented or cross browser checked > > thanks > Kevin > > On Jun 23, 11:20 am, Johannes Heinen > wrote: > > > Hi, > > > fancyupload and swfupload (google shows the urls) are the 2 flash > > upload scripts i know that can be easily

[symfony-users] Re: Image Upload safety help

2009-06-23 Thread Johannes Heinen
to the form. > > > I really don't want people being able to find this swfupload and > > trying to upload files unauthorized. > > > Thanks > > > On Jun 23, 11:53 am, Johannes Heinen > > wrote: > >> Ärm *working* depends on what you mean wi

[symfony-users] Re: mime type detection

2009-06-24 Thread Johannes Heinen
ension, etc. > >  - Jon > > > > On Wed, Jun 24, 2009 at 8:14 AM, Juampy72 wrote: > > > Hi Joshi, > > > I have not installed fileinfo on Ubuntu but these instalation > > instructions should help you through: > > >http://pecl.php.net/package/Fi

[symfony-users] Re: plugins ....

2009-06-30 Thread Johannes Heinen
Hi, to comment only one aspect: > anyway, now i wonder... if there would be any sf 1.3 compatible plugins > within in a month from 1.3 official release. (to say so: raise your hand > those of you who had work / or who is working to upgrade a plugin from 1.1/ > 1.2 to 1.3 version )... I think th

[symfony-users] Re: Working with Symfony, Doctrine and an IDE( here Netbeans )

2009-07-11 Thread Johannes Heinen
In my opinion this is one of the main disadvantages of doctrine, but compared to propel you will have to decide for yourself if you can accept this drawback with all doctrine features in mind that propel is not shipped with. Ok, man could enrich the generated classes' code with code-completing ph

[symfony-users] Re: Media Library Plugin

2009-08-10 Thread Johannes Heinen
Perhaps you could also take a look at sfFilebasePlugin, its a media library with frontend GUI, drag/drop stuff of files and also a fundamentally new way to deal with your files programmatically by providing a file management layer based on SPL classes. sfFilebasePlugin ships with an swfUpload for

  1   2   >