[symfony-users] Symfony Day Colonge 2009 - from munich

2009-07-13 Thread gimler

Anybody that travel from munich to the Symfony Day Colonge 2009?
--~--~-~--~~~---~--~~
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: Problem with links in Prod enviroment

2009-07-13 Thread Gareth McCumskey
What we found was that in Apache when you setup your virtual host settings
it helps to have the AllowOverwrite directives set as well that allow the
.htaccess file to actually run

On Mon, Jul 13, 2009 at 3:28 AM, Tuan Vu Minh tuanvm2...@gmail.com wrote:

 I am following the instruction of My first 
 projecthttp://www.symfony-project.org/tutorial/1_2/my-first-projectin the 
 symfony website. Everything is ok but the link in the prod
 enviroment.
 For example, if I accesss the website with the address
 http://localhost/blog/ = the homepage appears as usual but when clicking
 any link, the error page not found thrown.
 The link is http://localhost/blog/post/new;
 If I add index.php before post/show or post/new, It works well. (
 http://localhost/blog/index.php/post/new)
 I guess that there is something wrong with the routing but I don't know
 exactly what it is.
 Please help me if you know how to solve this problem. Thank you very much!

 --
 Vũ Minh Tuấn - 4c06 - F.I.T - Hanoi University.
 Mobile: 0982.60.90.10
 Yahoo ID: tuanvm2...@ymail.com




 



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--~--~-~--~~~---~--~~
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: Howto insert a ampersand into my database using a textarea from my backend app ?

2009-07-13 Thread sd45sq5d5sqd

I tried doing it with a partial, it does not work either...

On Jul 11, 6:04 pm, sd45sq5d5sqd nau...@gmail.com wrote:
 I just tried something like :

     edit:
       title:          Post detail
       fields:
         description:  { type: input_tag, params: size=150 }
         title:        { type: input_tag, params: size=53 }
         excerpt:      { type: textarea_tag, params: size=50x2 }
         body:         { type: textarea_tag, params: size=175x20 }
         created_at:   { type: input_date_tag, params: rich=on }
       params:
         converters:
           htmlentities: [body]

 but it does not work...Anyone ?

 On Jul 11, 3:13 pm, sd45sq5d5sqd nau...@gmail.com wrote:

  Hi,

  ok, but how do you do that with the generator.yml ?

  JF

  On Jul 11, 7:30 am, Mukesh Sharma cogentmuk...@gmail.com wrote:

   Hi,

   Just use use htmlentities()

   like--

   textarea name=x ?php echo htmlentities($content); ?/textarea

   --
   Regards
   Mukesh Sharma

   On Sat, Jul 11, 2009 at 10:46 AM, Dheeraj Kumar Aggarwal 

   dheerajcom...@gmail.com wrote:
Hi

use htmlentities() while displaying in the textarea.

On Sat, Jul 11, 2009 at 1:48 AM, sd45sq5d5sqd nau...@gmail.com wrote:

Comment mettre en base côté backend ces caractères ?

   * lt; -  (lt = lower than = inférieur à =  )
   * gt; -  (gt = greater than = supérieur à = )
   * amp; -  (comme dit fraoustin - amp = ampersand)
   * quot; -  (quot = quotation mark = quillemet)
   * apos; - ' (apos = apostrophe)

--
Regards,
Dheeraj
--~--~-~--~~~---~--~~
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 deal with uploaded file in embedded form properly?

2009-07-13 Thread happy oliver

I spent a lot of time to figure out how to deal with embedded form
with uploaded file.

I don't use the $this-form-save(). How to deal with uploaded file? I
can see the temp file at temp folder quickly disappeared
automatically.

Welcome to any answers !



  public function executeEdit(sfWebRequest $request)
  {
$memid = $this-getUser()-getUserId();
$this-ads= $this-getOrCreateMemberAds();

$this-package = $this-getUser()-getMemberPackage();
$this-form = new Adsorm($this-ads)

$this-imageforms = array();
$this-adsPhotos = $this-getOrCreateImagesForAds($this-
advertisement-getId());
foreach($this-adsPhotos as $adsPhoto)
{
  $imageform = new PhotoForm($adsPhoto);
  $this-imageforms[] = $imageform;
  $this-form-embedForm('a'.$adsPhoto-getId(), $imageform);
}
if ($request-isMethod('post')) {
  $this-form-bind($request-getParameter($this-form-getName
()), $request-getFiles($this-form-getName()));
  if ($this-form-isValid())
  {

$values = $this-form-getValues();
foreach($this-imageforms as $imageform)
{

  $file = $values['a'.$imageform-getObject()-getId()]
['file_path'];
  $imageform-getObject()-setPrice($values['a'.$imageform-
getObject()-getId()]['price']);
  $imageform-getObject()-setFilePath($values['a'.$imageform-
getObject()-getId()]['file_path']);
  $imageform-getObject()-save();


}

$this-form-getObject()-setTitle($values['title']);
$this-form-getObject()-setCategoryId(1);
$this-form-getObject()-setDescription($values
['description']);
$this-form-getObject()-save();
  }

}

  }


Thanks,
--~--~-~--~~~---~--~~
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: compat_10 in settings.yml

2009-07-13 Thread Gareth McCumskey
Everytime you edit config files you need to clear cache, i.e. run symfony cc
on the command line

On Sun, Jul 12, 2009 at 4:32 PM, DEEPAK BHATIA toreachdee...@gmail.comwrote:


 Hi,

 I am using Symfony 1.1.

 When I created a project and executed that application, it never asked
 to set compat_10 to true.

 But I created another project, when I login, it asked for setting
 compat_10 to true.

 I changed the compat_10 in settings.yml to true but symfony gave the
 error. Then I went to cache file of settings.yml and set sf_compat_10
 to true, symfony worked fine.

 What is the solution to the problem and why it is coming in one
 project and not on another ?

 Regards

 Deepak Bhatia

 



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--~--~-~--~~~---~--~~
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: Step by Step Guide for learning symfony

2009-07-13 Thread Gareth McCumskey
I would also really recommend as a developer that you try and learn to be
more independant in your quest for knowledge. The guys on the mailing list
are here to help but you need to first exhaust the availabel documentation
before posting requests. As was mentioned, there is a very large
Documentation link on the symfony home page with tutorials, the book and
more which you would have spotted had you bothered to look.

Not trying to be mean but you will find things go a lot easier on you if you
try to resolve your issues first and find the answer rather than just rely
on other people to answer them for you all the time. Development is about
figuring out a solution, not always jumping to asking people all the time.

Hope my advice is recieved in teh spirit it was meant :))

Good luck!

On Fri, Jul 10, 2009 at 6:55 AM, Apul apulmca...@gmail.com wrote:


 Hi,

 I am a PHP Professional. I want to learn Symfony. Can anybody tell me
 how to learn Symfony in an easy way so that I can develop my projects
 using symfony.

 I would be very thankful.

 ---
 Thanks
 Apul Gupta
 Senior PHP Developer
 



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--~--~-~--~~~---~--~~
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: Problem with links in Prod enviroment

2009-07-13 Thread Tuan Vu Minh
Thanks for you advance. It really helps. I turned on no_script_name and
enabled module rewrite of Apache. It worked like a charm. [?][?]

