Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
symfony : admin generator 1.2 : hasFilterForm
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
DigitalBase  
View profile  
 More options Dec 2 2008, 5:47 am
From: DigitalBase <i...@digitalbase.eu>
Date: Tue, 2 Dec 2008 02:47:11 -0800 (PST)
Local: Tues, Dec 2 2008 5:47 am
Subject: symfony : admin generator 1.2 : hasFilterForm
i really like the logic behind the new admin generator.
Now i noticed the Base%MODULE%GeneratorConfiguration.class has a
method called hasFilterForm

  public function hasFilterForm()
  {
    return true;
  }

I want to disable all the filters for this view so i decided to
override this method, returning false. Nothing happened. When digging
into the cache, i noticed the hasFilterForm is not used at all. Then
why is it defined ?


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
DigitalBase  
View profile  
 More options Dec 2 2008, 7:43 am
From: DigitalBase <i...@digitalbase.eu>
Date: Tue, 2 Dec 2008 04:43:26 -0800 (PST)
Local: Tues, Dec 2 2008 7:43 am
Subject: Re: symfony : admin generator 1.2 : hasFilterForm
After doing a bit more research, i noticed the indexSuccess (in
propelAdmin/templates) does use the $this->configuration->hasFilterForm
().
BUT apparently upon template generation (in cache/* directory) the
$this->configuration is an instance of Base%OBJECT
%GeneratorConfiguration.

Shouldn't the admin generator use the %OBJECT%GeneratorConfiguration
instead of the Base one ?
Upon runtime it does use the correct one, but not when generating the
templates in cache/*

Is this a bug ? Is this normal behaviour ?

On Dec 2, 11:47 am, DigitalBase <i...@digitalbase.eu> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
DigitalBase  
View profile  
 More options Dec 2 2008, 7:51 am
From: DigitalBase <i...@digitalbase.eu>
Date: Tue, 2 Dec 2008 04:51:46 -0800 (PST)
Local: Tues, Dec 2 2008 7:51 am
Subject: Re: symfony : admin generator 1.2 : hasFilterForm
More info on this topic : http://trac.symfony-project.org/ticket/5137
This is a serious flaw for a "stable" version of symfony.

On Dec 2, 1:43 pm, DigitalBase <i...@digitalbase.eu> wrote:


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google