Re: [symfony-users] ORM tutorials

2011-05-11 Thread Mark Badolato
Foo.php wrote: > Hi guys, I need a ORM tutorial. I'm coded some ORM. But when I run > app/ > console doctrine:schema:create command relation between tables does > not generated automatically / doesn't generate primary and  foriegn > key columns/. Please help me I need a very simple /one to one >

[symfony-users] Re: CollectionType - cannot display error messages with widget

2011-05-05 Thread Mark Fullbrook
oblem. On May 5, 1:21 pm, Mark Fullbrook wrote: > I have just changed the type of one of the item fields to money and > the validation errors being thrown by > NumberToLocalizedStringTransformer are being rendered by > {{ form_errors( item.price ) }}.  So it's the validation er

[symfony-users] Re: CollectionType - cannot display error messages with widget

2011-05-05 Thread Mark Fullbrook
level. On May 5, 12:31 pm, Mark Fullbrook wrote: > Hi Bernard, > > When I call form_errors(item.myfield) on an item within a collection > it doesn't display the validation error message that is associated > with that item.  Instead the error messages display at the form &

[symfony-users] Re: [Symfony2 Forms] CollectionType - cannot display error messages with widget

2011-05-05 Thread Mark Fullbrook
ng to SpotResponseItemType are only displaying when form_errors(form) is called. Great job on the Form framework btw! Mark On May 4, 9:31 pm, Bernhard Schussek wrote: > Which errors are you talking about? > > Bernhard -- If you want to report a vulnerability issue on symfony, ple

[symfony-users] Re: [new Forms] Custom Labels in FormBuilder

2011-05-04 Thread Mark Fullbrook
That is exactly how I have specified the labels for my forms and it works for me. Have you upgraded to the latest Symfony code? On May 2, 12:58 pm, Conrad wrote: > I would like to customize my labels for my forms using the 'label' option of > a field, unfortunately this doesnt work:http://pastie

[symfony-users] [Symfony2 Forms] CollectionType - cannot display error messages with widget

2011-05-03 Thread Mark Fullbrook
Hi, I'm having great success with the new Form framework, except for the CollectionType. My issue is that the errors are rendering for the form {{ form_errors(form) }} and not the individual rows. My Types: class SpotResponseType extends AbstractType { public function buildForm(FormBuilder

[symfony-users] Re: [Symfony2]Multiple routes in annotations

2011-03-28 Thread Mark C
Awesome thanks Fabien, just saw that on github. On Mar 26, 5:52 pm, Fabien Potencier wrote: > On 3/26/11 5:55 PM, georg wrote: > > > Hi, > > > has this been solved or has a solution been found? > > I'm also very interested in achieving the same thing as M

[symfony-users][Symfony2]Multiple routes in annotations

2011-03-16 Thread Mark C
Hi, With annotations, is it possible to set up multiple routes for a controller without having to set up multiple controllers? At the moment I am doing: /**  * @extra:Route("/index")  * @extra:Template()  */ public function indexAction() {

[symfony-users] [symphony-users][Symfony2] Where to register a custom format

2011-03-11 Thread Mark C
Hello all, I am using the .{_format} parameter in my route and want to register jsonp with the same mime-type as json: array('application/json', 'application/x-json'), I know I can do the following in every controller: $request = Request::createFr

[symfony-users] Re: [symfony2][pr7]REST bundle XML error

2011-03-09 Thread Mark C
/services http://symfony.com/schema/dic/services/services-1.0.xsd";> I imagine this will be a problem with most bundles that haven't been updated. Cheers On Mar 8, 10:26 pm, Mark C wrote: > I'm trying to use EverzetRestfulControllersBundle, using the updated fork by > s

[symfony-users] "No Models were loaded" in doctrine:data-dump

2010-05-12 Thread Mark Robert Henderson
Hello, I'm trying to run ./symfony doctrine:data-dump from the cli and I just get an error "No models were loaded" I cracked open the php file: http://trac.doctrine-project.org/browser/branches/1.2/lib/Doctrine/Task/DumpData.php?rev=7490 ...and saw that "models_path" is being set. Is there a way

[symfony-users] Issue with autoloader in cli task.

2010-05-12 Thread Mark Robert Henderson
232 2. and this is my autoload.yml that I placed in lib/task: http://pastie.org/956233 I think I need to reconfigure the $autoload singleton or fix my project configuration... Any help on how to fix or debug this would be greatly appreciated. - Mark -- If you want to report a vulnerability i

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

2010-02-05 Thread Mark Smith
ectDecorator does not implement Iterator or > ArrayAccess. maybe property_exists can do > > On Feb 4, 5:09 pm, Mark Smith wrote: > > > That returns a fatal exception: "Call to undefined method > > sfOutputEscaperObjectDecorator::offsetExists()" &g

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

2010-02-04 Thread Mark Smith
od, $value) A quick search through the library code reveals that this method exists on an IteratorDecorator 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:

