[symfony-users] Re: project:disable not working

2009-10-02 Thread Steve the Canuck

Thanks!

On Oct 2, 9:41 am, Gábor Fási  wrote:
> http://www.symfony-project.org/reference/1_2/en/04-Settings#chapter_0...
>
> On Fri, Oct 2, 2009 at 15:39, Steve Sanyal  wrote:
>
> > Hi,
>
> > I'm trying to use project:disable when I perform app maintenance, but
> > it doesn't seem to work.  I see the following output:
>
> > xxx [~/x/myapp]# ./symfony project:disable frontend prod
> >>> file+     /home//myapp/data/frontend_prod.lck
> >>> enable    frontend [prod] has been DISABLED
>
> > But when I go to the application on the web it works fine.  Is there
> > something else I need to do?  I am using symfony 1.2.7.
>
> > Thanks,
> > Steve
--~--~-~--~~~---~--~~
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: Need help with symfony redirection problem/bug

2009-09-27 Thread Steve the Canuck

Hi,

I think the require_ssl is a bit of a red herring here.  The main
thing I see in the require_ssl debug points I added is that for some
reason the framework thinks my current action is "signin" whereas it
should be something else, since I already signed in and I performed a
number of other tasks.  So something seems to cause the framework to
shift into thinking I am currently in the signin action, and then it
sends me to signin.

It's very strange, because it seems like this problem can happen on
just about any page, but it happens intermittently.  Sometimes, half
the page's content will show (ie: the content from the template) and
then I will see additional content which is from the signin page.  I
don't have a output of that, but that seems very strange since it
seems like in the middle of executing a template, the application
forwarded me to the signin action and showed the template for that
action as well.

Also, I should point out it doesn't seem to occur on my development
environment (Vista/Wamp), and it only occurs on my Staging server.
The staging server uses SSL but uses a self-signed certificate.  I
have no idea if that self-signed certificate has anything to do with
this, but it's so intermittent I won't rule anything out.  That's the
problem with intermittent bugs - they are hard to reproduce. :-(

Steve

On Sep 27, 7:13 am, Alexandru-Emil Lupu  wrote:
> Also, you might try to disable that "require ssl for signing" and check if
> you are able to login. It seems that you want to authentificate, but, your
> ssl is not configured properly or it does not exist.
> Alecs
>
> On Sun, Sep 27, 2009 at 2:08 PM, Alexandru-Emil Lupu
> wrote:
>
>
>
> > Hi!
> > Usually, the problem encountered here is visible when you have in your
> > apps/appname/config/security.yml a setting like "is_secure:  on", or if in
> > the module you're trying to access you have same config option.
> > Please try to authentificate, and check to see if you encounter this
> > problem again.
>
> > Alecs
>
> > On Sat, Sep 26, 2009 at 4:49 PM, Steve Sanyal wrote:
>
> >> I'm encountering a strange bug, where, for some reason symfony seems
> >> to think the current action name is signin, whereas it should be
> >> something else.  As a result, what seems to happen is that I
> >> eventually get directed to the signin page, even though the URL still
> >> reads the same as the original page.  I have included a log report,
> >> which shows the code path somehow.  It is an intermittent bug and I am
> >> trying to determine what causes this.
>
> >> Thanks for anyone who can offer help.
>
> >> Steve
>
> >> Sep 26 00:49:04 symfony [info] {sfPatternRouting} Match route
> >> "providerManageZones" (/goalies/manage-zones) for /goalies/manage-
> >> zones.html with parameters array (  'module' => 'provider',  'action'
> >> => 'manageZones',)
> >> Sep 26 00:49:04 symfony [info] {sfFilterChain} Executing filter
> >> "sfRenderingFilter"
> >> Sep 26 00:49:04 symfony [info] {sfFilterChain} Executing filter
> >> "sfBasicSecurityFilter"
> >> Sep 26 00:49:04 symfony [info] {sfFilterChain} Executing filter
> >> "sfRenderingFilter"
> >> Sep 26 00:49:04 symfony [info] {sfFilterChain} Executing filter
> >> "sfSslRequirementFilter"
> >> Sep 26 00:49:04 symfony [debug] * SSL Filter - first call and SSL
> >> filter not disabled
> >> Sep 26 00:49:04 symfony [debug] * SSL Required: signin
> >> Sep 26 00:49:04 symfony [debug] * require_ssl for signin: 1
> >> Sep 26 00:49:04 symfony [debug] * SSL Filter - this request should
> >> be redirected to HTTPS
> >> Sep 26 00:49:04 symfony [debug] * SSL Filter - SSL Required
> >> Sep 26 00:49:04 symfony [debug] * SSL URL: signin
> >> Sep 26 00:49:04 symfony [debug] * NO SSL URL Domain setting:
> >>https://staging.goaliegigs.com/goalies/manage-zones.html
> >> Sep 26 00:49:04 symfony [info] {sfFrontWebController} Redirect to
> >> "https://staging.goaliegigs.com/goalies/manage-zones.html";
> >> Sep 26 00:49:04 symfony [info] {sfWebResponse} Send status "HTTP/1.1
> >> 302 Found"
> >> Sep 26 00:49:04 symfony [info] {sfWebResponse} Send header "Location:
> >>https://staging.goaliegigs.com/goalies/manage-zones.html";
> >> Sep 26 00:49:04 symfony [info] {sfWebResponse} Send header "Content-
> >> Type: text/html; charset=utf-8"
> >> Sep 26 00:49:04 symfony [info] {sfWebResponse} Send content (127 o)
> >> Sep 26 00:49:04 symfony [info] {sfPatternRouting} Match route
> >> "providerManageZones" (/goalies/manage-zones) for /goalies/manage-
> >> zones.html with parameters array (  'module' => 'provider',  'action'
> >> => 'manageZones',)
> >> Sep 26 00:49:04 symfony [info] {sfFilterChain} Executing filter
> >> "sfRenderingFilter"
> >> Sep 26 00:49:04 symfony [info] {sfFilterChain} Executing filter
> >> "sfBasicSecurityFilter"
> >> Sep 26 00:49:04 symfony [info] {sfFilterChain} Executing filter
> >> "sfRenderingFilter"
> >> Sep 26 00:49:04 symfony [info] {sfFilterChain} Executing filter
> >> "sfSslRequirementFilt

[symfony-users] Re: Multiple objects' forms on one page

2009-09-27 Thread Steve the Canuck

Hi,

I think the big problem I ran into is the symfony 1.2 book claims to
be the primary reference but contains no documentation on forms.  It
was a whlie before I realized I had to read the forms book too!
Regardless, the forms book doesn't have any examples on embedding.  I
had to experiment with it a bit, but I got the embedding to work, but
a lot of this really involved looking through symfony source code
since a lot of stuff really isn't documented at all. This is a big
change from me coming from the J2EE world, and it certainly doesn't
hold up to out of box sales pitch that hooked me into symfony.
Nevertheless, I really have found the framework to do pretty much
everything I want - there just isn't enough documentation yet.

If you do a search, I think you might find a post from me a couple of
months back where another user really helped me out a lot by giving a
comprehensive pseudocode example of what I needed to do.  It may help
with your learning curve.

Steve

On Sep 26, 4:15 pm, Dennis  wrote:
> I'm almost there. The Symfony 1.2 book is OK, but the website on forms
> seems a lot better. (Almost there means ready to ask more
> questions :-) The learning curve is VERY steep on this thing. Not as
> bad as reading through 'Oracle Speak' documentation, but at least 40%
> as involved.
>
> If nothing else, I will help leave a trail on this subject on the
> groups.
>
> On Sep 22, 10:10 pm, Richtermeister  wrote:
>
> > Hey Dennis,
>
> > you should be able to embed relatedformsin each other.
> > Sounds like the userform should be your starting point, and in the
> > configure function do something like:
>
> > foreach($this -> object -> getAddresses() as $key => $address)
> > {
> >   $this -> embedForm("form_".$key, new AddressForm($address);
>
> > }
>
> > It gets a little tricker when you want to create a new user and new
> > addresses at the same time, since you also need to associate the
> > entities with each other before you embed theforms, but that's the
> > general idea.. feel free to ask about specifics once you get there.
>
> > Daniel
>
> > On Sep 22, 5:02 pm, Dennis  wrote:
>
> > > No 'bytes' huh? I bought a lot of books on symfony/doctrine, guess
> > > I'll look at those.
>
> > > PS, DON'T use 'char(acter)' fields in a Doctrine/Postgresql
> > > combination. The fields stay zero padded and when a field gets edited,
> > > it ends up too long, even if the original version, unedited, is saved.
> > > Doctrine/Postgresql is not ready for prime time unless you want to
> > > work around the bugs.
>
> > > On Sep 21, 4:36 pm, Dennis  wrote:
>
> > > > If I have a table of 'users', with a table of 'addresses', and a table
> > > > of 'ramblings', how would I get either a combination of an address and
> > > > a userformson a pabe, or a user and a rambling form on apage. Any
> > > > automatic way, like in the jobeet tutorial for single table/objects?
--~--~-~--~~~---~--~~
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: Deployment problem in production

2009-09-27 Thread Steve the Canuck

Hi Alecs and everyone,

Thanks for your responses.

I'm deploying this to a Linux box running Apache.  It's a reseller
account, so I don't think I can create virtual servers.

Alecs - the solution you wrote is the one I said was not possible in
my original message.  That's because in my production account, my
public_html looks like this:

+public_html
   + subdomain1
   + addondomain1
   + addondomain2

As such, I can't create public_html as a symbolic link to {symfony}/
web.

I did find a solution to this though, which was to rearrange my
reseller account so one of my addon domains became my primary domain.
That way, I can just create my production website's domain as a
symbolic link to the symfony web directory.

What I was wondering though is if anyone has experience with using
symfony where the web directory is not at the top level of the
document root, eg: a situation like this:

+public_html
  + app1
  + app2 -> {symfony}/web

ie: maybe my domain: www.example.com has multiple applications, each
in subdirectories of public_html.  In this case the symlink to the
symfony app is from app2.  When I setup this structure, I found that
everything broke, because the document root in my symfony app is still
"/" which points to public_html, rather than public_html/app2.  I was
able to get parts of the app to work, but all my image links were
broken and all the documentation I found on symfony only shows you how
to setup the .htaccess file when symfony is in the document root.

I'm a little surprised that I've seen no examples like this, because
it would be very useful where a symfony app is part of a portal of
various content belonging to a site.

Steve

On Sep 27, 7:02 am, Alexandru-Emil Lupu  wrote:
> Judging the problem you have dscribed here, it seems that you are trying to
> deploy the project into a shared hosting system. If so, Create a symlink of
> your public_html as web.. and deploy the application in the parent directory
> of your symlink.
> example: if you have   /home/hosting/public_html/ ... create a symlink as
> /home/hosting/web ... and deploy the whole application in /home/hosting/
> folder.
> * see that is allready a tutorial on this subject on sf website or blog...
>
> If you have your own server, then configure your vhost to point somewhere
> else and deploy there.
>
> Also, after deploy.. check your config/ProjectConfiguration.class.php in
> order to match the right path to your symfony.
>
> Alecs
>
> On Sun, Sep 27, 2009 at 12:03 PM, Gareth McCumskey 
> wrote:
>
>
>
> > Use Apache virtual servers, just like it describes in the book, and you
> > can't go wrong.
>
> > On Sat, Sep 26, 2009 at 10:14 PM, Jeremy Thomerson <
> > jeremythomer...@gmail.com> wrote:
>
> >> What server are you deploying to?  Apache, IIS, etc
>
> >> On Sat, Sep 26, 2009 at 8:52 AM, Steve Sanyal 
> >> wrote:
>
> >>> Hi,
>
> >>> I'm soon to deploy my application to production.  However, I am having
> >>> some issues because of the directory structure.  On my staging
> >>> machine, I would create public_html as a soft link to my symfony web
> >>> root.  However, on production, my public_html is a real directory with
> >>> additional subdomains and addon domains inside the public_html
> >>> directory.  As such, it seems I can only create a soft link inside
> >>> public_html itself, but this breaks all my existing links with my
> >>> application, including the ability to use no_script_name.  I was
> >>> wondering if anyone else has dealt with situations like this.
>
> >>> Thanks,
> >>> Steve
>
> > --
> > Gareth McCumskey
> >http://garethmccumskey.blogspot.com
> > twitter: @garethmcc
>
> --
> 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: Expiring page when back button is pressed

2009-08-14 Thread Steve the Canuck

Hi,

I see what you're saying.  However, I believe I am doing what you say
- redirecting to a success page.  sfGuard does this for logins on its
own.

My main issue isn't that the form values aren't being cleared/flushed,
it's that other portions of the page are being cached, including pages
that simply shouldn't be displayed to a user who is not signed in.

I can show you an example of what I mean on my staging site:

http://staging.goaliegigs.com
symfuser/pwdpwd

Notice the top right section says "Signin".  Click Signin, then signin
(messier/password).  Notice the top right now says: "Welcome Mark"

Then simply hit the back button twice.  You will be back on the main
landing page, but the top right will say "Signin" again.  Of course,
if you try to signin, this won't work.  At this point, the browser
will go to the server.

Similarly, if you now click Sign Out, then you will go to a sign out
confirmation page.  But if you hit back, you will see the content you
had when you were signed in.

Somehow on the other hand, if I do similar actions on the Symfony
plugins page, it does go back to the server to refresh.  I don't know
http meta or response headers indicating no-cache or anything.  It
just seems to do it.

Thanks,
Steve



On Aug 14, 10:08 am, Phennim  wrote:
> Hey,
>
> Don't send a response to a browser's POST request. Instead, let the
> server handle the post request and then; redirect to a succes page.
> Since the browser has nothing to cache, it flushes the post variables.
> This is also good practice for SEO because now you have a unique url
> to check conversion rates. I also protect the success page with a
> flash parameter (or equivalent) which I set before the redirect so it
> can't be viewed without the required action.
>
> The only exception I allow is when there are validation errors, but
> only because it is too much of a hassle to save the error messages in
> flash for after the redirect...
>
> On Aug 14, 3:39 pm, Steve the Canuck  wrote:
>
> > Hi,
>
> > I understand the browser is caching the page, but there must be some
> > way of preventing the browser from simply caching the page, no?
>
> > If I go to the Symfony Plugins page and then login, I see the panel
> > indicate that I'm logged in.  If I hit back, I see a slightly
> > different page, shown to users who are logged in.  If I sign out, I
> > cannot hit back and see my previous content for a signed in user.
>
> > If I look at the response headers, or the html headers I don't see
> > anything that causes this refreshing behaviour.  I notice a lot of
> > ASP.Net sites that talk about how to modify this behavior but I'm
> > having trouble finding the right way to do this with PHP and symfony.
>
> > Regards,
> > Steve
>
> > PS: sorry for the late reply, I thought I had auto-notification turned
> > on for this thread.
>
> > On Aug 7, 8:50 am, "rooster (Russ)"  wrote:
>
> > > This is normal behaviour on pretty much any website. Your browser has
> > > cached the page, not the server - and when you clickbackit simply
> > > shows you the page you were just looking at, without any request to
> > > the server at all.
>
> > > Try it on a few other web sites that have login forms - you'll find
> > > it's quite common!
>
> > > Russ.
>
> > > On Aug 7, 6:24 am, Steve Sanyal  wrote:
>
> > > > Hi,
>
> > > > When I log in using sfGuardAuth, and then hit thebackbutton, I see
> > > > the login screen again and the content on the screen matches an
> > > > unauthenticated user.  I have to refresh the page to get rid of this.
>
> > > > How do I instead expire the page so it is not cached by the browser?
> > > > Do I do this through a meta tag or a header, and what should I set?
>
> > > > Thanks,
> > > > Steve
--~--~-~--~~~---~--~~
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: Expiring page when back button is pressed

2009-08-14 Thread Steve the Canuck

Hi,

I understand the browser is caching the page, but there must be some
way of preventing the browser from simply caching the page, no?

If I go to the Symfony Plugins page and then login, I see the panel
indicate that I'm logged in.  If I hit back, I see a slightly
different page, shown to users who are logged in.  If I sign out, I
cannot hit back and see my previous content for a signed in user.

If I look at the response headers, or the html headers I don't see
anything that causes this refreshing behaviour.  I notice a lot of
ASP.Net sites that talk about how to modify this behavior but I'm
having trouble finding the right way to do this with PHP and symfony.

Regards,
Steve

PS: sorry for the late reply, I thought I had auto-notification turned
on for this thread.

On Aug 7, 8:50 am, "rooster (Russ)"  wrote:
> This is normal behaviour on pretty much any website. Your browser has
> cached the page, not the server - and when you clickbackit simply
> shows you the page you were just looking at, without any request to
> the server at all.
>
> Try it on a few other web sites that have login forms - you'll find
> it's quite common!
>
> Russ.
>
> On Aug 7, 6:24 am, Steve Sanyal  wrote:
>
> > Hi,
>
> > When I log in using sfGuardAuth, and then hit thebackbutton, I see
> > the login screen again and the content on the screen matches an
> > unauthenticated user.  I have to refresh the page to get rid of this.
>
> > How do I instead expire the page so it is not cached by the browser?
> > Do I do this through a meta tag or a header, and what should I set?
>
> > Thanks,
> > Steve
--~--~-~--~~~---~--~~
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: Get record values before save()

2009-07-09 Thread Steve the Canuck

I think we're on the same page for the most part.  I think our
differences may be what we consider to be apples to apples
comparisons.  SQL itself is built on a common specification that is
interoperable across most major database flavors, but as you said -
custom features of a particular database is where things get
dangerous.  I guess I just wouldn't put triggers in the same
category.  There might be some syntactic differences, but conceptually
triggers are quite similar across databases and migration would not
pose a huge risk to any novice DBA, and will buy you better efficiency
and separation of concern.

I totally agree with you that if you are going with an ORM package
(doctrine, propel, hibernate), it's a good idea to avoid custom
queries.

I share your 'you never know what's going to happen belief also.'  My
bread and butter for the past several years has been as a J2EE
architect and DB2 author.  But I decided to take some time off this
year to build an app for a business idea I've had for a while related
to adult hockey.  I decided to use symfony and PHP - both of which are
completely new to me.  I've come across a lot of situations I wasn't
prepared for, and in many cases revisiting decisions I made earlier
when I had less experience with the technology.

Cheers,
Steve

On Jul 10, 1:29 am, Gareth McCumskey  wrote:
> Agreed to some degree. I have found though that the problem with large
> projects (and even small ones) is the stuff you have not predicted so
> leaving your options open is the best bet. Example: We are working on a
> rather large application developed in symfony and we will only ever use the
> application on MySQL and knew this from the start. However we have still
> built the application keeping its abstract nature as far as we can. Good
> thing we did. Out of the blue the MD suddenly asked if it was possible for
> us to sell the product. Obviously being able to easily support multiple
> database types is a good thing and something we didn't expect at the outset.
>
> Now to ensure that the application is compatible with multiple database
> types is a doddle compared to what it would have been had we used a bunch of
> custom SQL queries and MySQL triggers. My point is, you never know what can
> happen, and this is only ONE example of many such experiences I have had
>
> On Thu, Jul 9, 2009 at 4:57 PM, Steve the Canuck 
> wrote:
>
>
>
>
>
> > Agreed.  And if you want to just pick up your application and migrate
> > it to another database with no hassles, then you are better off
> > building an application based solution to this kind of problem such as
> > what symfony offers.
>
> > However, IMHO the application based solution is not as architecturally
> > sound, less efficient, and you should only use the application based
> > solution if you are concerned that your database product may lack
> > certain important features as you suggested.
>
> > But besides that, there are other considerations such as
> > interoperability - what if you want to access the database using
> > another client, perhaps even a non-symfony/non-PHP application?
>
> > My preference is to implement a particular functionality using the
> > piece of my architecture which is most equipped to handle it.  I see
> > applications doing things that databases are designed to do.
>
> > I feel that things like the CREATED_AT and UPDATED_AT behavior
> > features in symfony are really the job of the database.  That said,
> > this is my first foray with using a free database product (MySQL), so
> > I may eat my words... we will see! :-)
>
> > Steve
>
> > On Jul 9, 10:14 am, Gareth McCumskey  wrote:
> > > Just one comment on a trigger. They work great but they will break any
> > > database abstraction you are hoping for in as much as triggers are unique
> > > for specific database implementations and some don't even support them.
> > This
> > > then breaks one of (in my opinion) symfony's biggest strengths is
> > database
> > > agnosticism (if there is such a word lol)
>
> > > On Thu, Jul 9, 2009 at 3:37 PM, Steve the Canuck  > >wrote:
>
> > > > The best way to do this is create an audit table and write a simple
> > > > trigger to insert records on each change
>
> > > > If you want to do it programmatically you can create a behavior.
>
> > > > Steve
> > > > On Jul 9, 9:14 am, Tom Haskins-Vaughan 
> > > > wrote:
> > > > > sf1.2 doctrine
>
> > > > > Hi,
>
> > > > > I'm trying to create a change log for a table and I was wondering if
> > > > &

[symfony-users] Re: generate url in symfony task

2009-07-09 Thread Steve the Canuck

One update do this - I omitted below that you also need to change the
'prefix' in the context array, which I also obtain via lookup.  For
development, it's: '/frontend_dev.php'.

Thanks,
Steve

On Jul 9, 3:15 am, Steve the Canuck  wrote:
> There are some other posts on this, and a lot of people seem to set
> $_SERVER['HOST'] using a value in the app.yml.  I didn't find that
> works for my links (which all use pattern routing).  I store my host
> in my app.yml, but I do this slightly differently:
>
> 1) Create a dummy default web context.
> 2) Update the router in your default context so you replace the host
> parameter
>
> Code is below:
>
>     $configuration = ProjectConfiguration::getApplicationConfiguration
>     ($options['application'], $options['aux-env'], true);
>     $context = sfContext::getInstance('default');
>     $routing = $context->getRouting();
>     $host = sfConfig::get('app_routing_webhost');
>     $options = $routing->getOptions();
>     $options['context']['host'] = $host;
>     $routing->initialize($this->dispatcher, $routing->getCache(),
> $options);
>     $context->set('routing', $routing);
>
> On Jun 5, 5:25 pm, Jack Bates  wrote:
>
> > How do I generate aURLin atask?
>
> > I can generate URLs in templates - how do I generate aURLin lib/task/
> > MyTask.class.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: Deployment Strategies

