[symfony-users] Re: Using $this->widgetSchema->setFormFormatterName('list')

2010-05-10 Thread Javier Garcia
Anyway,  if the _form.php is created when i create the module, how is
possible the line $this->widgetSchema->setFormFormatterName(‘list’)
can change the _form.php file!? or what happens exactly?

Javi

On May 10, 8:48 pm, Javier Garcia  wrote:
> Hi,
>
> im using $this->widgetSchema->setFormFormatterName('list'); this way
> below to render my form as a list but it is still a table. Any idea?
>
> public function configure()
>   {
>
>             parent::configure();
>
>             $this->widgetSchema->setFormFormatterName('list');
>
>   }
>
> }
>
> Any idea?
>
> Javi
>
> Sf 1.3
>
> --
> 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 symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Alternate layout and a tables doubt (2 doubts in one mail!)

2010-05-10 Thread Parijat Kalia
Thanks Eno!
Any clue about the tables doubt?

On Mon, May 10, 2010 at 8:58 PM, Eno  wrote:

> On Mon, 10 May 2010, Parijat Kalia wrote:
>
> > Hey everyone,
> >
> > Doubt 1: Symfony layout
> >
> > So typically, if you need an alternate layout for a page, you simply go
> into
> > the view.yml and specify which pages have an alternate layout page.
> >
> > What if I need to specify another layout for all pages in a single
> module? I
> > don't wanna have to specify the separate layout  for each single page,
> but
> > it would help if I could specify it for an entire module.
>
> You can define a view.yml at the module level.
>
> http://www.symfony-project.org/reference/1_4/en/03-Configuration-Files-Principles
>
>
>
> --
>
>
> --
> 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 symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> 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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: sfErrorHandlerPlugin doesn't catch "call to a member function on a non-object" errors

2010-05-10 Thread Richtermeister
This is because the php engine shuts down completely when a fatal
error is encountered.
Symfony doesn't get to do anything after that point. What the error
handler really handles are Exceptions, not fatal errors.

Daniel


On May 10, 10:14 am, nurikabe  wrote:
> e.g.:  sfErrorHandlerPlugin can't seem to trap errors like:  "Fatal
> error: Call to a member function xyz() on a non-object in file.php on
> line ##"
>
> Is that to be expected, or is this possibly a limitation of the older
> version of Symfony we are using (1.0.3)?
>
> Thanks
>
> --
> 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 symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: excel

2010-05-10 Thread Richtermeister
Not sure if that's the same lib, but I've been using 
http://phpexcel.codeplex.com
. Very mature & easy to use & well documented.

Daniel

On May 10, 6:06 pm, ReynierPM  wrote:
> There is a SF extension called sfPHPExcel wich is a wrapper for PHP Excel
> give a try and tell us back how going
> Cheers
> On 10 May 2010 20:32, Julian  wrote:
>
>
>
> > Hi in symfony not but you can try with a lib in php is easy to implement
> >http://code.google.com/p/php-excel/
>
> > 2010/5/10 safa boubekri 
>
> > hello  every  body  how to  import and export file  excel
>
> >> please help  me  i will be grateful
>
> >> thank you
>
> >> --
> >> 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 symfony-users@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> symfony-users+unsubscr...@googlegroups.com
> >> For more options, visit this group at
> >>http://groups.google.com/group/symfony-users?hl=en
>
> > --
> > Si la depuración es el proceso de eliminar errores, entonces la
> > programación debe ser el proceso de introducirlos
> > – Edsger W. Dijkstra
>
> >  --
> > 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 symfony-users@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en
>
> --
> ReynierPM
>
> --
> 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 symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] $this->redirect vs $this->forward

2010-05-10 Thread Eno
On Mon, 10 May 2010, Parijat Kalia wrote:

> SO apparently redirect and forward carry out similar tasks, which is to
> redirect to the user to another page from the current page. What according
> to ya'all is the difference between the redirect and the forward commands.

http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_sub_skipping_to_another_action



-- 


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


Re: [symfony-users] Alternate layout and a tables doubt (2 doubts in one mail!)

2010-05-10 Thread Eno
On Mon, 10 May 2010, Parijat Kalia wrote:

> Hey everyone,
> 
> Doubt 1: Symfony layout
> 
> So typically, if you need an alternate layout for a page, you simply go into
> the view.yml and specify which pages have an alternate layout page.
> 
> What if I need to specify another layout for all pages in a single module? I
> don't wanna have to specify the separate layout  for each single page, but
> it would help if I could specify it for an entire module.