[symfony-users] sfOutputEscaperObjectDecorator with isset() ?

2010-02-03 Thread Mark Smith
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 sfOutputEscaperObjectDecorator, isset always returns false, even when the property is there. As a workaround I am

[symfony-users] Re: Custom 500 error page

2010-01-07 Thread Mark Smith
On Jan 7, 2:05 pm, Eno wrote: > On Thu, 7 Jan 2010, Mark Smith wrote: > > Yes but that error message will be used for every module and every > > action. > > > I need to override this and use a specific 500 error page for a > > specific action. > > Doesn'

[symfony-users] Re: Custom 500 error page

2010-01-07 Thread Mark Smith
Yes but that error message will be used for every module and every action. I need to override this and use a specific 500 error page for a specific action. On Jan 7, 12:42 pm, chrisyue wrote: > yes > you can custom 500 in apps/APPNAME/config/error/error.html.php > > Mark Smith w

[symfony-users] Custom 500 error page

2010-01-07 Thread Mark Smith
Hi, Is it possible to define a custom 500 error page for a specific action? Thanks -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email

[symfony-users] File size validation?

2010-01-07 Thread Mark Smith
Hi, I am trying to implement file size validation for an upload field on a form. For security / performance the php.ini post_max_size config setting is set to 8 mb. Now I want to limit the file size upload to about 1 mb. I am using the built in sfValidatorFile: $this->setValidator("file", new s

[symfony-users] Re: Custom error messages

2009-11-03 Thread Mark Smith
ers max).]' Any idea what I'm doing wrong? Thanks On Nov 2, 5:08 pm, David Ashwood wrote: > You can customize > them:http://www.symfony-project.org/forms/1_2/en/02-Form-Validation#chapte... > > On Mon, 2009-11-02 at 08:58 -0800, Mark Smith wrote: > > Is it possible to custom

[symfony-users] Custom error messages

2009-11-02 Thread Mark Smith
Is it possible to customise the error message coming from an sfForm so that the contents of the validated field don't get spat back out? I.e. at the moment the getMessage() function is returning: ID ["abc" is not an integer.] But I would rather have ID is not an integer. Thanks for any help

[symfony-users] Re: Page state

2009-10-19 Thread Mark Smith
On Oct 19, 1:52 pm, Eno wrote: > On Mon, 19 Oct 2009, Mark Smith wrote: > > > Why would a user be logged in more than once at the same time? > > > It's pretty common for users to have multiple tabs or windows open. > > Sure, but not with different user IDs

[symfony-users] Re: Page state

2009-10-19 Thread Mark Smith
On Oct 19, 3:47 am, Eno wrote: > On Fri, 16 Oct 2009, Mark Smith wrote: > > However it all breaks the moment a user has more than one page open: > > If while that second screen is open a new customer is selected in > > another window the action will pick up the new id from

[symfony-users] Re: Page state

2009-10-16 Thread Mark Smith
alue, $namespace); > > On Fri, Oct 16, 2009 at 1:14 PM, Mark Smith > > > > wrote: > > > I like that idea a lot. > > > Is there already a key associated with each window that I can use, or > > would I need to manually create a key and embed it on the pag