On Mon, Jul 13, 2009 at 10:49 AM, Eno symb...@gmail.com wrote:


 On Mon, 13 Jul 2009, Tuan Vu Minh wrote:

  I have just found the solution for this issue. Just turn off 
  no_script_name in the prod: of setting.yml file.

 Most probably the problem is you dont have the .htaccess file that
 redirects all requests to your front controller (index.php). (Or your
 Apache doesn't have mod_rewrite active).

 Normally no_script_name SHOULD be on in production sites.



 --



 



-- 
Vũ Minh Tuấn - 4c06 - F.I.T - Hanoi University.
Mobile: 0982.60.90.10
Yahoo ID: tuanvm2...@ymail.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
-~--~~~~--~~--~--~---

inline: 517.gif

[symfony-users] Re: Problem with links in Prod enviroment

2009-07-13 Thread Tuan Vu Minh
One more thing. I can make it work in a apache server. The problem is that I
have to deploy the website with an IIS one (windows server 2003). How should
I deal with this issue? :-s I heard about ISAPI_Rewrite 3. I am wondering
whether it work with iis 6.

On Mon, Jul 13, 2009 at 5:21 PM, Tuan Vu Minh tuanvm2...@gmail.com wrote:

 Thanks for you advance. It really helps. I turned on no_script_name and
 enabled module rewrite of Apache. It worked like a charm. [?][?]


 On Mon, Jul 13, 2009 at 10:49 AM, Eno symb...@gmail.com wrote:


 On Mon, 13 Jul 2009, Tuan Vu Minh wrote:

  I have just found the solution for this issue. Just turn off 
  no_script_name in the prod: of setting.yml file.

 Most probably the problem is you dont have the .htaccess file that
 redirects all requests to your front controller (index.php). (Or your
 Apache doesn't have mod_rewrite active).

 Normally no_script_name SHOULD be on in production sites.



 --



 



 --
 Vũ Minh Tuấn - 4c06 - F.I.T - Hanoi University.
 Mobile: 0982.60.90.10
 Yahoo ID: tuanvm2...@ymail.com






-- 
Vũ Minh Tuấn - 4c06 - F.I.T - Hanoi University.
Mobile: 0982.60.90.10
Yahoo ID: tuanvm2...@ymail.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
-~--~~~~--~~--~--~---

inline: 517.gif

[symfony-users] Filter values in a select box dynamically within form framework

2009-07-13 Thread cleve

Has anyone created filter select boxes using the new form framework?

What I mean by that is: 2 selects the first one (not linked to object)
filtering the second one (an object field)

For example:

If you have 3 tables - courses, venues and districts

When you create a course and select the venue, to reduce the list you
first select the district which via AJAX  retrieves a subset of venues
and re-populates the select box.

I could do this with the old form helpers but was wondering what would
be the best practice using the new framework.

Cheers,
John




--~--~-~--~~~---~--~~
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] Server Configuration

2009-07-13 Thread Sid Ferreira
Hi folks!
Guys, just got a task that is a project in a not updated server.
Actually, I've just checked the
phpinfohttp://www.perverte.com.br/info.php and
it seems to be 5.1 in fastcgi... In wondering if symfony will run in this
environment, and if do, what version/fixes would be needed.

Thanks in advance

   Sidney

---
Sidney G B Ferreira
Desenvolvedor Web

--~--~-~--~~~---~--~~
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: Server Configuration

2009-07-13 Thread Tuan Vu Minh
Dear Sid Ferreira,
Symfony version 1.0 will work with your server(PHP 5.1). Check
thishttp://www.symfony-project.org/installationfor more information
On Mon, Jul 13, 2009 at 6:50 PM, Sid Ferreira sid@gmail.com wrote:

 Hi folks!
 Guys, just got a task that is a project in a not updated server.
 Actually, I've just checked the phpinfohttp://www.perverte.com.br/info.php 
 and
 it seems to be 5.1 in fastcgi... In wondering if symfony will run in this
 environment, and if do, what version/fixes would be needed.

 Thanks in advance

Sidney

 ---
 Sidney G B Ferreira
 Desenvolvedor Web


 



-- 
Vũ Minh Tuấn - 4c06 - F.I.T - Hanoi University.
Mobile: 0982.60.90.10
Yahoo ID: tuanvm2...@ymail.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: Server Configuration

2009-07-13 Thread Sid Ferreira
Damn :D
When you get used to Symfony Forms is hard to get back :p

---
Sidney G B Ferreira
Desenvolvedor Web



On Mon, Jul 13, 2009 at 09:09, Tuan Vu Minh tuanvm2...@gmail.com wrote:

 Dear Sid Ferreira,
 Symfony version 1.0 will work with your server(PHP 5.1). Check 
 thishttp://www.symfony-project.org/installationfor more information

 On Mon, Jul 13, 2009 at 6:50 PM, Sid Ferreira sid@gmail.com wrote:

 Hi folks!
 Guys, just got a task that is a project in a not updated server.
 Actually, I've just checked the phpinfohttp://www.perverte.com.br/info.php 
 and
 it seems to be 5.1 in fastcgi... In wondering if symfony will run in this
 environment, and if do, what version/fixes would be needed.

 Thanks in advance

Sidney

 ---
 Sidney G B Ferreira
 Desenvolvedor Web






 --
 Vũ Minh Tuấn - 4c06 - F.I.T - Hanoi University.
 Mobile: 0982.60.90.10
 Yahoo ID: tuanvm2...@ymail.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: sfEasyGMapPlugin not working

2009-07-13 Thread Zach

Has anyone used this plugin before? Maybe I just set it up wrong...
and it's a very simple problem.
I would really appreciate any help I can get on this issue.

Thanks,
Zach

On Jul 8, 1:07 pm, Zach zach...@gmail.com wrote:
 Does anyone have any experience with the sfEasyGMapPlugin? I am having
 trouble getting it to work.

 I recently downloaded the sfEasyGMapPlugin - 1.0.4 package and have
 tried to run the samples. However, when I go to ../frontend_dev.php/
 sfEasyGMapPlugin/sample1 all I get is a large blank space where the
 map should be. My sf toolbar isn't loading correctly, so I'm guessing
 there is an error that is stopping the execution of the page. If I
 view the source, this is what is being output before the toolbar code:
 h1The Map/h1
 div id=map style=width:512px;height:512px;/div
 Search on the map:
   form onsubmit=geocode_and_show(document.getElementById
 ('search_location_input').value);return false;
     input type=text id=search_location_input /
     input type=submit id=search_location_submit value=Search /

   /form
   br /
 br /
 br /
 div id=console_div style=font-size:large
 /div

 br /
 !-- Javascript included at the bottom of the page --
 script type=text/javascript
 //![CDATA[

   google.load(maps, 2);

   var map = null;
   //  Call this function when the page has been loaded
   function initialize()
   {
     if (GBrowserIsCompatible())
     {
       map = new google.maps.Map2(document.getElementById(map));
       map.setCenter(new google.maps.LatLng(48.845398, 2.34258), 10);
       map.enableDoubleClickZoom();
       map.addControl(new google.maps.LargeMapControl());

       marker = new google.maps.Marker(new google.maps.LatLng
 (51.245475,6.821373));map.addOverlay(marker);
       marker = new google.maps.Marker(new google.maps.LatLng
 (46.262248,6.115969));map.addOverlay(marker);
       marker = new google.maps.Marker(new google.maps.LatLng
 (48.848959,2.341577));map.addOverlay(marker);
       marker = new google.maps.Marker(new google.maps.LatLng
 (48.718952,2.21918));map.addOverlay(marker);
       marker = new google.maps.Marker(new google.maps.LatLng
 (47.37642,8.547995));map.addOverlay(marker);

     }
   }
   google.setOnLoadCallback(initialize);
   document.onunload=GUnload();

 //]]
 /script

 I'm not sure what the problem is. I added my API keys to my app.yml
 file (not the app.yml in the plugin folder) like this:
 all:
   google_maps_api:
     keys:
       dev:
 'ABQI5obbqtnOwlU7fJ78TAw-0BT4JpDCwIgIRnp1ddTI6MvRVBGLbhQyWub0Cef-
 VHzdDo70uUVQrZtOIA'
       default: 'ABQIKE4fU-
 DTGQOJjweuLqnu8BR6YjO4miqBRRmRbYHdlU4G5dxgahRiVB0FuiBRzwG8KMziIcAC8qZQ1w'

 Is that right? I also put a copy of the sfEasyGMapPlugin/web/css,
 images, and js folders in web/sfEasyGMapPlugin. Is that also correct?
 I am running sf 1.0.
 Any help is greatly appreciated!
--~--~-~--~~~---~--~~
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: Filter values in a select box dynamically within form framework

2009-07-13 Thread cleve

Ok this is how I did it, but everything is outside a form / table
class:

Partial to override default admin generator field venue_id
_venue_id.php


?php use_helper('Javascript')?

div class=sf_admin_form_row sf_admin_foreignkey
  ?php echo $form['venue_id']-renderError() ?
  div
?php echo $form['venue_id']-renderLabel('Venue') ?

?php
$w = new sfWidgetFormDoctrineChoice(array('model' = 'District',
'add_empty' = '--Filter by District--'));
echo $w-render('district_id', null, array('id' =
'district'));
?

?php echo observe_field('district', array(
'update'   = 'district-select',
'url'  = '/admin.php/course/selectVenue',
'with' = 'district=' + value,
'loading'  = Element.show('indicator');Element.hide('gp-
select'),
'complete' = Element.hide('indicator');Element.show('gp-
select'),
)) ?

 raquo;
span id=district-select?php echo $form['venue_id']-render
($attributes) ?/span

div id=indicator style=display: none/div

  /div
/div


AJAX action to return filtered select
---

  public function executeSelectVenue($request){

$this-forward404Unless($request-isXmlHttpRequest());
$this-forward404Unless($request-hasParameter('district'));

$q = Doctrine_Query::create()
-from('Venue v')
-where('v.district_id  = ?', $request-getParameter('district'));

$w = new sfWidgetFormDoctrineChoice(array('model' = 'Venue',
'query' = $q));
return $this-renderText($w-render('course[venue_id]'));

  }


It feels odd to create widgets in the partial / action but overkill to
create an additional class? What does everyone think?

I'll make a snipeet of this when its tidy! (and Refactored
properly :-)

John
--~--~-~--~~~---~--~~
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: Server Configuration

2009-07-13 Thread Gareth McCumskey
You can use Symfony 1.1. It allows the use of Symfony Forms or the older
compat_10 version as well. Try that rather

On Mon, Jul 13, 2009 at 2:15 PM, Sid Ferreira sid@gmail.com wrote:

 Damn :D
 When you get used to Symfony Forms is hard to get back :p

 ---
 Sidney G B Ferreira
 Desenvolvedor Web



 On Mon, Jul 13, 2009 at 09:09, Tuan Vu Minh tuanvm2...@gmail.com wrote:

 Dear Sid Ferreira,
 Symfony version 1.0 will work with your server(PHP 5.1). Check 
 thishttp://www.symfony-project.org/installationfor more information

 On Mon, Jul 13, 2009 at 6:50 PM, Sid Ferreira sid@gmail.com wrote:

 Hi folks!
 Guys, just got a task that is a project in a not updated server.
 Actually, I've just checked the 
 phpinfohttp://www.perverte.com.br/info.php and
 it seems to be 5.1 in fastcgi... In wondering if symfony will run in this
 environment, and if do, what version/fixes would be needed.

 Thanks in advance

Sidney

 ---
 Sidney G B Ferreira
 Desenvolvedor Web






 --
 Vũ Minh Tuấn - 4c06 - F.I.T - Hanoi University.
 Mobile: 0982.60.90.10
 Yahoo ID: tuanvm2...@ymail.com







 



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--~--~-~--~~~---~--~~
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: Server Configuration

2009-07-13 Thread Sid Ferreira
What exactly the compat_10 do?

---
Sidney G B Ferreira
Desenvolvedor Web



On Mon, Jul 13, 2009 at 09:59, Gareth McCumskey gmccums...@gmail.comwrote:

 You can use Symfony 1.1. It allows the use of Symfony Forms or the older
 compat_10 version as well. Try that rather

 On Mon, Jul 13, 2009 at 2:15 PM, Sid Ferreira sid@gmail.com wrote:

 Damn :D
 When you get used to Symfony Forms is hard to get back :p

 ---
 Sidney G B Ferreira
 Desenvolvedor Web



 On Mon, Jul 13, 2009 at 09:09, Tuan Vu Minh tuanvm2...@gmail.com wrote:

 Dear Sid Ferreira,
 Symfony version 1.0 will work with your server(PHP 5.1). Check 
 thishttp://www.symfony-project.org/installationfor more information

 On Mon, Jul 13, 2009 at 6:50 PM, Sid Ferreira sid@gmail.com wrote:

 Hi folks!
 Guys, just got a task that is a project in a not updated server.
 Actually, I've just checked the 
 phpinfohttp://www.perverte.com.br/info.php and
 it seems to be 5.1 in fastcgi... In wondering if symfony will run in this
 environment, and if do, what version/fixes would be needed.

 Thanks in advance

Sidney

 ---
 Sidney G B Ferreira
 Desenvolvedor Web






 --
 Vũ Minh Tuấn - 4c06 - F.I.T - Hanoi University.
 Mobile: 0982.60.90.10
 Yahoo ID: tuanvm2...@ymail.com











 --
 Gareth McCumskey
 http://garethmccumskey.blogspot.com
 twitter: @garethmcc


 


--~--~-~--~~~---~--~~
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: Server Configuration

2009-07-13 Thread Gareth McCumskey
compat_10 allows you to use the older form helpers that was started in
symfony 1.0 and phased out starting in symfony 1.0 (hence the name
compat_10).

Symfony 1.1 allows the use of the symfony forms class or the helpers.

On Mon, Jul 13, 2009 at 3:00 PM, Sid Ferreira sid@gmail.com wrote:

 What exactly the compat_10 do?

 ---
 Sidney G B Ferreira
 Desenvolvedor Web



 On Mon, Jul 13, 2009 at 09:59, Gareth McCumskey gmccums...@gmail.comwrote:

 You can use Symfony 1.1. It allows the use of Symfony Forms or the older
 compat_10 version as well. Try that rather

 On Mon, Jul 13, 2009 at 2:15 PM, Sid Ferreira sid@gmail.com wrote:

 Damn :D
 When you get used to Symfony Forms is hard to get back :p

 ---
 Sidney G B Ferreira
 Desenvolvedor Web



 On Mon, Jul 13, 2009 at 09:09, Tuan Vu Minh tuanvm2...@gmail.comwrote:

 Dear Sid Ferreira,
 Symfony version 1.0 will work with your server(PHP 5.1). Check 
 thishttp://www.symfony-project.org/installationfor more information

 On Mon, Jul 13, 2009 at 6:50 PM, Sid Ferreira sid@gmail.comwrote:

 Hi folks!
 Guys, just got a task that is a project in a not updated server.
 Actually, I've just checked the 
 phpinfohttp://www.perverte.com.br/info.php and
 it seems to be 5.1 in fastcgi... In wondering if symfony will run in this
 environment, and if do, what version/fixes would be needed.

 Thanks in advance

Sidney

 ---
 Sidney G B Ferreira
 Desenvolvedor Web






 --
 Vũ Minh Tuấn - 4c06 - F.I.T - Hanoi University.
 Mobile: 0982.60.90.10
 Yahoo ID: tuanvm2...@ymail.com











 --
 Gareth McCumskey
 http://garethmccumskey.blogspot.com
 twitter: @garethmcc





 



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--~--~-~--~~~---~--~~
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: Server Configuration

2009-07-13 Thread Sid Ferreira
But it is really deprecated, then it kinda worries me :-/
I'll have to think about it, but Im trying to use sf 1.2.8 (as soon as it
gets available)

---
Sidney G B Ferreira
Desenvolvedor Web



On Mon, Jul 13, 2009 at 10:02, Gareth McCumskey gmccums...@gmail.comwrote:

 compat_10 allows you to use the older form helpers that was started in
 symfony 1.0 and phased out starting in symfony 1.0 (hence the name
 compat_10).

 Symfony 1.1 allows the use of the symfony forms class or the helpers.


 On Mon, Jul 13, 2009 at 3:00 PM, Sid Ferreira sid@gmail.com wrote:

 What exactly the compat_10 do?

 ---
 Sidney G B Ferreira
 Desenvolvedor Web



 On Mon, Jul 13, 2009 at 09:59, Gareth McCumskey gmccums...@gmail.comwrote:

 You can use Symfony 1.1. It allows the use of Symfony Forms or the older
 compat_10 version as well. Try that rather

 On Mon, Jul 13, 2009 at 2:15 PM, Sid Ferreira sid@gmail.com wrote:

 Damn :D
 When you get used to Symfony Forms is hard to get back :p

 ---
 Sidney G B Ferreira
 Desenvolvedor Web



 On Mon, Jul 13, 2009 at 09:09, Tuan Vu Minh tuanvm2...@gmail.comwrote:

 Dear Sid Ferreira,
 Symfony version 1.0 will work with your server(PHP 5.1). Check 
 thishttp://www.symfony-project.org/installationfor more information

 On Mon, Jul 13, 2009 at 6:50 PM, Sid Ferreira sid@gmail.comwrote:

 Hi folks!
 Guys, just got a task that is a project in a not updated server.
 Actually, I've just checked the 
 phpinfohttp://www.perverte.com.br/info.php and
 it seems to be 5.1 in fastcgi... In wondering if symfony will run in this
 environment, and if do, what version/fixes would be needed.

 Thanks in advance

Sidney

 ---
 Sidney G B Ferreira
 Desenvolvedor Web






 --
 Vũ Minh Tuấn - 4c06 - F.I.T - Hanoi University.
 Mobile: 0982.60.90.10
 Yahoo ID: tuanvm2...@ymail.com











 --
 Gareth McCumskey
 http://garethmccumskey.blogspot.com
 twitter: @garethmcc









 --
 Gareth McCumskey
 http://garethmccumskey.blogspot.com
 twitter: @garethmcc

 


--~--~-~--~~~---~--~~
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: Server Configuration

2009-07-13 Thread Eno

On Mon, 13 Jul 2009, Sid Ferreira wrote:

 Guys, just got a task that is a project in a not updated server.
 Actually, I've just checked the
 phpinfohttp://www.perverte.com.br/info.php and
 it seems to be 5.1 in fastcgi... In wondering if symfony will run in this
 environment, and if do, what version/fixes would be needed.

http://www.symfony-project.org/getting-started/1_2/en/02-Prerequisites



-- 



--~--~-~--~~~---~--~~
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] [Off topic] PHP 4

