Thanks!
On Oct 2, 9:41 am, Gábor Fási maerl...@gmail.com wrote:
http://www.symfony-project.org/reference/1_2/en/04-Settings#chapter_0...
On Fri, Oct 2, 2009 at 15:39, Steve Sanyal steve.san...@gmail.com wrote:
Hi,
I'm trying to use project:disable when I perform app maintenance, but
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
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
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
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
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 steve.san...@gmail.com wrote:
Hi,
I understand the browser is caching the page, but there must be some
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
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 t...@templestreetmedia.com
wrote:
sf1.2 doctrine
Hi,
I'm trying to
Unforntately, I haven't used Doctrine. Sorry.
On Jul 9, 10:22 am, Rene r...@pc-dummy.net 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
(if there is such a word lol)
On Thu, Jul 9, 2009 at 3:37 PM, Steve the Canuck
steve.san...@gmail.comwrote:
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
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
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 steve.san...@gmail.com wrote:
There are some other posts
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
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
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 fabian.la...@symfony-project.com
wrote:
Hello,
Yes PHP will process the whole instruction, because it needs to gather
all information before making the method
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
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
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
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
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
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
signing in
Thanks,
Steve
On Jun 3, 11:46 pm, Steve the Canuck steve.san...@gmail.com 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
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 steve.san...@gmail.com wrote:
I have seen a few solutions to give the form schema formatter to get
access to the validator
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)
::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 steve.san...@gmail.com wrote:
I have seen a few solutions
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
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
Thanks!
On May 21, 1:04 pm, gimler gordon.fra...@web.de wrote:
http://blog.nevalon.de/en/wie-kann-ich-alle-formular-pflichtfelder-mi...
greetings
Gimler
On May 21, 6:17 pm, Steve the Canuck steve.san...@gmail.com wrote:
Hi,
Is there an easy way to determine if a field isrequiredprior
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
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
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
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 steve.san...@gmail.com wrote:
Hi,
I am having some form troubles. I have a select dropdown which
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
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 steve.san...@gmail.com wrote:
I haven't been able to find out much from the documentation regarding
how to throw exceptions
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.
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.
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 pierre.lec...@gmail.com wrote:
Hello people,
I have a
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
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
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
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
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 steve.san...@gmail.com 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
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
, Apr 2, 2009 at 21:31, Steve the Canuck steve.san...@gmail.com 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
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: ?php echo
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 maerl...@gmail.com 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
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 steve.san...@gmail.com wrote:
No, it seems not, other than the first linebreak. The email
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
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,
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
to consolidate the fixture files into one, to
resolve the issue.
Cheers,
Steve
On Mar 25, 4:24 pm, Lee Bolding l...@leesbian.net 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
Very much appreciated. Thanks. :-)
On Mar 15, 2:04 pm, Yevgeniy A. Viktorov w...@osmonitoring.com
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
It looks like an indent issue to me.
On Mar 16, 4:29 pm, Mark hube...@missouristate.edu 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:
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
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
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
Thanks! I created a post validator called ValidatorPropelLimit.
On Mar 12, 8:15 am, vadim samokhinva...@gmail.com 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
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
Fantastic. Thank you.
On Feb 26, 1:39 pm, Michael Smith sitecr...@gmail.com 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
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 thomas.rab...@gmail.com wrote:
60 matches
Mail list logo