[symfony-users] Re: Page state

2009-10-16 Thread Mark Smith
ing like > $this->getUser()->setAttribute($window_name.$cust_id, $default, $value); > > On Fri, Oct 16, 2009 at 12:44 PM, Mark Smith < > > > > marksmith5...@jungle-monkey.com> wrote: > > > Ok, as a simple example currently one of my screens might select a >

[symfony-users] Re: Page state

2009-10-16 Thread Mark Smith
cription of what you're after, some kind of use case > perhaps, might better help people to answer the question? > > On Fri, Oct 16, 2009 at 10:04 AM, Mark Smith < > > > > marksmith5...@jungle-monkey.com> wrote: > > > Session is no good, as if the user has mul

[symfony-users] Re: Page state

2009-10-16 Thread Mark Smith
 am, Gareth McCumskey wrote: > http is a stateless protocol so no language can manage states. We fake > states by using session variables, cookies, etc. Symfony has loads of > session/cookie management features. > > On Thu, Oct 15, 2009 at 4:48 PM, Mark Smith > > wrote: >

[symfony-users] Page state

2009-10-15 Thread Mark Smith
Does symfony provide any mechanisms for managing page state? Thanks --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubs

[symfony-users] Re: csrfToken has no value

2009-10-12 Thread Mark Smith
our "settings.yml" ? > alecs > > On Mon, Oct 12, 2009 at 6:11 PM, Mark Smith > > > > wrote: > > > I am working on a project using Symfony 1.2.0 > > > In my action I have instantiated an sfForm. > > > I have the following line in the templ

[symfony-users] csrfToken has no value

2009-10-12 Thread Mark Smith
I am working on a project using Symfony 1.2.0 In my action I have instantiated an sfForm. I have the following line in the template: getCSRFFieldName()]; ?> That is outputting the following: As you can see, there is no value on the csrf field, so when it submits it can never validate. I have

[symfony-users] Textarea value

2009-09-01 Thread Mark Smith
Hi, I am contructing a text area widget inside the configure method of my form like this: $this->setWidget("Notes", new sfWidgetFormTextarea(array(),array ('value'=>$this->entity->Notes))); In the template when I try to print out the widget like this: The resulting html is: For a textare

[symfony-users] Form layout

2009-09-01 Thread Mark Smith
Symfony seems to implement forms in such a way that it uses tables for html layout. Everything I have read to say this is incredibly bad web design practice. It seems like an odd decision for such a well thought out framework. Is the only way to override this behavior to access the form field nam

[symfony-users] Mark Howell is out of the office.

2009-06-12 Thread mark . howell
I will be out of the office starting 06/12/2009 and will not return until 06/16/2009. I will respond to your message when I return. This transmission is intended solely for the person or organization to whom it is addressed and it may contain privileged and confidential information. If you a

[symfony-users] Re: Page specific javascript question

2009-06-02 Thread Mark Smith
Is that good practise to do with javascript that references page specific element ids? On Jun 1, 5:13 pm, Gábor Fási wrote: > Put it in the global js folder, and use the modules view.yml to > include it in the templates that need it. > > On Mon, Jun 1, 2009 at 18:01, Mark Smit

[symfony-users] Page specific javascript question