2009-07-13 Thread Sid Ferreira
Im wondering: What makes huge servers still use PHP4?

---
Sidney G B Ferreira
Desenvolvedor Web

--~--~-~--~~~---~--~~
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: Filter values in a select box dynamically within form framework

2009-07-13 Thread Thomas Rabaix
You might want to have a look to this :
http://rabaix.net/en/articles/2009/02/23/let-s-be-more-dynamic-with-sf-form

I need to blog more about this 

On Mon, Jul 13, 2009 at 2:55 PM, cleve cleve...@gmail.com wrote:


 Ok this is how I did it, but everything is outside a form / table
 class:

 Partial to override default admin generator field venue_id
 _venue_id.php
 

 ?php use_helper('Javascript')?

 div class=sf_admin_form_row sf_admin_foreignkey
  ?php echo $form['venue_id']-renderError() ?
  div
?php echo $form['venue_id']-renderLabel('Venue') ?

?php
$w = new sfWidgetFormDoctrineChoice(array('model' = 'District',
 'add_empty' = '--Filter by District--'));
echo $w-render('district_id', null, array('id' =
 'district'));
?

?php echo observe_field('district', array(
'update'   = 'district-select',
'url'  = '/admin.php/course/selectVenue',
'with' = 'district=' + value,
'loading'  = Element.show('indicator');Element.hide('gp-
 select'),
'complete' = Element.hide('indicator');Element.show('gp-
 select'),
)) ?

 raquo;
span id=district-select?php echo $form['venue_id']-render
 ($attributes) ?/span

div id=indicator style=display: none/div

  /div
 /div


 AJAX action to return filtered select
 ---

  public function executeSelectVenue($request){

$this-forward404Unless($request-isXmlHttpRequest());
$this-forward404Unless($request-hasParameter('district'));

$q = Doctrine_Query::create()
-from('Venue v')
-where('v.district_id  = ?', $request-getParameter('district'));

$w = new sfWidgetFormDoctrineChoice(array('model' = 'Venue',
 'query' = $q));
return $this-renderText($w-render('course[venue_id]'));

  }


 It feels odd to create widgets in the partial / action but overkill to
 create an additional class? What does everyone think?

 I'll make a snipeet of this when its tidy! (and Refactored
 properly :-)

 John
 



-- 
Thomas Rabaix
http://rabaix.net

--~--~-~--~~~---~--~~
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: [Off topic] PHP 4

2009-07-13 Thread Szabolcs Heilig
2009/7/13 Sid Ferreira sid@gmail.com

 Im wondering: What makes huge servers still use PHP4?


Maybe big clients?

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Problems with svn doctrine [WAS: Re: [symfony-users] Re: Anyone having trouble with svn and Phing?]

2009-07-13 Thread Tom Haskins-Vaughan

No I can't import doctrine. Anyone know if doctrine is going to be down 
for a while?

Phil wrote:
 Yes - it's been like all day for me and my team today too.
 
 Regards,
 Philip
 
 On Jul 10, 11:05 am, Tom Haskins-Vaughan t...@templestreetmedia.com
 wrote:
 Pinging svn.phing.info hangs too.



 Tom Haskins-Vaughan wrote:
 Hi,
 I'm just trying to svn export a project but it's hanging here:
 Fetching external item into
 'rivals/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/vendor/phing'
 Anyone else experiencing similar things?
 Tom
  
 

--~--~-~--~~~---~--~~
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] sfMenuGenerator

