Hi all,
Is there a way to retrieve a module "absolute path" or "real path" using
symfony api?
I need to get the path to template files too. Is there a way to do it
passing only action and template/partial name?
2009/7/29 Bruno Reis
> Hi all,
>
> how do I get a molude path using symfony classes?
Hi Avnish,
Thanks for your reply!
We were experiencing this with 1.2.8. Then, we moved to 1.2.7 to see
if that fixed the error, but no luck. This error happens even with 128
MB per process, so I guess that it's sf who's taking so much memory
(maybe this function might get recursive?). Another in
Thanks for your support ;)
On Jul 31, 6:13 am, Sid Ferreira wrote:
> UP! (I have nothing to say about it, I just want support what he said as an
> important feature)
>
> On Fri, Jul 31, 2009 at 03:45, JP wrote:
>
> > Hi,
>
> > In symfony 1.2, I can only create models using one of the 2 ORMs
> >
This error has been eating my lunch all day. Any help on this one
would be great. Thanks.
On Jul 31, 9:18 am, AeroCosmic wrote:
> I'm getting the following error when trying to create a new entity
> with the auto-generated form for "sites"
>
> Validation failed in class Sites
>
> 1 field had
Hi,
I'd like to upload image using admin generator. I've tried set field
type in my generator.yml to:
edit:
title: Editing photo "%%title%%"
fields:
path_thumb:
type: admin_input_file_tag
help: default size 25x25
but it doesn't wor
Which version of symfony are you using?
I was seeing similar error while I was using (symfony 1.2.4) cache with
doctrine forms. Then I found following bug
http://trac.symfony-project.org/ticket/5814 - which apparently is fixed
in 1.2.7
You may want to switch to 1.2.8 and see if it fixes your er
In your form class use following:
$this->widgetSchema['field_to_make_uneditable']->setAttribute('readonly','readonly');
It works with inputbox only though
Original Message
Subject: [symfony-users] Form field uneditable?
From: Eno
To: symfony-users@googlegroups.com
Date: Friday
Hi!
I posted this on the forum, but got no replies. Probably the list is
the place to get more feedback ;)
We have a decently big app, and we have our max_memory limit on 32 MB,
however this is an issue that happened when we had 128 MB too.
When I see the error log from apache, I see a lot of
I have 2 days with that problem, the *code* which *im using* is the next
(lib/form/ArtistaForm.class.php):
$i = 1; while($i<=4) {
$this->widgetSchema['foto'.$i] = new
sfWidgetFormInputFileEditable(array(
'file_src'=>
'/hofestival/web/uploads/artistas/full/'.$this->getObject()
Thanks Daniel.
That is a nice approach either, but the way I posted here is nice because it
puts plugin configuration on a specific file and keeps the app.yml not
"crowded".
2009/7/31 Richtermeister
>
> Hey Bruno,
>
> what I meant is include the file in the plugin to provide "default
> values".
Is there a way to set a form field as uneditable?
I have a field I want to display in my form but I need to generate it when
I save the form so the user can't change it manually.
--
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Is this a symfony app? In that case look at the front controller
(usually front_dev.php) and see what's causing the error.
How did you get a bid for a problem that you're not sure what it is?
Daniel
On Jul 30, 10:49 am, chip fyn wrote:
> Is this a real problem or what?
> The program was great
Hey Bruno,
what I meant is include the file in the plugin to provide "default
values". Of course the user needs to overwrite some of those in the
app.yml of the respective app that uses the plugin. That's how most of
the other plugins do it.
Daniel
On Jul 30, 11:07 am, Bruno Reis wrote:
> Tha
On Thu, 30 Jul 2009, ahmed-araby wrote:
> I really want to know what does sf_compat_10 do in the application in
> specific ?
> and if it affects the application performance ?
>
> Also how to add helpers in every template in the application ?
Put them in your global layout.
--
--~--~-
On Fri, 31 Jul 2009, nico wrote:
> Add in your action
>
> $this->setLayout(false);
Also if you're sending back XML or JSON then set the appropriate header
like:
$this->getResponse()->setContentType('text/xml');
--
--~--~-~--~~~---~--~~
You receiv
?
do you use $form->render() ? if yes, just check the documentation
(forms for web designers). I didn't mean to add the class in the form
code but in the template code $form['myWidget']->render( 'class'
=> 'hidden')
Don't forget to add other hidden fields in the template.
If I'm wrong, ple
I've a situation where two classes are related through a third class (m-2-m
relationship). For instance, an Article can have many related articles.
So I have a third class for instance ArticleRelated, corresponding to an
article_related table with an article_id and a article_related_id columns.
N
On Fri, 31 Jul 2009, seifolah Ghaderi wrote:
> Thanks.I solved it.
> I rename my matchForm to MatchSheet,and it work's!
> I think itmay be a bug.When We have a module named A and another named AForm
Yes, dont use "Form" in module names. If you have a Propel object User,
then its form will be na
Add in your action
$this->setLayout(false);
On Jul 31, 3:47 pm, HAUSa
wrote:
> I created an action, called send in the module system.
> Now I have a Flash file which sends it's values to /system/send.
>
> In the sendSuccess.php I have a line to push a thank you message to
> Flash.
> mailFeedbac
The name AForm is used for the form of model A, so it's rather a
conflict with the naming concept than a bug.
On Fri, Jul 31, 2009 at 08:43, seifolah Ghaderi wrote:
> Thanks.I solved it.
> I rename my matchForm to MatchSheet,and it work's!
> I think itmay be a bug.When We have a module named A an
Hello,
I wanted to announce the availability of a new plugin for symfony
sgLESSPlugin. The plugins provides the following features:
* augments CSS with some great features: variables, nested
inheritance, mixins and accessors and other neat stuff.
* provides symfony module/action to dynam
Ah, that solved it. I was using the ISO chartype. Thx!
On 31 jul, 16:47, Sid Ferreira wrote:
> Are you using UTF8?
>
> Sidney G B Ferreira
> Desenvolvedor Web
>
> On Fri, Jul 31, 2009 at 11:35, HAUSa <
>
> jeroen_heeft_behoefte_aan_r...@hotmail.com> wrote:
>
> > I got a problem with the special
I created an action, called send in the module system.
Now I have a Flash file which sends it's values to /system/send.
In the sendSuccess.php I have a line to push a thank you message to
Flash.
mailFeedback=Bedankt voor uw reactie (dutch!)
However, ofcourse Symfony places my whole layout.php te
Are you using UTF8?
Sidney G B Ferreira
Desenvolvedor Web
On Fri, Jul 31, 2009 at 11:35, HAUSa <
jeroen_heeft_behoefte_aan_r...@hotmail.com> wrote:
>
> I got a problem with the special ë character. I have an input widget,
> but if I submit "Ik creëer webervaringen" (dutch ;)) I'll find only
>
I got a problem with the special ë character. I have an input widget,
but if I submit "Ik creëer webervaringen" (dutch ;)) I'll find only
"Ik cre" in the database.
Somebody who knows how to fix this?
--~--~-~--~~~---~--~~
You received this message because you are su
My idea too, but helas the class is put in the and tag.
Then still an empty and the empty label ("Select your options:")
remain visible...
On 31 jul, 11:59, François CONSTANT
wrote:
> It may be a stupid idea but what about adding a class on it and hide
> it thanks to CSS?
>
> On Jul 31, 10:0
Mirfan,
It doesn't appear the core symfomy/doctrine team hasn't provided a
standardized way (or definitive example) for working 1:m forms in
doctrine yet (although all the parts are in place for symfony users to
build these types of forms)
Unfortunately this means that there are number of method
I'm getting the following error when trying to create a new entity
with the auto-generated form for "sites"
Validation failed in class Sites
1 field had validation error:
* 1 validator failed on userid (notnull)
stack trace
* at ()
in SF_ROOT_DIR\lib\vendor\symfony\lib\plugins\sfDo
UP! (I have nothing to say about it, I just want support what he said as an
important feature)
On Fri, Jul 31, 2009 at 03:45, JP wrote:
>
> Hi,
>
> In symfony 1.2, I can only create models using one of the 2 ORMs
> Doctrine or Propel. Each of the 2 plugins implements some tasks for
> generating
Hi,
In symfony 1.2, I can only create models using one of the 2 ORMs
Doctrine or Propel. Each of the 2 plugins implements some tasks for
generating an admin backend, creating fixture data, some input
validation.
Now let's say I want to use a different data source, that is not a
database covered
Where do you put that? In the fixtures.yml? If it needs to go into the
actual model schema, we are using DBDesigner and the XML converter, so
not sure we can.
I have created a work around for now anyway.
http://pastebin.com/f235c8ece
On 31 July, 08:44, Garakkio wrote:
> On Jul 28, 12:46 pm, St
Hi,
I have a module in my backend which manage the articles posted by registered
users. Now in the list generator
I can use the peer_method to relate the user_id to his profile
via doSelectJoinsfGuardUser, this will automagically
show FirstName.' '.LastName (according to the __toString method) in t
It may be a stupid idea but what about adding a class on it and hide
it thanks to CSS?
On Jul 31, 10:01 am, HAUSa
wrote:
> For some usercredentials I want to hide a
> sfWidgetFormPropelChoiceMany. But, it must still be in the form
> because the values have to be put in the database.
>
> Now, nor
Hi,
What I want to do is to compare if a date field is today. I have
written that:
$c = new Criteria();
$today = mktime(0, 0, 0, date('m'), date('d'), date('Y'));
$tom = mktime(0, 0, 0, date('m'), date('d') + 1, date('Y'));
$criterion = $c->getNewCriterion(self
For some usercredentials I want to hide a
sfWidgetFormPropelChoiceMany. But, it must still be in the form
because the values have to be put in the database.
Now, normally you make a hidden form field. But, ofcourse, it is a
propelchoiceMANY, I need to be able to give it multiple values.
My quest
On Jul 28, 12:46 pm, Stephen Melrose wrote:
> Balls
>
> Uncaught exception 'PropelException' with message 'Cannot insert a
> value for auto-increment primary key (badword_list_group.ID)'
>
> :/
You can do it with a trick in your model:
badword_list_group
_attributes: { allowPkInsert: true }
36 matches
Mail list logo