2009-06-01 Thread Mark Smith
If I am writing some page specific javascript where should I put it? The way I see it I have 3 options: 1) Embed it in the page template (feels very hacky) 2) Stick it in a global .js and load it every time regardless. (could cause problems and isn't really scalable) 3) Put it in its own .js f

[symfony-users] Reading custom yaml files

2009-05-12 Thread Mark Smith
I have some of my own configuration that I will be reading from custom yaml files. At the moment I am reading them in using sfYaml::load, it works well, but I get the feeling this is bad, because the yaml file will be parsed each and every time I call the page. Is there a mechanism in place to h

[symfony-users] Re: Remove js and css from view?

2009-04-29 Thread Mark Smith
tion. > > There might be a better way but it's hard to tell what you're trying   > to accomplish from your email. > > On Apr 29, 2009, at 10:02 AM, Mark Smith wrote: > > > > > I don't want to use my layout for one of my actions. I am doing $this- > >

[symfony-users] Remove js and css from view?

2009-04-29 Thread Mark Smith
I don't want to use my layout for one of my actions. I am doing $this- >setLayout(false) in the action. And that has stopped it from parsing layout.php However all my style sheets and javascripts are still being added. How do I stop this? Thanks for any help. --~--~-~--~~---

[symfony-users] Can I send an array as a parameter?

2009-04-28 Thread Mark Smith
I'm trying to define some routes to call a specific action that takes an array as a parameter. For example: "Name": url:/Reports/Name param: { module: Reports, action: run, reportName: Reports/ ServiceName,reportFilename: test.csv, reportParams:{region:UK} } This triggers the follo

[symfony-users] Re: How do I set a field value on a form?

2009-04-22 Thread Mark Smith
s probably tidier anyway, so I'm changing it to do that. But for future reference, you are saying $form->setDefault('field', 'value'); will work even after it's constructed and configure() has been called? On Apr 22, 10:38 am, Bernhard Schussek wrote: > Hi Ma

[symfony-users] Re: How do I set a field value on a form?

2009-04-22 Thread Mark Smith
So you are saying the only way to change a form field once the object exists, is to completely rebuild the form? OK, I'll have to restructure my code a bit, but it seems to work. Thanks. On Apr 21, 11:56 am, Bernhard Schussek wrote: > Hi Mark, > > What exactly is it what you want

[symfony-users] How do I set a field value on a form?

2009-04-21 Thread Mark Smith
If I do $form[field]="value" An exception gets thrown with message "Cannot update form fields". If I try to use bind to rebuild the form values from scratch, the form won't validate with a _csrf_token [required] error, despite the fact that I have called $form->disableCSRFProtection()... I feel

[symfony-users] Can no longer view Symfony Plugins with Content Encoding Error

2009-04-20 Thread Mark D
The Symfony Plugins page no longer loads for me in Firefox 3.1b3 with Content Encoding Error: The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression. http://www.symfony-project.org/plugins/ Screenshot: http://img.skitch.com/20090420-88kkj4qd

[symfony-users] Re: Is it possible to trigger an action from the command line?

2009-04-09 Thread Mark Smith
> > // Use the ProjectConfiguration class for configuration data > require_once(SF_ROOT_DIR.DIRECTORY_SEPARATOR >   . 'config' . DIRECTORY_SEPARATOR >   . 'ProjectConfiguration.class.php'); > > You may need to create a "wrapper" batch script with the code abov

[symfony-users] Is it possible to trigger an action from the command line?

2009-04-09 Thread Mark Smith
I can trigger the front end by running "php web\index.php" But if I try and specify a module name I get an error: php web\index.php/Test Could not open input file: web\index.php/Test Is there a way to trigger a specific module or action from the command line? Thanks --~--~-~--~~---

[symfony-users] Re: Filter not executing...

2009-04-06 Thread Mark Smith
ogging at the   > beginning of all of it's methods. You should then be able to see in   > the log messages in the web debug toolbar if the filter ever get   > instantiated. > > However, this does sound like a pretty basic error - are you sure you   > copied the filter to

[symfony-users] Filter not executing...

2009-04-06 Thread Mark Smith
Hi, I am having a problem with a custom filter not executing. It works on my dev machine, but after deploying to another machine I am getting exceptions thrown. The problem seems to be that one of my custom filters is not being executed. The filter is defined correctly in apps\frontend\config\fi

[symfony-users] Re: Bypass template?

2009-03-31 Thread Mark Smith
Thanks to everyone, your responses where invaluble! This is what I ended up using: public function execute($request) { $manager=new ReportManager(); $response=$this->getResponse(); $response->setContentType("text/csv"); $response->setHttpHeader('Content-Disposition', 'attachm

[symfony-users] Bypass template?

2009-03-31 Thread Mark Smith
Hi, I am trying to add an action that just returns a report as raw CSV data. Is it possible to bypass the template layer and just set my own content? My code looks like this so far: public function execute($request) { $response = $this->getResponse(); $manager=new ReportManager();

[symfony-users] Unchecked check boxes (Apologies for the double post.)

2009-03-27 Thread Mark Smith
Apologies for the double post. I accidentially hit return before I had finished: I am reading a dynamic form with a bunch of check boxes on it. It would make my task so much easier if the unchecked fields got posted with false or null values. The common workaround for this is a hidden input tag

[symfony-users] Unchecked check boxes

2009-03-27 Thread Mark Smith
http://iamcam.wordpress.com/2008/01/15/unchecked-checkbox-values/ --~--~-~--~~~---~--~~ 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 unsubscri

[symfony-users] Re: Jobeet Day 7 schema.yml parse error

2009-03-17 Thread Mark
 columns: >      name: { type: string(255), notnull:  true} > > The {} is an inline hash, but the Sluggable line is also a hash - the   > yaml parser can't combine the two. > > On Mar 17, 2009, at 11:36 AM, Mark wrote: > > > > >>> JobeetCategory: > &g

[symfony-users] Re: Jobeet Day 7 schema.yml parse error

2009-03-17 Thread Mark
ame: { type: string(255), notnull:  true} > > The {} is an inline hash, but the Sluggable line is also a hash - the   > yaml parser can't combine the two. > > On Mar 17, 2009, at 11:36 AM, Mark wrote: > > > > >>> JobeetCategory: > >>>   actA

[symfony-users] Re: Jobeet Day 7 schema.yml parse error

2009-03-17 Thread Mark
And the correct way to fix? Sorry I've tried every way that I could think of. On Mar 16, 9:28 pm, Steve the Canuck wrote: > It looks like an indent issue to me. > > On Mar 16, 4:29 pm, Mark wrote: > > > I'm having trouble with the schema.yml getting to bu

[symfony-users] Jobeet Day 7 schema.yml parse error

2009-03-16 Thread Mark
I'm having trouble with the schema.yml getting to build. I get a parse error. "unable to parse line 3 Sluggable:" And my file... JobeetCategory: actAs: {Timestampable: ~ } Sluggable: fields: [name] columns: name: { type: string(255), notnull: true} JobeetJob: actAs: { Ti

[symfony-users] Re: How to validate at least one checkbox is checked?

2009-02-19 Thread Mark Smith
uot; method validating that at least one is checked (and > use this as a post validator). I've never implemented something > similar so take my words just as "this is the way I'd go" and not as > "I'm sure this is the best way" :-) > > On Wed, Feb

[symfony-users] Re: How to validate at least one checkbox is checked?

2009-02-18 Thread Mark Smith
www.symfony-project.org/book/forms/1_2/en/02-Form-Validation. > > I think your problem will be better handled by a global validator as > it regards more than one input field. > > Martino > > On Wed, Feb 18, 2009 at 1:16 PM, Mark Smith > > wrote: > > > I have a dynamic 2d

[symfony-users] How to validate at least one checkbox is checked?

2009-02-18 Thread Mark Smith
I have a dynamic 2d array of checkboxes, and I want to require that at least one is selected. Trying to write validation rules for this is proving to be excruciatingly difficult. The only way I could accomplish this is to override the isValid function and put in some logic to manually check each

[symfony-users] Re: regarding join query of three tables

2008-07-11 Thread Mark D
I believe this is exactly what you want: http://groups.google.com/group/symfony-users/browse_thread/thread/40df48dd79cb274e?hl=en It explains how to do custom propel joins, and custom hydrating so all objects are created/filled with data. Mark On Jul 10, 10:01 pm, kusum <[EMAIL PROTEC

[symfony-users] Re: Sub domains

2008-07-04 Thread Mark D
on you want. That is the full solution. Mark On Jul 4, 12:57 am, Damien <[EMAIL PROTECTED]> wrote: > Thank you for your answers. > > Jacob, I saw your post, but I don't know how to redirect to a category > in my filter. I can not do a redirect() like in an action. > Moreove

[symfony-users] Re: sfPageFlowPlugin?

2008-06-14 Thread Mark D
splayConfirm onError: DisplayForm ProcessSubmit: transition: onSuccess: DisplayResult Mark On Jun 13, 4:34 am, Lee Bolding <[EMAIL PROTECTED]> wrote: > Did anybody manage to get the demo working for this? > > It's still got me stumped :-/ --~--~-~-

[symfony-users] Re: How to mix form object and form error !

2008-06-12 Thread Mark D
ct) > > 30,)) ?> > If the mail is not valid, how can i mark the error and repopulate the > form ? > > If i don't choose to use form object : > > get('mail'),'title="Veuillez > saisir votre adresse email"') ?> > But i can'

[symfony-users] Re: How do you sync your production db ?

2008-05-22 Thread Mark D
I second that, sfPropelMigrationsLightPlugin is really the best and simplest way to handle database changes for a symfony project using propel. Mark On May 22, 1:04 am, "Thomas Rabaix" <[EMAIL PROTECTED]> wrote: > You can use the sfPropelMigrationsLightPlugin > > http:/

[symfony-users] Re: [symfony-devs] http://www.symfony-project.org/ is down. again.

2008-05-02 Thread Mark Ng
veral times. Also, make sure that when you're using models that are joined to the model you select that you use the doSelectJoinFoo (or even doSelectJoinAll) methods. Mark --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

[symfony-users] Re: Have you heard about Google App Engine?

2008-04-11 Thread Mark Ng
I'm having a good chuckle at all of you from gmail talking on a google group about being worried at giving google more data ;). The thing that would concern me most is not being able to take that data out and move it elsewhere.. Mark On 11/04/2008, Nicolas Perriault <[EMAIL PROTECTED

[symfony-users] Re: Have you heard about Google App Engine?

2008-04-11 Thread Mark Ng
it's excellent admin system). It's to be noted that a large number of the features that are missing are missing *because* of the way they scale. And google own you no more than any other hosting provider do. Mark On 11/04/2008, Michael Nolan <[EMAIL PROTECTED]> wrote: > >

[symfony-users] Re: Schema.yml generation for Oracle RDBMS

2008-04-02 Thread Mark Ng
you can do this already with symfony propel-build-schema (or does this not work with Oracle ?) Mark On 02/04/2008, Mladen Gogala <[EMAIL PROTECTED]> wrote: > > I created a little Perl script (yeah, I know!) to generate table > descriptions from the database itself. >

[symfony-users] Re: sfSimpleCMS installation problem

2008-03-06 Thread Mark D
stalled, run: ./symfony plugin-list Mark On Mar 6, 8:35 am, Patrick <[EMAIL PROTECTED]> wrote: > As described in the wiki. I need this plugin only for the CMS, so I > didn't create follow the steps for creating schema entries and so on. > But the Behaviors are enabled as d

[symfony-users] Re: datetime and now

2008-02-06 Thread Mark D
The simplest solution is $object->setMyDatetime('NOW'); Mark On Feb 5, 9:52 am, pihentagy <[EMAIL PROTECTED]> wrote: > Well, setting $object->setMyDatetime(time()); works, if it is > called :-/ > > On Feb 5, 5:34 pm, pihentagy <[EMAIL PROTECTED]> wro

[symfony-users] Re: sfConfiguration... and some refactoring

2008-02-06 Thread Mark D
I also vote for global constant SYMFONY_VERSION, it doesn't make sense to try to attach it to a specific class, and it doesn't sound quite right on an Autoload class. On Feb 6, 3:37 am, "markus.staab" <[EMAIL PROTECTED]> wrote: > +1 for global constant SYMFONY_VERSION --~--~-~--~~