2009-07-13 Thread Germana Oliveira

ok...

in my app.yml i have this:

all:
   mail:
 webmaster:  'webmas...@indepabis.gob.ve'

   sf_guard_plugin:
 success_signin_url:   /intranet.php
 success_signout_url:  @homepage

   sf_menu_generator:
 opciones:
   text:  'Opciones'
   items: [inicio, calendario, denuncia]

   inicio:
 text: 'Inicio'
 link: 'inicio/index'

   calendario:
 text: 'Activiades de Indepabis'
 link: 'calendario/index'

   denuncia:
 text: 'Estado de mi Denuncia'
 link: 'denuncia/index'


in my layout, this:

  ?php echo mg_menuitem(array('opciones'), array('class' = 'menu'))?

im my settings.yml:

all:
.

# Helpers included in all templates by default
 standard_helpers:   [Partial, Cache, Form, MenuGenerator,
Javascript]
#
# Activated modules from plugins or from the symfony core
 enabled_modules:[default, sfGuardAuth, sfMenuGenerator]


THANKS

--~--~-~--~~~---~--~~
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: compat_10 in settings.yml

2009-07-13 Thread DEEPAK BHATIA

Hi,

Thanks for your reply.

I am changing the value in settings.yml file and doing php symfony cc.
But still sf_compat_10 is coming as false in config_settings.yml.php
in cache.

Regards

Deepak Bhatia

On Mon, Jul 13, 2009 at 2:22 PM, Gareth McCumskeygmccums...@gmail.com wrote:
 Everytime you edit config files you need to clear cache, i.e. run symfony cc
 on the command line

 On Sun, Jul 12, 2009 at 4:32 PM, DEEPAK BHATIA toreachdee...@gmail.com
 wrote:

 Hi,

 I am using Symfony 1.1.

 When I created a project and executed that application, it never asked
 to set compat_10 to true.

 But I created another project, when I login, it asked for setting
 compat_10 to true.

 I changed the compat_10 in settings.yml to true but symfony gave the
 error. Then I went to cache file of settings.yml and set sf_compat_10
 to true, symfony worked fine.

 What is the solution to the problem and why it is coming in one
 project and not on another ?

 Regards

 Deepak Bhatia





 --
 Gareth McCumskey
 http://garethmccumskey.blogspot.com
 twitter: @garethmcc

 


--~--~-~--~~~---~--~~
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: [Off topic] PHP 4

2009-07-13 Thread Alexandru-Emil Lupu
maybe no one who upgrade them.
On Mon, Jul 13, 2009 at 4:57 PM, Szabolcs Heilig
szabolcs.hei...@gmail.comwrote:



 2009/7/13 Sid Ferreira sid@gmail.com

 Im wondering: What makes huge servers still use PHP4?


 Maybe big clients?

 



-- 
As programmers create bigger  better idiot proof programs, so the universe
creates bigger  better idiots!
I am on web:  http://www.alecslupu.ro/
I am on twitter: http://twitter.com/alecslupu
I am on linkedIn: http://www.linkedin.com/in/alecslupu
Tel: (+4)0748.543.798

--~--~-~--~~~---~--~~
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: problem with the task symfony-propel-build-schema

2009-07-13 Thread josesilva

hi. I check the php and yes is PHP 5.2.6 and also supports xml and
xsl

my schema is the following

2 tables

propel:
  _attributes:
package: lib.model
  ciudad:
_attributes:
  idMethod: native
id:
  type: INTEGER
  required: true
  autoIncrement: true
  primaryKey: true
tx_nombre:
  type: VARCHAR
fe_cre:
  type: TIMESTAMP
fe_act:
  type: TIMESTAMP
usu_cre:
  type: VARCHAR
usu_act:
  type: VARCHAR
municipio_id:
  type: INTEGER
  foreignTable: municipio
  foreignReference: id
  onDelete:
  onUpdate:
estado_id:
  type: INTEGER
  foreignTable: estado
  foreignReference: id
  onDelete:
  onUpdate:
pais_id:
  type: INTEGER
  foreignTable: pais
  foreignReference: id
  onDelete:
  onUpdate:
  cliente:
_attributes:
  idMethod: native
id:
  type: INTEGER
  required: true
  autoIncrement: true
  primaryKey: true
tx_nombre:
  type: VARCHAR
tx_observacion:
  type: VARCHAR
  size: 2000
tx_contacto:
  type: VARCHAR
tx_telf_contacto:
  type: VARCHAR
tx_direccion:
  type: VARCHAR
fe_cre:
  type: TIMESTAMP
fe_act:
  type: TIMESTAMP
usu_cre:
  type: VARCHAR
usu_act:
  type: VARCHAR
in_eli:
  type: SMALLINT
pdval_id:
  type: INTEGER
  foreignTable: pdval
  foreignReference: id
  onDelete:
  onUpdate:
tx_ci:
  type: VARCHAR



On 10 jul, 22:59, Eno symb...@gmail.com wrote:
 On Fri, 10 Jul 2009, josesilva wrote:

  with propel and use symfony 1.2.7

 What does your schema look like?

 Does you php cli have support for xml and xsl? (Run php -m to check).

 Also, Im assuming you have PHP 5.2? (I think symfony 1.2.7 requires PHP 
 5.2).

 --
--~--~-~--~~~---~--~~
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: problem with the task symfony-propel-build-schema

2009-07-13 Thread Gábor Fási

Do you have pdo and pdo_mysql enabled in the php.ini your cli uses?

On Mon, Jul 13, 2009 at 17:05, josesilvalomaxj...@gmail.com wrote:

 hi. I check the php and yes is PHP 5.2.6 and also supports xml and
 xsl

 my schema is the following

 2 tables

 propel:
  _attributes:
    package: lib.model
  ciudad:
    _attributes:
      idMethod: native
    id:
      type: INTEGER
      required: true
      autoIncrement: true
      primaryKey: true
    tx_nombre:
      type: VARCHAR
    fe_cre:
      type: TIMESTAMP
    fe_act:
      type: TIMESTAMP
    usu_cre:
      type: VARCHAR
    usu_act:
      type: VARCHAR
    municipio_id:
      type: INTEGER
      foreignTable: municipio
      foreignReference: id
      onDelete:
      onUpdate:
    estado_id:
      type: INTEGER
      foreignTable: estado
      foreignReference: id
      onDelete:
      onUpdate:
    pais_id:
      type: INTEGER
      foreignTable: pais
      foreignReference: id
      onDelete:
      onUpdate:
  cliente:
    _attributes:
      idMethod: native
    id:
      type: INTEGER
      required: true
      autoIncrement: true
      primaryKey: true
    tx_nombre:
      type: VARCHAR
    tx_observacion:
      type: VARCHAR
      size: 2000
    tx_contacto:
      type: VARCHAR
    tx_telf_contacto:
      type: VARCHAR
    tx_direccion:
      type: VARCHAR
    fe_cre:
      type: TIMESTAMP
    fe_act:
      type: TIMESTAMP
    usu_cre:
      type: VARCHAR
    usu_act:
      type: VARCHAR
    in_eli:
      type: SMALLINT
    pdval_id:
      type: INTEGER
      foreignTable: pdval
      foreignReference: id
      onDelete:
      onUpdate:
    tx_ci:
      type: VARCHAR



 On 10 jul, 22:59, Eno symb...@gmail.com wrote:
 On Fri, 10 Jul 2009, josesilva wrote:

  with propel and use symfony 1.2.7

 What does your schema look like?

 Does you php cli have support for xml and xsl? (Run php -m to check).

 Also, Im assuming you have PHP 5.2? (I think symfony 1.2.7 requires PHP 
 5.2).

 --
 