2009-07-09 Thread Steve the Canuck

I'm still in the latter stages of development, but my strategy is to
allow my deployment to easily rollback to the previous version and
avoid any mistakes in terms of SVN syncing.

I see it going something like this:

load desired svn tag in my development copy
smoke test development copy
disable development copy
backup (copy) staging environment using a script (remove previous
backup on completion)
disable staging copy
project:deploy from my development environment to a staging
environment
prep staging environment using a script (eg: rename controllers from
non-PHP to PHP, rename rsync ignore file and use a version for
staging, clear cache, etc)
enable staging application
smoke test on staging environment
backup (copy) production environment using a script (remove previous
backup on completion)
disable staging and production applications
project:deploy from my staging environment to my production
environment
prep production environment (similar to staging)
enable production application

I haven't tried it all of it yet, so I will have to work out the
kinks.

Steve


On Jul 9, 5:53 am, Bernhard Schussek  wrote:
> Hi,
>
> After an interesting discussion with Jon and Russ
> (http://trac.symfony-project.org/ticket/6708) I would like to open a
> follow-up thread.
>
> What are your strategies for initial application deployment and for
> delivering updates? Do you do a SVN checkout on the server or use the
> project:deploy task? If you are using Doctrine, do you always write
> migrations manually when making changes to the schema? What are the
> reasons why you chose your deployment strategy?
>
> I'm hoping for interesting reads :-)
>
> Bernhard
--~--~-~--~~~---~--~~
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: Get record values before save()

2009-07-09 Thread Steve the Canuck

Agreed.  And if you want to just pick up your application and migrate
it to another database with no hassles, then you are better off
building an application based solution to this kind of problem such as
what symfony offers.

However, IMHO the application based solution is not as architecturally
sound, less efficient, and you should only use the application based
solution if you are concerned that your database product may lack
certain important features as you suggested.

But besides that, there are other considerations such as
interoperability - what if you want to access the database using
another client, perhaps even a non-symfony/non-PHP application?

My preference is to implement a particular functionality using the
piece of my architecture which is most equipped to handle it.  I see
applications doing things that databases are designed to do.

I feel that things like the CREATED_AT and UPDATED_AT behavior
features in symfony are really the job of the database.  That said,
this is my first foray with using a free database product (MySQL), so
I may eat my words... we will see! :-)

Steve

On Jul 9, 10:14 am, Gareth McCumskey  wrote:
> Just one comment on a trigger. They work great but they will break any
> database abstraction you are hoping for in as much as triggers are unique
> for specific database implementations and some don't even support them. This
> then breaks one of (in my opinion) symfony's biggest strengths is database
> agnosticism (if there is such a word lol)
>
> On Thu, Jul 9, 2009 at 3:37 PM, Steve the Canuck 
> wrote:
>
>
>
>
>
> > The best way to do this is create an audit table and write a simple
> > trigger to insert records on each change
>
> > If you want to do it programmatically you can create a behavior.
>
> > Steve
> > On Jul 9, 9:14 am, Tom Haskins-Vaughan 
> > wrote:
> > > sf1.2 doctrine
>
> > > Hi,
>
> > > I'm trying to create a change log for a table and I was wondering if
> > > there was a way to get the values of a record before they were modified
> > > so that I could add them to the log:
>
> > > in the save method:
>
> > > $log = new Log()
>
> > > $log->old_value = $this->getOldValue();
> > > $log->new_value = $this->value;
>
> > > $log->save();
>
> > > Any ideas?
>
> > > Thanks.
>
> > > Tom
>
> --
> 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] Re: Get record values before save()

