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
>
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
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
&
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
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
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
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
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() {
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
/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
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
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
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
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:
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
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'
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
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
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
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
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
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
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
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
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
>
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
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:
>
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
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
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
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 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
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
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
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
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
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-
> >
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.
--~--~-~--~~---
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
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
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
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
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
>
> // 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
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
--~--~-~--~~---
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
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
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
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();
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
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
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
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
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
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
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
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
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
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
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
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 :-/
--~--~-~-
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'
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:/
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
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
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:
>
>
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.
>
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
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
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
--~--~-~--~~
70 matches
Mail list logo