--~--~-~--~~~---~--~~
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: Problems installing Symfony 1.2.7 on Ubuntu 9.04

2009-07-13 Thread Bruno Bernardino

Hi, I’m having the stupidest issue…

Installing symfony, I’m getting this:

Starting to download symfony-1.2.7.tgz (2,695,475 bytes)
.done:
2,695,475 bytes
Could not rename /usr/bin/.tmpsymfony to /usr/bin/symfony copy(/usr/
bin/symfony): failed to open stream: No such file or directory
ERROR: commit failed

I googled around and found nothing about this.

I also don’t understand what’s the difference between installing
through pear and through apt-get install php5-symfony (it installs,
but I still have no “symfony” command)

If it helps:

— START —
br...@brunoubuntu:~$ sudo which php
/usr/bin/php

br...@brunoubuntu:~$ sudo php -v
PHP 5.2.6-3ubuntu4.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 23
2009 14:35:05)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

br...@brunoubuntu:~$ sudo which pear
/usr/bin/pear

— END —

--~--~-~--~~~---~--~~
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: sfEasyGMapPlugin not working

2009-07-13 Thread Sebastian Müller

Hi Zach,

I use it and it works very fine.
Have you setup the right API keys? So if you use 
http://example.localhost/ you have to create a API key for this url.

BR from Hamburg
Sebastian


Zach schrieb:
 Has anyone used this plugin before? Maybe I just set it up wrong...
 and it's a very simple problem.
 I would really appreciate any help I can get on this issue.
 
 Thanks,
 Zach
 


-- 
Sebastian Müller
s.muel...@nm-f.de
http://www.new-mediafactory.de

--~--~-~--~~~---~--~~
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] Joomla and Symfony compatibility?

2009-07-13 Thread televas

Hi!
I'm an absolute beginner to symfony framework. I have business reasons
(currently not solvable) for developing a project in joomla and a php
framework. I chose Symfony.

I tested the plugin sfJoomla15BridgePlugin, but it transforms a simple
request to joomla in a NEW request sent to symfony (with curl
functions). In my opinion this isn't a good choice because of the
obvious problems of performance (threads, memory, etc.).

So i'm looking for a new solution to develop with the two systems
(Joomla-Symfony). I think that the only way to avoid a new request is
calling manually the symfony environment from a joomla component with
a require/include. Then, i should configure the routing rules in
symfony to decode a joomla formatted get or, but i don't know the
method, manually call the symfony environment in a similar way to the
cakePHP functions HTML_cake::requestCakePHP (you can see this at '
http://www.gigapromoters.com/blog/2007/01/28/joining-powers- of-two-
great-systems-joomla-and-cakephp/').

In both cases, i tested a simple require in a joomla component to
include the symfony index.php (eventually renamed). This is my hard
problem: a lot of error messages!

Here the details:

- joomla installed in my apache web root
- symfony installed in my apache web root with index renamed
- when the url has option=com_symfony joomla redirects control to a
component that includes the symfony index renamed

Here my tests:

1) i used a simple include or require
2) i called in sequence ob_start, include, ob_get_contents,
ob_end_clean
3) I also tried to call directly the index symfony from the joomla
index page (without using the joomla component)

Here some error messages:

--
- Strict standards: Non-static method JLoader::import() should not be
called statically in C:\web\web_out\sfproject\web\libraries\joomla
\import.php on line 29
- Strict standards: Non-static method JLoader::register() should not
be called statically in C:\web\web_out\sfproject\web\libraries
\loader.php on line 71
- Fatal error: Class 'JRequest' not found in C:\web\web_out\sfproject
\web\libraries\joomla\import.php on line 33
- Strict standards: Non-static method JApplicationHelper::getPath()
should not be called statically, assuming $this from incompatible
context in C:\web\web_out\sfproject\web\libraries\joomla\application
\co mponent\helper.php on line 168
- Strict standards: Non-static method JRequest::getCmd() should not be
called statically, assuming $this from incompatible context in C:\web
\web_out\sfproject\web\libraries\joomla\application\he lper.php on
line 112
- Strict standards: Non-static method JApplicationHelper::_checkPath()
should not be called statically, assuming $this from incompatible
context in C:\web\web_out\sfproject\web\libraries\joomla\application
\he lper.php on line 133
- Strict standards: Non-static method JFactory::getConfig() should not
be called statically, assuming $this from incompatible context in C:
\web\web_out\sfproject\web\libraries\joomla\application\ap
plication.php on line 384
--

and many others...

You can tell me if I can solve these problems? Are Joomla and Symfony
compatibles?

Sorry for my bad english and for the long post. I hope everything is
clear.

Thanks in advance.

--~--~-~--~~~---~--~~
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] bind a form manually with embedded forms

2009-07-13 Thread Matthew Penrice
Hello,

I'm using a form which is made of 2 forms via embedForm(). I'm attempting to
prepopulate the form by calling bind with an array of values before it is
rendered. This works well but the embedded() form does not pick up the
values. This is probably just the format of the array i am using.

This is the yml that is used in the bind call:

description: 'test description'
storage_class: Subversion
created_at: '2008-08-28 16:54:00'
updated_at: '2009-03-05 17:47:42'
ProjectConfig:
  images_type: Subversion
  images_location: http://showroom/images


The ProjectConfig is a valid relation for the form's object. Can anyone help
me with this?

--~--~-~--~~~---~--~~
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 1.2, doctrine and new plugins

2009-07-13 Thread Rene Jochum

Hi,

I have a existing and running project ( oma ), now i want to extend it
by a plugin which needs some new SQL Tables.

Is there a automated way to extend my current database with the tables
from my plugin?

Thanks,

Rene Jochum

--~--~-~--~~~---~--~~
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: Filter values in a select box dynamically within form framework

2009-07-13 Thread cleve

Thanks Thomas, there's some good stuff there.

