Hi there,
removing some widgets from sfGuard forms is quite common, so you are
in good company!
The approach is to unset($this['permission_list']) insisde the
configure method of the incriminated form.
To make sure the form you are editing is being called just put a
die('HERE I AM') after your
Hi Viktoras,
could you explain better what do you want to achieve (e.g.: where you
want the links to appear) and the configurations you have tried?
Cheers,
Francesco
On Wed, Mar 16, 2011 at 4:02 PM, Viktoras char...@gmail.com wrote:
Probably this is easy to solve, but I can't find the solution.
I use this to inject the request in my services:
service id=request synthetic=true /
Then I can inject the request in my services.
service id=myservice class=%my.class%
argument type=service id=request /
/service
On 15 mar, 22:41, Hany El-Kerdany kerd...@gmail.com wrote:
Hi All,
I tried
I'd like to know how to do this as well.
On Mar 9, 9:33 am, Don Pinkster d...@pinkster.eu wrote:
I amtestingmy services (controllers) with plain PHPUnit, this all works
great. But now I want to test my entities and repositories.
How can I specify the environment the tests are run in with
Hi,
I would like to remove the default word Actions from the header of
generated admin lists. I have searched the template it uses, and I
found that there is a _list.php with this header.
However, copying this file to the module templates directory and
overriding it raises several errors.
How
Hey,
Running a simple Zend Controller benchmark on a simple page vs a page
with a 2 fields form, the number of requests per second without the
form is 4 times larger than the one with the form (56 vs 14).
Is this the level of performance intended for forms?
The pages in question are generated in
You should definitely use Propel 1.5
It's back-compatible with Propel 1.4 and much much more developer friendly.
cheers
Massimiliano
--
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
Thanks Gustavo,
Where can I read about request scope and configuration attributes like scope
and synthetic, I couldn't find information in the documentation.
On Thu, Mar 17, 2011 at 15:16, Gustavo Adrian
comfortablynum...@gmail.comwrote:
I use this to inject the request in my services:
That's because there is no documentation on these features yet; they are
very advanced, and most users won't need them, so they have no priority atm.
While the fix that Gustavo posted virtually disables all scope sanity
checks, it should be avoided at all cost; you'll only create problems for
Ooops, I didn't know that :P. Which would be the right way to inject the
request service on our own services? Should we use a Compiler pass?
Thanks for clarifying this. I thought this was the right solution.
Best regards.
On Thu, Mar 17, 2011 at 11:54 AM, Johannes Schmitt
NP :) Unfortunately, there is no general solution, it depends. Maybe the
following thread helps you:
http://groups.google.com/group/symfony-devs/browse_thread/thread/a7207406c82ef07a/e2626c00f5cb9749
Kind regards,
Johannes
On Thu, Mar 17, 2011 at 4:01 PM, Gustavo Adrian
It is not a good time to speak about performance. First the framework is not
stable, and the Form component is being refactored.
On 17 mars 2011, at 15:14, Costin wrote:
Hey,
Running a simple Zend Controller benchmark on a simple page vs a page
with a 2 fields form, the number of requests
Thanks a lot for your help Johannes. It seems to be a topic more advanced
than I thought, and it really depends on each use case to decide which
action to take. Is there other example of a custom scope inside the
framework besides the request service that I can see? so I can get a better
picture
i cant get connection i use symfony-standard PR07
autoload.php i setup namespaces
Doctrine\\MongoDB
Doctrine\\ODM\\MongoDB
in AppKernel.php
new Symfony\Bundle\DoctrineMongoDBBundle\\DoctrineMongoDBBundle()
but i get
Fatal Error: Interface 'Doctrine\Common\Persistence\ObjectManager' no found
I'm trying to load data from fixtures jobs.yml and categories.yml
with this command:
$ php symfony doctrine:data-load
But the tables are empty. I have got the columns and tables created,
but no data loaded.
Any ideas?
I have no error message and my files are correctly named with .yml
I have no
Hi Symfony guys!
I would like to submit a patch for Symfony2.
So I followed all those steps:
http://symfony.com/doc/2.0/contributing/code/patches.html
Before starting to develop the patch, I ran phpunit on my forked
repository.
I get this error:
Fatal error: Class
Buenos dias
tengo dos semanas tratando de hacer un pequeño proyecto
utilizando ODM
luego de instalar *MongoDB*, el *Driver* de Mongo y *PHPMOADMIN* para probar
que funcionaba el servidor
he tratado de configurar sin éxito Symfony2
entre los cambios, la poca de documentación y los ejemplos
Hi,
I'm trying to use Twig, and I would like to do a simple thing :
Display the parameters.title value defined in my config.yml file.
I found how to display http query parameters, but not config params
(the class GlobalVariables does not contain a getParameters
function).
Should I add a
Perhaps the problem is with the routing=
This from the log. It's still matching default_index
sfPatternRouting Match route default_index (/:module) for /job with
parameters array ( 'module' = 'job', 'action' = 'index',)
My routing.yml , it breaks if I get rid of default_index
Hi all, I'm getting the following error:
Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection
\Exception\CircularReferenceException' with message 'Circular
reference detected for service doctrine.orm.default_entity_manager,
path: cache_warmer - assetic.asset_manager - twig -
Hi all,
I am having the following error:
PHP Catchable fatal error: Argument 1 passed to
dmContext::createInstance() must be an instance of
sfApplicationConfiguration, instance of ProjectConfiguration given,
called in ...
my code looks like this
Somebody an idea ?
protected function
Hi,
I work under Symfony 1.4.6 and I develop a REST api based on json.
The access to all web services is secure and actually I use a Http
Basic Authentication.
To test authentication, I has overloaded the signin function of
plugin sfDoctrineGuardPlugin in which I make a redirect if the user
is
Hello,
I have something like this in my actions.class.php
public function executeIndex(sfWebRequest $request)
{
$foo = new foo(nar);
$this-js = $this-generateIndexTable($foo-bar());
}
Then in my indexSuccess.php view I access the variable $js from
actions.class.php as follows:
Boa tarde tenho um projeto, e gostaria de saber se o Symfony 2 tem a
opção de importar esquema do banco de dados para ele igual o Symfony
1. E se tiver pode dizer qual é o comando e como faz?
Good afternoon I have a project, and I wonder if the Symfony 2 has the
option to import the database
Hi,
I'm new to Symfony, and I don't even succeed in creating valid models.
I created my project - which use propel - and wrote the following
schema.yml:
propel:
poc:
id: ~
message: { type: varchar(140), required: true}
author: { type:
Have rebuilt it from Day 4 5, once I change routing.yml to include
job_show_user:
url: /job/:company_slug/:location_slug/:id/:position_slug
It then can't find the class in lib/Jobeet.class.php
Perplexed :(
i can ignore this and plough on but interested to know why it totally
breaks the whole
I'm working with Symfony 2 and possess a database already exists.
I wonder how to create classes it from existing stock.
Thanks.
--
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
Here is my paste: http://pastebin.com/9gNhD3d9
First and foremost, I love the direction S2 is going on everything.
I'm just stuck at this one point and don't understand what's going on.
I'm starting to think that Validation in Entity Annotations isn't the
way to go. It works when I'm starting a
Hello;
I'm using symfony 1.4.4 with doctrine 1.2, and I want to add a dql (or sql)
logger for each query.
I created a sqlLogger class with a function postExec, like this:
class sqlLogger extends Doctrine_EventListener {
public function postExec(Doctrine_Event $event)
{
// doLogging
Instalaste...
MongoDB y el
Driver de Mongo para PHP
Actualizaste php.ini
para registrar el driver ?
Creaste la carpeta
/data/db ?
2011/3/18 Julian Reyes Escrigas julian.reyes.escri...@gmail.com
i cant get connection i use symfony-standard PR07
autoload.php i setup
Forgive the stupid question, has the cache been cleared after creating
that class?
Cheers,
Francesco
On Thu, Mar 17, 2011 at 5:32 PM, Tom W tomwallac...@gmail.com wrote:
Have rebuilt it from Day 4 5, once I change routing.yml to include
job_show_user:
url:
Le 17/03/2011 18:01, Lideln a écrit :
Hi,
I'm trying to use Twig, and I would like to do a simple thing :
Display the parameters.title value defined in my config.yml file.
I found how to display http query parameters, but not config params
(the class GlobalVariables does not contain a
Le 17/03/2011 05:20, Marc MacLeod a écrit :
Hi all, I'm getting the following error:
Fatal error: Uncaught exception 'Symfony\Component\DependencyInjection
\Exception\CircularReferenceException' with message 'Circular
reference detected for service doctrine.orm.default_entity_manager,
path:
Hi
how i can enable Query logging for Docttrine MongoDB
--
Julian Reyes Escrigas
Desarrollador PHP/MySQL
rkmax.tumblr.com
about.me/rkmax
twttier.com/rokemaster
github.com/rokemaster
Sent with Sparrow
--
If you want to report a vulnerability issue on symfony, please send it to
security at
Basically I just got a small understanding on a service, but still no
clue how they pertain to forms. Also there is no documentation on
adding validation groups via Entity Annotations, so hopefully all
these things get solved one day. So if someone can guide me on how to
do validation inside the
Does the web debug bar show $js as being passed to the view? What does
`var_dump($js)` echo?
On Thu, Mar 17, 2011 at 05:34, Joeline Becker
xxxtenderloving...@googlemail.com wrote:
Hello,
I have something like this in my actions.class.php
public function executeIndex(sfWebRequest $request)
You sure you meant dmContext, and not sfContext?
2011/3/17 Philippe Mangé phili...@magicmanage.be:
Hi all,
I am having the following error:
PHP Catchable fatal error: Argument 1 passed to
dmContext::createInstance() must be an instance of
sfApplicationConfiguration, instance of
You need to call the task with a specific application (either by
adding --application=whatever to the calling code, or by specifying
the default application in the respective parameter).
Without that, you get a project config, with it, you get an
application config. The reason is that many
I'm wondering how a Symfony2 developer should handle Entity
dependencies
ie
One might separate their application into 3 bundles, A, B, and C. How
should one handle cross-bundle Entity dependencies?
Eg
- bundle A is an AuthBundle
- Bundle B is a BlogBundle
The BlogBundle will likely require a
Hello,
I'm building (or trying to while learning how symfony works) a site with my
dev environment in Symfony 1.4, with MSSQL 2008 R2, PHP 5.2.17 and IIS 7 on
Windows Server 2008 R2. I designed my schema so that there's a table (Asset)
that has a one-to-many relationship to another table
Thanks Johannes,
The thread you sent is indeed very informative. Understanding scope is not
an option IMHO.
I expect that the answer to my question -as far as I understand- is to scope
my controllers in which I want to inject the request as request-scoped
services, which will not cause
41 matches
Mail list logo