Greetings,
I am about to start using Symfony 2.
Initially, I've got the question, if there already is any existing
work or work in progress, implementing support for Dojo Toolkit
(especially forms).
Best regards
Christian Schulze
--
If you want to report a vulnerability issue on symfony,
Any real time websites built with symfony that I could look at to understand
its capability
On 29-Mar-2011 11:15 PM, Pete Sisson petes...@gmail.com wrote:
Hi folks
I've been trying to move my bundle from importing the config in to the
apps config.yml with imports (which I have working fine),
Your problem is not specifically related to symfony. It's a PHP concept:
http://www.php.net/manual/en/language.oop5.magic.php#language.oop5.magic.tostring
And symfony is using it to render your model objects to strings (for
choice-fields / dropdowns f.E.).
So if it is the Book which can not
I've been working on an implementation too and what I've got that appears to
be working reasonably well:
https://github.com/merk/CommentBundle/blob/acl/Acl/SecurityThreadAcl.php#L96--
This is called from a command that will install the fallback Class ACE
entry.
I want to translate the signin form of sfDoctrineGuard plugin to Dutch.
How can I do this?
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony users group.
Hi,
2011/3/30 Bernhard Flokstra symf...@eenwereldapart.nl:
I want to translate the signin form of sfDoctrineGuard plugin to Dutch.
How can I do this?
take a look at
plugins/sfDoctrineGuardPlugin/i18n/
--
Best regards,
Michal
http://eventhorizon.pl/
--
If you want to report a
Hi,
So, I only have to copy one of the sf_guard.**.xml files and change the
language codes to nl? Then I wonder why it issn't working.
What I did is this. I duplicated
/plugins/sfDoctrineGuardPlugin/i18n/sf_guard.es.xml and renamed the
duplicated file to sf_guard.nl.xml. Then I changed the
I'm using the PR9 and is having the same issue.
The main issue is really that I can't find any documentation at all
on how to handle the submission of files through forms.
Anyone that have found something to share on this topic? :-)
I've got the form (with a FileField) to submit the file, but
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
hi jab,
one of our customers just went online with http://www.joiz.ch/
all shiny new symfony2.
cheers,
david
Am 29.03.2011 20:23, schrieb Jab..:
Any real time websites built with symfony that I could look at to
understand its capability
On
Simply speaking, I want a link next to New, Save, Save and add.
I mean next to New in the list.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups symfony users
Le 30/03/2011 02:58, Diego Henrique Oliveira a écrit :
Guys,
Anyone can tell me why the mongodb it's no supported by Symfony PR9?
I'm trying to enable MongoDbBundle and i'm getting this error:
https://gist.github.com/893668
Thanks
You need to get the vendors : the Mongodb ODM and the mongoDB
Le 30/03/2011 05:59, César Hernández a écrit :
Ufff, now
*php app/console doctrine:mongodb:data:load*
PHP Fatal error: Class 'Doctrine\Common\DataFixtures\Loader' not
found in
/var/www/sf2-pr8-05/vendor/symfony/src/Symfony/Bundle/DoctrineAbstractBundle/Common/DataFixtures/Loader.php
on
Ok, a little but more details. I found out, that route tokens are
different for default and my custom actions.
Default:
array
0 =
array
0 = string 'separator' (length=9)
1 = string '' (length=0)
2 = string '/' (length=1)
3 = null
1 =
array
0 = string
Try to set 'i18n' option to TRUE in your settings.yml if not set.
See this reference for details: http://www.symfonyreference.com/settings-yml
--
http://www.symfonyreference.com - Symfony Configuration Reference (schema.yml,
databases.yml, settings.yml, etc..)
2011.03.30
Wednesday, March
O.k., I¹ve figured it out - the backup file is created by EntityGenerator (
Doctrine\ORM\Tools):
if ($this-_backupExisting file_exists($path)) {
$backupPath = dirname($path) . DIRECTORY_SEPARATOR . ~ .
basename($path);
if (!copy($path, $backupPath)) {
My question is already listed in the topic. I’d like to explain why I would
like to have this feature with a simplified example. I am developing a
multilingual website, and some entities are containing fields like:
name_en
name_fr
name_xx
The number of languages is not big, so there is no need
Hey Pete-
Also, just an FYI - for end-user bundles (that you're not going to
share or use in multiple projects), we don't really recommend using
the Extension class (there's really no point to doing the extra work).
That's part of the reason why the docs trail off a bit there. They
will be filled
You should use a Doctrine extension to manage translations:
https://github.com/l3pp4rd/DoctrineExtensions
On Wed, Mar 30, 2011 at 11:52 AM, Alexander Kachkaev
alex.kachk...@gmail.com wrote:
My question is already listed in the topic. I’d like to explain why I would
like to have this feature
ok...
has gone a little ...
*file: config.yml*
doctrine_mongo_db:
connections:
default:
server: mongodb://localhost:27017
options:
connect: true
default_document_manager: default
document_managers:
default:
mappings:
Your function should look like:
public function load($manager)
{
$user1 = new User();
$user1-setName('Cesar Hernandez');
$manager-persist($user);
$user2 = new User();
$user2-setName('May-lhing Sanchez');
$manager-persist($user);
$user3 = new User();
mongod is runnig
phpinfo()...
mongo MongoDB Supportenabled Version 1.1.4
DirectiveLocal ValueMaster Value mongo.allow_empty_keys00
mongo.allow_persistent11 mongo.auto_reconnect11 mongo.chunk_size262144262144
mongo.cmd$$ mongo.default_hostlocalhostlocalhost mongo.default_port27017
27017
Mongo class is used to create a connection to MongoDB from PHP (
http://php.net/manual/es/book.mongo.php ). You don't have to create an
instance yourself. Your problem is that the class Mongo is not being found.
Can you verify if you have two php.ini, and if that's the case, if the
extension is
I would think that would work, and ironically the same logic could be used
to do exactly what I wanted to do. I would consider reversing the logic
though, and adding a block permission. That way it is exclusionary and
lighter.
The only advantage I can see to having a separate relationship at
Continuous progress...
but now I have a new problem
*file: config.yml*
doctrine_mongo_db:
connections:
default:
server: mongodb://localhost:27017
options:
connect: true
default_document_manager: default
document_managers:
Thanks Gustavo,
effectively add the driver was missing in the CLI php.ini
2011/3/31 Gustavo Adrian comfortablynum...@gmail.com
Mongo class is used to create a connection to MongoDB from PHP (
http://php.net/manual/es/book.mongo.php ). You don't have to create an
instance yourself. Your
Le 30/03/2011 20:14, César Hernández a écrit :
Continuous progress...
but now I have a new problem
*file: config.yml*
doctrine_mongo_db:
connections:
default:
server: mongodb://localhost:27017
options:
connect: true
You don't have the container on the fixtures by default. You have to
implement the ContainerAwareInterface interface.
In your case you don't need the container. Your method should be:
public function load($manager)
{
$persona1 = new Personas();
$persona1-setNombre('Cesar
Thanks to all
and it works ...!
--
César Hernández
Anzoátegui - Venezuela
dpce...@gmail.com
LinuxCounter: 285.345
CIV: 122.539
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to
salut ,,
j'ai une erreur qui m'enerve quand je veux afficher mon prenom avec dans
le template avec la fonction getprenom() il m'affiche l'erreur suivante
Fatal error: Call to a member function getprenom() on a non-object in
C:\development\sfprojects\gestion des
Gustavo, thank you very much for your reply. Those extensions look very
powerful!
But to my mind the approach you’ve mentioned is more appropriate for
applications having many languages rather than two or three. Translations
are kept in separate tables, so there is more load on the database.
@johannes: It is simple enough I have a record that can be related to one
or more users who have X permissions. Since I am planning on using the ACL
I was hoping to avoid creating a second redundant link between the record
and the users.
I think however for the time being I will take the
I still think the best alternative is to use an extension with i18n tables
to manage translations. It's a lot easier to handle translations and it
doesn't mean it overloads your DB that much. It's just one JOIN. You can
always use cache strategies to avoid performance problems.
Still, if you
Le 30/03/2011 21:38, Alexander Kachkaev a écrit :
Gustavo, thank you very much for your reply. Those extensions look
very powerful!
But to my mind the approach you’ve mentioned is more appropriate for
applications having many languages rather than two or three.
Translations are kept in
Thanks for the replies guys.
Looks like I just got the naming messed up.
I see the point re Extension class being for distributing so a bit
overkill otherwise. Cheers.
Pete
On Mar 30, 3:55 pm, weaverryan weaverr...@gmail.com wrote:
Hey Pete-
Also, just an FYI - for end-user bundles (that
Hi Sven,
I have the same issue with PR9, I'm only able to generate the debug
assets. For that I used write_to in app/config/config.yaml like you
wrote but prod environment nothing I don't know why.
BTW here is the code I use in my twig template
{% stylesheets
Hi! I have a question on how to build an effective validation system in
Symfony2+Doctrine.
I want to make sure that my entity will never be stored in DB in incorrect
state. Also, I want to use symfony validation to display validation errors
in forms in correct way.
So I've implented service,
finally switched to sf2, it is much better
On Mon, Nov 8, 2010 at 12:26 PM, Luis Cordova cordo...@gmail.com wrote:
hi,
how I removed the @ from the mkdir on the validatedFile.class.php core file
on symfony and now I get:
exception 'RuntimeException' with message 'PHP sent a warning error
Hi Illya,
2011/3/30 Illya Klymov illya.kly...@gmail.com:
Another problem is binding some validation checks to corresponding form
fields. As far as i understand, getPropertyPath is used to retrieve data
from ConstraintViolations and to bind error to corresponding form field. I
have a method
Hi,
someone to tell me what pros and cons combining symfony with drupal?
Should i use better any other CMS based on symfony (sympal,
diem,...) ? What is your experience?
Bye
Javi
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You
Hi everybody [?]
I need the functionallity of the link_to() helper.
It generates a link tag when clicked it triggers an Onclick event that
submit an embbeded form which is similar to:
a href='#' onclick=if (confirm('Are you sure?'))
{
var f = document.createElement('form');
f.style.display
On Wednesday, March 30, 2011 10:05:34 PM UTC+2, Wizermil wrote:
Hi Sven,
I have the same issue with PR9, I'm only able to generate the debug
assets. For that I used write_to in app/config/config.yaml like you
wrote but prod environment nothing I don't know why.
BTW here is the code I
In my view I have the following code to generate assets:
File: @MyBundle/Resources/views/layout.twig.html
{% assets 'mybundle/css/*.css' output='css/all.css' %}
{{ asset_url }}
{% endassets %}
You're missing the @ when refering to a resource.
It should be {% assets
42 matches
Mail list logo