I've tried integrating sfPHPOpenIdPlugin but that hit a dead-end since it's built for Symfony 1.2 and relies on deprecated PHP functionality; I also had a go with sfGoogleLoginPlugin which did authenticate correctly but lacks extended capability to retrieve user details (+ would restrict me to Google; obviously).
I'm thinking the most v...
I am working with a CMS-type site in Symfony 1.4 (Doctrine 1.2) and one of the things that is frustrating me is not being able to store HTML pages in YML fixtures. Instead I have to create SQL backups of the data if I want to drop and rebuild which is a bit of a pest when Symfony/Doctrine has a fantastic mechanism for doing exactly this....
Hi,
My tables are named in a plural form - Models / Entities, is there a way to make the generated classes named Model / Entity?
(Don't know if this is relevant, but I'm using Propel as the ORM)
Thanks.
...
Hi,
in a form if there is a field and a global error both messages are showed.
I would like to show the global errors only if there isn't any field error.
Any idea?
Javi
...
I'm trying to use the tabs purely as a navigational menu, loading my pages in the tabs, but being able to bookmark said tabs, and have the address bar correspond with the action I'm executing.
So here is my simple nav partial:
<div id='tabs'>
<ul>
<li id='home'><a href="<?php echo url_for('post/index') ?>" title="Ho...
Hello,
I'm trying to install Symfony on a shared server and am attempting to duplicate the httpd.conf command:
# Be sure to only have this line once in your configuration
NameVirtualHost 127.0.0.1:8080
# This is the configuration for your project
Listen 127.0.0.1:8080
<VirtualHost 127.0.0.1:8080>
DocumentRoot "/home/sfproject/web"
...
Hi,
i have this line below in frontend/config/view.yml:
stylesheets: [main.css]
The rules of that file are applied to the templates of the modules of frontend, but no to the templates of sfDoctrineGuardPlugin.
Even if i write at the beginning of the template it doesn't work..
What should i do?
Javi
...
Hi,
sfGuardUser model of sfDoctrineGuardPlugin is defined this way:
sfGuardUser:
actAs: [Timestampable]
columns:
id:
type: integer(4)
primary: true
autoincrement: true
username:
type: string(128)
notnull: true
unique: true
As you can see 'username' has the feature "notnull:true". Now i ...
Hi,
im trying to debug a symfony app.
I've added a debug_backtrace() calling to this function below. It
outputs a list of functions called, but the save() function (that is
just before the debug_backtrace() calling) is not that list.. why? any other way to debug that shows more things, in this case the save() calling ?
protected funct...
Hi,
I've got following URL in symfony (specifics not important):
/frontend_dev.php/something/25/apple
... and a routing rule:
/something/:id/:word
The URL works fine when clicked through to on the site, but not when I type in the URL. Instead, symfony says:
Unable to find a matching route to generate url for params "NULL".
The ...
Hi. I'm using symfony with doctrine and I make a registration form. Email field is declared unique and if I set it to already existing one, I get the message An object with the same "email" already exist.. I use the following validator:
$this->validatorSchema['email'] = new sfValidatorEmail(array('required' => true), array('invalid' => ...
Hi,
I'm going to start a new project that's building web apps from scratch.
I have been thinking about using symfony framework for this project.
Should I start using symfony 2.0 or stick with 1.4 ? I estimate this project will be finish on May or June this year but I realise that symfony 2.0 still on development.
Which one I should ...
I'm currently working on a project with symfony 1.4 and Doctrine 1.2. I'm looking for a proper way to do logging from the model layer.
In some model classes I use the record hook postSave() to create a ZIP file using exec() (since PHP zip doesn't provide for storage method 'Stored'). To be sure that everythings works fine I check the re...
I'm trying to render a partial in a Symfony task and having no luck. I found docs in 1.1 that say to just call get_partial() but apparently that's no longer readily available in 1.4. I tried loading the helper manually with sfLoader::getHelpers('Partial'); but I get "Class sfLoader not found". Any help would be greatly appreciated.
F...
Hi,
Can anyone tell me where/how to customise the CSRF token error message for forms in Symfony 1.4. I'm using sfDoctrineGuard for logins and in this form particularly, whenever a session runs out and you still have the page open, it throws a very user-unfriendly error: "CSRF attack detected". Something like "This session has expired. P...
I created an error500.php file in web/errors/ and would now like to test it.
I tried to put this line in one of my actions:
$this->getResponse()->setStatusCode(500);
Unfortunately it looks like it's ignored.
Do you guys have any idea of what's happening here?
I'm using Symfony 1.4.
Edit: Firebug is telling me that the error is act...
My background is in Propel, so I was hoping it would be a simple thing to override a magical getter in a Doctrine_Record (sfDoctrineRecord), but I'm getting either a Segfault or the override method is simply ignored in favor of the one in the superclass.
https://gist.github.com/697008eaf4d7b606286a
class FaqCategory extends BaseFaqCate...
Hi,
If I do a redirect in action as normal:
$this->redirect('@mypage?apple=1&banana=2&orange=3');
... Symfony produces the correct URL:
/something/something?apple=1&banana=2&orange=3
However, the following gets escaped for some bizarre reason:
$string = 'apple=1&banana=2&orange=3';
$this->redirect('@mypage?'.$string);
... and t...
Hi folks,
I have a nested set application that seems to be getting corrupted. Here's what I'm seeing:
We're using nested sets for a binary tree (any node can have 2 children). It appears to be working fine, but some event causes a discrepancy. For instance, when I do a getNumberOfDescendants() for the root node, it will slowly incre...
I am trying to load fixtures but myproject is erroring at the CLI and starting the indexer process.
I have tried:
Rebuilding the schema and model
Emptying the database and starting again
Clearing the cache
Validating the YML file and trying much simpler data-dumps
My platform is Symfony 1.0 on Windows
Some also seems to have had t...