2009-07-09 Thread Steve the Canuck

Unforntately, I haven't used Doctrine.  Sorry.

On Jul 9, 10:22 am, Rene  wrote:
> Hi Steve,
>
> Do you known a way to do that with doctrine integrated tools?
> Currently i use my "getModified()" way ...
>
> Thank you,
> Rene Jochum
>
> Steve the Canuck schrieb:
>
>
>
> > The best way to do this is create an audit table and write a simple
> > trigger to insert records on each change
>
> > If you want to do it programmatically you can create a behavior.
>
> > Steve
> > On Jul 9, 9:14 am, Tom Haskins-Vaughan 
> > wrote:
> >> sf1.2 doctrine
>
> >> Hi,
>
> >> I'm trying to create a change log for a table and I was wondering if
> >> there was a way to get the values of a record before they were modified
> >> so that I could add them to the log:
>
> >> in the save method:
>
> >> $log = new Log()
>
> >> $log->old_value = $this->getOldValue();
> >> $log->new_value = $this->value;
>
> >> $log->save();
>
> >> Any ideas?
>
> >> Thanks.
>
> >> 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] Re: Get record values before save()

2009-07-09 Thread Steve the Canuck


The best way to do this is create an audit table and write a simple
trigger to insert records on each change

If you want to do it programmatically you can create a behavior.

Steve
On Jul 9, 9:14 am, Tom Haskins-Vaughan 
wrote:
> sf1.2 doctrine
>
> Hi,
>
> I'm trying to create a change log for a table and I was wondering if
> there was a way to get the values of a record before they were modified
> so that I could add them to the log:
>
> in the save method:
>
> $log = new Log()
>
> $log->old_value = $this->getOldValue();
> $log->new_value = $this->value;
>
> $log->save();
>
> Any ideas?
>
> Thanks.
>
> 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] Re: generate url in symfony task

2009-07-09 Thread Steve the Canuck

There are some other posts on this, and a lot of people seem to set
$_SERVER['HOST'] using a value in the app.yml.  I didn't find that
works for my links (which all use pattern routing).  I store my host
in my app.yml, but I do this slightly differently:

1) Create a dummy default web context.
2) Update the router in your default context so you replace the host
parameter

Code is below:

$configuration = ProjectConfiguration::getApplicationConfiguration
($options['application'], $options['aux-env'], true);
$context = sfContext::getInstance('default');
$routing = $context->getRouting();
$host = sfConfig::get('app_routing_webhost');
$options = $routing->getOptions();
$options['context']['host'] = $host;
$routing->initialize($this->dispatcher, $routing->getCache(),
$options);
$context->set('routing', $routing);


On Jun 5, 5:25 pm, Jack Bates  wrote:
> How do I generate aURLin atask?
>
> I can generate URLs in templates - how do I generate aURLin lib/task/
> MyTask.class.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: How do I call a non SUCCESS using setTemplate?

2009-07-07 Thread Steve the Canuck

Thanks for the replies.  Normally, I use partials and do return custom
view strings.  This case is a bit different.  I have a few variations
of an action:

applyToReservation, applyToImmediateReservation, etc.

Some of the non SUCCESS views are the same for these actions, so I
placed them in applyToReservation, ie: applyToReservationIneligible.

So, in applyToImmediateReservation, I wanted to call setTemplate() to
call the Ineligible view.

>From your replies, I guess I am better off creating  a partial with
the Ineligible content for all of these actions, and then just
returning Ineligible in each.

Thanks,
Steve

On Jul 7, 10:58 am, Bernhard Schussek  wrote:
> As Marijn said, either return sfView::ERROR or a custom string, like
> 'Ineligible'. This will result in the actions
>
> templateNameError.php and
> templateNameIneligible.php
>
> being used. "templateName" is the name of your action by default, but
> can be changed using setTemplate().
>
> Bernhard
--~--~-~--~~~---~--~~
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: Undefined method error due to __call method in model objects

2009-07-02 Thread Steve the Canuck

Very strange, if instead I do this:

  if($this->hasTimeConflict($reservProv))

It seems to work fine.  I'm not sure why PHP is finding the method in
this case, but not the other case.  The signature is quite simple:

  public function hasTimeConflict(ReservProvider $otherReservProv)

Very strange...

On Jul 2, 2:51 pm, Steve Sanyal  wrote:
> Hi,
>
> It seems like the base model object __call method is actually
> preventing me from calling methods defined in the subclass.
>
> I have a model object called ReservProvider.  In it, I have the
> following code:
>
>     foreach($reservProvs as $reservProv)
>     {
>       if($reservProv->hasTimeConfict($this))
>       {
>         $reservProv->delete();
>       }
>     }
>
> This code calls "hasTimeConflict" on a second reservProvider object.
> However, this is failing due to the __call method in the
> BaseReservProvider object:
>
>     if (!$callable = sfMixer::getCallable('BaseReservProvider:'.
> $method))
>     {
>       throw new sfException(sprintf('Call to undefined method
> BaseReservProvider::%s', $method));
>     }
>
> I believe this code may have worked at an earlier version (1.2.5?),
> but I recently upgraded to 1.2.7.  Does anyone know why this might be
> happening, and how I should go about enabling calls to user functions?
>
> Regards
> Steve
--~--~-~--~~~---~--~~
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: Conditional forward404 performance

2009-06-24 Thread Steve the Canuck

Thanks.  Yes it looks like I'll want to refactor this stuff.  I use
this code on almost every call.

On Jun 24, 4:41 am, Fabian Lange 
wrote:
> Hello,
> Yes PHP will process the whole instruction, because it needs to gather
> all information before making the method call.
> You need to split this yourself if you have expensive calculations in
> the second argument.
>
> if ( $action->getUser()->getProviderId() !=
> $action->reservProvider->getProviderId() ){
>   $action->forward404(self::genLogMessage($action, ': consumer id does
> not match: actual: '.$action->getUser()->getConsumerId().' expected:
> '.$action->reservation->getConsumerId()));
>
> }
>
> The same applies for performance critical logger instructions which
> are usually wrapped in some kind of if($debug){ }
>
> Note that this only really matters on highly frequented code, because
> usually your logmessage construction is cheap.
>
> Fabian
>
>
>
> On Wed, Jun 24, 2009 at 6:22 AM, Steve Sanyal wrote:
>
> > Hi,
>
> > I have a bunch of calls that use conditional forward404s, such as:
>
> >        $action->forward404Unless($action->getUser()->getProviderId()
> > == $action->reservProvider->getProviderId(), self::genLogMessage
> > ($action, ': consumer id does not match: actual: '.$action->getUser()-
> >>getConsumerId().' expected: '.$action->reservation->getConsumerId
> > ()));
>
> > There is a message logged in each case.  The thing is, the message
> > really only needs to be generated if the 404 action is to be executed.
>
> > Does anyone know if PHP will process the complete forward404
> > {condition} line if the terms of the condition are not met?
>
> > ie: in the case above, if the user's providerId == the
> > reservProvider's providerId, will the log message portion of the call
> > be evaluated?
>
> > If so, I'd think it would be better in all cases to avoid using
> > conditional forward404's and instead have a separate if block to
> > process the condition.
>
> > Thanks,
> > Steve- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
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] Context inside tasks

2009-06-11 Thread Steve the Canuck

I found some more messages on this after digging and going through
source.  I can see why the symfony develolpers wanted to simplify
tasks so they don't require contexts.  Unfortunately, it also means
that a lot of code may not be reusable in tasks.  I'm not sure if
there is a happy balance that can be struck.

I saw some hacks - people patching the sfTask itself.  I'd rather not
do that.  Here is my own "hack" attempting to be as reverse-compatible
as possible if and when I upgrade the core packages.

add an option in configure - this is a "dummy" environment's
configuration, used to create an application context, rather than
the :

new sfCommandOption('auxEnv', null,
sfCommandOption::PARAMETER_REQUIRED, 'The environment used for
logging', 'dev')

add the following into your task (or in a superclass):

  protected function setupAuxEnv($arguments = array(), $options = array
())
  {
// setup a context so we can log
$this->log('Initialize auxillary context');
$configuration = ProjectConfiguration::getApplicationConfiguration
($options['application'], $options['auxEnv'], true);
sfContext::createInstance($configuration, 'default');

// Now override the logger so that we use the same logging as
// the task
$logger = new sfTaskLogger($this->dispatcher, array('level' =>
'debug'));
sfContext::getInstance('default')->set('logger', $logger);
  }

Create a simple task logger to wrap the existing logging ability of
the task:

class sfTaskLogger extends sfLogger
{
  protected $dispatcher = null;

  public function __construct(sfEventDispatcher $dispatcher, $options
= array())
  {
$this->initialize($dispatcher, $options);
if (!isset($options['auto_shutdown']) || $options
['auto_shutdown'])
{
  register_shutdown_function(array($this, 'shutdown'));
}
  }

  public function initialize(sfEventDispatcher $dispatcher, $options =
array())
  {
if (isset($options['level']))
{
  $this->setLogLevel($options['level']);
}
$this->dispatcher = $dispatcher;
  }

  protected function doLog($message, $priority)
  {
$this->dispatcher->notify(new sfEvent($this, 'command.log', array
($message)));
  }
}




On Jun 11, 2:14 pm, Steve Sanyal  wrote:
> Hi,
>
> Do you know how to enable logging in code called by a task?
>
> In the task itself you can use the sfTask::log function, but my task
> invokes other classes, some of which also contain logging.
>
> My log statements are not printing out.  It seems the context doesn't
> get setup by the task to provide logging perhaps?
>
> Steve
--~--~-~--~~~---~--~~
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: Out of memory error with propel:data-load

2009-06-11 Thread Steve the Canuck

Thanks!  I was thinking of this kind of solution also, but I wasn't
sure how long it would take me to figure out.  I'm mostly a Java/J2EE
guy, so PHP is a bit new to me.

I am curious to hear what the comments on this patch will be after
review.

Steve

On Jun 11, 4:49 am, Sergey Stepanov  wrote:
> Try this.
>
> http://trac.symfony-project.org/ticket/6226
>
> On 11.06.2009, at 9:54, pghoratiu wrote:
>
>
>
>
>
> > Hi!
>
> > I had some problems also with php memory collection, the main problem
> > was with circular reference used in propel when dealing objects.
>
> > 1. Circular reference - having two related objects A, B the following
> > will generate a memory leak becase A is referencing object B and B is
> > referencing object A at the same time:
> > A->add(B);
> > A->save();
>
> > but if you save each object one by one without trying to save them at
> > once it should work fine:
> > A->save()
> > B->setWhateverId(A->getId())
> > B->save()
>
> > When you have a php script running on the server web server it's not a
> > big problem because the process completes quickly and all alocated
> > memory is released, problems are usually with CLI and long running
> > processes.
>
> > 2. Another thing to watch out if you manipulate large number of
> > objects within a function, the objects are released only after the
> > function completes. This depends on the given situation, i did not
> > encounter problems with this myself.
>
> >    gabriel
>
> > On Jun 10, 9:25 pm, Nickolas Daskalou  wrote:
> >> Could be due to PHP's garbage collection not working properly on  
> >> some types
> >> of objects. I remember reading about it a while ago, not sure if  
> >> there is a
> >> fix for it yet.
>
> > >
> --
> SAD Group - web & software development subcontractor
> Sergey Stepanov
> E-mail: ser...@sadgroup.com
> Mobile: +375-297518326
>
>  smime.p7s
> 5KViewDownload

--~--~-~--~~~---~--~~
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: Out of memory error with propel:data-load

2009-06-11 Thread Steve the Canuck

Yes inadequate resources would be my concern also, if it were to occur
in other cases.  I'm using a hosting provider which was recommended as
a symfony friendly provider on the website.  They have provided very
good support so far.  They told me the next time the problem happens,
they can monitor it live to see what is occurring.  I will probably
try to recreate the issue in the next few days, when I make any non-
reverse compatible database changes..

It's only in loadData that I deal with a large number of rows like
this.  Cross your fingers, but it should only happen for me in this
situation, and I only need to load the data once.

Cheers,
Steve

On Jun 11, 8:35 am, Gareth McCumskey  wrote:
> The OP did say that the problem seemed intermittent. If it was a problem
> with Propel or symfony then it would be consistent unless the OP is
> constantly editing Propel or symfony code between runs.
>
> Could it be that being on a shared host that the memory usage settings are
> related to other users as well? THis would explain the randomness of the
> results as you cannot control what memory other users might be consuming.
>
> If this -is- the case, then you need to seriously consider changing hosts as
> this is not a good problem to be having and there are plenty of others out
> there. Hell if your so inclined even look at services like linode.com where
> you can setup your own server very cheaply
>
>
>
> On Thu, Jun 11, 2009 at 8:54 AM, pghoratiu  wrote:
>
> > Hi!
>
> > I had some problems also with php memory collection, the main problem
> > was with circular reference used in propel when dealing objects.
>
> > 1. Circular reference - having two related objects A, B the following
> > will generate a memory leak becase A is referencing object B and B is
> > referencing object A at the same time:
> > A->add(B);
> > A->save();
>
> > but if you save each object one by one without trying to save them at
> > once it should work fine:
> > A->save()
> > B->setWhateverId(A->getId())
> > B->save()
>
> > When you have a php script running on the server web server it's not a
> > big problem because the process completes quickly and all alocated
> > memory is released, problems are usually with CLI and long running
> > processes.
>
> > 2. Another thing to watch out if you manipulate large number of
> > objects within a function, the objects are released only after the
> > function completes. This depends on the given situation, i did not
> > encounter problems with this myself.
>
> >    gabriel
>
> > On Jun 10, 9:25 pm, Nickolas Daskalou  wrote:
> > > Could be due to PHP's garbage collection not working properly on some
> > types
> > > of objects. I remember reading about it a while ago, not sure if there is
> > a
> > > fix for it yet.
>
> --
> 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] Out of memory error with propel:data-load

2009-06-10 Thread Steve the Canuck

The propel:data-load task is running out of memory on my staging
environment.  I have about 10K records to include in my initial load.
I don't have an issue on my laptop which I use for development, but I
run into problems in a shared hosting environment.

Does anyone know of any workarounds to this or solutions?  I read one
suggestion to write my own task - ideally if someone has already
created a generic alternative I might be able to use that.

Thanks,
Steve
--~--~-~--~~~---~--~~
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: Referer problem with sfGuardPlugin

2009-06-03 Thread Steve the Canuck

I've figured out what I need to change for this, but I don't
understand why other people wouldn't have the same problem.  I changed
the following line in BasesfGuardAuthAction:

$user->setReferer($this->getContext()->getActionStack()->getSize() >
1 ? $request->getUri() : $request->getReferer());

to:

$user->setReferer($this->getContext()->getActionStack()->getSize() >
1 ? $request->getUri() : false);

ie: if the action stack is not greater than 1, then I didn't get sent
to the signin as a result of a forward.  As such, I wouldn't want to
necessarily use the referer.

Otherwise, I run into situations like this:

1) If I signout of the application, and then click on the Signin link,
the referer is the Signout URL, and after logging in, I am sent to the
Signout URL
2) If I click on a registration confirmation, and then click on the
Signin link, I am sent back to the registration confirmation after
signing in

Thanks,
Steve

On Jun 3, 11:46 pm, Steve the Canuck  wrote:
> Hi,
>
> I'm getting a problem.  I have a registration confirmation screen
> which the user gets to by clicking on a link in an email.
>
> After getting a confirmation, the user can login.  However,
> sfGuardPlugin sends the user to the referer if there is a referer.
>
> It seems that this is causing the code to go back to the registration
> confirmation page!
>
> What's strange is this didn't happen in the past.  I updated the
> sfGuardPlugin today to 1.2 and this started happening.
>
> I tried to set the referer to false in my registration confirmation
> action, but it seems like the Signin module still gets it.
>
> Has anyone else encountered something like this?
>
> Thanks,
> Steve
--~--~-~--~~~---~--~~
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] Referer problem with sfGuardPlugin

