Thanks!, i think l was looking more for $this->filters than for $this-
>configuration..

Javi



On Mar 18, 7:14 pm, Daniel Lohse <[email protected]> wrote:
> Huh, am I blind?
>
> There is "$this->configuration = new cocheGeneratorConfiguration();" in your 
> post, so there's your $configuration variable coming from.
>
> As for the $filters variable, you're right, that's not there but it's in the 
> indexAction – this calls $this->getPager() which in turn calls 
> $this->buildQuery() and this sets $this->filters. Phew. :)
>
> Cheers, Daniel
>
> On 18.03.2010, at 17:33, Javier Garcia wrote:
>
> > Hi Daniel,
>
> > this below is the preExecute() function but there isn't anything about
> > $this->filters and $this->configuration :
>
> > class autoCocheActions extends sfActions
> > {
>
> >  public function preExecute()
> >  {
> >    $this->configuration = new cocheGeneratorConfiguration();
>
> >    if (!$this->getUser()->hasCredential($this->configuration-
> >> getCredentials($this->getActionName())))
> >    {
> >      $this->forward(sfConfig::get('sf_secure_module'),
> > sfConfig::get('sf_secure_action'));
> >    }
>
> >    $this->dispatcher->notify(new sfEvent($this, 'admin.pre_execute',
> > array('configuration' => $this->configuration)));
>
> >    $this->helper = new cocheGeneratorHelper();
> >  }
>
> > }
>
> > On Mar 18, 3:56 pm, Daniel Lohse <[email protected]> wrote:
> >> They are set in the preExecute function. You'd have to search in the 
> >> data/generator/sfDoctrineModule folder inside the symfony folder.
>
> >> Cheers, Daniel
>
> >> On 18.03.2010, at 15:01, Javier Garcia wrote:
>
> >>> Hi,
>
> >>> this is the index action and template generated at the backend for the 
> >>> model "coche".
>
> >>> public function executeIndex(sfWebRequest $request)
> >>>  {
> >>>    // sorting
> >>>    if ($request->getParameter('sort') && 
> >>> $this->isValidSortColumn($request->getParameter('sort')))
> >>>    {
> >>>      $this->setSort(array($request->getParameter('sort'), 
> >>> $request->getParameter('sort_type')));
> >>>    }
>
> >>>    // pager
> >>>    if ($request->getParameter('page'))
> >>>    {
> >>>      $this->setPage($request->getParameter('page'));
> >>>    }
>
> >>>    $this->pager = $this->getPager();
> >>>    $this->sort = $this->getSort();
> >>>  }
>
> >>> <?php use_helper('I18N', 'Date') ?>
> >>> <?php include_partial('coche/assets') ?>
>
> >>> <div id="sf_admin_container">
> >>> <h1><?php echo __('Coche List', array(), 'messages') ?></h1>
>
> >>> <?php include_partial('coche/flashes') ?>
>
> >>> <div id="sf_admin_header">
> >>> <?php include_partial('coche/list_header', array('pager' => $pager)) ?>
> >>> </div>
>
> >>> <div id="sf_admin_bar">
> >>> <?php include_partial('coche/filters', array('form' => $filters, 
> >>> 'configuration' => $configuration)) ?>
> >>> </div>
>
> >>> <div id="sf_admin_content">
> >>> <form action="<?php echo url_for('coche_coche_collection', array('action' 
> >>> => 'batch')) ?>" method="post">
> >>> <?php include_partial('coche/list', array('pager' => $pager, 'sort' => 
> >>> $sort, 'helper' => $helper)) ?>
> >>> <ul class="sf_admin_actions">
> >>> <?php include_partial('coche/list_batch_actions', array('helper' => 
> >>> $helper)) ?>
> >>> <?php include_partial('coche/list_actions', array('helper' => $helper)) ?>
> >>> </ul>
> >>> </form>
> >>> </div>
>
> >>> <div id="sf_admin_footer">
> >>> <?php include_partial('coche/list_footer', array('pager' => $pager)) ?>
> >>> </div>
> >>> </div>
>
> >>> In the template there is this line:
>
> >>> include_partial('coche/filters', array('form' => $filters, 
> >>> 'configuration' => $configuration)) ?>
>
> >>> but i can not find the $filters and $configuration variables in the index 
> >>> action ($this->filters and $this->configuration).
>
> >>> How is that possible?
>
> >>> Javi
>
> >>> --
> >>> 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 email to [email protected]
> >>> To unsubscribe from this group, send email to
> >>> [email protected]
> >>> For more options, visit this group at
> >>>http://groups.google.com/group/symfony-users?hl=en
>
> > --
> > 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 email to [email protected]
> > To unsubscribe from this group, send email to
> > [email protected]
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en

-- 
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 email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en

Reply via email to