I made fileuploads work by configuring the referring
nameForm.class.php. Make sure the form ist working. Admin
generator is using the configuration made in the form class.
I think it's the easiest way to configure a fileupload. In my case a
editable fileupload. With template you can customize
On 4 mar, 16:49, Gorka glopezdeto...@gmail.com wrote:
Last time I checked -though it was months ago- I think nodes could not
be moved through the tree, but I am not sure. Maybe the limitation was
that they could not be moved between different trees (different
scopes)... sorry for my bad
Maybe it is, but you're creating options for this as an array, am I
right? So you can add at the begining an empty option.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group,
On 6 Mar 2009, at 02:59, Lawrence Krubner wrote:
Okay, I sort of see what is going on now.
When the login page is done loading, the sfErrorHandler plugin
attempts to send a 500 response and then send an error.
Does anyone know why this plugin would mis-fire?
Well, that's a test case I
On Mar 6, 2:04 am, Sid Bachtiar sid.bacht...@gmail.com wrote:
No, AFAIK there isn't default login form. You need sfGuardPlugin or
build your own.
Where does the login form go? Symfony redirects me to this URL:
frontend_dev.php/symfony/login
But where is the module called symfony?
Symfony
Hi,
There is no actual module name 'symfony', it is caused by the default
routing.yml (in config folder of your app).
Module 'symfony' in URL is really an 'alias' of module 'default'. Look
at the routing.yml, it'll make sense.
You can not just put a loginSuccess template. It takes more than
May i jump in ;o)
I wonder, because moving a node with all it's descendants and children
down to one descendant cannot work, or am i wrong? By moving a node
you are also moving all nodes beneath it (descendants and children
too), so this can't work, because the node you are moving to is not
And of course read on the chapter of security to get an idea of how
security is implemented in Symfony.
Btw, what is the Symfony version you are using?
On Fri, Mar 6, 2009 at 11:14 PM, Sid Bachtiar sid.bacht...@gmail.com wrote:
Hi,
There is no actual module name 'symfony', it is caused by
As an aside, a LegacyError is any PHP error that isn't an exception
(or, that is an UNCAUGHT exception).
The errorHandler in sfErrorHandlerPlugin replaces the standard PHP
error handler and rethrows PHP errors as exceptions (which the
rendering filter then catches and displays)
On 6 Mar
Hello Ant,
Thanks for your comment. I'd have to write a plugin that is called
from every action, or rather I'd have to automatically call the code
by injecting a caller into the symfony request bootstrapping chain.
Which works fine, I've done that in the past for example for allowing
users to
As an aside, a LegacyError is any PHP error that isn't an exception
(or, that is an UNCAUGHT exception).
The errorHandler in sfErrorHandlerPlugin replaces the standard PHP
error handler and rethrows PHP errors as exceptions (which the
rendering filter then catches and displays)
On 6 Mar
I'm working on a new site. It is in development. When I look at it in
the browser, I'm always looking at the dev controller. Everytime I add
a plugin, or new models, I need to run this command:
php symfony cc
Why do I need to do this? I thought caching was off by default for the
dev controller?
Whenever a YAML file is added/modified you need to clear the cache -
this is what is being cached.
Most plugins have a YAML file of some sort, so it's best practice to
clear the cache whenever you've added a new plugin
On 6 Mar 2009, at 11:08, Lawrence Krubner wrote:
I'm working on a new
On Mar 6, 4:59 am, Lee Bolding l...@leesbian.net wrote:
On 6 Mar 2009, at 02:59, Lawrence Krubner wrote:
Okay, I sort of see what is going on now.
When the login page is done loading, the sfErrorHandler plugin
attempts to send a 500 response and then send an error.
Does anyone know
hai
I m rightnow going through symfony jobeet tutorial.
At the end of 3rd day after putting all the code when i run the module
job in the browser i get what i wrote in index.php file as per the
tutorial.
I m new to the symfony .pls help me.
I've tried this:
$this-widgetSchema['date'] = new sfWidgetFormInputHidden();
$this-widgetSchema['date']-setDefault(date(Y-m-d h:m:i));
but I get this error:
Fatal error: Call to undefined method
sfWidgetFormInputHidden::setDefault() in /home/lawrence/public_html/
On Mar 6, 7:16 am, Lawrence Krubner lkrub...@geocities.com wrote:
I've tried this:
$this-widgetSchema['date'] = new sfWidgetFormInputHidden();
$this-widgetSchema['date']-setDefault(date(Y-m-d h:m:i));
but I get this error:
Fatal error: Call to undefined method
Hi
I keep my translation file in apps/frontend/i18n/messages.pl.xml
All texts in templates are translated.
It is weird that some forms are not translated, some of them are
mostly translated and none of notice and erros messages were
translated.
I checked language, coding, ids in xml, everything.
I see that mostly it was a problem of session. Sorry to bother
--~--~-~--~~~---~--~~
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
Hi
I do not want to say how long I have spent on this...but I have an
issue where an ajax call is working in a dev environment and not in
a prod environment.
After drilling in It turns out that the ajax call would only work with
logging enabled at levels info or debug, no others.
Or...in the
Does anyone know how to translate setFlash notices and erros? A put
translation in my message.pl.xml file but it doesn't work
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this
Hey All,
I'm trying to switch pooling off for a specific environment in my
databases.yml file. This is what I did:
-
cron:
propel:
param:
pooling: false
all:
propel:
class: sfPropelDatabase
param:
dsn:
Look at this example:
$this-setWidget('referer', new sfWidgetFormInputHidden());
$this-setDefault('referer',
sfContext::getInstance()-getRequest()-getReferer());
Cheers, Alan Gabriel Bem
On Fri, Mar 6, 2009 at 1:16 PM, Lawrence Krubner lkrub...@geocities.comwrote:
I've tried this:
May be this help you
http://trac.symfony-project.org/ticket/4906
--~--~-~--~~~---~--~~
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
You have to use the helper trough the sfContext object.
From everywhere :
sfContext::getInstance()-getI18N()-__('The flash message');
So from an action :
$this-getUser()-setFlash('flash', sfContext::getInstance()-getI18N
()-__('The flash message') );
To minimify, you can put a protected
Hello,
First question would be how can i have the sfFormLanguage directly in
the layout (layout.php from app/templates) and then sfFormLanguage
being submitted to an action (general/changeLanguage)?
Second question is:
I have i18n routes like (references/1/persons (english), reference/1/
Hi there !
I use Symfony 1.2.4.
I loaded I18N as default helper.
I activated i18n on app's settings.yml.
I use __() function to translate in templates.
I use sfContext::getInstance()-getI18N()-__() everywhere else.
My only app is named manager.
I do not use admin generator (but I did once, to
Just find out that by :
- deleting %sf_symfony_lib_dir%/plugins/sfPropelPlugin/i18n
- creating apps/myapp/i18n/fr/
- creating a messages.yml valid but empty here
- relaunching the task
It does work by updating apps/myapp/i18n/fr/messages.yml
But this is absolutely not user-friendly to me ...
Hi,
It works for me.
Did you create a blah-blah route in your routing.yml file ?
Can you run a symfony app:routes your_app and check if the route exists ?
On Fri, Mar 6, 2009 at 1:25 PM, IsRobot tony.hewi...@googlemail.com wrote:
I want my admin generated module URL to be like this:
Hi Noel,
Thanks for your reply. I had not tried adding my own route but have
since tried adding this rule:
foo-bar
url:/foo-bar/:action/*
param: { module: foo_bar }
as well as the changes I had already made. This did not work.
This is the output of symfony app:routes your_app both
bonjour ,
question d'un newbie sur doctrine orm ; j'aimerais savoir si doctrine
oblige que chaque clé primaire se nomme id .
et s'il ya autres choses à savoir toujours dans les règles de nommage
des champs avec doctrine je suis prennant merci .
On Mar 6, 7:39 am, Alan Bem alan@gmail.com wrote:
Look at this example:
$this-setWidget('referer', new sfWidgetFormInputHidden());
$this-setDefault('referer',
sfContext::getInstance()-getRequest()-getReferer());
Thanks. What is the URL for this example? I'd like to see more
There is a bug in the index by statement where the table alias is not
referenced.
Here is a patch file for the change:
Index: TaggableTemplate.class.php
===
--- TaggableTemplate.class.php (revision 15938)
+++
It would probably be best to create a ticket?
- Jon
On Fri, Mar 6, 2009 at 3:21 PM, Michael Smith sitecr...@gmail.com wrote:
There is a bug in the index by statement where the table alias is not
referenced.
Here is a patch file for the change:
Index: TaggableTemplate.class.php
I wasn't real sure where to put it. There's no component for
sfDoctrineActAsTaggablePlugin in the symfony trac and there is nothing
on the plugin page about bugs. What is the proper way to report a bug
in a plugin?
On Mar 6, 3:30 pm, Jonathan Wage jonw...@gmail.com wrote:
It would probably be
Well, as it is being done in the forms system, I don't really use the
__ method like you wrote, as it happens automatically.
So I can't do what you wrote.
But it's a creative idea, thanx.
Anything else I can do ? suggestions ?
On Mar 6, 3:06 am, jukea jkea...@gmail.com wrote:
oops, typo error
Salut,
Par défaut, Doctrine attribue le champ id comme clé primaire, mais
rien ne t'empêche de définir explicitement un autre champ comme clé
primaire de ta table. Toutes les informations nécessaires se trouvent
dans la documentation de Doctrine sur le site officiel :
Hi,
I just tried out sfSimpleBlogPlugin and it's awesome. But it is
missing a hit counter to analyse the traffic (even really simple one).
What do you guys use for hit counter for your Symfony projects? I'm
just surprised there isn't a plugin for it.
--
Blue Horn Ltd - System Development
On Mar 6, 7:39 am, Alan Bem alan@gmail.com wrote:
Look at this example:
$this-setWidget('referer', new sfWidgetFormInputHidden());
$this-setDefault('referer',
sfContext::getInstance()-getRequest()-getReferer());
Sorry, but that doesn't work. The setDefault method is only
available
On Mar 6, 7:19 pm, Sid Bachtiar sid.bacht...@gmail.com wrote:
Hi,
I just tried out sfSimpleBlogPlugin and it's awesome. But it is
missing a hit counter to analyse the traffic (even really simple one).
What do you guys use for hit counter for your Symfony projects? I'm
just surprised there
On Mar 4, 6:51 am, Paolo Mainardi paolomaina...@gmail.com wrote:
RTFM:http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chap...
Does the standard Javascript helper work in these circumstances? Like
this:
?php use_helper('Javascript') ?
On Wed, Mar 4, 2009 at 12:45
On Mar 4, 6:51 am, Paolo Mainardi paolomaina...@gmail.com wrote:
RTFM:http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chap...
Just to be clear, I'm asking about the layout, not the template. The
page you point me to shows me how to get my Javascript files into my
template.
IMHO filter is better for this kind of things.
Anyway, I threw the question to find out what everyone else is using.
On Sat, Mar 7, 2009 at 3:31 PM, Lawrence Krubner lkrub...@geocities.com wrote:
On Mar 6, 7:19 pm, Sid Bachtiar sid.bacht...@gmail.com wrote:
Hi,
I just tried out
On Mar 2, 12:38 pm, vadim samokhinva...@gmail.com wrote:
It's a variable showing that the save/update operation already started
for this object, so it prevents an implementation of other insert/
update operations until the current one is over. When the operation
starts - alreadyInSave is
On Mar 4, 6:51 am, Paolo Mainardi paolomaina...@gmail.com wrote:
RTFM:http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer#chap...
So, perhaps this is impossible?
On Wed, Mar 4, 2009 at 12:45 PM, Lawrence Krubner
lkrub...@geocities.comwrote:
On Mar 4, 5:50
Anyone got these two working for Symfony 1.2?
--
Blue Horn Ltd - System Development
http://bluehorn.co.nz
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this group, send email to
layout.php is just a wrapper for the the template and contains the
head section of the html, so all things that are added to the head are
actually added to layout.php by the include_metas() call. so if in
apps/applicationname/config/view.yml you do:
all:
javascript:
- file1
-
If you have neste objects. For example:
Assume the following Schema:
author:
id:
name:
book:
id:
title:
author_id:
So if we do:
$author = new Author();
$author-setName('Lawrence Krubner');
$book = new Book();
$book-setTitle('Learning Symfony');
$book-setAuthor($author);
Greetings all,
We have recently released a project we have been working on for some months
now as an Alpha version and while we have focussed primarily on bug fixing
as well as feature completion for the next Alpha release coming up in a
week, I can't help but notice something disconcerting.
The
49 matches
Mail list logo