2009-06-03 Thread Steve the Canuck

Hi,

I'm getting a problem.  I have a registration confirmation screen
which the user gets to by clicking on a link in an email.

After getting a confirmation, the user can login.  However,
sfGuardPlugin sends the user to the referer if there is a referer.

It seems that this is causing the code to go back to the registration
confirmation page!

What's strange is this didn't happen in the past.  I updated the
sfGuardPlugin today to 1.2 and this started happening.

I tried to set the referer to false in my registration confirmation
action, but it seems like the Signin module still gets it.

Has anyone else encountered something like this?

Thanks,
Steve
--~--~-~--~~~---~--~~
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] Setting labels and help messages

2009-06-03 Thread Steve the Canuck

I was wondering if anyone has devised a method to set all the labels
and help messages using some sort of lookup technique from a
configuration file?

Ideally, it would be great to do this for validation error messages
also.

Steve
--~--~-~--~~~---~--~~
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] Rendering multi-field widgets

2009-06-02 Thread Steve the Canuck

I've created a div formatter and it works great for most of my
widgets.  The only exception are multi-field widgets, such as dates
and times.  I would like to a have a label on each of the sub-widgets
and the easiest way to do this would be to simply render it like three
separate rows.  Is there an easy way to do this?

I'm going through the renderRow() code in sfFormField and I can't see
an easy solution because this method first calls renderField, which
just returns back the inputs, and then calls formatRow to add the
label and other row information.

Steve
--~--~-~--~~~---~--~~
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: FormSchemaFormatter - access to validator schema

2009-06-02 Thread Steve the Canuck

These articles were very useful.  I went through them though and I
think there is a better way to do this than to override symfony
classes.

I created the following:

BaseWidgetFormSchemaFormatterRequired: This formatter has the
validator schema as a property and my formatters all extend this one.

I modified the following:

BaseFormPropel.php: This is generated when you build your forms, but
if you modify it, it won't get regenerated and replaced.  So, it just
takes a few lines of code to set the formatter in each form to be the
one I want.

There are definitely some things here I find weird:

addFormFormatter:  I think this should really be a lookup based on
some sort of configuration that contains your list of name/classNames
for formatters.  It seems kind of odd to create a table of form
formatters for each individual widget schema.

However, even if I find it weird, I don't need to modify base classes
to get this working, or individually modify every form, which is what
my main concern was.

Thanks!

Steve

On May 28, 7:29 pm, wik  wrote:
> Did you seen this 
> one?http://dark-it.blogspot.com/2009/01/symfony-mark-fields-as-required-p...
> Supposed to use custom base class.
>
> I had similar circumstances a while ago and also was going about to
> override symfony class which sets the formatter. But has limited time
> and above solution has been used :)
>
> ## Another idea I has(from notes), but based on above one
>
>  1. Create myWidgetFormSchema
>  2. Override renderField and render methods (inject the class of
> widget as parameter)
>  3. Create sfWidgetFormSchemaFormatterDiv, override formatRow method
> to fit to myWidgetFormSchema, add new logic to determine current field
> type.
>
> ## Usage:
>
> //in frontendConfiguration
> myWidgetFormSchema::setDefaultFormFormatterName('div');
>
> ## Improving the Forms: Layouts and Formatters
>
> Make sure to check this one 
> ;)http://webmozarts.com/2009/04/23/improving-the-forms-layouts-and-form...
>
> Thanks.
>
> On May 28, 11:08 pm, Steve the Canuck  wrote:
>
> > I have seen a few solutions to give the form schema formatter to get
> > access to the validator schema for the form in order to do things like
> > output the name of a required field.
>
> > Adding the validator schema requires you to do so manually (either in
> > the form itself, or using a helper in the template).
>
> > I'm wondering if the Symfony folks are incorporating this into the
> > framework anytime soon?
>
> > Is there a cleaner way anyone has come across to do this?  Ideally, I
> > would prefer to do something like override the Symfony class which
> > sets the formatter rather than edit every form and/or remove the
> > helpers if this becomes a common property of all formatters.
>
> > Steve

On May 28, 7:29 pm, wik  wrote:
> Did you seen this 
> one?http://dark-it.blogspot.com/2009/01/symfony-mark-fields-as-required-p...
> Supposed to use custom base class.
>
> I had similar circumstances a while ago and also was going about to
> override symfony class which sets the formatter. But has limited time
> and above solution has been used :)
>
> ## Another idea I has(from notes), but based on above one
>
>  1. Create myWidgetFormSchema
>  2. Override renderField and render methods (inject the class of
> widget as parameter)
>  3. Create sfWidgetFormSchemaFormatterDiv, override formatRow method
> to fit to myWidgetFormSchema, add new logic to determine current field
> type.
>
> ## Usage:
>
>     //in frontendConfiguration
>     myWidgetFormSchema::setDefaultFormFormatterName('div');
>
> ## Improving the Forms: Layouts and Formatters
>
> Make sure to check this one 
> ;)http://webmozarts.com/2009/04/23/improving-the-forms-layouts-and-form...
>
> Thanks.
>
> On May 28, 11:08 pm, Steve the Canuck  wrote:
>
> > I have seen a few solutions to give the form schema formatter to get
> > access to the validator schema for the form in order to do things like
> > output the name of a required field.
>
> > Adding the validator schema requires you to do so manually (either in
> > the form itself, or using a helper in the template).
>
> > I'm wondering if the Symfony folks are incorporating this into the
> > framework anytime soon?
>
> > Is there a cleaner way anyone has come across to do this?  Ideally, I
> > would prefer to do something like override the Symfony class which
> > sets the formatter rather than edit every form and/or remove the
> > helpers if this becomes a common property of all formatters.
>
> > Steve
--~--~-~--~~~---~--~~
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] embedding a form... sometimes

2009-06-02 Thread Steve the Canuck

Hi,

I've been able to successfully embed forms, however, I have some cases
in which I have what is essentially a "conditional" embedded form.  I
only need the embedded sub-form if the user selects a particular
option.

Does anyone have solutions to this?  The one that comes to mind would
be:

1) Using inheritance - create two versions of the form - one with the
embedded form, and one without.
2) Before binding, decide which subclass to instantiate when you
instantiate the form to handle the request.

The one thing I don't really like about this though is the logic ends
up being in the action, rather than in the form itself.

Has anyone else solved this kind of problem?

Thanks

Steve
--~--~-~--~~~---~--~~
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: FormSchemaFormatter - access to validator schema

2009-06-02 Thread Steve the Canuck

Thanks so much!

I'll take a look at these.

Cheers,
Steve

On May 28, 7:29 pm, wik  wrote:
> Did you seen this 
> one?http://dark-it.blogspot.com/2009/01/symfony-mark-fields-as-required-p...
> Supposed to use custom base class.
>
> I had similar circumstances a while ago and also was going about to
> override symfony class which sets the formatter. But has limited time
> and above solution has been used :)
>
> ## Another idea I has(from notes), but based on above one
>
>  1. Create myWidgetFormSchema
>  2. Override renderField and render methods (inject the class of
> widget as parameter)
>  3. Create sfWidgetFormSchemaFormatterDiv, override formatRow method
> to fit to myWidgetFormSchema, add new logic to determine current field
> type.
>
> ## Usage:
>
>     //in frontendConfiguration
>     myWidgetFormSchema::setDefaultFormFormatterName('div');
>
> ## Improving the Forms: Layouts and Formatters
>
> Make sure to check this one 
> ;)http://webmozarts.com/2009/04/23/improving-the-forms-layouts-and-form...
>
> Thanks.
>
> On May 28, 11:08 pm, Steve the Canuck  wrote:
>
> > I have seen a few solutions to give the form schema formatter to get
> > access to the validator schema for the form in order to do things like
> > output the name of a required field.
>
> > Adding the validator schema requires you to do so manually (either in
> > the form itself, or using a helper in the template).
>
> > I'm wondering if the Symfony folks are incorporating this into the
> > framework anytime soon?
>
> > Is there a cleaner way anyone has come across to do this?  Ideally, I
> > would prefer to do something like override the Symfony class which
> > sets the formatter rather than edit every form and/or remove the
> > helpers if this becomes a common property of all formatters.
>
> > Steve
--~--~-~--~~~---~--~~
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] FormSchemaFormatter - access to validator schema

2009-05-28 Thread Steve the Canuck

I have seen a few solutions to give the form schema formatter to get
access to the validator schema for the form in order to do things like
output the name of a required field.

Adding the validator schema requires you to do so manually (either in
the form itself, or using a helper in the template).

I'm wondering if the Symfony folks are incorporating this into the
framework anytime soon?

Is there a cleaner way anyone has come across to do this?  Ideally, I
would prefer to do something like override the Symfony class which
sets the formatter rather than edit every form and/or remove the
helpers if this becomes a common property of all formatters.

Steve
--~--~-~--~~~---~--~~
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: Detecting required fields

2009-05-26 Thread Steve the Canuck

Thanks!

