I know it is a very silly question.
How can I just update a db field in one of the actions?
suppose that my code is like this:
public function executeConfirm(sfWebRequest $request) {
$foo = Doctrine::getTable('foo')->find(array($request-
>getParameter('foo_id')));
$foo->setConfirmed(1);
$f
well I found the answer, so I share it in case of any help for others.
new sfWidgetFormDoctrineChoice(array(
'model' => $this->getRelatedModelName('myModule'),
'add_empty' => 'Please Select ...'),
a
Hi,
I was wondering if anyone knows how to use sfWidgetFormDoctrineChoice
to display a non-multi selectable list?
I don't want to see a drop-down menu. I want to see a list of options
in a box.
Also I don't want to set the multiple option as true.
any clue?
thanks a lot
--
If you want to repor
; Back then installing via pear was the recommended way to go.
>
> Since sf1.2 (afaik) the best practise is to include symfony under
> lib/vendor for each project.
>
>
>
> On Sat, Sep 4, 2010 at 18:39, Martin Henits wrote:
> > Hi,
>
> > I was wondering if i
Hi,
I was wondering if it is possible to deploy a project that has been
developed based on a .tgz symfony installation method (the preferred
method as mentioned on documents) on a shared cPanel hosting.
I looked at
http://trac.symfony-project.org/wiki/InstallingSymfonyOnSharedHostNoSsh,
but it s
thats Doctrine
On Jul 20, 6:43 pm, Richtermeister wrote:
> What I usually do is add a custom column like "Number of Comments",
> and I link that number to a custom filtered list of comments that
> belong to this post.
>
> Are you using Propel or Doctrine?
>
> Danie
I have 2 tables named blog_post and blog_post_comment.
The blogPost module, lists all the blog posts. but it is needed to
display a link to each blog post comments beside each post in the
list.
this can be done using object_actions. but the problem is if the user
click on the link, she will see a
: foo}
>
> On 17 čnc, 20:12, Martin Henits wrote:
>
>
>
> > Hi all,
>
> > I wrote the following piece of code in thegenerator.ymlof a module:
>
> > list:
> > actions:
> > foo:
> > action: foo
>
> > but instea
in one of my backend modules (mod_A), I need to put a link to the edit
page of another backend module (mod_B).
I did it in this way:
- in mod_A/config/generator.yml, I wrote:
list:
actions:
mylink:
action: mylink
- and in mod_A/actions/actions.class.
Hi all,
I wrote the following piece of code in the generator.yml of a module:
list:
actions:
foo:
action: foo
but instead of having an action linking to "backend_dev.php/my_module/
foo", it is linked to "backend_dev.php/my_module/foo/action"
therefore, when I click on it, I see:
A
can do that too. Just unset the field you want to have a
> text field for and take this approach instead, you'll be finished in no time.
> :)
>
> Cheers, Daniel
>
> On 26.06.2010, at 14:20, Martin Henits wrote:
>
> > I clicked on the logs and realised the error is
I have overrided the __toString() method for my users model to display
first name and sirname.
can I display something like this in the backend's user's list?
I mean when I create a new module based on the user model, the
displayed list has first name and surname.
I want to just display a single f
menu in a backend
module's filter.
On Jun 26, 1:11 pm, Martin Henits wrote:
> Thanks, I changed the filter according to your suggestion and as it
> was desired I can see an edit box instead of a drop-down menu. But
> whenever I want to search for something (i.e. whenever I click o
thanks, this worked.
On Jun 24, 8:16 am, Tom Ptacnik wrote:
> Or you can disable it in generator.yml
>
> try this...
>
> list:
> object_actions:
> _edit: ~
> batch_actions: {}
> actions: {}
>
> On 23 čvn, 08:30, slau wrote:
>
> > Hi,
>
> > for 1)
> > seehttp:/
Thanks, I changed the filter according to your suggestion and as it
was desired I can see an edit box instead of a drop-down menu. But
whenever I want to search for something (i.e. whenever I click on the
filter button), even with an empty form for search, I see this error:
"SQLSTATE[HY093]: Invali
Hi,
Is there any way to have fieldset in symfony forms?
--
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 emai
Hi
I have created a backend module to display logs (from the logs table
or model).
1. since it should just display logs, there shouldn't be a "+new" link
in the page. How can I remove that link?
2. I want to be able to filter the list based on the user field. but
since the table (model) has the u
Hi,
I'm new to symfony and am trying to learn it.
I am trying to develop a new module (something like a forum). in a
very simple form, this module works with 2 database tables:
"forum_threads" and "forum_posts".
First, I think that I should not develop 2 different modules, because
forum sounds li
18 matches
Mail list logo