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/:i
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 a
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 more
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
> (www.linuxpl.
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=gst&q=diogobaeder#76035d6987e00ad8
>
> But I haven't found a solution, yet. The problem is, I have to deliver
>
, schrieb Mike Church:
>
>
> On Jan 11, 12:30 pm, Georg Gell 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)
>>
>> A
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 l
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
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
question is "can we over-redirect" ?
>
>
> 2009/12/20 Georg Gell 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
You might use a virtual server.
I have a virtual ubuntu server in a vbox with bridged network.
So it has it's own network address and can be reached from the whole
network, and the source code is on a shared windows directory mounted by
smbfs. I used vboxsf for mounting the share, but had some trou
our stuff :
>
> public function processForm()
> {
> try
> {
> parent::processForm();
> }
> catch (sfStopException $e)
> {
> $this->redirect(...);
> }
> }
>
>
> Not sure if this will work... T
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 (4
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,
Hello list,
just a quick OT post:
I am looking for a way to auto add auto prefilled PHPDoc comments on my
PHP files.
For example if I have a method like this:
public function doSomething($var){
then it should add above (if no PHPDoc comment is already existing)
/**
* doSomething
*
* @author Me
the file parameter is
> not empty.
>
> sent via htc magic
>
>> On Dec 11, 2009 2:01 PM, "Georg Gell" > <mailto:geor...@have2.com>> wrote:
>>
>> Hello,
>>
>> I have an action that accepts file uploads from a desktop program.
>> I
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, result
ot sure. That
> would be a question for Kris, I am not sure.
>
> - Jon
>
> On Mon, Dec 7, 2009 at 2:56 PM, Georg Gell <mailto:geor...@have2.com>> wrote:
>
> Yes, svn update, symfony doctrine:build --all-classes and it is working
> out of the box. Thanks a
and the values come from the properties.ini file.
>
> - Jon
>
> On Thu, Dec 3, 2009 at 4:15 PM, Georg Gell <mailto:geor...@have2.com>> wrote:
>
> Hi,
>
> the following tokens can be found in the autogenerated base model
> classes in
>
> protected $isImport = false;
>
> public function setIsImport($value)
> {
> $this->isImport = $value;
> }
>
>
> And in your postInsert, just test :
>
> if ($this->isImport)
> {
> // your stuff
> }
>
&g
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
p to here (in case anyone sees this :-D)
Georg
Stéphane schrieb:
> First, Hello (sorry) :-)
>
> I was assuming this was happening to one of your class; is this
> happening to all/other classes ?
>
> Before Printing, Think about Your Environmental Responsibility!
> Avant
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 gets
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 dat
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
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
rec
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 not
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 cl
Is there a way to have a table with the nestedSet behaviour cascade it's
delete on the application level (like cascade: [delete]? I have a file
for each record in the file system that I would like to delete also.
Georg
--~--~-~--~~~---~--~~
You received this messa
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
> >
>
--~--~-~--~~~-
or 1.3 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 +01
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 Dupli
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
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
(http://trac.symfony
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:
> 346:347:
> if($show_left_sliding_men
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 t
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
gt; that there is one. The only other thing I can think of is to use ajax
> calls to update the object's contents and size.
>
> HTH,
> Casey
> On Sep 18, 2:27 pm, Georg Gell <geor...@have2.com> wrote:
>
>> Hi,
>>
>> thanks for the answer.
>> at
_index"] # check the doc
> b) in your template add
>
> 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 <
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
.item{width:17px} into the template, where the 17px will
be different for each request.
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 c
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: string,
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:
>> 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. Otherw
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
> prototypi
Hi everyone,
this is a little off topic, but I am reading the symfony book atm, it
was mentioned in the book that symfony is very useful for RAD and code
refactoring, as the newer customers often change the requirements.
Technically I am quite used to RAD and I see it's advantages, but I am
worki
48 matches
Mail list logo