On May 21, 1:04 pm, gimler  wrote:
> http://blog.nevalon.de/en/wie-kann-ich-alle-formular-pflichtfelder-mi...
>
> greetings
> Gimler
>
> On May 21, 6:17 pm, Steve the Canuck  wrote:
>
> > Hi,
>
> > Is there an easy way to determine if a field isrequiredprior to
> > rendering it?  I'd like to render it with an * beside the label tag if
> > it isrequired.  I don't see a method like isRequired() built into the
> > sfForm class, but I was wondering if anyone has a solution for this?
>
> > If not, I will probably just create a helper to do this.
>
> > Thanks
> > Steve
--~--~-~--~~~---~--~~
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] Detecting required fields

2009-05-21 Thread Steve the Canuck

Hi,

Is there an easy way to determine if a field is required prior to
rendering it?  I'd like to render it with an * beside the label tag if
it is required.  I don't see a method like isRequired() built into the
sfForm class, but I was wondering if anyone has a solution for this?

If not, I will probably just create a helper to do this.

Thanks
Steve
--~--~-~--~~~---~--~~
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] yaml config file array syntax

2009-05-08 Thread Steve the Canuck

I'm trying to retrieve the following as an array from my app.yml:

app_paypal_postback_status

I've tried the following configurations but neither works.  What I am
I doing wrong?

Thanks!

all:
  paypal:
postback:
  timeout: 30
  status:
.array:
   new:  W
   verified: V
   invalid:  I
   failed:   F

I've also tried:

all:
  paypal:
postback:
  timeout: 30
  .array:
status:
   new:  W
   verified: V
   invalid:  I
   failed:   F


--~--~-~--~~~---~--~~
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] Syntax for embedded forms

2009-05-07 Thread Steve the Canuck

I have embedded one form in another.  What's the syntax for accessing
the field?

For example, I have ConsumerForm embedded in UserForm.  The consumer
has a first_name field.

I've tried:

first_name
consumer_first_name
consumer[first_name]

in my templates, but none of them work.

Thanks for your help.

Steve
--~--~-~--~~~---~--~~
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 choice form - multi-select

2009-05-07 Thread Steve the Canuck

I should have titled this many-to-many.

Basically all I'm looking for is an example of how to implement many
to many relationships in forms.

Thanks,
Steve

On May 7, 1:21 pm, Steve the Canuck  wrote:
> Hi,
>
> I am having some form troubles.  I have a select dropdown which allows
> you select multiple options.  If you select two options, I want to
> insert to records into the database.
>
> Here is a simple representation of the tables:
>
> User <--- UserLevel ---> Level
>
> So, I use the UserLevelForm and select multiple level choices, this
> seems to confuse symfony, as it seems the Form is bound to a single
> UserLevel row, rather than 3.
>
> Has anyone come across anything similar, and come up with a solution?
>
> Thanks,
> Steve
--~--~-~--~~~---~--~~
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 choice form - multi-select

2009-05-07 Thread Steve the Canuck

Hi,

I am having some form troubles.  I have a select dropdown which allows
you select multiple options.  If you select two options, I want to
insert to records into the database.

Here is a simple representation of the tables:

User <--- UserLevel ---> Level

So, I use the UserLevelForm and select multiple level choices, this
seems to confuse symfony, as it seems the Form is bound to a single
UserLevel row, rather than 3.

Has anyone come across anything similar, and come up with a solution?

Thanks,
Steve
--~--~-~--~~~---~--~~
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: Strange problem with autoloading

2009-05-03 Thread Steve the Canuck

I suggest you take a look in the appropriate config_autoload.yml.php
files in your cache - it will show you if it's picking up the class or
not.

I've only done this for debugging issues at for classes in the project
level lib directory, but I imagine it may be similar for the module
level.  Perhaps the module will have its own autoload file in your
case?

Cheers,
Steve

On May 3, 6:49 am, xdade  wrote:
> Hi,
> I have a class definition in:
> mypath/apps/myapp/modules/mymod/lib/myClass.class.php
>
> and I use it in:
> mypath/apps/myapp/modules/mymod/templates/_mypartial.php
>
> this has always worked, but now suddenly I get this message:
> "Fatal error: Class 'myClass' not found in mypath/apps/myapp/modules/
> mymod/templates/_mypartial.php"
>
> sure enough I have cleared the cache many times, and the strange thing
> is that if I move the class definition in:
> mypath/lib
>
> all back to function normally.
>
> Any ideas?
> What tests can I do to discover what is the problem?
>
> Related forum posthttp://forum.symfony-project.org/index.php/t/20565/
>
> thanks in advance
> Daniele
--~--~-~--~~~---~--~~
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 and JS - prototype or jquery?

2009-05-03 Thread Steve the Canuck

Hi,

I started using jquery in my app because it was used in some of the
tutorials that were pertinent to me.  But now I'm coming across other
functionality that is supported by prototype instead.  So I seem to
either have to use both (which sounds like it might put a pretty big
JS footprint in my code), or I will have to port code to work with
which framework I choose.  Does anyone have recommendations on how to
approach this?

Thanks,
Steve
--~--~-~--~~~---~--~~
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] DateTime widgets

2009-05-03 Thread Steve the Canuck

Hi,

I have an application where I need to get the date and time a
"reservation" begins, and the duration.  In the database I'd like to
store the start/end values as DATETIME.   Currently I've been using 2
built in sfWidgetDateTime objects - one for start_date_time, and the
other for end_date_time.  However, this widget is not the most UI
friendly either from an appearance point of view, nor for easy input
of the date and time.  Are there any other good widgets available for
this purpose that anyone knows of?

The google calendar style input would be great, but ideally I don't
want to have to maintain source for date time parsing so I'm looking
for something reusable.

Thanks,
Steve
--~--~-~--~~~---~--~~
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: application exceptions

2009-05-03 Thread Steve the Canuck

Thanks, Daniel, you've answered my question and provided great
rationale.

Cheers.
Steve

On Apr 29, 7:36 pm, Richtermeister  wrote:
> Hey Steve,
>
> as a general rule, any exception (even a normal php exception) that
> you throw from within your code will ultimately be caught by symfony
> and displays either an error 500 or a stacktrace (in dev mode), UNLESS
> you catch the exception within your own code first.
>
> Creating your own exception classes is a good idea, because it enables
> you to throw and catch exceptions without interfering with the
> exceptions that symfony throws for itself.
>
> For example, if you wrap a call to one of your own classes into a try/
> catch block, and your catch statement is looking for an sfException,
> you could intercept all sorts of symfony exceptions (database,
> configuration, etc) without really being in the right place to handle
> those, since they're supposed to be handled on a higher level (logged,
> displayed, forwarded to 500, etc).
> So, you don't want to deal with those exeptions, and therefore you
> create your own (doesn't matter if based on sfException, although it
> saves the framework the extra step of converting your exception to a
> symfony exception).
>
> I usually have at least one exception for each functional area of my
> application. Say you have a "package" of classes that manage an
> external email list via service, that package for me would contain an
> "EmailApiException"..
>
> For apps with an ecommerce store I also include a more powerful
> "StoreException" which takes down the store and displays a nice
> "Sorry, come back later" message.. If, say, my shipping integration
> code throws a ShippingApiException, the controller code can then
> decide if it wants to throw the StoreException.. so, having some
> granularity there is important to delegate the decision-making from
> specific areas to more general areas of code.
>
> Hope that all made sense,
> Daniel
>
> On Apr 29, 6:39 am, Steve the Canuck  wrote:
>
> > I haven't been able to find out much from the documentation regarding
> > how to throw exceptions in my code and how Symfony will deal with
> > them.  I'm not talking about 404 errors and stuff, I know how to
> > handle those.  But I have some cases where I encounter exception
> > conditions in my business logic (within the OM) and I need to throw an
> > exception.
>
> > My questions are:
>
> > - should I create my own exception classes for my application, and
> > should they be extending sfException?
> > - how will symfony handle application exceptions?
>
> > Thanks,
> > Steve
--~--~-~--~~~---~--~~
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] application exceptions

2009-04-29 Thread Steve the Canuck

I haven't been able to find out much from the documentation regarding
how to throw exceptions in my code and how Symfony will deal with
them.  I'm not talking about 404 errors and stuff, I know how to
handle those.  But I have some cases where I encounter exception
conditions in my business logic (within the OM) and I need to throw an
exception.

My questions are:

- should I create my own exception classes for my application, and
should they be extending sfException?
- how will symfony handle application exceptions?

Thanks,
Steve
--~--~-~--~~~---~--~~
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: sfGuardPlugin fatal error

2009-04-29 Thread Steve the Canuck

The name of your module should be sfGuardAuth, not sfGuardUser.  Your
module effectively overrides the sfGuardPlugin's version, so it needs
to follow exactly the same directory structure as the plugin's.

On Apr 29, 6:08 am, Pierre Lecocq  wrote:
> Hello people,
>
> I have a problem with the sfGuardPlugin.
> I installed it successfully, I plaed with its default version without
> any problem.
> But I wanted to customize it.
>
> In the documentation (readme of the plugin), it is written that if we
> want to change configuration / actions / templates, we have to create
> the module by simply creating a folder (not by the generators).
> So, I created a sfGuardUser folder in mu apps/backend/modules/
> I added a conf directory and then copied the original generator.yml in
> this folder.
>
> But if I change a simple value in the generator, it crashes.
> I just started by changing the "theme" value. From "admin" to
> "default".
>
> Here is the error:
> Fatal error: Class 'BaseSfGuardUserGeneratorConfiguration' not found
>
> I also tried to implement the actions.class.php (I adapted the include
> path, of course), but same error.
> I tried to delete the folder I created and copy the plugin User module
> whole directory, but same error.
> I tried 4 times from a brand new clean sandbox, and I am always stuck
> to the same step.
>
> I precise that at each step, I clear the cache and I also re-generated
> forms / SQL / ...
>
> Do you have an idea or a suggestion ?
> Or maybe the solution ?
>
> Thanks for your help.
--~--~-~--~~~---~--~~
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 pages look bigger from local connection?

2009-04-23 Thread Steve the Canuck

Hi,

I've set the content width of my pages to 800px wide in my symfony
app.  I have noticed that when I view the pages in Firefox, using a
localhost connection the content width seems to be more narrow than in
other browsers (IE, Chrome, Safari).  However, when I load the page by
accessing the page via the internet, the page appears the same width
as in the other browsers.  In both cases I'm loading the same
frontend_dev.php file, but the display is different.  In both cases
the stylesheets seem to be the same as well.  However, I cannot
explain the difference in display width.  Has anyone else encountered
this?

Thanks,
Steve
--~--~-~--~~~---~--~~
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: Using ajax for input text update

2009-04-16 Thread Steve the Canuck