You can define a view.yml at the module level.
http://www.symfony-project.org/reference/1_4/en/03-Configuration-Files-Principles



-- 


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


[symfony-users] Alternate layout and a tables doubt (2 doubts in one mail!)

2010-05-10 Thread Parijat Kalia
Hey everyone,

Doubt 1: Symfony layout

So typically, if you need an alternate layout for a page, you simply go into
the view.yml and specify which pages have an alternate layout page.

What if I need to specify another layout for all pages in a single module? I
don't wanna have to specify the separate layout  for each single page, but
it would help if I could specify it for an entire module.

Any leads?

Doubt 2: An HTML doubt

I have a template, where I dynamically generate several small tables, I want
them to be aligned in parallel, rather than have them follow one and
another. I am sure this can be done. Anybody have a clue?

Thanks and regards,

Parijat kalia

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


Re: [symfony-users] Good links to pagination

2010-05-10 Thread Eno
On Mon, 10 May 2010, Parijat Kalia wrote:

> I am using this pagination link
> http://www.symfony-project.org/cookbook/1_0/en/pager
> not sure if it is appropriate, since it is for 1.0, and since I am using
> 1.2.9, and there are no links for that version on pagination.
> 
> If anybody has implemented pagination before(I am sure a lot of you have),
> can you please provide me a pointer to that, or resuable code?

An example is documented in the Practical symfony book:
http://www.symfony-project.org/jobeet/1_4/Propel/en/07#chapter_07_list_pagination

I know people dont read anymore, but this one is worth reading.


-- 


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


Re: [symfony-users] Best practice with layout and dynamic content

2010-05-10 Thread Eno
On Sun, 9 May 2010, iNfLuX wrote:

> I am very new to symfony and it seems that I really like it.
> Just wondering what is the best practice to contain a common dynamic
> content in the layout.
> e.g. Administrator can always add new pages to the website and this
> pages should be listed on each and every page
> of the website. lets say in a drop down navigation menu.
> 
> The question is how would you implement this requirement.

If its on every page, it should be in the layout.

If its only for a subset of the pages, it should be a partial.

If its content changes depending on the template, make it a slot.

If it needs to implement some action, make it a component.



See http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer

-- 


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


[symfony-users] Good links to pagination

2010-05-10 Thread Parijat Kalia
Hey guys,

I am using this pagination link
http://www.symfony-project.org/cookbook/1_0/en/pager
not sure if it is appropriate, since it is for 1.0, and since I am using
1.2.9, and there are no links for that version on pagination.

If anybody has implemented pagination before(I am sure a lot of you have),
can you please provide me a pointer to that, or resuable code?

Thanks and Regards,

Parijat kalia

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


Re: [symfony-users] $this->redirect vs $this->forward

2010-05-10 Thread Julian
redirect in this case is the better choice

2010/5/11 Parijat Kalia 

> Hey wasssup everyone,
>
> SO apparently redirect and forward carry out similar tasks, which is to
> redirect to the user to another page from the current page. What according
> to ya'all is the difference between the redirect and the forward commands.
>
> More specifically, I am making use of $this->forward(login/homePage), on my
> user login page, to redirect users to the login page once their credentials
> have been verified.
>
> What would you recommend in this case, forward or redirect, or using either
> is no problem at all.
>
> Thanks and regards,
>
> Parijat Kalia
>
> --
> 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 symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Si la depuración es el proceso de eliminar errores, entonces la programación
debe ser el proceso de introducirlos
– Edsger W. Dijkstra

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


[symfony-users] Re: $this->redirect vs $this->forward

2010-05-10 Thread Casey
Redirect is a real http redirect that results in another request.
Forward, just executes a different symfony action in the same request
and shows the view for the forwarded action with original url that was
requested.

HTH,
Casey

On May 10, 5:54 pm, Parijat Kalia  wrote:
> Hey wasssup everyone,
>
> SO apparently redirect and forward carry out similar tasks, which is to
> redirect to the user to another page from the current page. What according
> to ya'all is the difference between the redirect and the forward commands.
>
> More specifically, I am making use of $this->forward(login/homePage), on my
> user login page, to redirect users to the login page once their credentials
> have been verified.
>
> What would you recommend in this case, forward or redirect, or using either
> is no problem at all.
>
> Thanks and regards,
>
> Parijat Kalia
>
> --
> 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 symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] excel

2010-05-10 Thread ReynierPM
There is a SF extension called sfPHPExcel wich is a wrapper for PHP Excel
give a try and tell us back how going
Cheers
On 10 May 2010 20:32, Julian  wrote:

> Hi in symfony not but you can try with a lib in php is easy to implement
> http://code.google.com/p/php-excel/
>
>
>
> 2010/5/10 safa boubekri 
>
> hello  every  body  how to  import and export file  excel
>>
>>
>> please help  me  i will be grateful
>>
>> thank you
>>
>> --
>> 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 symfony-users@googlegroups.com
>> To unsubscribe from this group, send email to
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>
>
> --
> Si la depuración es el proceso de eliminar errores, entonces la
> programación debe ser el proceso de introducirlos
> – Edsger W. Dijkstra
>
>  --
> 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 symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
ReynierPM

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


Re: [symfony-users] excel

2010-05-10 Thread Julian
Hi in symfony not but you can try with a lib in php is easy to implement
http://code.google.com/p/php-excel/



2010/5/10 safa boubekri 

> hello  every  body  how to  import and export file  excel
>
>
> please help  me  i will be grateful
>
> thank you
>
> --
> 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 symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Si la depuración es el proceso de eliminar errores, entonces la programación
debe ser el proceso de introducirlos
– Edsger W. Dijkstra

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


[symfony-users] Re: $this->getRequest()->isMethod('post')

2010-05-10 Thread Casey
If you are arriving at this page via a post request than, the code in
the if statement will get run.  I would recommend the following:

if($request->isMethod('post') && $request->hasParameter($form-
>getName())){
//code code code
}

Obviously, that will only get run when the form is posting to this
page and since their aren't any magic words, it is fairly
maintainable.

HTH,
Casey

