Few years ago, I remember I meet the same problem in a database
migration script.
The problem was coming from the xdebug module. I don't know how this
module work but it was making the script growing up in the memory.
The problem was resolved by disabling the xdebug module.
On 21 mai, 16:55,
This appears to be a bug in the yaml parser - just looking for
confirmation before escalating it.
The following yaml config line works as expected
foo: a printf template with token 1 '%s'
however if I add a second token thus
foo: a printf template with token 1 '%s' and token2 '%s'
Symfony2
@Christophe: Thanks for the explanation. This was basically my
understanding of things. I tried this approach (extending from the
superclass) but ran into some errors. It turns out that the current
beta 1 of Symfony 2 is incompatible to the UserBundle. I checked out
the master versions of both
I try to use assetic with php template like this :
?php foreach ($view['assetic']-stylesheets(array('public/css/*'))
as $url): ?
link rel=stylesheet type=text/css media=screen href=?
php echo $view-escape($url) ? /
?php endforeach; ?
But it doesn't work.
I have the error :
Route
You could try Sonata's AdminBundle:
https://github.com/sonata-project/AdminBundle
http://rabaix.net/AdminBundle/html/index.html
http://sftuts.com/doc/jobeet/en/the-admin-generator.html
Cheers,
Peter
--
If you want to report a vulnerability issue on symfony, please send it to
security at
hello,everyone,
i created a register form:
class RegForm extends sfForm{
public function configure(){
$this-setWidgets(array(
...
'email'= new
sfWidgetFormInputText(array('label'='email address:','default'='@')),
great, thx, works like a charme
On 20 Mai, 17:03, Christophe COEVOET s...@notk.org wrote:
Le 20/05/2011 17:00, s.rohweder a crit : Thanx a lot, but at the moment
there seem something broken, as I get
an error.
Uncaught exception 'InvalidArgumentException' with message 'There is
no
Two points:
- you're trying to overwrite the existing validator of the email field
- as the error message says: sfValidatorPropelUnique may only be used
as a post validator. Here's an example:
$this-validatorSchema-setPostValidator(
new sfValidatorPropelUnique(array(
throw_global_error =
hi all,
does anyone know to properly download an excel file?
in my code i have
public function executeDownload(sfWebRequest $request)
{
$excel_file = Doctrine::getTable('Project')-find($request-
getParameter('id'));
$this-setLayout(false);
Hi,
I have downloaded this PayPal API:
https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_PHP_SOAP_SDK.tar.gz
And I'm getting this error:
Fatal error: Cannot redeclare class SOAP_Client in /home/me/app1/
plugins/mbpPlatformFrontendPlugin/lib/paypal/PayPal/SOAP/Client.php on
line 83
Thanks for sharing your feedback ;-)
--
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.
To post to this group, send email to
Well, I just want to add that when I type .../paypal$ grep -R
'Client.php' *, and I'm getting this:
PayPal/CallerServices.php://require_once 'PayPal/SOAP/Client.php';
PayPal/SOAP/Client.php:// $Id: Client.php,v 1.1.1.1 2006/02/19
PayPal/SOAP/WSDL.php: //require_once 'PayPal/SOAP/Client.php
Javi
Hi dear Community,
I am currently playing around with the new Symfony 2 and so far I think
you did an excellent job!
But: I loved the feature from symfony 1 where your route could be
defined as an object type. So that if you want to generate an url, you
just have to pass an Object and the route
I want to have html meta data configurable in my project. I have my
custom service which holds this information (page title, keywords,
description...). So I want to access them in my layout.
How can I achieve this?
--
If you want to report a vulnerability issue on symfony, please send it to
Hi Ben,
I know it is pitty that the previous feature is away !
You could however, add a getRoutingArray() to your object, which returns the
array of parameters needed. You could then create a route like this:
{{ path('blog_show', blog.routingArray) }}
Christophe
--
If you want to report a
I want to have separate css/img (static) files for each theme
configured for my Symfony project.
How can I do this, probably some url and asset configuration?
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message
Hello,
i would like to integrate FOSFacebookBundle in my SF2 web site, i have
already my user bundle with user entity and userManager.
my problem is how to configure my security firewall ??
i have this :
providers:
in_db:
entity: { class: MyCoreBundle:User, property: email
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
is this in dev or production mode? if in production, did you generate
the assets with
app/console assetic:dump
?
cheers,david
Am 22.05.2011 14:23, schrieb John Blobsmith:
I try to use assetic with php template like this :
?php foreach
Where are your stylesheets located in your project directory — web/public/css/*
??
On Sunday, May 22, 2011 at 5:23 AM, John Blobsmith wrote:
I try to use assetic with php template like this :
?php foreach ($view['assetic']-stylesheets(array('public/css/*'))
as $url): ?
link rel=stylesheet
Hey Everyone,
I'm using Doxygen for my documentation generation. I updated to Beta2
and fixed all of the Doctrine annotations as described in the Update
Document and found that all of my doxygen annotations are causing an
exception to be thrown:
[Semantical Error] The annotation @fn in method
Put an @IgnoreAnnotation(fn) in the doc comment of the class where this
annotation is used.
Johannes
On Mon, May 23, 2011 at 5:05 PM, Roger Webb webb.ro...@gmail.com wrote:
Hey Everyone,
I'm using Doxygen for my documentation generation. I updated to Beta2
and fixed all of the Doctrine
Hey Everyone,
Another annotation issue with the SF2 Beta2 update. I have a
separate doctrine_bootstrap.php to use my entities outside of Symfony
(for some SOAP services) and it seems that the
setAnnotationNamespaceAlias method has been removed from the
AnnotationReader, so I removed the call to
The comment in question is below. This is still throwing the same
error. Also, it's generating this error based on the method. Will I
have to put this annotation in every comment block that uses the fn
annotation, or just in the first comment of the file?
For the developers, it would IMHO be
As I said, you need to put it in the doc comment of the _class_ even if
@fn is used in a method of that class.
I understand that it might be a bit tedious to update your code at first,
but being a bit stricter in the parsing process allows us to catch errors
early on. This will reduce the time
I've switched everything over to @ORM\ and @Assert\
But not sure what the proper replacement is for @extra.
Does it need to be changed also?
If so, what class should weuse ?
What should the new annotation form look like?
Getting this error (worked fine in beta1):
[1/2] AnnotationException:
Try these:
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
/**
* @Route(/, name=home)
* @Template()
*/
and
* @ParamConverter(id,
Until the BETA2 update I was getting warnings related to serializing
the User Entity, it is a breaking problem in beta2. So, I googled
around and found this:
http://groups.google.com/group/symfony-users/browse_thread/thread/54ca0790fa861271/edffbbc8343af2d0?lnk=gstq=__sleep#edffbbc8343af2d0
please can you use the same thread to reply to that serialize problem?
it will help others to have it all into one place
On Mon, May 23, 2011 at 12:23 PM, Roger Webb webb.ro...@gmail.com wrote:
Until the BETA2 update I was getting warnings related to serializing
the User Entity, it is a
Until the BETA2 update I was getting warnings related to serializing
the User Entity, it is a breaking problem in beta2. So, I googled
around and found this:
http://groups.google.com/group/symfony-users/browse_thread/thread/54c...
Following the advice there, I created serialize() and
done
On May 23, 12:26 pm, Luis Cordova cordo...@gmail.com wrote:
please can you use the same thread to reply to that serialize problem?
it will help others to have it all into one place
On Mon, May 23, 2011 at 12:23 PM, Roger Webb webb.ro...@gmail.com wrote:
Until the BETA2 update I
worked like a charm.
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 the Google
Groups symfony users group.
To post to this group, send email to
Actually the correct form of the uses is (so you can use the shorted @Route
instead of the long pathname):
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route as Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template as Template;
use
Issue has been resolved. I had a DateTime in there that I hadn't
converted to a string. For anyone else's benefit that may stumble
upon this, here's some relevant code snippets that worked out for me:
Class Declaration
class Users implements UserInterface, \Serializable {
Hello,
I'm playing with symfony2 beta2 right now and I've noticed that if I
load the dev environment on empty cache, symfony generates caches for
both dev and prod environments. Why? Is this expected behaviour?
Rytis
--
If you want to report a vulnerability issue on symfony, please send it to
I figured that out. Requests to non-existant files are routed to the
prod controller, so that triggered prod cache initialization.
On May 23, 8:43 pm, Rytis Daugirdas rytis.daugir...@gmail.com wrote:
Hello,
I'm playing with symfony2 beta2 right now and I've noticed that if I
load the dev
From the date field documentation:
The field can be rendered as a single text box or three select boxes
(month, day, and year).
I'm not seeing an option for 3 Text Boxes, it rendered as a single
text field before which made it work nice with JQuery UI Datepicker.
Perhaps the documentation is out
It's in the update doc and I'm having a severe case of the mondays.
Form: Renamed option value text of widget option of the date
type was renamed to single-text. text indicates to use separate
text boxes now (like for the time type).
On May 23, 1:01 pm, Roger Webb webb.ro...@gmail.com wrote:
Can I render only year and month? Useful for credit cards for example.
On May 23, 8:11 pm, Roger Webb webb.ro...@gmail.com wrote:
It's in the update doc and I'm having a severe case of the mondays.
Form: Renamed option value text of widget option of the date
type was renamed to single-text.
Hello,
If I enable the Debug extension and add {% debug %} in a template, it
either makes the page not load at all (blank) or run out of memory.
What could be the problem?
I'm on Windows 7, PHP 5.3.6.
Thanks,
Rytis
--
If you want to report a vulnerability issue on symfony, please send it to
I have several cases where, due to some picky spacing issues, I have
rendered fields manually with form_widget.
For instance:
tdbFirst Name: /
b{{ form_widget(borrower_search_form.first_name, { 'required':
false }) }}/td
In beta1, I could call form_rest() and it would behave as ( I )
Not that I'm aware of. One possible solution would be to use Jquery
to render it invisible (or render the three fields individually and
set us the 'attr' parameter to mark it as invisible. Either way you
would set a default value for the day.
Not sure if that's the best solution, but either one
I would be very glad if someone could help me with the following
problem. Thanks a lot on advance.
After updating to Beta2, updating the files, cache clearing and
restarting I have the following error:
skaldrom@skathe:/var/www/starcs/trunk/code$ app/console
doctrine:schema:drop --force
PHP Fatal
I overrided block date_widget like this:
{% block date_widget %}
{% spaceless %}
{% if widget == 'text' %}
{{ block('text_widget') }}
{% else %}
div {{ block('attributes') }}
{{ date_pattern|replace({
'{{ year }}': form_widget(form.year),
Fixed with:
twig:
globals:
globalMeta: @myMetaService
On May 23, 3:40 pm, umpirsky umpir...@gmail.com wrote:
I want to have html meta data configurable in my project. I have my
custom service which holds this information (page title, keywords,
description...). So I want to access
We can't have a custom route class that is smart enough to convert
objects to params and vice versa?
Daniel
On May 23, 6:41 am, Christophe Willemsen
willemsen.christo...@gmail.com wrote:
Hi Ben,
I know it is pitty that the previous feature is away !
You could however, add a
HI,
I've installed symfony beta1 on a windows environment (apache 2.2.17
and php 5.3.6)
The demo app works fine in app_dev mode, and also in app prod mode
with debug = true ($kernel = new AppKernel('prod', true);)
if I keep default prod mode:
$kernel = new AppKernel('prod', true);
the result is a
I try access http://www.jobeet.com.localhost/frontend_dev.php/
and get:
Notice: require_once(): 1. h-opened_path=[/home/sfprojects/jobeet/lib/
vendor/symfony/lib/plugins/sfDoctrinePlugin/lib/debug/
sfWebDebugPanelDoctrine.class.php] h-filename=[/home/sfprojects/
Hi all,
I installed symfony in ubuntu in the /var/www/SymfonyProjects directory.I
created a /lib/vendor directory in the SymfonyProjects directory and kept
the symfony zip folder and extract it inside it and installed it as
described in the
Hello everybody!
I have a problem in my prod server. All my post requests don't work
because of the URL rewriting.
Indeed, when I submit a form, I have an error page whereas if I add /
index.php/ in the route of the action called when I submit, it works.
I don't know why I have this problem
Hi to all,
I am new about Symfony2, I started using it about a month ago, and I
have never used Symfony(1).
I must authenticate users from ActiveDirectory so I must write my own
AuthenticationProvider, I guess.
I have already seen opensky/LdapBundle but only UserProvider is
provided by this
Hello,
When I do doctrine:generate:entities, I get :
Can't find base path for SdvMonitoringBundle (path:
.../src/Sdv/MonitoringBundle, destination:
.../src/Sdv/MonitoringBundle).
Please help me.
I'm migrating from Beta1 to Beta2.
--
If you want to report a vulnerability issue on symfony,
I've found.
A bundle cannot be a symbolic link.
Too bad.
--
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.
To post to this group, send email
* The annotation parsing process has been changed (it now uses Doctrine Common
3.0). All annotations which are used in a class must now be imported (just
like you import PHP namespaces with the use statement):
Before:
/**
* @orm:Entity
*/
class MyUser
{
/**
Anyone out there to help me...
--
Chinthaka Rukshan
Department of Computer Science and Engineering,
University of Moratuwa,
Sri Lanka.
--
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
Really? Odd, works for me without the as.
Oh well, if it breaks, I'll know what to do. Ta. :)
On 23 May 2011, at 18:39, keymaster wrote:
Actually the correct form of the uses is (so you can use the shorted @Route
instead of the long pathname):
use
Hi folks,
I'm studying Symfony 2 and porting a very old Symfony 1.0 project. My first
step is trying to recognize the code can I reuse and the code I can't.
I have an YAML file in Propel format that defines the entities and the
database schema. Is there any way I could use it on Symfony 2, any
It is provided in the FrameworkExtraBundle. Look at the ParamConverter
annotation.
Dustin
--
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
You *can* use the yaml files in Symfony 2, but they'll need to be updated
for Doctrine 2, which is now used.
This page has information on using ORM in Symfony 2:
http://symfony.com/doc/current/book/doctrine/orm.html
One key thing that's different is that in Symfony 1, you would generate PHP
Hi,
I have the same problem since BETA 2:
public function buildForm(FormBuilder $builder, array $options)
{
$builder-add('firstname', 'text');
$builder-add('lastname', 'text');
$builder-add('email', 'text');
$builder-add('password', 'repeated',
You need to setup aliases in the apache configuration file for your site.
The images used by Symfony are not stored in the public web folder, so you
need aliases to instruct apache where to find them.
See this http://www.symfony-project.org/jobeet/1_4/Doctrine/en/01 page for
more info.
The
I would suggest creating this as an issue on github.
On Mon, May 23, 2011 at 3:25 PM, pzwosta peter.zwo...@gmx.de wrote:
Hi,
I have the same problem since BETA 2:
public function buildForm(FormBuilder $builder, array $options)
{
$builder-add('firstname', 'text');
This worked in beta1 but not in beta2 [seems to be a theme today :
( ] This was Berhard's nifty solution to my AJAX city/state
problem.
I print_r()'d the array ($realtor_search_params) and it is indeed
populated with data (an associative array), but I get the following
exception when I run it:
done
On May 23, 3:27 pm, Donald Tyler chekot...@gmail.com wrote:
I would suggest creating this as an issue on github.
On Mon, May 23, 2011 at 3:25 PM, pzwosta peter.zwo...@gmx.de wrote:
Hi,
I have the same problem since BETA 2:
public function buildForm(FormBuilder $builder,
I'm looking for an appropriate way to reduce coupling in a messaging bundle
I'm writing, so that I can easily use it between applications.
Each instance of the Message entity should have a sender and a recipient,
instanceof Symfony\Component\Security\Core\User\UserInterface, which I can
I fixed my problem, by freeing up the objects;
http://www.doctrine-project.org/projects/orm/1.2/docs/manual/improving-performance/en#free-objects
On May 22, 11:41 pm, Galou gael.duc...@gmail.com wrote:
Few years ago, I remember I meet the same problem in a database
migration script.
The
For instance, a quiz has many questions, a question has many options.
I want to be able to add a many questions dynamically to the quiz form and
then add a question options to those questions.
Right now, symfony2 doesn't like it when I put a collection within a
collection. Is this possible?
Matt,
it may work without the as, didn't try it, but figured the syntax would be
consistent with the ORM and Assert syntax.
Thanks again for your help.
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message
67 matches
Mail list logo