There are a few ways to do ajax based rendering.  One way is to have
the Ajax based action you are calling return you the chunk of HTML and
then you just render that HTML.  Another way is for the Ajax based
action to return you a response (more appropriate if there are
multiple pieces of data and you may want to render the data in various
structures in the HTML document.  Which method you go with depends on
which jquery method you call.

Take a look here:

http://www.symfony-project.org/jobeet/1_2/Propel/en/18

On Apr 16, 6:37 am, Tomasz Ignatiuk  wrote:
> So maybe any guess how to get data from action via ajax and put it
> into input?
--~--~-~--~~~---~--~~
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: Override templates/actions of plugin in an application

2009-04-16 Thread Steve the Canuck

I am speculating a bit here, but I think it works like this:

- if the template/action is found in an app module, then the app
module version is used
- if the template/action is found in a plugin, then the plugin version
is used

this suggests an order of precedence, where the app module overrides
the plugin.

i don't know if the inner workings automate this, but i can tell you
that the sfGuardPlugin seems to work this manner (ie: you override
actions and templates by creating your own version of the module.

i hope this helps.

cheers,
steve

On Apr 16, 9:11 am, "s.py"  wrote:
> Hi,
> I don't know how to override templates and/or actions of a plugin
> about an application.
>
> I created "plugins/TOTOPLUGIN/modules/TOTO"
>
> I have a schema.yml
>
> app:
>   TOTOPLUGIN:
>     modules:
>       mymodule1:
>         class: MyModule
>       mymodule2:
>         class: MyModuleTwo
>
> In my plugin "plugins/TOTOPLUGIN/modules/TOTO", I created a
> 'config.php' which make routing for 'mymodule1' and 'mymodule2'.
> We'll have routes like that: TOTOPLUGIN_%%module%%
> (doctrineCollection) and other routes more specifics.
>
> What i would like to do is to override templates and actions of
> "plugins/TOTOPLUGIN/modules/TOTO/templates /actions" about  "app/" or
> an other path.
>
> But i don't want to use on my plugin method like if(file_exists(...))
> 'x template' else 'y template'
>
> Do you know an issue to help me ?
>
> Thank 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: sfGuardPlugin breaks after creating session db

2009-04-07 Thread Steve the Canuck

I have figured this one out, thankfully.

In my schema.yml, I define two aliases:

session_db:
-- tables

propel:
-- tables

The schema.yml for sfGuardPlugin defines:

propel:
-- tables

It seems that if I have session_db first in my schema.yml, the code
generated in sfGuardPlugin is different than if I place it in the
order where session_db: is defined after the propel: alias.

Steve

On Apr 7, 3:53 pm, Steve the Canuck  wrote:
> Hi,
>
> I created a separate session database today to store my sessions.  The
> rest of my object model resides in a database with the alias "propel"
> in databases.yml.  When I created the session database and regenerated
> my model, the sfGuardPlugin's model classes no longer seem to have
> methods that provide access to other relationships in my model.  In my
> case, there is a method called getConsumers() that was previously on
> my sfGuardPlugin OM class.
>
> Has anyone else come across this, and do you know how to fix it?
>
> Thanks,
> Steve
--~--~-~--~~~---~--~~
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] sfGuardPlugin breaks after creating session db

2009-04-07 Thread Steve the Canuck

Hi,

I created a separate session database today to store my sessions.  The
rest of my object model resides in a database with the alias "propel"
in databases.yml.  When I created the session database and regenerated
my model, the sfGuardPlugin's model classes no longer seem to have
methods that provide access to other relationships in my model.  In my
case, there is a method called getConsumers() that was previously on
my sfGuardPlugin OM class.

Has anyone else come across this, and do you know how to fix it?

Thanks,
Steve
--~--~-~--~~~---~--~~
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 cascading update causes integrity violation

2009-04-06 Thread Steve the Canuck

Hi,

I'm not sure why this is failing.

If I do the following in one of my OM classes:

// Set the reference to the reservation provider
$this->setReservProvider($reservProvider);
...
$this->save();

I get an integrity violation.  It seems like all the fields get
updated in the subsequent update statement as follows:

Apr 06 14:57:00 symfony [debug] {sfPropelLogger} prepare: UPDATE
reservation SET `FACILITY_ID`=:p1, `LEVEL_ID`=:p2,
`EVENT_GENDER_ID`=:p3, `EVENT_CATEGORY_ID`=:p4, `EVENT_TYPE_ID`=:p5,
`UPDATED_AT`=:p6 WHERE reservation.ID=:p7
Apr 06 14:57:00 symfony [debug] {sfPropelLogger} Binding 325 at
position :p1 w/ PDO type PDO::PARAM_INT
Apr 06 14:57:00 symfony [debug] {sfPropelLogger} Binding 2 at
position :p2 w/ PDO type PDO::PARAM_INT
Apr 06 14:57:00 symfony [debug] {sfPropelLogger} Binding NULL at
position :p3 w/ PDO type PDO::PARAM_NULL
Apr 06 14:57:00 symfony [debug] {sfPropelLogger} Binding 1 at
position :p4 w/ PDO type PDO::PARAM_INT
Apr 06 14:57:00 symfony [debug] {sfPropelLogger} Binding 1 at
position :p5 w/ PDO type PDO::PARAM_INT
Apr 06 14:57:00 symfony [debug] {sfPropelLogger} Binding '2009-04-06
14:56:59' at position :p6 w/ PDO type PDO::PARAM_STR
Apr 06 14:57:00 symfony [debug] {sfPropelLogger} Binding 1 at
position :p7 w/ PDO type PDO::PARAM_INT
Apr 06 14:57:00 symfony [err] {sfPropelLogger} SQLSTATE[23000]:
Integrity constraint violation: 1048 Column 'event_gender_id' cannot
be null

However, if I just set the id, as follows:

// Set the reference to the reservation provider
$this->setReservProviderId($reservProvider->getId());
...
$this->save();

It seems to work:

Apr 06 15:03:21 symfony [debug] {sfPropelLogger} prepare: UPDATE
reservation SET `RESERV_PROVIDER_ID`=:p1, `UPDATED_AT`=:p2 WHERE
reservation.ID=:p3
Apr 06 15:03:21 symfony [debug] {sfPropelLogger} Binding 1 at
position :p1 w/ PDO type PDO::PARAM_INT
Apr 06 15:03:21 symfony [debug] {sfPropelLogger} Binding '2009-04-06
15:03:21' at position :p2 w/ PDO type PDO::PARAM_STR
Apr 06 15:03:21 symfony [debug] {sfPropelLogger} Binding 1 at
position :p3 w/ PDO type PDO::PARAM_INT


What I don't like about this, of course, is that I have made changes
to the ReservProvider, so when I do my save(), these changes are not
being propagated via the relationship.

I'm not sure if there is something special I need to do - I'd
certainly like to avoid having to call save() individually on each
object within my graph?  I would have thought that if I set the object
reference for my Reservation, rather than just the ID of the object,
it would have worked.

Regards,
Steve
--~--~-~--~~~---~--~~
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: Format of plain text email

2009-04-03 Thread Steve the Canuck

That sounds plausible.  My final work around has just been to put in
an extra line break - but echoing a new line is a nice option.
Thanks!

On Apr 3, 4:41 am, FÁSI Gábor  wrote:
> It might be connected to the way fixtures are loaded. You can put php
> code in there (like a for loop to make a lot of data), but if a line
> ends with php code, you must manually echo a \n otherwise there will
> be no linebreak there.
> The workaround you found is part of how SMTP works :) if you'd echo a
> line with only a dot in it, that would send the mail and the rest
> would be ignored.
>
> On Thu, Apr 2, 2009 at 21:31, Steve the Canuck  wrote:
>
>
>
> > After playing around, it seems like I can do something like add a
> > period "." to the end of the line, and then the linebreak is properly
> > recognized.  However, simply adding a space character doesn't do the
> > trick.
>
> > It seems that if the line ends with a ?> tag, the line break is
> > ignored.  I'm not sure why this is the case.
>
> > I don't really want to put a period at the end of each line though, so
> > if anyone knows how to solve this, I'd greatly appreciate it!
>
> > Cheers,
> > Steve
>
> > On Apr 2, 3:23 pm, Steve the Canuck  wrote:
> >> No, it seems not, other than the first linebreak.  The email comes out
> >> as:
>
> >> A goalie has applied to play in your booking:
>
> >> From: 2009-04-03 10:00:00 To: 2009-04-03 11:00:00At: Varsity ArenaFor:
> >> Ice Hockey, Shinny, Level 
> >> Chttp://goaliegigs.local/frontend_dev.php/goalies/apply-for-booking/1
>
> >> It looks like I have to put in two line breaks for each line break I
> >> want to see?!
>
> >> On Apr 2, 1:13 pm, FÁSI Gábor  wrote:
>
> >> > Do you get the linebreaks in the source? You can check it with the
> >> > 'show original' menuitem under the downarrow.
>
> >> > On Thu, Apr 2, 2009 at 18:46, Steve the Canuck  
> >> > wrote:
>
> >> > > Hi,
>
> >> > > I am sending plain text emails from my app using Swift Mailer.  The
> >> > > email bodies are all stored in partials.  What I am noticing is that
> >> > > the line breaks are not in the email when the email is received.  For
> >> > > example:
>
> >> > > A goalie has applied to play in your booking:
>
> >> > > From: getStartTime() ?> To:  >> > > $reservation->getEndTime() ?>
> >> > > At: getFacility()->getName() ?>
> >> > > For: getRefEventCategory() ?>,  >> > > $reservation->getRefEventType() ?>,  >> > >>getRefLevel() ?>
> >> > > getId(),
> >> > > true) ?>
>
> >> > > In the above email, all the lines are sandwiched together when I
> >> > > receive it, and the line breaks I put in are not being applied.  Is
> >> > > there anything I need to do?  I am both sending the emails and viewing
> >> > > them using Gmail.
>
> >> > > Steve
--~--~-~--~~~---~--~~
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: Format of plain text email

2009-04-02 Thread Steve the Canuck

After playing around, it seems like I can do something like add a
period "." to the end of the line, and then the linebreak is properly
recognized.  However, simply adding a space character doesn't do the
trick.

It seems that if the line ends with a ?> tag, the line break is
ignored.  I'm not sure why this is the case.

I don't really want to put a period at the end of each line though, so
if anyone knows how to solve this, I'd greatly appreciate it!

Cheers,
Steve

On Apr 2, 3:23 pm, Steve the Canuck  wrote:
> No, it seems not, other than the first linebreak.  The email comes out
> as:
>
> A goalie has applied to play in your booking:
>
> From: 2009-04-03 10:00:00 To: 2009-04-03 11:00:00At: Varsity ArenaFor:
> Ice Hockey, Shinny, Level 
> Chttp://goaliegigs.local/frontend_dev.php/goalies/apply-for-booking/1
>
> It looks like I have to put in two line breaks for each line break I
> want to see?!
>
> On Apr 2, 1:13 pm, FÁSI Gábor  wrote:
>
> > Do you get the linebreaks in the source? You can check it with the
> > 'show original' menuitem under the downarrow.
>
> > On Thu, Apr 2, 2009 at 18:46, Steve the Canuck  
> > wrote:
>
> > > Hi,
>
> > > I am sending plain text emails from my app using Swift Mailer.  The
> > > email bodies are all stored in partials.  What I am noticing is that
> > > the line breaks are not in the email when the email is received.  For
> > > example:
>
> > > A goalie has applied to play in your booking:
>
> > > From: getStartTime() ?> To:  > > $reservation->getEndTime() ?>
> > > At: getFacility()->getName() ?>
> > > For: getRefEventCategory() ?>,  > > $reservation->getRefEventType() ?>,  > >>getRefLevel() ?>
> > > getId(),
> > > true) ?>
>
> > > In the above email, all the lines are sandwiched together when I
> > > receive it, and the line breaks I put in are not being applied.  Is
> > > there anything I need to do?  I am both sending the emails and viewing
> > > them using Gmail.
>
> > > Steve
--~--~-~--~~~---~--~~
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: Format of plain text email

2009-04-02 Thread Steve the Canuck

No, it seems not, other than the first linebreak.  The email comes out
as:

A goalie has applied to play in your booking:

From: 2009-04-03 10:00:00 To: 2009-04-03 11:00:00At: Varsity ArenaFor:
Ice Hockey, Shinny, Level 
Chttp://goaliegigs.local/frontend_dev.php/goalies/apply-for-booking/1

It looks like I have to put in two line breaks for each line break I
want to see?!



On Apr 2, 1:13 pm, FÁSI Gábor  wrote:
> Do you get the linebreaks in the source? You can check it with the
> 'show original' menuitem under the downarrow.
>
> On Thu, Apr 2, 2009 at 18:46, Steve the Canuck  wrote:
>
>
>
> > Hi,
>
> > I am sending plain text emails from my app using Swift Mailer.  The
> > email bodies are all stored in partials.  What I am noticing is that
> > the line breaks are not in the email when the email is received.  For
> > example:
>
> > A goalie has applied to play in your booking:
>
> > From: getStartTime() ?> To:  > $reservation->getEndTime() ?>
> > At: getFacility()->getName() ?>
> > For: getRefEventCategory() ?>,  > $reservation->getRefEventType() ?>,  >>getRefLevel() ?>
> > getId(),
> > true) ?>
>
> > In the above email, all the lines are sandwiched together when I
> > receive it, and the line breaks I put in are not being applied.  Is
> > there anything I need to do?  I am both sending the emails and viewing
> > them using Gmail.
>
> > Steve
--~--~-~--~~~---~--~~
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] Format of plain text email

2009-04-02 Thread Steve the Canuck

Hi,

I am sending plain text emails from my app using Swift Mailer.  The
email bodies are all stored in partials.  What I am noticing is that
the line breaks are not in the email when the email is received.  For
example:

A goalie has applied to play in your booking:

From: getStartTime() ?> To: getEndTime() ?>
At: getFacility()->getName() ?>
For: getRefEventCategory() ?>, getRefEventType() ?>, getRefLevel() ?>
getId(),
true) ?>

In the above email, all the lines are sandwiched together when I
receive it, and the line breaks I put in are not being applied.  Is
there anything I need to do?  I am both sending the emails and viewing
them using Gmail.

Steve
--~--~-~--~~~---~--~~
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: Fixtures - can I specify a literal value on a linked table?

2009-03-25 Thread Steve the Canuck

Thanks, Lee, but it seems not, as I tried that.  Accuracy is not a
foreign key, but state_prov_id is.  I looked at the propel task a bit,
and it seems that if there is a map reference for the field, then it
always looks for a label.

The reason I ran into this is because I have multiple fixture files.
I have some tables that are purely reference tables.  So, I don't use
autonumbering for those fields.  Also, these tables exist in a
different fixture file.

I wanted to create a separate fixture file for things like base data
(in my case, a collection of facilities).

In the meantime I've had to consolidate the fixture files into one, to
resolve the issue.

Cheers,
Steve