On May 7, 5:29 pm, Parijat Kalia  wrote:
> Yes, that it is. It is being redirect to from the login page ...the login
> page is a post, and then if the credentials are verified
> I use this
>
> $this->redirect(thisModule/thisPage)
>
> but it is kind of strange that a post from another page is being redirected
> here, because the post on the login page posts onto itself,
>
>
>
> On Fri, May 7, 2010 at 9:39 AM, Casey  wrote:
> > So when you navigate to the page, in what shou;d be a get request,
> > without submitting the form, the var_dump call dumps true?  If that is
> > the case than there is something going on that is probably not symfony
> > related.  It is possible to create link with symfony that will call
> > the page in a post request, maybe wherever you are coming to the page
> > from is doing some kind of post request to your current page.  From
> > what I can tell the code looks good, although I would recommend the
> > use of $request->getParameter and $user->getAttribute instead of $_GET
> > and $_SESSION.
>
> > HTH,
> > Casey
>
> > On May 6, 9:57 am, Parijat Kalia  wrote:
> > > All right...it did post a bool, that is truewhich has been the
> > > case...here is the actionI am posting only until the
> > > if($this->getRequest()->isMethod('post')) line...after that it's just
> > code
> > > execution...the template code follows after the action
>
> > > *  public function executeCreateQuestions()
> > >   {
> > >       $this->user = $_SESSION['user'];
> > >       $username = $_SESSION['user'];
> > >       $configs = new Criteria();
> > >       $configs->add(ConfigurationsPeer::GROUP_ID,1);
> > >       $configurations = ConfigurationsPeer::doSelect($configs);
>
> > >           if($configurations == null)
> > >       {
> > >         // redirect to the configurations not loaded page.
> > >       }
>
> > >       else
> > >       {
> > >              foreach($configurations as $configuration)
> > >          {
> > >              $courseTitle = $configuration->getCourses();
> > >              $topics_as_array = $configuration->getTopics();
>
> > >              $topics_levels= explode(",",$topics_as_array);
> > >              $options_for_select = array();
> > >              $topics_for = $courseTitle.' topics';
> > >              $levels_for = '';
> > >                  foreach($topics_levels as $topic_level){
>
> > >                                      $topic_level_as_string =
> > > (string)$topic_level;
> > >                      $splits = explode("-",$topic_level_as_string);
>
> > >                      $topics_for= $topics_for.','.$splits[0];
> > >                      $levels_for = $levels_for.','.$splits[1];
>
> > >                  }
> > >              $options_for_select = explode("," , $topics_for);
> > >              $levels_for_select = explode("," , $levels_for);
>
> > >              $this->topic_options = $options_for_select;
> > >              $this->level_options = $levels_for_select;
>
> > >          }
>
> > >       }
> > >       if(isset($_GET['qId']))
> > >       {
> > >                   $updateQuestionId = $_GET['qId'];
> > >           $uc = new Criteria();
> > >           $uc->add(QuestionsPeer::ID,$updateQuestionId);
> > >           $this->updateRecords = QuestionsPeer::doSelect($uc);
> > >       }
>
> > >       if($username == '')
> > >       {
> > >        $this->redirect('user/login');
>
> > >       }
>
> > >       var_dump($this->getRequest()->isMethod('post'));
> > >       if(($this->getRequest()->isMethod('post'))) // The action takes
> > place
> > > when the Submit button is hit.
> > >       { *
>
> > > TEMPLATE
>
> > > *
> > > 
> > >  > > ?>
>
> > > 
>
> > > function  visibilitySwitch()
> > > {
> > >        var id_of_element =  document.getElementById('answer-type');
> > >        var user_choice =
> > > id_of_element.options[id_of_element.selectedIndex].value;
> > >        var choice1 = "multiChoiceSingleCorrect";
> > >        var answer_options_id_2 = document.getElementById('true-false');
> > >        var answer_options_id =
> > document.getElementById('multiple-choice');
>
> > >        if(user_choice == "2")
> > >      {
> > >          answer_options_id.setAttribute("class","visible");
> > >          answer_options_id_2.setAttribute("class","display");
> > >      }
>
> > >        if(user_choice == "3")
> > >      {
> > >          answer_options_id_2.setAttribute("class","visible");
> > >          answer_options_id.setAttribute("class","display");
> > >      }
>
> > > }
>
> > > function expand(id)
> > > {
> > >     var e = document.getElementById(id).style.height;
> > >     e = parseInt(

[symfony-users] $this->redirect vs $this->forward

2010-05-10 Thread Parijat Kalia
Hey wasssup everyone,

SO apparently redirect and forward carry out similar tasks, which is to
redirect to the user to another page from the current page. What according
to ya'all is the difference between the redirect and the forward commands.

More specifically, I am making use of $this->forward(login/homePage), on my
user login page, to redirect users to the login page once their credentials
have been verified.

What would you recommend in this case, forward or redirect, or using either
is no problem at all.

Thanks and regards,

Parijat Kalia

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


[symfony-users] Search field problem

2010-05-10 Thread Greg Blackett
Dear users,
I am experience an issue with a search field. Whenever an '.' is place
in the search field, I am sent the 404 page. Any other  type of
symbols no problem.

Here's the code for the search field:

""

Any input would be greatly appreciated.

Greg

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


[symfony-users] svn: Can't move '.svn/tmp/entries' to '.svn/entries': File exists

2010-05-10 Thread Matt
I perform the following command on the CLI (CentOS):

$ svn checkout http://svn.symfony-project.com/branches/1.4/

This is in a fresh, brand new, never existed before lib/vendor
directory. Here is what I get:

svn: Can't move '1.4/.svn/tmp/entries' to '1.4/.svn/entries': File
exists

I would like to go the "bleeding-edge route" per documentation but I'm
having trouble getting svn to work properly here.

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


[symfony-users] Re: Doctrine insert instead of replace

2010-05-10 Thread Sela
i think i found the problem, so plz don't answer i'll write my
findings a bit later.

On May 11, 1:23 am, Sela  wrote:
> i develop on a Mac with MAMP and deployed my app to ubuntu server with
> the deployment tool of symfony.
> there's something quite weird happening, form is insert new row on the
> linux when on MAMP i get an error it violates the constraint. it all
> happens when i refresh the page before clicking on the save button.
>
> any idea for the different behaviour?
>
> --
> 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 symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] how to loop through nested set categories with related data

2010-05-10 Thread el-sid
hello, i have this problem with looping through my query.

my yaml is like so

Category:
  actAs:
NestedSet:
  hasManyRoots: true
  rootColumnName: root_id
  columns:
name: { type: string(255), notnull: true, unique: true }

Product:
  columns:
category_id: { type: integer, notnull: true }
name: { type: string(255), notnull: true }
description: { type: clob, notnull: true }
price: { type: decimal, scale: 2 }
quantity: { type: string(255), notnull: true }
image: { type: string(255) }
date: { type: date, notnull: true }
last_update: { type: date, notnull: true }
  relations:
Category:
  local: category_id
  foreign: id
  type: one
  foreignType: many
  onDelete: cascade




i have this function on the model that follows instructions from
doctrine manual on how to retrieve nested set tree with related data

 public function productCategories($catName) {

$q = Doctrine_Query::create()
->select('c.name, p.name, p.price, p.image')
->from('Category c')
->leftJoin('c.Product p')
->where('c.name = ?', $catName);


$treeObject = Doctrine_Core::getTable('Category')->getTree();
$treeObject->setBaseQuery($q);
$tree = $treeObject->fetchTree();

return $tree;

}




i retrieve it from the controller and pass an attribute to the method.

 $this->products = Doctrine_Core::getTable('Category')
->productCategories($request->getAttribute('node'));



however, when i try to loop the object products in the view, it gives
me the following error

Warning: Invalid argument supplied for foreach()

code for view



getName() ?>






any ideas please

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


[symfony-users] Doctrine insert instead of replace

2010-05-10 Thread Sela
i develop on a Mac with MAMP and deployed my app to ubuntu server with
the deployment tool of symfony.
there's something quite weird happening, form is insert new row on the
linux when on MAMP i get an error it violates the constraint. it all
happens when i refresh the page before clicking on the save button.

any idea for the different behaviour?

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


[symfony-users] Re: Doctrine won't load 3-level heirarchy as data fixture

2010-05-10 Thread grahamj42
During my tests, I specified all the attributes of the relations,
although I know I don't need to be so verbose.



# schema.yml
# $Date: 2010-05-10 15:00:39 +0200 (Mon, 10 May 2010) $
# $Revision: 47 $
#
options:
  type: MyISAM

WttlistSimulation:
  actAs:
sluggable:
  fields: [name]
  columns:
name: { type: string(32), notnull: true }

WttlistBox:
  actAs:
sluggable:
  fields: [name]
  columns:
name: { type: string(64), notnull: true }
simulation_id: { type: integer, notnull: true }
  relations:
WttlistSimulation:
  class: WttlistSimulation
  local: simulation_id
  foreign: id
  foreignAlias: WttlistBoxes
  foreignType: many

WttlistWtt:
  actAs:
sluggable:
  fields: [period]
  columns:
box_id: { type: integer, notnull: true }
period: { type: string(64), notnull: true }
year: { type: date, notnull: true }
  relations:
WttlistBox:
  class: WttlistBox
  local: box_id
  foreign: id
  foreignAlias: wtts
  foreignType: many


If I uncomment the last section of data.yml, I get an error ' Invalid
row key specified: (wttlist_box) barnham, referred to in (wttlist_wtt)
pc-rail-barnham-1930-weekday'



# data.yml
# $Date: 2010-05-10 15:00:39 +0200 (Mon, 10 May 2010) $
# $Revision: 47 $
#
WttlistSimulation:
  pc-rail:
name: PC-Rail
  simsig:
name: SimSig

WttlistBox:
  pc-rail-barnham:
name: Barnham
WttlistSimulation: pc-rail
  simsig-bristol:
name: Bristol
WttlistSimulation: simsig

#WttListWtt:
#  pc-rail-barnham-1930-weekday:
#WttlistBox: barnham
#period: 1930 MF
#year: 1930



Data load works fine with the Grandchild record commented out as
above. This frustrated me for a number of hours. The documentation on
expressing relations in data fixtures is not very clear.

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


[symfony-users] Re: sfCKEditorPlugin not dislplaying

2010-05-10 Thread Dark
You have to download the CkEditor package and extract the files in the
web dir.

On 6 mayo, 22:33, zubair  wrote:
> Hello guys,
>
> i have a problem using the sfCKEditorPlugin. i get theCKEditorclass
> not found error!
>
> Anyone with this problem, pls?
>
> thanks
>
> --
> 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 symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] using addMeta() for facebook

2010-05-10 Thread Joshua
I need to include

in the header for the facebook Like button.

I don't know the page title until after the module action executes.

The method only accounts for the traditional name and content meta
parameters.
$this->getResponse()->addMeta('description', 'Finance in France');

Any ideas?

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


[symfony-users] Using $this->widgetSchema->setFormFormatterName('list')

2010-05-10 Thread Javier Garcia
Hi,


im using $this->widgetSchema->setFormFormatterName('list'); this way
below to render my form as a list but it is still a table. Any idea?


public function configure()
  {

parent::configure();

$this->widgetSchema->setFormFormatterName('list');

  }
}

Any idea?

Javi

Sf 1.3

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


[symfony-users] Is 3 weeks normal for a bugfix? Simply curious

2010-05-10 Thread DEE
Hello-

Being it was my first time creating a ticket in Trac for symfony, can
anyone confirm I am have not done anything wrong in terms of
reporting?

http://trac.symfony-project.org/ticket/8568

I don't know what the normal turnaround on (what I think is) a
legitimate bug being fixed is, but being it's been nearly 3 weeks and
with newer tickets getting closed out, I thought I would post here to
ask if I was missing anything in my ticket (aside from a working
patch :-) ).