On Jul 13, 2:41 pm, Thomas Rabaix thomas.rab...@gmail.com wrote:
 You might want to have a look to this 
 :http://rabaix.net/en/articles/2009/02/23/let-s-be-more-dynamic-with-s...

 I need to blog more about this 



 On Mon, Jul 13, 2009 at 2:55 PM, cleve cleve...@gmail.com wrote:

  Ok this is how I did it, but everything is outside a form / table
  class:

  Partial to override default admin generator field venue_id
  _venue_id.php
  

  ?php use_helper('Javascript')?

  div class=sf_admin_form_row sf_admin_foreignkey
   ?php echo $form['venue_id']-renderError() ?
   div
     ?php echo $form['venue_id']-renderLabel('Venue') ?

     ?php
     $w = new sfWidgetFormDoctrineChoice(array('model' = 'District',
  'add_empty' = '--Filter by District--'));
     echo $w-render('district_id', null, array('id' =
  'district'));
     ?

     ?php echo observe_field('district', array(
         'update'   = 'district-select',
         'url'      = '/admin.php/course/selectVenue',
         'with'     = 'district=' + value,
         'loading'  = Element.show('indicator');Element.hide('gp-
  select'),
         'complete' = Element.hide('indicator');Element.show('gp-
  select'),
     )) ?

      raquo;
     span id=district-select?php echo $form['venue_id']-render
  ($attributes) ?/span

     div id=indicator style=display: none/div

   /div
  /div

  AJAX action to return filtered select
  ---

   public function executeSelectVenue($request){

     $this-forward404Unless($request-isXmlHttpRequest());
     $this-forward404Unless($request-hasParameter('district'));

     $q = Doctrine_Query::create()
     -from('Venue v')
     -where('v.district_id  = ?', $request-getParameter('district'));

     $w = new sfWidgetFormDoctrineChoice(array('model' = 'Venue',
  'query' = $q));
     return $this-renderText($w-render('course[venue_id]'));

   }

  It feels odd to create widgets in the partial / action but overkill to
  create an additional class? What does everyone think?

  I'll make a snipeet of this when its tidy! (and Refactored
  properly :-)

  John

 --
 Thomas Rabaixhttp://rabaix.net
--~--~-~--~~~---~--~~
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: [Off topic] PHP 4

2009-07-13 Thread Eno

On Mon, 13 Jul 2009, Sid Ferreira wrote:

 Im wondering: What makes huge servers still use PHP4?

A lot of software still runs in PHP4 and so still require PHP4 hosting. 
Companies tend to be very conservative with upgrades - if it isn't broken 
etc etc.



-- 



--~--~-~--~~~---~--~~
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: problem with the task symfony-propel-build-schema

2009-07-13 Thread josesilva

I have not enabled. I use pgsql

On 13 jul, 11:25, Gábor Fási maerl...@gmail.com wrote:
 Do you have pdo and pdo_mysql enabled in the php.ini your cli uses?

 On Mon, Jul 13, 2009 at 17:05, josesilvalomaxj...@gmail.com wrote:

  hi. I check the php and yes is PHP 5.2.6 and also supports xml and
  xsl

  my schema is the following

  2 tables

  propel:
   _attributes:
     package: lib.model
   ciudad:
     _attributes:
       idMethod: native
     id:
       type: INTEGER
       required: true
       autoIncrement: true
       primaryKey: true
     tx_nombre:
       type: VARCHAR
     fe_cre:
       type: TIMESTAMP
     fe_act:
       type: TIMESTAMP
     usu_cre:
       type: VARCHAR
     usu_act:
       type: VARCHAR
     municipio_id:
       type: INTEGER
       foreignTable: municipio
       foreignReference: id
       onDelete:
       onUpdate:
     estado_id:
       type: INTEGER
       foreignTable: estado
       foreignReference: id
       onDelete:
       onUpdate:
     pais_id:
       type: INTEGER
       foreignTable: pais
       foreignReference: id
       onDelete:
       onUpdate:
   cliente:
     _attributes:
       idMethod: native
     id:
       type: INTEGER
       required: true
       autoIncrement: true
       primaryKey: true
     tx_nombre:
       type: VARCHAR
     tx_observacion:
       type: VARCHAR
       size: 2000
     tx_contacto:
       type: VARCHAR
     tx_telf_contacto:
       type: VARCHAR
     tx_direccion:
       type: VARCHAR
     fe_cre:
       type: TIMESTAMP
     fe_act:
       type: TIMESTAMP
     usu_cre:
       type: VARCHAR
     usu_act:
       type: VARCHAR
     in_eli:
       type: SMALLINT
     pdval_id:
       type: INTEGER
       foreignTable: pdval
       foreignReference: id
       onDelete:
       onUpdate:
     tx_ci:
       type: VARCHAR

  On 10 jul, 22:59, Eno symb...@gmail.com wrote:
  On Fri, 10 Jul 2009, josesilva wrote:

   with propel and use symfony 1.2.7

  What does your schema look like?

  Does you php cli have support for xml and xsl? (Run php -m to check).

  Also, Im assuming you have PHP 5.2? (I think symfony 1.2.7 requires PHP 
  5.2).

  --
--~--~-~--~~~---~--~~
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: problem with the task symfony-propel-build-schema

2009-07-13 Thread Reynier Pérez Mira

josesilva wrote:
 I have not enabled. I use pgsql
 
Then you have to enable pdo_pgsql try this and tell us
Cheers
-- 
Ing. Reynier Pérez Mira

--~--~-~--~~~---~--~~
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] sfGuard

2009-07-13 Thread Germana Oliveira

Hi!!

just one little thing..

How can i modify the HTML in the admin module generate by sfGuard??


--~--~-~--~~~---~--~~
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] php error : undefined function ctype_digit() while setting up symfony

2009-07-13 Thread themba - newbie

Hi Guys,

I am new to symfony, just trying to set it up for the first time, I am
going throught the instructions and when I run:

php lib/vendor/symfony/data/bin/symfony -V

I get this error:

PHP Fatal error:  Call to undefined function ctype_digit() in /srv/www/
htdocs/symphony/lib/vendor/symfony/lib/yaml/sfYamlInline.class.php on
line 372

Fatal error: Call to undefined function ctype_digit() in /srv/www/
htdocs/symphony/lib/vendor/symfony/lib/yaml/sfYamlInline.class.php on
line 372


What could be wrong... Am I missing a php package? if yes which
package? I am running php 5.2.4 on openSuse 10.3

--~--~-~--~~~---~--~~
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] php error : undefined function ctype_digit() while setting up symfony

2009-07-13 Thread Germana Oliveira

Do you know if your PHP configuration is with --enable-ctype, or if you 
compile it with --enable-ctype ??


__
Hi Guys,

I am new to symfony, just trying to set it up for the first time, I am
going throught the instructions and when I run:

php lib/vendor/symfony/data/bin/symfony -V

I get this error:

PHP Fatal error:  Call to undefined function ctype_digit() in /srv/www/
htdocs/symphony/lib/vendor/symfony/lib/yaml/sfYamlInline.class.php on
line 372

Fatal error: Call to undefined function ctype_digit() in /srv/www/
htdocs/symphony/lib/vendor/symfony/lib/yaml/sfYamlInline.class.php on
line 372


What could be wrong... Am I missing a php package? if yes which
package? I am running php 5.2.4 on openSuse 10.3



--~--~-~--~~~---~--~~
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: php error : undefined function ctype_digit() while setting up symfony

2009-07-13 Thread Eno

On Mon, 13 Jul 2009, themba - newbie wrote:

 What could be wrong... Am I missing a php package? if yes which
 package? I am running php 5.2.4 on openSuse 10.3

ctype_digit() is a function from the ctype extension.

http://us.php.net/manual/en/function.ctype-digit.php

Shouldn't be hard to check if its available in PHP.



-- 



--~--~-~--~~~---~--~~
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: symfony 1.2, doctrine and new plugins

2009-07-13 Thread Eno

On Mon, 13 Jul 2009, Rene Jochum wrote:

 I have a existing and running project ( oma ), now i want to extend it
 by a plugin which needs some new SQL Tables.
 
 Is there a automated way to extend my current database with the tables
 from my plugin?

Not unless it supplies a script or migration to do it for you.



-- 



--~--~-~--~~~---~--~~
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: sfGuard

2009-07-13 Thread Tom Haskins-Vaughan

Create the directory:

:apps/myApp/modules/sfGuardAuth/templates

Copy the signinSuccess.php template from the plugin into this directory 
and modify it. You don't need to create the actions directory.

Hope that helps.

Germana Oliveira wrote:
 Hi!!
 
 just one little thing..
 
 How can i modify the HTML in the admin module generate by sfGuard??
 
 
  
 

--~--~-~--~~~---~--~~
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 Day Cologne

2009-07-13 Thread Dennis Benkert

Hey everybody!

symfony Day Cologne will be the first symfony conference in Germany.
One day, international speakers, a workshop, and a party. There will
be talks given by various members of the symfony community, plus a
workshop for beginners. The conference, both talks and the workshop,
will be held in English.

For more information you can visit http://www.symfonyday.com.

greetings, Dennis
--~--~-~--~~~---~--~~
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 1.2.8 has been released

2009-07-13 Thread Fabian Lange

Dear users,
I just released symfony 1.2.8. Please head over to my blog post for
more details:
http://www.symfony-project.org/blog/2009/07/13/symfony-1-2-8-rolling-back-our-security-fix

Fabian

--~--~-~--~~~---~--~~
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] sfGuard

2009-07-13 Thread Germana Oliveira

I think i did not explain it wright:

the thing is that im generating my backend app, and my admin module of 
the sfGuard, and everything is cool, but i want to modify the HTML of 
the sf_guard_user, exactly the filter form.

i know that i can do a lot of modifications with the generate.yml, but 
what can i do to modify the way they are show,for example i want to 
eliminate a br tag ¿?

Thanks!!

Create the directory:

:apps/myApp/modules/sfGuardAuth/templates

Copy the signinSuccess.php template from the plugin into this directory
and modify it. You don't need to create the actions directory.

Hope that helps.

Germana Oliveira wrote:
 Hi!!
 
 just one little thing..
 
 How can i modify the HTML in the admin module generate by sfGuard??
 
 
  
 



--~--~-~--~~~---~--~~
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: bind a form manually with embedded forms

2009-07-13 Thread Gandalf

Call the embed method of each form, and I usually use the setdefaults
method instead of the bind to prepopulate the forms, because the bind
validates the form.

P

On 7/13/09, Matthew Penrice matthew.penr...@gmail.com wrote:
 Hello,

 I'm using a form which is made of 2 forms via embedForm(). I'm attempting to
 prepopulate the form by calling bind with an array of values before it is
 rendered. This works well but the embedded() form does not pick up the
 values. This is probably just the format of the array i am using.

 This is the yml that is used in the bind call:

 description: 'test description'
 storage_class: Subversion
 created_at: '2008-08-28 16:54:00'
 updated_at: '2009-03-05 17:47:42'
 ProjectConfig:
   images_type: Subversion
   images_location: http://showroom/images


 The ProjectConfig is a valid relation for the form's object. Can anyone help
 me with this?

 


--~--~-~--~~~---~--~~
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: compat_10 in settings.yml

2009-07-13 Thread Gareth McCumskey
You can also try to manually delete all the files in the cache directory.