On Mar 25, 4:24 pm, Lee Bolding  wrote:
> On 25 Mar 2009, at 17:59, Steve the Canuck wrote:
>
> > I've got an entry in my fixture such as follows:
>
> > Address:
> >  Address_1:
> >    state_prov_id: 36
>
> >    accuracy: '8'
>
> > This fails, because state_prov_id does not correspond to a labelled
> > entry called "36".  However, I don't want it to use a labelled entry,
> > I want it to use the literal value of 36.
>
> You can't place it in single quotes like you did with accuracy?
--~--~-~--~~~---~--~~
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: Graceful fail on saving new objects

2009-03-25 Thread Steve the Canuck

I would suggest this comes down to application design and logic.

Your business logic should not be creating duplicates of SomeClass if
the instance already exists.

You can do one of two things:

1) Do a lookup to see if the key already exists
2) Add a try catch block around the statement and recover

Also consider using autonumber fields for your Id's, so you don't need
to calculate them.

Steve

On Mar 25, 5:20 pm, Joshua  wrote:
> $SomeClass= new SomeClass();
> $SomeClass->setId($number);
> $SomeClass->save();
>
> In this example if column ID is unique and there is already a row with
> ID $number then trying to save this object will get an SQL Insert
> rejection and crap the page.
>
> Following this futher...
>
> foreach($numbers as $number)
> {
> $SomeClass= new SomeClass();
> $SomeClass->setId($number);
> $SomeClass->save();
>
> }
>
> In that example if one of the objects fails it will do a full stop and
> you get an Oops page.
>
> Is there any way to get symfony to just skip over these failed cases
> and continue loading?
--~--~-~--~~~---~--~~
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] Fixtures - can I specify a literal value on a linked table?

2009-03-25 Thread Steve the Canuck

Hi,

I've got an entry in my fixture such as follows:

Address:
  Address_1:
state_prov_id: 36
street_addr: '3600 Vanrick Dr.'
timezone_id: RefTimezone_1
city: Kalamazoo
zip_postcode: '49001'
longitude: '-85.5331'
latitude: '42.2546'
accuracy: '8'

This fails, because state_prov_id does not correspond to a labelled
entry called "36".  However, I don't want it to use a labelled entry,
I want it to use the literal value of 36.

Thanks,
Steve
--~--~-~--~~~---~--~~
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: Validating before show up the form

2009-03-25 Thread Steve the Canuck

Hi,

Without understanding all the details of your application, the most
obvious thought that comes to mind is that you'd have to put some
business logic that controls whether the form is displayed, or takes
another course of action.  You'd need to perform this operation on the
model directly before choosing to show the form.

Steve

On Mar 25, 8:27 am, "Reynier Perez Mira"  wrote:
> Hi every:
> I have a n:m relationship between two tables: modlic_dvd y modlic_licencia. 
> As every here know this kind of relation generate a new table: 
> modlic_rel_dvd_licencia with the primary keys of the main tables. I generate 
> the model, the filters and the forms for this three tables without problems. 
> I want to know if exists any way to check if the modlic_dvd table has at 
> least one file before show the form for the table modlic_licencia?
>
> Any help?
> Ing. Reynier Pérez Mira
> Dirección Técnica IP
--~--~-~--~~~---~--~~
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: Zend autoloading problem

2009-03-23 Thread Steve the Canuck

Solved.

The key was that since I am now using the query parser, I have to call
ProjectConfiguration::registerZend(); earlier in my code path.

On Mar 23, 3:45 pm, Steve the Canuck  wrote:
> There is a plugin, but it's 0.1.6 beta.  I am wary of using something
> in beta stage for something I am trying to launch into production
> shortly.  Plus, I had the Search working already to start with as per
> the Practical Zend book's instructions, so I didn't want to have to
> spend another few days to have to figure out if the plugin does the
> job I need.
>
> Steve
>
> On Mar 23, 3:32 pm, Lee Bolding  wrote:
>
> > Isn't there a Symfony plugin for Zend Search?
>
> > On 23 Mar 2009, at 19:27, Java Guy wrote:
>
> > > Hi,
>
> > > I previously followed the instructions for modifying
> > > ProjectConfiguration to register autoloading for the Zend autoloader
> > > in order to use Zend Search:
>
> > >  static public function registerZend()
> > >  {
> > >    if (self::$zendLoaded)
> > >    {
> > >      return;
> > >    }
>
> > >    set_include_path(sfConfig::get('sf_lib_dir').'/
> > > vendor'.PATH_SEPARATOR.get_include_path());
> > >    require_once sfConfig::get('sf_lib_dir').'/vendor/Zend/
> > > Loader.php';
> > >    Zend_Loader::registerAutoload();
> > >    self::$zendLoaded = true;
> > >  }
>
> > > Since then, I have had no problems using Zend Search until today, when
> > > I added the following line of code:
>
> > > $userQuery = Zend_Search_Lucene_Search_QueryParser::parse($query);
>
> > > This is now leading to the error:
>
> > > Failed opening required 'Zend/Search/Lucene/Index/
> > > Term.php' (include_path='PATH_OMITTED' on line 23
>
> > > Line 23 says:
>
> > > require_once 'Zend/Search/Lucene/Index/Term.php';
>
> > > I can see that Term is in my config_autoload.yml:
>
> > > 'Zend_Search_Lucene_Index_Term' => 'C:/PATH_TO_PROJECT/lib/vendor/
> > > Zend/
> > > Search/Lucene/Index/
>
> > > Previously, I wasn't calling the QueryParser class directly so I did
> > > not have this problem.
>
> > > Has anyone encountered this, and do you have a solution by chance?
>
> > > Thanks,
> > > Steve
--~--~-~--~~~---~--~~
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: Zend autoloading problem

2009-03-23 Thread Steve the Canuck

There is a plugin, but it's 0.1.6 beta.  I am wary of using something
in beta stage for something I am trying to launch into production
shortly.  Plus, I had the Search working already to start with as per
the Practical Zend book's instructions, so I didn't want to have to
spend another few days to have to figure out if the plugin does the
job I need.

Steve

On Mar 23, 3:32 pm, Lee Bolding  wrote:
> Isn't there a Symfony plugin for Zend Search?
>
> On 23 Mar 2009, at 19:27, Java Guy wrote:
>
>
>
> > Hi,
>
> > I previously followed the instructions for modifying
> > ProjectConfiguration to register autoloading for the Zend autoloader
> > in order to use Zend Search:
>
> >  static public function registerZend()
> >  {
> >    if (self::$zendLoaded)
> >    {
> >      return;
> >    }
>
> >    set_include_path(sfConfig::get('sf_lib_dir').'/
> > vendor'.PATH_SEPARATOR.get_include_path());
> >    require_once sfConfig::get('sf_lib_dir').'/vendor/Zend/
> > Loader.php';
> >    Zend_Loader::registerAutoload();
> >    self::$zendLoaded = true;
> >  }
>
> > Since then, I have had no problems using Zend Search until today, when
> > I added the following line of code:
>
> > $userQuery = Zend_Search_Lucene_Search_QueryParser::parse($query);
>
> > This is now leading to the error:
>
> > Failed opening required 'Zend/Search/Lucene/Index/
> > Term.php' (include_path='PATH_OMITTED' on line 23
>
> > Line 23 says:
>
> > require_once 'Zend/Search/Lucene/Index/Term.php';
>
> > I can see that Term is in my config_autoload.yml:
>
> > 'Zend_Search_Lucene_Index_Term' => 'C:/PATH_TO_PROJECT/lib/vendor/
> > Zend/
> > Search/Lucene/Index/
>
> > Previously, I wasn't calling the QueryParser class directly so I did
> > not have this problem.
>
> > Has anyone encountered this, and do you have a solution by chance?
>
> > Thanks,
> > Steve
--~--~-~--~~~---~--~~
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: Jobeet Day 7 schema.yml parse error

2009-03-16 Thread Steve the Canuck

It looks like an indent issue to me.

On Mar 16, 4:29 pm, Mark  wrote:
> I'm having trouble with the schema.yml getting to build. I get a parse
> error.
>
> "unable to parse line 3 Sluggable:"
>
> And my file...
>
> JobeetCategory:
>   actAs: {Timestampable: ~ }
>     Sluggable:
>       fields: [name]
>   columns:
>     name: { type: string(255), notnull:  true}
>
> JobeetJob:
>   actAs: { Timestampable: ~ }
>   columns:
>     category_id:  { type: integer, notnull: true }
>     type:         { type: string(255) }
>     company:      { type: string(255), notnull: true }
>     logo:         { type: string(255) }
>     url:          { type: string(255) }
>     position:     { type: string(255), notnull: true }
>     location:     { type: string(255), notnull: true }
>     description:  { type: string(4000), notnull: true }
>     how_to_apply: { type: string(4000), notnull: true }
>     token:        { type: string(255), notnull: true, unique: true }
>     is_public:    { type: boolean, notnull: true, default: 1 }
>     is_activated: { type: boolean, notnull: true, default: 0 }
>     email:        { type: string(255), notnull: true }
>     expires_at:   { type: timestamp, notnull: true }
>   relations:
>     JobeetCategory: { local: category_id, foreign: id, foreignAlias:
> JobeetJobs }
>
> JobeetAffiliate:
>   actAs: { Timestampable: ~ }
>   columns:
>     url:       { type: string(255), notnull: true }
>     email:     { type: string(255), notnull: true, unique: true }
>     token:     { type: string(255), notnull: true }
>     is_active: { type: boolean, notnull: true, default: 0 }
>   relations:
>     JobeetCategories:
>       class: JobeetCategory
>       refClass: JobeetCategoryAffiliate
>       local: affiliate_id
>       foreign: category_id
>       foreignAlias: JobeetAffiliates
>
> JobeetCategoryAffiliate:
>   columns:
>     category_id:  { type: integer, primary: true }
>     affiliate_id: { type: integer, primary: true }
>   relations:
>     JobeetCategory:  { onDelete: CASCADE, local: category_id, foreign:
> id }
>     JobeetAffiliate: { onDelete: CASCADE, local: affiliate_id,
> foreign: id }
--~--~-~--~~~---~--~~
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: Generate fixture from database contents

2009-03-16 Thread Steve the Canuck

Very much appreciated.  Thanks. :-)

On Mar 15, 2:04 pm, "Yevgeniy A. Viktorov" 
wrote:
> I do same as maestro wrote, also you can specify the models you would
> like to get fixtures for, i.e:
> symfony propel:data-dump --classes="BlogPost,BlogComment" frontend
>
> Thanks.
>
> maestro wrote:
> > I usually use symfony propel:data-dump > fixture.yml. Then edit the
> > file if i have to.
>
> > On Mar 14, 2:59 am, Java Guy  wrote:
>
> >> Is there a task or method anyone knows of to generate a fixture from a
> >> plugin?
>
> >> I've got some initial data I've put into my database using a fixture?
> >> But some of it needs tweaking, and after tweaking, I'd like to regen
> >> the file.  Tweaking it in the database makes life quite a bit simpler.
>
> >> If all else fails, I'll just write a script to do this.
>
> >> Thanks,
> >> Steve
--~--~-~--~~~---~--~~
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: How to cleanly post populating form fields or object

2009-03-13 Thread Steve the Canuck

Cool!  I got this working, and a little cleaner than I expected.  I
created a post validator, and the validator itself returns the
longitude and latitude coordinates as the cleaned values.  I also
discovered, that I could unset the coordinate fields in the form
configuration, and as long as the values are in the set of cleaned
results, they will be bound to the object.  That makes life easy
peasy.

Steve



On Mar 12, 12:11 pm, Java Guy  wrote:
> Hi,
>
> I have a user enter a postal code or zip code in my form.  Based on
> this entry, I am calling a Geocoding service and obtaining long/lat
> coordinates.  If the geocoder doesn't return coordinates, I want to
> return a validation error.  Otherwise, the postal code and the
> coordinates are stored in the database.
>
> I have thought the best way to do this would be use a post validator,
> but I'm trying to figure out how to inject the long/lat coordinates
> into my object.
>
> I've unset the long/lat coordinates in the form, because they are not
> meant for user entry or widget representation, but I need to access
> these fields somehow in order to set them in the object.  One way
> around this I guess would be to keep the fields in the widget schema,
> make them optional, and then return them as cleaned values in my post
> validator.
>
> I'm wondering if anyone has done anything like this and if you can
> recommend any approaches?
>
> Thanks,
> Steve
--~--~-~--~~~---~--~~
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: How to cleanly post populating form fields or object

2009-03-13 Thread Steve the Canuck

Thanks.  I have used this technique, for example when I want to set a
field which I keep in the session rather than in the form.

Unfortunately, in my case, I cannot use this approach because I do not
have access to the values I want from within my action.

Steve


On Mar 12, 1:03 pm, wissl  wrote:
> Recently 
> posted:http://blog.nevalon.de/en/wie-kann-ich-werte-nach-dem-abschicken-eine...
>
> On 12 Mrz., 17:11, Java Guy  wrote:
>
> > Hi,
>
> > I have a user enter a postal code or zip code in my form.  Based on
> > this entry, I am calling a Geocoding service and obtaining long/lat
> > coordinates.  If the geocoder doesn't return coordinates, I want to
> > return a validation error.  Otherwise, the postal code and the
> > coordinates are stored in the database.
>
> > I have thought the best way to do this would be use a post validator,
> > but I'm trying to figure out how to inject the long/lat coordinates
> > into my object.
>
> > I've unset the long/lat coordinates in the form, because they are not
> > meant for user entry or widget representation, but I need to access
> > these fields somehow in order to set them in the object.  One way
> > around this I guess would be to keep the fields in the widget schema,
> > make them optional, and then return them as cleaned values in my post
> > validator.
>
> > I'm wondering if anyone has done anything like this and if you can
> > recommend any approaches?
>
> > Thanks,
> > Steve
--~--~-~--~~~---~--~~
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: How to cleanly post populating form fields or object

2009-03-13 Thread Steve the Canuck

Thanks - I considered that option, but in this context, the postal/zip
code is only valid if it can be geocoded.  For example, if you buy a
house in a new development, you may not be able to find your code
yet.

I'm just using Google at this point for Geocoding.  It's pretty simple
and easy to use.

On Mar 12, 7:51 pm, Richtermeister  wrote:
> Why not use a field validator to validate the zip code, and then
> populate the lat/long after a successful form submission in a separate
> step.
> If you cache the calls to the Geocoding service (as you should since
> over time you'll have all zip/lat/long combinations), this won't add a
> second call.
>
> Hope this helps,
> Daniel
>
> PS: By the way, what service are you using? Curious :)
>
> On Mar 12, 10:03 am, wissl  wrote:
>
> > Recently 
> > posted:http://blog.nevalon.de/en/wie-kann-ich-werte-nach-dem-abschicken-eine...
>
> > On 12 Mrz., 17:11, Java Guy  wrote:
>
> > > Hi,
>
> > > I have a user enter a postal code or zip code in my form.  Based on
> > > this entry, I am calling a Geocoding service and obtaining long/lat
> > > coordinates.  If the geocoder doesn't return coordinates, I want to
> > > return a validation error.  Otherwise, the postal code and the
> > > coordinates are stored in the database.
>
> > > I have thought the best way to do this would be use a post validator,
> > > but I'm trying to figure out how to inject the long/lat coordinates
> > > into my object.
>
> > > I've unset the long/lat coordinates in the form, because they are not
> > > meant for user entry or widget representation, but I need to access
> > > these fields somehow in order to set them in the object.  One way
> > > around this I guess would be to keep the fields in the widget schema,
> > > make them optional, and then return them as cleaned values in my post
> > > validator.
>
> > > I'm wondering if anyone has done anything like this and if you can
> > > recommend any approaches?
>
> > > Thanks,
> > > Steve
--~--~-~--~~~---~--~~
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: Best way to validate global, non field condition

2009-03-12 Thread Steve the Canuck

Thanks!  I created a post validator called ValidatorPropelLimit.

On Mar 12, 8:15 am, vadim  wrote:
> I would try to use postValidator. You can use there your own validator
> that can do whatever you want, any manipulations with database. I
> guess you should watche out the sfValidatorPropelUnique.
>
> On Mar 11, 10:08 pm, Java Guy  wrote:
>
> > I need to create a type of global validation that is not related to
> > any field.  Can a global validator handle this type of requirement?
> > Basically my validator is a "limit" validator.  The form contents
> > should not be added to the database if there are already N existing
> > entries for a specific set of criteria.
--~--~-~--~~~---~--~~
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: How do you efficiently build object graphs

2009-03-04 Thread Steve the Canuck

Thanks very much for the link!  That really showed me what I was
looking for.  I don't think a database view is appropriate in my case,
but the code was very useful.

The key thing I wasn't aware of was use of the addColumns() and hydrate
() methods in this context.   I have solved this issue as follows:

  static public function doSelectJoinAddressJoinStateProv(Criteria
$criteria, PropelPDO $con = null)
  {
 FacilityPeer::addSelectColumns($criteria);
 AddressPeer::addSelectColumns($criteria);
 RefStateProvPeer::addSelectColumns($criteria);
 $criteria->addJoin(FacilityPeer::ADDRESS_ID, AddressPeer::ID);
 $criteria->addJoin(AddressPeer::STATE_PROV_ID,
RefStateProvPeer::ID);
 $statement = BasePeer::doSelect($criteria, $con);
 while($resultset = $statement->fetch(PDO::FETCH_NUM))
 {
   $startCol = 0;
   $facility = new Facility();
   $startCol = $facility->hydrate($resultset, $startCol);
   $address = new Address();
   $facility->setAddress($address);
   $startCol = $address->hydrate($resultset, $startCol);
   $stateprov = new RefStateProv();
   $address->setRefStateProv($stateprov);
   $stateprov->hydrate($resultset, $startCol);
   $results[] = $facility;
 }
 return $results;
  }


Cheers,
Steve

On Mar 4, 1:12 am, Lawrence Krubner  wrote:
> > The ideal way I would think to solve this would be for Propel to be
> > able to efficiently create composite objects, but I don't see an easy
> > way to do this, since the Criteria objects only allow me to specify
> > conditions regarding the query results, not column selects that would
> > allow me to include columns from multiple tables.
>
> > Of course a view would be an ideal solution as well, but I haven't
> > seen anything about views with respect to the Symfony/Propel ORM
> > approach.
>
> My impression is that database views are pretty much the standard way
> that people overcome the shortcomings of Propel. You create your
> database view and you add it to schema.yml as if it was a real
> database table. Then you use the command line tools to generate your
> model classes. You end up with composite model classes, that can fetch
> things from multiple tables.
>
> I learned this last summer when I was first trying to figure out how
> to deal with JOINs using Propel. Halfer, on the Symfony forums, was
> kind enough to give me the answer to this problem:
>
> http://forum.symfony-project.org/index.php/m/57644/#msg_57644
>
> On Mar 3, 3:22 pm, Java Guy  wrote:
>
> > I have three tables and I am using Propel for my data layer.  Here is
> > a quick description of my tables:
>
> > Facility, which has an address defined in the Address table, and the
> > Address has a reference to the RefStateProvince table.
>
> > I've built a search index for facilities (using Zend Search Lucene),
> > which includes information from all three of the above tables.  For
> > each index hit, a primary key value to the Facility table is returned.
>
> > The problem I am having is that to look up the information about each
> > facility in my search index hits, I can't just do a doSelect() on the
> > FacilityPeer, because I also need information from the Address and
> > RefStateProv tables.
>
> > So if I have 10 hits in my search, I have to do 21 queries (1 from
> > facility, 10 from address, 10 from refstateprov).  This is horribly
> > inefficent.
>
> > There are only two ways I can think of solving this:
>
> > 1) Write a custom doSelect() which does the query manually and creates
> > composite objects.
> > 2) Store the data I want to retrieve in the index as unindexed values.
>
> > The ideal way I would think to solve this would be for Propel to be
> > able to efficiently create composite objects, but I don't see an easy
> > way to do this, since the Criteria objects only allow me to specify
> > conditions regarding the query results, not column selects that would
> > allow me to include columns from multiple tables.
>
> > Of course a view would be an ideal solution as well, but I haven't
> > seen anything about views with respect to the Symfony/Propel ORM
> > approach.
>
> > Does anyone else have any information on efficiently building object
> > graphs?
>
> > Thanks,
> > Steve
--~--~-~--~~~---~--~~
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 integration with Zend Lucene Search library