This isn't meant as a complaint by any means; just hoping to find out
a bit of information as to when I *might* expect the ticket to even be
reviewed. It's been assigned to Fabien, and I know he's likely got his
hands full with Symfony 2.

Thanks!

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


[symfony-users] Do doctrine record event listeners use transactions

2010-05-10 Thread Tom Haskins-Vaughan
Hi all,

Having read the chapter in More with symfony 1.3 & 1.4 on Doctrine Behaviours:

http://www.symfony-project.org/more-with-symfony/1_4/en/08-Advanced-Doctrine-Usage

I just have a quick question. When you use the doctrine event
listeners, are the resulting inserts/updates wrapped in a transaction?

Thanks.

Tom
'

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


[symfony-users] sfErrorHandlerPlugin doesn't catch "call to a member function on a non-object" errors

2010-05-10 Thread nurikabe
e.g.:  sfErrorHandlerPlugin can't seem to trap errors like:  "Fatal
error: Call to a member function xyz() on a non-object in file.php on
line ##"


Is that to be expected, or is this possibly a limitation of the older
version of Symfony we are using (1.0.3)?

Thanks

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


Re: [symfony-users] How to do redirect with POST method (for sending parameters)

2010-05-10 Thread Dong YANG
Hello Eno,

Yes, exact. That's why I think that it is not a good solution,
because i want to make the redirect transparent to user.

   Regards,

