add this to each form's configure() method, that you want to have flood
protected (I expect that you want to protect this way (form) of entering
data from flooding, and not the model itself):
$this-validatorSchema-setPostValidator(new CombValidator(null,
array(), array('invalid' = 'Flooding is
It might be worth looking into using your own view class:
something along
class myView extends sfPHPView {
public function setDirectory($directory){
$this-directory = $directory . '/theme'; //whatever, must be full path
}
}
and in filters.yml
rendering:
class: myView
But then caching
try to put something like this in routing.yml
auckland:
options: { segment_separators: [/, ., -] }
Am 01.04.2010 08:39, schrieb Lee Joseph:
as I know routing framework in symfony which separates url information
with slash '/' or dot '.' like
some_route:
url: /:module/:actions/:id
Hi,
checkout symfony and execute
find . -name 'LICENSE*'
in it's folder.
Am 13.03.2010 10:29, schrieb Avinash:
Hi There,
I am not sure if this is right place, but I need to clear my doubt
that if i can create a symfony based product for selling instances to
clients without paying to any
Axel,
is it possible that the creation of the user objects takes such a long
time? I don't know what your user objects do, or how many are in this
list, but just for displaying the names of the users, I wouldn't
create objects, but hydrate with Doctrine_Core::HYDRATE_SCALAR.
Try if this works
This happens sometimes when you have a fatal php error in the template
(or a method called from the template)
Am 21.01.2010 17:24, schrieb Pax95:
I've installed a project in my local server - WampServer and it works
successfully. I added test content and uploaded it into server
Am 19.01.2010 14:40, schrieb diogobaeder:
Hi, guys,
I've posted this one:
http://groups.google.com/group/symfony-users/browse_thread/thread/5432958e71a54747/76035d6987e00ad8?lnk=gstq=diogobaeder#76035d6987e00ad8
But I haven't found a solution, yet. The problem is, I have to deliver
the
probably the key name is too long. Try if this works:
ALTER TABLE sf_guard_group_permission ADD CONSTRAINT
g FOREIGN KEY (permission_id) REFERENCES sf_guard_permission(id)
Am 11.01.2010 07:54, schrieb Mike Church:
Hi Folks:
I have been trying to deploy, I have everything working right
, schrieb Mike Church:
On Jan 11, 12:30 pm, Georg Gell geor...@have2.com wrote:
probably the key name is too long. Try if this works:
ALTER TABLE sf_guard_group_permission ADD CONSTRAINT
g FOREIGN KEY (permission_id) REFERENCES sf_guard_permission(id)
Am 11.01.2010 07:54, schrieb Mike
Hi,
Am 08.01.2010 09:46, schrieb Parijat Kalia:
Hey guys,
Just lighting up everyone's day, would like to get as many as possible
arguments on this. Me and a friend of mine, had a debate last evening,
about open source(PHP) vs closed source technologies(DOT NET).He raised
the following
Am 08.01.2010 15:20, schrieb Lee Bolding:
On 8 Jan 2010, at 13:43, Eno wrote:
On Fri, 8 Jan 2010, Lee Bolding wrote:
The whole IIS/windows server licensing issue is also beginning to
disappear - if you want a well supported, enterprise grade, stable and
scalable PHP environment,
-redirect ?
2009/12/20 Georg Gell geor...@have2.com mailto:geor...@have2.com
Hi,
no, this will not work, because I want to change the redirect after the
form has been successfully processed, which means no exception to catch.
Georg
Am 19.12.2009 22:54, schrieb
function processForm()
{
try
{
parent::processForm();
}
catch (sfStopException $e)
{
$this-redirect(...);
}
}
Not sure if this will work... Try and tell us.
Alexandre
2009/12/19 Georg Gell geor...@have2.com mailto:geor
Hello,
I would like to change the target of the redirect in an auto generated
admin form, after the object is saved.
This target is hard coded in processForm() in the base action. Is there
an easier way then copying the whole processForm() method into the
action, and then change only the target
Cool!
Thanks Georg
Am 17.12.2009 09:45, schrieb Christopher Schnell:
NetBeans does that. all you have to do is to add /** above the method
and press enter. It can also handle type-hinting.
Regards,
Christopher.
Georg Gell schrieb:
Hello list,
just a quick OT post:
I am looking
Hello,
I have an action that accepts file uploads from a desktop program.
I use a form for validation (see below) and if the form is valid, I
process the uploaded files(see action below). This works as expected.
But the functional tests (see below) do not upload any file (result see
below,
11, 2009 2:01 PM, Georg Gell geor...@have2.com
mailto:geor...@have2.com wrote:
Hello,
I have an action that accepts file uploads from a desktop program.
I use a form for validation (see below) and if the form is valid, I
process the uploaded files(see action below). This works as expected
)
{
$this-isImport = $value;
}
And in your postInsert, just test :
if ($this-isImport)
{
// your stuff
}
Nicest way,
Alexandre
2009/12/4 Georg Gell geor...@have2.com mailto:geor...@have2.com
Hello group,
how can I check in a model class
and the values come from the properties.ini file.
- Jon
On Thu, Dec 3, 2009 at 4:15 PM, Georg Gell geor...@have2.com
mailto:geor...@have2.com wrote:
Hi,
the following tokens can be found in the autogenerated base model
classes in sf 1.4.
* @package##PACKAGE
. That
would be a question for Kris, I am not sure.
- Jon
On Mon, Dec 7, 2009 at 2:56 PM, Georg Gell geor...@have2.com
mailto:geor...@have2.com wrote:
Yes, svn update, symfony doctrine:build --all-classes and it is working
out of the box. Thanks a lot for your work.
Just out
about Your Environmental Responsibility!
Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale!
On Thu, Dec 3, 2009 at 10:53 PM, Georg Gell geor...@have2.com
mailto:geor...@have2.com wrote:
Where would you register the listener?
If it is registered in the form action
Hello group,
how can I check in a model class if the class is used from the
doctrine:data-load task instead from the normal application?
Example model Model
class Model extends BaseModel
{
public function postInsert($event)
{
if (not in symfony doctrine:data-load){
//do some wild things that
Hi,
the following tokens can be found in the autogenerated base model
classes in sf 1.4.
* @package##PACKAGE##
* @subpackage ##SUBPACKAGE##
* @author ##NAME## ##EMAIL##
Is there a way to replace them by real values? Or are they placeholders
for future use?
TIA Georg
--
You received
Hi Bernhard,
actually I had the logic in a postInsert method of the Client class,
which IMO made the most sense. But this lead to the following surprise:
When I used
$ symfony doctrine:data-load
from a fixture with one client and one user I suddenly ended with two
users instead of one. First
Where would you register the listener?
If it is registered in the form action, this would only be an elaborate
extension of the controller logic: instead of creating the Client object
and afterwards the User object directly in the controller, I would
register a listener in the controller that
Hello,
in my application, I would like to have this logic:
When I add a client, I would like to autmatically add an admin user for
the client. For me this belongs to the client object logic, and I have
put it in postInsert.
But if I use doctrine:data-dump and afterwards doctrine:data-load, I
Hello,
I have suddenly problems when I try to dump my data.
My model has a listener attached, that changes some queries.
Until now this didn't matter when using doctrine:data-dump. I updated
yesterday to sf 1.4, and now I can't dump the data anymore, because the
listener is executed.
This does
Dear list,
I have a Doctrine behaviour that sets the correct client id on some
tables on each save, update and select.
The idea is that I put
ActAs: ClientAware
in the schema.yml file for each table that should have a connection to
the client table, and the result would be:
* create a field
Did you save the fixtures file in UTF8?
cosmy schrieb:
Hi all,
do you know a method to load fixtures data without losing chars like
àèìòù and others?
It exchanges them with a question mark during the data-load.
thank you in advance
Hi,
I changed parts of my table definitions to a behaviour, and now
doctrine_data-load does not work any more with data, that were
previously working.
No big problem so far, probably made an error.
BUT:
The only message I have is this:
SQLSTATE[23000]: Integrity constraint violation: 1062
that gives more detail for errors that I
can easily convert to sf 1.2.
I mentioned the issues with non-verbose error messages in a Doctrine
ticket recently with data imports and I think it's something in the
pipeline.
On Mon, 2009-11-02 at 11:20 +0100, Georg Gell wrote:
Hi,
I changed parts of my
Hi,
afaik renderPartial is a method of the action. How can I call it in a
filter? Probably through the action stack, but I am too tired to search
through the docs again. Is it it fifo or filo?
TIA
Georg
--~--~-~--~~~---~--~~
You received this message because you
Guessing: you have short_open_tag=1 in php.ini on your pc, but
short_open_tag=0 on your laptop.
Avani schrieb:
Below is my code
345: !-- show only in trip-profile page
OR multimedia pages --
346: ?php
347:
In german, a decimal number looks like this: 5,2, not 5.2 like PHP is
expecting.
If a user enters a decimal number in a form, sfValidatorNumber rejects it.
I was expecting sfValidatorNumber to use the user culture to resolve
this, but it does not.
I found an old ticket on trac
Hi,
as I am just now developing a symfony application, I will watch myself
how I try to get the information I need and maybe add some suggestions.
In general I would like to say that the symfony documentation is very
comprehensive and well done. Thanks to the symfony team for it. On some
parts
Right, thank you
Davide Borsatto schrieb:
Slots are the solution to your problem, read about them in the docs
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group, send
Hi,
how can I include some custom style information in a specific template?
I would like to change the size of some divs fitting to the items in them.
So i think i am looking for a way to insert something like
style.item{width:17px}/style into the template, where the 17px will
be different for
(/alternate_index) ?
c) add it by hand in your template
I would recomend just 2a or 2b, as being most appropriate for a long
term maintainability.
Alecs
On Fri, Sep 18, 2009 at 11:16 PM, Georg Gell geor...@have2.com
mailto:geor...@have2.com wrote:
Hi,
how can I include some custom style
and size.
HTH,
Casey
On Sep 18, 2:27 pm, Georg Gell geor...@have2.com wrote:
Hi,
thanks for the answer.
at 1) AFAIK style should ony be in head, and I cannot put anything
in head in my template, this would have to be in layout.php, and there
I think I cannot access $this-style from
Dear list,
is it possible to set a certain base class for each doctrine record?
I tried baseClassName, but this was not working like expected.
I would like to have
Adress extends BaseAdress extends ClientAwareDoctrineRecord extends
Doctrine_Record
for all tables, that have a reference to the
Hello,
I am trying Doctrine for a new project, so my Doctrine level is newbie.
I would like to have nested albums with one root album per client, so I
set up the table like this:
Album:
actAs:
NestedSet: {hasManyRoots: true, rootColumnName: client_id }
columns:
path: { type:
Yes, I am interested. Please release them!
Georg
Jon Busby schrieb:
On the same subject, I've written a standard Paypal module (standard
webpayments), and a Google Checkout module. If anyones interested in
using these I'll release them under the MIT lisence in true symfony
fashion.
Lukas Kahwe Smith schrieb:
Georg Gell wrote:
Well in order to really leverage the benefits from agile development,
one must really build a trust relationship with the client. Otherwise
you do not benefit from throwing out things not deemed useful during
prototyping etc. All in all
43 matches
Mail list logo