2009-02-26 Thread Steve the Canuck

Thanks, that is good to know it works with Propel.  Do you know if
your plugin is being used in production environments at this point?

What are the criteria to get beyond the beta release stage with the
plugin?

Thanks,
Steve

On Feb 26, 2:29 pm, Thomas Rabaix  wrote:
> Hello,
> sfLucenePlugin should work fine with sf1.2 and Propel. However I have added
> some new features for doctrine but they can be easily port for Propel and
> they not break the core plugin.
>
> If you want to give a hand, feel free to send me a patch
>
>
>
> On Thu, Feb 26, 2009 at 7:39 PM, Michael Smith  wrote:
>
> > For info on loading the zend framework see
>
> >http://www.symfony-project.org/jobeet/1_2/Propel/en/16#chapter_16_sub...
> > also for using zend search with symfony
> >http://www.symfony-project.org/jobeet/1_2/Propel/en/17
>
> > Thanks,
> > Michael
>
> > On Feb 26, 11:16 am, Java Guy  wrote:
> > > Hi,
>
> > > My expertise is in J2EE, I'm new to symfony and PHP, but I'm using
> > > these for my current side-project.
>
> > > I am currently trying to integrate symfony 1.2 with the Zend Lucene
> > > Search library shipped with ZendFramework 1.7.5.  I notice that
> > > symfony has a plugin for this, but it seems to be in a beta release,
> > > and it also seems to be Doctrine based, whereas I'm using Propel.  So
> > > I am leaning toward interfacing with the Zend libraries myself.
>
> > > The question I have is how to deal with the Zend's class loading.
> > > I've added my zend libraries to /lib/vendor/Zend/Search.
>
> > > However, whenever I instantiate my index, eg:
>
> > >    // Create index
> > >     $index = Zend_Search_Lucene::create(sfConfig::get
> > > ('app_zend_search_index_location', true));
>
> > > I am running into errors because Lucene.php has a ton of require
> > > statements, based on its own path structure, eg:
>
> > > require_once 'Zend/Search/Lucene/Search/QueryParser.php';
>
> > > What's the best way around this?  A few options come to mind:
>
> > > 1) Simply comment out all the require statements and rely on Symfony's
> > > autoloading feature.  I am not crazy about this option because it is a
> > > vendor product, and creates maintenance overhead.
>
> > > 2) Somehow allow Zend to pick up these require statements.  I'm not
> > > quite sure how to go about doing this.  I did some reading on the
> > > autoloader, and if I am going to modify my autoloader, I'd like to get
> > > an idea for best practices on this front.
>
> > > For example, I have another vendor product - the Swift mailer. The
> > > mailer didn't have this kind of issue, because it has its own class
> > > loader to resolve this stuff.  So if I modify the autoloader config,
> > > I'd like to adopt an approach that works well across the whole
> > > project.  I haven't been able to dig up some good examples to base my
> > > approach on yet.
>
> > > Your feedback and discussion is much appreciated.
>
> > > Thanks,
> > > Steve
>
> --
> Thomas Rabaix
--~--~-~--~~~---~--~~
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 integration with Zend Lucene Search library

2009-02-26 Thread Steve the Canuck

Fantastic.  Thank you.

On Feb 26, 1:39 pm, Michael Smith  wrote:
> For info on loading the zend framework 
> seehttp://www.symfony-project.org/jobeet/1_2/Propel/en/16#chapter_16_sub...
> also for using zend search with 
> symfonyhttp://www.symfony-project.org/jobeet/1_2/Propel/en/17
>
> Thanks,
> Michael
>
> On Feb 26, 11:16 am, Java Guy  wrote:
>
> > Hi,
>
> > My expertise is in J2EE, I'm new to symfony and PHP, but I'm using
> > these for my current side-project.
>
> > I am currently trying to integrate symfony 1.2 with the Zend Lucene
> > Search library shipped with ZendFramework 1.7.5.  I notice that
> > symfony has a plugin for this, but it seems to be in a beta release,
> > and it also seems to be Doctrine based, whereas I'm using Propel.  So
> > I am leaning toward interfacing with the Zend libraries myself.
>
> > The question I have is how to deal with the Zend's class loading.
> > I've added my zend libraries to /lib/vendor/Zend/Search.
>
> > However, whenever I instantiate my index, eg:
>
> >    // Create index
> >     $index = Zend_Search_Lucene::create(sfConfig::get
> > ('app_zend_search_index_location', true));
>
> > I am running into errors because Lucene.php has a ton of require
> > statements, based on its own path structure, eg:
>
> > require_once 'Zend/Search/Lucene/Search/QueryParser.php';
>
> > What's the best way around this?  A few options come to mind:
>
> > 1) Simply comment out all the require statements and rely on Symfony's
> > autoloading feature.  I am not crazy about this option because it is a
> > vendor product, and creates maintenance overhead.
>
> > 2) Somehow allow Zend to pick up these require statements.  I'm not
> > quite sure how to go about doing this.  I did some reading on the
> > autoloader, and if I am going to modify my autoloader, I'd like to get
> > an idea for best practices on this front.
>
> > For example, I have another vendor product - the Swift mailer. The
> > mailer didn't have this kind of issue, because it has its own class
> > loader to resolve this stuff.  So if I modify the autoloader config,
> > I'd like to adopt an approach that works well across the whole
> > project.  I haven't been able to dig up some good examples to base my
> > approach on yet.
>
> > Your feedback and discussion is much appreciated.
>
> > Thanks,
> > Steve
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---