JoJo

2010/5/10 Eno 

> On Mon, 10 May 2010, Dong YANG wrote:
>
> >if i called simply redirect without code 307, it won't work
> because
> > nothing send to new page. But with 307, some browser like firefox, it
> will
> > display an alert before redirecting, it is annoying.
>
> That's because according to the HTTP spec, when you do a redirect with 307
> code, the browser should get a confirmation from the user. IE might not do
> it because Microsoft doesn't really care about following specs :-)
>
>
>
> --
>
>
> --
> 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 symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> 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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Doctrine won't load 3-level heirarchy as data fixture

2010-05-10 Thread Tom Haskins-Vaughan
Can you show us your code?

On Mon, May 10, 2010 at 10:51 AM, grahamj42  wrote:
> I'm trying to build a simple app to help me learn Symphony.
>
> I have a Parent->Child->Grandchild set of objects. The model builds
> correctly and the tables are created with the appropriate foreign key
> constraints.
>
> If my data fixture contains just Parent and Child instances, the data
> load correctly.
>
> If I add a Grandchild instance, I get 'Invalid row key specified'...
>
> Is this a known limitation of Doctrine?
>
> I'm using Symfony 1.4.4 with PHP 5.3.2 on Windows XP.
>
> --
> 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 symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> 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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Appending string to sfDoctrineRoute path

2010-05-10 Thread Phil Moorhouse
Is it possible to append a string to the end of a URL when using
sfDoctrineRoute?

i.e. where "some-band-name" is the slug

I'd like

/artist/some-band-name-tickets


here's my current routing:

artist_show:
  url: /artist/:slug
  class:   sfDoctrineRoute
  param:   { module: artist, action: show }
  options: { model: Artist, type: object }
  requirements:
sf_method: [get]

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


[symfony-users] Doctrine won't load 3-level heirarchy as data fixture

2010-05-10 Thread grahamj42
I'm trying to build a simple app to help me learn Symphony.

I have a Parent->Child->Grandchild set of objects. The model builds
correctly and the tables are created with the appropriate foreign key
constraints.

If my data fixture contains just Parent and Child instances, the data
load correctly.

If I add a Grandchild instance, I get 'Invalid row key specified'...

Is this a known limitation of Doctrine?

I'm using Symfony 1.4.4 with PHP 5.3.2 on Windows XP.

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


[symfony-users] symfony reloded

2010-05-10 Thread cosmin
hi

i am new to symfony and i want to build an big application using it
and i want to build it using symfony 2.0.
i know that is not very stable but i know the project will take me a
couple of months and i want to know if there will be any big changes
between the way we work with the controllers/models/... in this build
and the stable builds.

thanks in advance

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


[symfony-users] excel

2010-05-10 Thread safa boubekri
hello  every  body  how to  import and export file  excel


please help  me  i will be grateful

thank you

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


[symfony-users] Re: sfDoctrineGuardUser custom LDAP authenication funkyness

2010-05-10 Thread webdev_aw_ucsb
hi --

yup, I ended up doing this and it resolved my redirection problem when
logging in.

Thank you for the follow up.
-dg