On Mon, Jul 13, 2009 at 4:12 PM, DEEPAK BHATIA toreachdee...@gmail.comwrote:


 Hi,

 Thanks for your reply.

 I am changing the value in settings.yml file and doing php symfony cc.
 But still sf_compat_10 is coming as false in config_settings.yml.php
 in cache.

 Regards

 Deepak Bhatia

 On Mon, Jul 13, 2009 at 2:22 PM, Gareth McCumskeygmccums...@gmail.com
 wrote:
  Everytime you edit config files you need to clear cache, i.e. run symfony
 cc
  on the command line
 
  On Sun, Jul 12, 2009 at 4:32 PM, DEEPAK BHATIA toreachdee...@gmail.com
  wrote:
 
  Hi,
 
  I am using Symfony 1.1.
 
  When I created a project and executed that application, it never asked
  to set compat_10 to true.
 
  But I created another project, when I login, it asked for setting
  compat_10 to true.
 
  I changed the compat_10 in settings.yml to true but symfony gave the
  error. Then I went to cache file of settings.yml and set sf_compat_10
  to true, symfony worked fine.
 
  What is the solution to the problem and why it is coming in one
  project and not on another ?
 
  Regards
 
  Deepak Bhatia
 
 
 
 
 
  --
  Gareth McCumskey
  http://garethmccumskey.blogspot.com
  twitter: @garethmcc
 
  
 

 



-- 
Gareth McCumskey
http://garethmccumskey.blogspot.com
twitter: @garethmcc

--~--~-~--~~~---~--~~
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: Bind() in embedded forms

2009-07-13 Thread Tom Haskins-Vaughan

Ah haa. Thanks!

Raphaël B. wrote:
 you can do this in the main form to call the embedForm bind() method:
 
 foreach($this-embeddedForms as $name = $form)
$form-bind($taintedValues[$name]);
 
 
 On 2 juil, 15:38, Tom Haskins-Vaughan t...@templestreetmedia.com
 wrote:
 Hi.

 I have a question about embedding and binding forms.

 Firstly, my model is basically:

 Product has many Criteria has many Options.

 So, following the tutorial at sandbox-ws.com [1] on embedding forms in
 sf 1.2, I do the following:

 1. Create Product form

 2. Embed Product-Criteria forms into Product form

 3. Add new Criterion form and embed it into Product form

 Now, having done this, I need to override the bind() method of the
 Product form to account for whether or not the new Criterion form was used.

 Ok, so far.

 Now, for each Product-Criteria form, I embed Product-Criteria-Options
 forms including a blank one.

 Now according to this thread [2] only the bind() method of the main form
 is called. So instead of being able to update the bind() method of the
 Criterion form, I have to, in my opinion, put it all in the main form
 bind() method.

 I guess my question is, what was the reasoning behind this, and wouldn't
 it be better to be able to keep all the relevant information for each
 form in it's associated bind() method?

 Thanks,

 Tom

 [1]http://sandbox-ws.com/how-to-embed-forms-in-symfony-12-admin-generato...

 [2]http://groups.google.com/group/symfony-devs/browse_thread/thread/dc2c...
 
  
 

--~--~-~--~~~---~--~~
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: sfEasyGMapPlugin not working

2009-07-13 Thread Zach

Hi Sebastian,

Thanks for the reply. Yes, I have setup the right API keys, but I'm
not sure if I put them in the right place... I put them in the app.yml
file for the plugin and also in the app.yml file for the frontend app.
Does it matter which one it is in? Also, I moved the css, images, and
js folders in the plugin's web folder to web/sfEasyGMapPlugin/. Is
that right?

Thanks for you help,
Zach

On Jul 13, 7:48 am, Sebastian Müller
list.newmediafact...@googlemail.com wrote:
 Hi Zach,

 I use it and it works very fine.
 Have you setup the right API keys? So if you usehttp://example.localhost/you 
 have to create a API key for this url.

 BR from Hamburg
 Sebastian

 Zach schrieb:

  Has anyone used this plugin before? Maybe I just set it up wrong...
  and it's a very simple problem.
  I would really appreciate any help I can get on this issue.

  Thanks,
  Zach

 --
 Sebastian Müller
 s.muel...@nm-f.dehttp://www.new-mediafactory.de
--~--~-~--~~~---~--~~
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: problem with the task symfony-propel-build-schema

2009-07-13 Thread josesilva

yes i enable the pgsql and nothing the same error

On 13 jul, 12:28, Reynier Pérez Mira rper...@uci.cu wrote:
 josesilva wrote:
  I have not enabled. I use pgsql

 Then you have to enable pdo_pgsql try this and tell us
 Cheers
 --
 Ing. Reynier Pérez Mira
--~--~-~--~~~---~--~~
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: sfGuard

2009-07-13 Thread Richtermeister

Hey Germana,

you can create your own form, extending the sfGuardUserFilterForm and
make your modifications from inside that form.

Look at the formatter classes to see what format settings you can
customize.. for example:
$this - widgetSchema - getFormFormatter() - setErrorListFormatInARow
(  ul class=\error\\n%errors%  /ul\n);
There's lots more.

Then you need to specify your form in the generator.yml file under

filters:
  class:  myForm

That should give you all you need.
Have a great day,
Daniel

On Jul 13, 12:07 pm, Germana Oliveira germanaolivei...@gmail.com
wrote:
 I think i did not explain it wright:

 the thing is that im generating my backend app, and my admin module of
 the sfGuard, and everything is cool, but i want to modify the HTML of
 the sf_guard_user, exactly the filter form.

 i know that i can do a lot of modifications with the generate.yml, but
 what can i do to modify the way they are show,for example i want to
 eliminate a br tag ¿?

 Thanks!!
 
 Create the directory:

 :apps/myApp/modules/sfGuardAuth/templates

 Copy the signinSuccess.php template from the plugin into this directory
 and modify it. You don't need to create the actions directory.

 Hope that helps.

 Germana Oliveira wrote:
  Hi!!

  just one little thing..

  How can i modify the HTML in the admin module generate by sfGuard??
--~--~-~--~~~---~--~~
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] propel-build-model how to see the begining of model building in putty

2009-07-13 Thread belbek

I got something written in red there
--~--~-~--~~~---~--~~
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: propel-build-model how to see the begining of model building in putty

2009-07-13 Thread Gábor Fási

Probably an error. Did you try the crollbars? :) Also, if you append
| less to the end, so you run it like php symfony
propel:build-model | less you'll have the output in a scrollable
fashion.

On Mon, Jul 13, 2009 at 22:49, belbekzbit...@gmail.com wrote:

 I got something written in red there
 


--~--~-~--~~~---~--~~
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: problem with the task symfony-propel-build-schema

2009-07-13 Thread josesilva


thank you all for your help I could solve the problem I was missing a
library php-pgsql. was right to the extent that I lack. install the
extension and change the php.ini and perfect

thanks

On 13 jul, 15:48, josesilva lomaxj...@gmail.com wrote:
 yes i enable the pgsql and nothing the same error

 On 13 jul, 12:28, Reynier Pérez Mira rper...@uci.cu wrote:

  josesilva wrote:
   I have not enabled. I use pgsql

  Then you have to enable pdo_pgsql try this and tell us
  Cheers
  --
  Ing. Reynier Pérez Mira
--~--~-~--~~~---~--~~
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: symfony Day Cologne

2009-07-13 Thread Jonathan Wage
See you there! Can't wait.

- Jon

On Mon, Jul 13, 2009 at 1:28 PM, Dennis Benkert spinecras...@googlemail.com
 wrote:


 Hey everybody!

 symfony Day Cologne will be the first symfony conference in Germany.
 One day, international speakers, a workshop, and a party. There will
 be talks given by various members of the symfony community, plus a
 workshop for beginners. The conference, both talks and the workshop,
 will be held in English.

 For more information you can visit http://www.symfonyday.com.

 greetings, Dennis
 



-- 
Jonathan H. Wage (+1 415 992 5468)
Open Source Software Developer  Evangelist
sensiolabs.com | jwage.com | doctrine-project.org | symfony-project.org

You can contact Jonathan about Doctrine, Symfony and Open-Source or for
training, consulting, application development, or business related questions
at jonathan.w...@sensio.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: bind a form manually with embedded forms

2009-07-13 Thread Matthew Penrice
i would actually like to have the validation as well. I have found a way -
call the getEmbeddedForms to get embedded forms then call bind on each. Just
thought the way bind() worked was to take an input and populate all its
fields (embedded forms also contributing their fields). I'm sure this is
down to the format of the array i'm passing in. Anyway, no great worries.

On Mon, Jul 13, 2009 at 8:30 PM, Gandalf ganda...@gmail.com wrote:


 Call the embed method of each form, and I usually use the setdefaults
 method instead of the bind to prepopulate the forms, because the bind
 validates the form.

 P

 On 7/13/09, Matthew Penrice matthew.penr...@gmail.com wrote:
  Hello,
 
  I'm using a form which is made of 2 forms via embedForm(). I'm attempting
 to
  prepopulate the form by calling bind with an array of values before it is
  rendered. This works well but the embedded() form does not pick up the
  values. This is probably just the format of the array i am using.
 
  This is the yml that is used in the bind call:
 
  description: 'test description'
  storage_class: Subversion
  created_at: '2008-08-28 16:54:00'
  updated_at: '2009-03-05 17:47:42'
  ProjectConfig:
images_type: Subversion
images_location: http://showroom/images
 
 
  The ProjectConfig is a valid relation for the form's object. Can anyone
 help
  me with this?
 
  
 

 


--~--~-~--~~~---~--~~
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: Problems installing Symfony 1.2.7 on Ubuntu 9.04

2009-07-13 Thread Eno

On Mon, 13 Jul 2009, Bruno Bernardino wrote:

 Starting to download symfony-1.2.7.tgz (2,695,475 bytes)
 .done:
 2,695,475 bytes
 Could not rename /usr/bin/.tmpsymfony to /usr/bin/symfony copy(/usr/
 bin/symfony): failed to open stream: No such file or directory
 ERROR: commit failed

Are you running pear as root?

You won't be able to install files into /usr unless you're root.




-- 



--~--~-~--~~~---~--~~
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: Output Escaping

2009-07-13 Thread Tanner

I did.

On Jul 12, 9:47 pm, Eno symb...@gmail.com wrote:
 On Sun, 12 Jul 2009, Tanner wrote:
  When I print an object out of the database in a form, the content is
  not escaped. I have properly set escaping_strategy and
  escaping_method in my app's settings.yml file, but it just doesn't
  work. I am getting an object from the database like this:

  $this-object = SomeTablePeer::retrieveByPk($id);

  In my template when I print:
  echo $object-getDescription();

  It does not strip html elements.

  Here is what my settings.yml looks like:
  all:
    escaping_strategy:      on
    escaping_method:        ESC_ENTITIES

 Did you clear you cache? :-)

 --
--~--~-~--~~~---~--~~
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: compat_10 in settings.yml

2009-07-13 Thread Ahsanul

Ya.. that's right! try deleting files and folders in your cache
directory.

rm -Rf cache/*

Hope that works for you!


On Jul 14, 1:30 am, Gareth McCumskey gmccums...@gmail.com wrote:
 You can also try to manually delete all the files in the cache directory.

 On Mon, Jul 13, 2009 at 4:12 PM, DEEPAK BHATIA toreachdee...@gmail.comwrote:





  Hi,

  Thanks for your reply.

  I am changing the value in settings.yml file and doing php symfony cc.
  But still sf_compat_10 is coming as false in config_settings.yml.php
  in cache.

  Regards

  Deepak Bhatia

  On Mon, Jul 13, 2009 at 2:22 PM, Gareth McCumskeygmccums...@gmail.com
  wrote:
   Everytime you edit config files you need to clear cache, i.e. run symfony
  cc
   on the command line

   On Sun, Jul 12, 2009 at 4:32 PM, DEEPAK BHATIA toreachdee...@gmail.com
   wrote:

   Hi,

   I am using Symfony 1.1.

   When I created a project and executed that application, it never asked
   to set compat_10 to true.

   But I created another project, when I login, it asked for setting
   compat_10 to true.

   I changed the compat_10 in settings.yml to true but symfony gave the
   error. Then I went to cache file of settings.yml and set sf_compat_10
   to true, symfony worked fine.

   What is the solution to the problem and why it is coming in one
   project and not on another ?

   Regards

   Deepak Bhatia

   --
   Gareth McCumskey
  http://garethmccumskey.blogspot.com
   twitter: @garethmcc

 --
 Gareth McCumskeyhttp://garethmccumskey.blogspot.com
 twitter: @garethmcc
--~--~-~--~~~---~--~~
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] Duplicate DB entry...help me read this code

2009-07-13 Thread justin_davis

Hey ya'll -

Here's a strange problem.  Originally, I was getting an error in
Record.php on line 1231 using Doctrine and saving an embedded form.  I
found a hack solution to this problem here:

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

In my app, this is occuring when trying to create an sf_guard_user and
profile record together.  Per the above link, I added the following
methods to my sfGuardUserForm class:

 protected function doSave($con = null)
  {
$this-saveProfile($con);
parent::doSave($con);
  }

  public function saveProfile($con = null)
  {
$usr = $this-object-Profile;
$usr-fromArray($this-values['profile']);
$this-values['profile'] = $usr;
  }

Once I did this, I no longer got the error above, but each time I
create a new Profile object, I get two records - one with all the
right details, and one that's blank, except the sf_user_guard_id.

Here are the log lines showing the duplicate queries:

---

Jul 13 21:23:29 symfony [info] {sfDoctrineLogger} executeQuery :
INSERT INTO sf_guard_user (algorithm, is_active, is_super_admin,
username, salt, password, created_at, updated_at) VALUES
(?, ?, ?, ?, ?, ?, ?, ?) - (sha1, 1, 0, jdavistest3,
38e46915177a1e36173b86075fad360c,
d164ebb2c5a6e2b9dec0b19a6584052083becacb, 2009-07-13 21:23:29,
2009-07-13 21:23:29 )

Jul 13 21:23:29 symfony [info] {sfDoctrineLogger} executeQuery :
INSERT INTO profile (sf_guard_user_id, first_name, last_name, email,
zip) VALUES (?, ?, ?, ?, ?) - (11, fsd, fdasf, f...@fda.com, 37064 )

Jul 13 21:23:29 symfony [info] {sfDoctrineLogger} executeQuery :
DELETE FROM profile_index WHERE id = ? - (14 )

Jul 13 21:23:29 symfony [info] {sfDoctrineLogger} executeQuery :
INSERT INTO profile (sf_guard_user_id) VALUES (?) - (11 )

Jul 13 21:23:29 symfony [info] {sfDoctrineLogger} executeQuery :
DELETE FROM profile_index WHERE id = ? - (15 )

---

Obviously, I'm a bit in over my head here.  Not sure what's going on
with this - can anyone help out?

Thanks so much,

Justin


--~--~-~--~~~---~--~~
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] Flash variables lose in iframe in IE6

2009-07-13 Thread Daniel

Hi,

I'm on a symfony project, some of our page need in iframed in other
systems (with different domain), I found that the flash variables
works will if we view the pages directly, but if we visit them in the
iframe, the flash variable will lose (IE6).

It works fine in firefox.

event if I use the same domain for the iframe page and directly access
in my debug environment, the iframe page still lose the flash
variables.

I have checked a post in the group with flash lose issue, all the
causes of the issue in the post not exist in my project.

My environment: Windows XP SP2, Apache 2, PHP 5.2.6, Symfony 1.1.4.

Anybody has some ideas?

Thanks.
Daniel

--~--~-~--~~~---~--~~
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] Dynamic validation

2009-07-13 Thread nigelks

Hi,

I have a form that captures guest information but the form is related
to a event in which the administrator can change the required fields
i.e. one event may want the preferred name while another may not.

I have created a validation file with all the fields for this form and
created my own custom validator that checks if the field is required.

The problem I'm having is I can't seem to get the validator to run
correctly as I can't set the field to required but I want it to run my
custom validator. I have also tried adding a group to the fields but
this make all the fields required.

Any ideas?

Here is what I have so far

edit.yml
-
validators:
  regFormValidator:
class: myRegFormValidator
param:
  hidden_etime_id: etime_id
  reg_error: This field is required

fields:
  etime_id:
group: validate_me_group
required: true
  msg: Missing etime id
  guest{title}:
group: validate_me_group
  msg: Please select a title
  required_msg: Please select a title
regFormValidator:
  field: title
  reg_error: Please select a title
  guest{firstname}:
group: validate_me_group
  msg: Please select a firstname
  required_msg: Please select a firstname
regFormValidator:
  field: firstname
  reg_error: Please select a firstname
  guest{preferred_name}:
group: validate_me_group
  msg: Please select a preferred name
  required_msg: Please select a preferred name
regFormValidator:
  field: preferred_name
  reg_error: Please select a preferred name

---

myRegFormValidator.class.php
---
?php

class myRegFormValidator extends sfValidator
{
  public function initialize($context, $parameters = null) {
parent::initialize($context);

$this-setParameter('reg_error', 'This field is required');
$this-getParameterHolder()-add($parameters);

return true;
  }

  public function execute($value, $error) {
$field_value = trim($value);
$etime_id_param = $this-getParameter('hidden_etime_id');
$etime_id = $this-getContext()-getRequest()-getParameter
($etime_id_param);
$field = $this-getParameter('field');

$c = new Criteria();
$c-add(EtimePeer::ID, $etime_id);
$etime = EtimePeer::doSelectOne($c);

$c = new Criteria();
$c-add(RegFieldPeer::NAME, $field);
$regField = RegFieldPeer::doSelectOne($c);

$c = new Criteria();
$c-add(RegFormPeer::EVENT_ID, $etime-getEvent()-getId());
$c-add(RegFormPeer::REG_FIELD_ID, $regField-getId());
$regForm = RegFormPeer::doSelectOne($c);

if ($regForm-getRequiredField()  $field_value == ) {
  $error = $this-getParameter('reg_error');
  return false;
}

return true;
  }
}


Thanks,

Nigel

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---