On May 8, 11:52 pm, Sela Yair  wrote:
> this is app.yml in /config not app.yml in /apps/xxx
> why does it redirects to backend? i had similar problem, but i think setting
> that app.yml fixed it.
>
> all:
>   sf_guard_plugin:
>     success_signin_url: @homepage # the plugin use the referer as default
>     success_signout_url: @homepage         # the plugin use the referer as
> default
>
> On 6 May 2010 18:55, webdev_aw_ucsb  wrote:
>
>
>
>
>
> > Greetings all --
>
> > I'm using Symfony 1.4.4
>
> > I followed some example blog code provided here:
>
> >http://blog.honnecke.us/2010/01/using-sfdoctrineguardusers-external-a...
>
> > And I have in my custom authentication class the following attached
> > code. I hit 2 different LDAP servers based upon the symfony app
> > (frontend or backend) the user is logging into. My problem is that
> > after login the user hitting frontend login is being redirected to a
> > url at backend_dev.php/sfguard/user for example.
>
> > Is there an sfDoctrineGuard login success redirect path I need to set
> > for each apps routing? I'm confused how successful login at frontend
> > redirects the user to the backend application ...
>
> > ### attached code sample
> > 
> > class svCustomAuth
> > {
> >  protected static $port = 389; #SSL 636
>
> >  public static function authenticate($u,$p)
> >  {
> >    $app = sfContext::getInstance()->getConfiguration()-
> > >getApplication();
>
> >    switch ($app)
> >    {
> >      case 'frontend':
> >        #
> >        # contact campus-wide directory and validate user.
> >        #
> >        $conn = @ldap_connect('campus.edu', self::$port);
> >       �...@ldap_set_option($conn, LDAP_OPT_PROTOCOL_VERSION, 3);
> >       �...@ldap_set_option($conn, LDAP_OPT_REFERRALS, 0);
> >        $dn = "uid=$u,o=campus,campusaffiliation=employee";
> >        return @ldap_bind($conn,$dn,$p);
> >        break;
> >      case 'backend':
> >        #
> >        # contact my dept only directory and validate help-desk user.
> >        #
> >        $conn = @ldap_connect('directory.my_department.campus.edu',
> > self::$port);
> >       �...@ldap_set_option($conn, LDAP_OPT_PROTOCOL_VERSION, 3);
> >       �...@ldap_set_option($conn, LDAP_OPT_REFERRALS, 0);
> >        $dn = "uid=$u,cn=foo,dc=bar,dc=baz,dc=meta,dc=alpha";
> >        return @ldap_bind($conn,$dn,$p);
> >        break;
> >      default:
> >        break;
> >    }
> >  }
> > }
> > ?>
>
> > --
> > 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 symfony-users@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com > legroups.com>
> > 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 symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] How to do redirect with POST method (for sending parameters)

2010-05-10 Thread Eno
On Mon, 10 May 2010, Dong YANG wrote:

>if i called simply redirect without code 307, it won't work because
> nothing send to new page. But with 307, some browser like firefox, it will
> display an alert before redirecting, it is annoying.

That's because according to the HTTP spec, when you do a redirect with 307 
code, the browser should get a confirmation from the user. IE might not do 
it because Microsoft doesn't really care about following specs :-)



-- 


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


[symfony-users] Re: Question about choice widget

2010-05-10 Thread Javier Garcia
On Mar 29, 3:09 pm, Massimiliano Arione  wrote:
> You jsut need to customize your css, forcing your li's as inline.
> No need to modify your template or your formatter.

I'd like to force the li's as inline as you say, but the generated
li's don't have the 'id' attribute defined.

For example, this line renderLabel() ?>

generates this:




Sexo



   

 Chico



  

 Chica








Javi

--

Symfony 1.3

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


[symfony-users] How to do redirect with POST method (for sending parameters)

2010-05-10 Thread Dong YANG
Hello Guys,


   I want to use redirect to call an external page with parameters.

   For example, user filled and submit the form with two field: name and
password. And then in my action,  which treats this form, i want to call
redirect with these two fields.

   For doing this, I have two solutions but i think that there may be an
better one.

   1: In my action, call redirect with code *307*

   $this->redirect($newUrl, 307);

   if i called simply redirect without code 307, it won't work because
nothing send to new page. But with 307, some browser like firefox, it will
display an alert before redirecting, it is annoying.

   2: create a *new form*, and submit it immediately

   in my action, it calls this new template which contains one form, and
do submit automatically. The problem is that, the new template is always
displayed even the form is submitted at once.

   Can anyone suggest please?

   Thanks and Regards,

JoJo

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


[symfony-users] Re: Question about filter forms: search for exact words

2010-05-10 Thread Tom Ptacnik
Create your own addXXXColumnQuery .. where XXX is your column name in
your MemberFormFilter class.

something like:

 public function addNameColumnQuery($query, $field, $value)
{
$fieldName = $this->getFieldName($field);

if (!empty($value))
{
$query->andWhere(sprintf('%s.%s = ?', $query-
>getRootAlias(),
$fieldName), $value);
}
}


If "where = " isn't working, try "like" in the query instead.


On 10 kvě, 11:45, Javier Garcia  wrote:
> Hi,
>
> i'm using in the frontend a filter form class generated
> (MemberFormFilter) that filters names, but for example if i write "Mar"
> the members called "Mary" are showed, i dont want that, i just want to
> show the members called "Mar", what shoud i do? I checked
> sfWidgetFormFilterInput documentation but there is anything ...
>
> --
> Javi
>
> Ubuntu 8.04 - Symfony 1.3
>
> --
> 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 symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Doctrine versionable on whole project

2010-05-10 Thread Tom Haskins-Vaughan
Hi all,

I would like to use some kind of versioning over a complete schema
rather than a single table. I'd like to to something like the Doctrine
Versionable behaviour, but using a global revision number instead,
similar to subversion.

Has anyone done anything like this?

Thanks,

Tom

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


Re: [symfony-users] Re: AJAX integration

2010-05-10 Thread Alessandro Massignan
Hi Rooster,

> Are you using Firebug to check the response? You will probably see
> that javascript_helper is "undefined" since you are calling it in your
> action without explicitly loading it.
I don't use Firebug, but this morning I choose the jQuery way and it
seems to work very well :-)


Thanks for your time and support!
ff

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


[symfony-users] Problem with loading param in jq_link_to_remote

2010-05-10 Thread Maras
I've just install sfJqueryReloadedPlugin plugin. When i call function
jq_link_remote

 'test',
'url'=> '/test/test',
))
?>

everything is ok, but when I add extra param 'loading' sth is wrong. I
don't get any error and i don't know what is wrong

 'test',
'url'=> '/test/test',
'loading'  => "Element.show('indicator')",
))

?>

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


[symfony-users] Tempfiles in cache folder?

2010-05-10 Thread habi
Hi,

I'm using Windows on some production machines.
Since the update of one SF-Project to 1.3.x we notice some strange
problems. We are "collecting" Temp-Files in the config-cache folder of
the applications. They are named like con1718.tmp and always
containing the autoload-config-cache. The tmp-files are not generated
for every request but we have 1 or 2 new files every half an hour or
so. If the application is running some days/months there are a lot of
these Temp-Files (Megabytes of them). Beside the problem of having a
lot of unused files I think it is a performance problem too.

Anyone faced the same problem?

Machine-Details:
- Windows Server 2008
- IIS 7
- ZendServer with PHP 5.2.11

Project with SF 1.3.3#

Timo

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


[symfony-users] Question about filter forms: search for exact words

2010-05-10 Thread Javier Garcia

Hi,

i'm using in the frontend a filter form class generated 
(MemberFormFilter) that filters names, but for example if i write "Mar" 
the members called "Mary" are showed, i dont want that, i just want to 
show the members called "Mar", what shoud i do? I checked 
sfWidgetFormFilterInput documentation but there is anything ...


--
Javi

Ubuntu 8.04 - Symfony 1.3

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


[symfony-users] Re: AJAX integration

2010-05-10 Thread rooster (Russ)
Are you using Firebug to check the response? You will probably see
that javascript_helper is "undefined" since you are calling it in your
action without explicitly loading it.

Try manually writing the javascript tags for now... just for fun.

Remember you can also do $this->renderPartial() and $this-
>renderComponent() which are very handy for Ajax responses - try not
to have too much client-side logic cluttering your actions.

On May 10, 1:17 am, Alessandro Massignan  wrote:
> Hi guys!
>
> I was playing with AJAX trying to do a very useless and silly thing, but it
> doesn't work:
> Take this empty div in my template:
>
> 
>
> then take this helper inside _form.php:
>
>    'url'    => 'module/ajax',
>   'update' => 'Wizardry',
>   'script' => true,
> )) ?>
>
> Ok, what i want to do (if it's possible) is to update "Wizardy" div
> with Javascript
> code to display an alert, like this:
>
> alert("Yep");
>
> so i want to know how i've to code the executeAjaxtest() function in
> order to have
> the div updated and the alert displayed... I try with this:
>
> public function executeAjax() {
>   return $this->renderText(" ?>");
>
> }
>
> But it's not work... Any ideas?
>
> Thanks,
> ff
>
> --
> 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 symfony-users@googlegroups.com
> To unsubscribe from this group, send email to
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group 
> athttp://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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en