Put your id (or something else unique) in the url, so you can use that
to retrieve the object.
On Wed, Feb 24, 2010 at 01:04, Roland Cruse cruses...@gmail.com wrote:
Thanks. That did it!
Now I have:
$parameters = $request-getParameter('td_excursion');
$this-excursion =
hello list,
problem: I have to build a symfony model for an existing database
structure and I'm not allowed to change the existing structure. there
are two m:n related tables using the same m:n table partitioned with a
type attribute:
table1
id
...
table2
id
...
table3
id
...
Thanks Dennis. Now works fine, but I have another problem:
Validation failed in class People
1 field had validation error:
* 1 validator failed on image (type)
why?
thanks
--
You received this message because you are subscribed to the Google Groups
symfony users group.
To post to this
Hello
Thanks for this hint!
I could not figure out how to use the factory.yml without interfering
with the standard logger as you apparently can't create arbitrary objects with
it.
But after adding the following function:
class BlahLogger {
public static function getInstance() {
http://www.symfony-project.org/forms/1_4/
On 22 Feb, 20:49, Diego Bello dbe...@gmail.com wrote:
Hi guys,
Is there any documentation about how to use forms in symfony 1.4?.
What I want to do is to change a field from text input to select.
I tried rewritting the form putting the new content
Hi,
I've strange problem with autoloading. I have sfGuardPlugin installed
and sfGuardUser.php class generated in guard plugin directory. I also
have customized sfGuardUser class:
class sfGuardUser extends PluginsfGuardUser
{
.
located in my application directory lib/model/sfGuardPlugin/
Hello everyone,
I would like to know if is that possible to get form object in
preSave() method?
In fact, before save the form value (fill in by user), I want to
treate the input value in preSave() method. But I don't know how to and I
don't know whether I can do so.
Hello,
I have been recently working in Grails (Java's symfony framework) and there is
some weirdness if i want to create columns (properties) but not have them show
up in the forms or be editable.
So in symfony, how would I create 2 properties such as 'DateInserted' and
'beenProcessed' but
I have this exact same problem. Did you ever solve the missing id
field problem?
My situation:
When I dynamically embed a form for object A into object B and check
the generated html it looks like this
input type=hidden id=B_As_0_id name=B[As][0][id]
Note that the Id value is not present. It
I just started to use symfony 1.4 and Doctrine. (Used 1.0 - 1.2 +
Propel a lot before).
I thought to give Doctrine a try, because of the fast and huge
Development process in the past.
Thanks to jwage ;-)
Im using Table Inheritance. This is a small portion of my schema.yml:
Articles:
columns:
On 24 fév, 14:52, Dong YANG jojoyangd...@gmail.com wrote:
Hello everyone,
I would like to know if is that possible to get form object in
preSave() method?
In fact, before save the form value (fill in by user), I want to
treate the input value in preSave() method. But I
Hi,
I´m connecting the application.throw_exception event to my exception
handler class.
public function configure() {
$this-dispatcher-connect(
'application.throw_exception',
array('MyExceptionHandler', 'listenToApplicationException')
);
}
On the end
I figured out it has nothing to do with the event handler.
I´s happening on every page.
On my error_404_action, I redirect to the homepage and it shows the
uncaught exception message.
Anybody knows why?
2010/2/24 Bruno Reis bruno.p.r...@gmail.com
Hi,
I´m connecting the
Hi JP,
Thanks for your reply.
I use propel 1.5 and I have a form which contains the field *password*.
Before do save (create), I would like call md5() to encode it. So I tried to
use preSave() to do this thing. But in this method, I cant get the value
entered by user.
Here is the
Hey Christian,
it's simpler than that.
Look in your factories.yml at the bottom where the loggers are being
set up.
The main logger is an aggregate logger, and you can add your logger to
this like so:
(under loggers)
my_logger:
class: BlahLogger
param:
level: whateverlevel
file:
Hi,
read the chapter about the Backend in the symfony manual. It's easy.
Javi
On 02/24/2010 03:45 PM, Bill P. wrote:
Hello,
I have been recently working in Grails (Java's symfony framework) and
there is some weirdness if i want to create columns (properties) but
not have them show up in
Hi,
i freezed the project and then i have uploaded it.
When i open an URL it shows a blank page.
There isnt any log in my hosting provider...
Javi
--
You received this message because you are subscribed to the Google Groups symfony
users group.
To post to this group, send email to
On Wed, 24 Feb 2010, Javier Garcia wrote:
i freezed the project and then i have uploaded it.
When i open an URL it shows a blank page.
There isnt any log in my hosting provider...
Did you clear cache?
I would also question why your provider can't have logs...
--
--
You received
On 02/24/2010 09:14 PM, Eno wrote:
Did you clear cache?
I would also question why your provider can't have logs...
Ok, just remove the content of the cache folder...Thanks.
This is what i got about the log:
Hum,
Why don't you did it in the save() method ?
public function save(PropelPDO $con = null)
{
$this-password = md5($this-password);
parent::save();
}
I don't really know Propel but I do this with Doctrine.
On 24 fév, 18:05, Dong YANG jojoyangd...@gmail.com wrote:
Hi JP,
Thanks for
I could suggest you to comment out the security things in your _dev file and
try see what that file sais ...
You might get the answer there ..
if still can't see a bit, then check your projectConfiguration file and see
if the autoloader is loaded via an absolute path or not.
A motive of why you
On Wed, 24 Feb 2010, Javier Garcia wrote:
So where do you consider could i find that log? Please, tell me a host
provider (with free hosting ) where you know i can find it.
Ah, free hosting, that explains it...
k
--
You received this message because you are subscribed to the Google Groups
Overwrite the setPassword() function of your object class, something like this:
function setPassword($v)
{
return parent::setPassword(md5($v));
}
On Wed, Feb 24, 2010 at 18:05, Dong YANG jojoyangd...@gmail.com wrote:
Hi JP,
Thanks for your reply.
I use propel 1.5 and I have a
You can do it like that :
public function save(PropelPDO $con = null)
{
$this-password = md5($this-password);
parent::save();
}
but you could do like this as well ...
public function setPassword($v)
{
$v = md5($v);
return parent::setPassword($v);
}
Alecs
On Wed, Feb 24, 2010 at 10:27 PM,
That would be pretty bad, as it would re-hash the password field at every save.
On Wed, Feb 24, 2010 at 21:36, Alexandru-Emil Lupu gang.al...@gmail.com wrote:
You can do it like that :
public function save(PropelPDO $con = null)
{
$this-password = md5($this-password);
parent::save();
}
On 02/24/2010 09:33 PM, Eno wrote:
Ah, free hosting, that explains it...
So... could you tell me a hosting provider with a log where i can see
the errors?
Javi
--
You received this message because you are subscribed to the Google Groups symfony
users group.
To post to this group, send
On Wed, 24 Feb 2010, Javier Garcia wrote:
So... could you tell me a hosting provider with a log where i can see
the errors?
Its pretty much a standard feature from many hosting providers.
--
--
You received this message because you are subscribed to the Google Groups
symfony users
Here is all the commands:
Available tasks for the doctrine namespace:
:build
:build-db
:build-filters
:build-forms
:build-model
:build-schema
:build-sql
:clean-model-files
:create-model-tables
:data-dump
:data-load
:delete-model-files
:dql
:drop-db
:generate-admin
I found that on backend admin modules generated with ./symfony
doctrine:generate-admin is possible to inject SQL in the url.
Example:
http://example.com/backend_dev.php/partner?sort=statussort_type=desc
LIMIT 1 --
This is with symfony 1.4 svn.
Does anybody know how to protect against this
Hi
After setting up the latest 1.4 stable version of Symfony according
the official documentation I ran into this error:
executing php symfony configure:database
mysql:host=localhost;dbname=dbname root password
Task configure:database is not defined.
symfony -V gives:
symfony version 1.4.2
php symfony doctrine:build --all --and-load
On Wed, Feb 24, 2010 at 16:50, SymfonyNewbie shore.cl...@gmail.com wrote:
Here is all the commands:
Available tasks for the doctrine namespace:
:build
:build-db
:build-filters
:build-forms
:build-model
:build-schema
:build-sql
2010/2/24 roko gargamel...@gmail.com:
I found that on backend admin modules generated with ./symfony
doctrine:generate-admin is possible to inject SQL in the url.
Example:
http://example.com/backend_dev.php/partner?sort=statussort_type=desc
LIMIT 1 --
Indeed.
This is with symfony 1.4
W dniu 24 lutego 2010 22:32 użytkownik Michał Piotrowski
mkkp...@gmail.com napisał:
2010/2/24 roko gargamel...@gmail.com:
I found that on backend admin modules generated with ./symfony
doctrine:generate-admin is possible to inject SQL in the url.
Example:
Hi,
Verify that php.ini for php cli is activated and is well configurated.
Try to use php ./symfony configure:database in your project,
sometimes, symfony is already installed and another symfony is launch.
On 24 fév, 22:18, Trung Huynh forrestgu...@gmail.com wrote:
Hi
After setting up the
Got it working just a minute ago! What a newb mistake of me to use the
symfony in the lib/vendor/symfony/data/lib/bin instead of the working
directory.
Pardon me for the newb mistake, it has been 6 years I've done some coding
with PHP. I really love symfony's filosophy and documentation.
On
Thanks guys, I will try your suggestions tommorrow
Regards,
JoJo
2010/2/24 Gábor Fási maerl...@gmail.com
That would be pretty bad, as it would re-hash the password field at every
save.
On Wed, Feb 24, 2010 at 21:36, Alexandru-Emil Lupu gang.al...@gmail.com
wrote:
You can do it like that
I've committed a fix to Subversion and will be releasing soon. Please
test the fix in the meantime and report any issues here or on Trac.
http://trac.symfony-project.org/changeset/28260
Thanks,
Kris
On Feb 24, 1:35 pm, Michał Piotrowski mkkp...@gmail.com wrote:
W dniu 24 lutego 2010 22:32
2010/2/25 Kris Wallsmith kris.wallsm...@symfony-project.com:
I've committed a fix to Subversion and will be releasing soon. Please
test the fix in the meantime and report any issues here or on Trac.
Works for me. Thanks for fast response.
http://trac.symfony-project.org/changeset/28260
Hi everybody, I write you this message because I was looking for a
solution to my problem and not found it. I enabled the cache in
symfony, when the session is lost it save the template of login and
then re-enter the system when I want to see the link, it shows me the
login template.
Then I
Oh,I should have run symfony help build
thanks!
2010/2/25 Gábor Fási maerl...@gmail.com
php symfony doctrine:build --all --and-load
On Wed, Feb 24, 2010 at 16:50, SymfonyNewbie shore.cl...@gmail.com
wrote:
Here is all the commands:
Available tasks for the doctrine namespace:
:build
Dinner:
columns:
date: { type: timestamp, notnull: true }
nb_presents: { type: integer, notnull: true }
relations:
Marks:
class:Criteria
local:dinner_id
foreign: criteria_id
refClass: Mark
type: many
Hi all,
I want to use cron to send email by using symfony task,
My email is i18n mail and should be rendered before sending.
To do the work, I have two thoughts in my mind but still not very
clear. So I need some help from you:
1. Is there a way to get rendered partial content by directly use
Javi,
Symfony creates its own log files in $sf_root/log ... if nothing
appears there, you ought to make sure that both cache and log are
writable by the web server.
Best,
jL
On Feb 24, 4:03 pm, Javier Garcia tirengar...@gmail.com wrote:
On 02/24/2010 09:33 PM, Eno wrote:
Ah, free
On Wed, 24 Feb 2010, Piero Recchia wrote:
Hi everybody, I write you this message because I was looking for a
solution to my problem and not found it. I enabled the cache in
symfony, when the session is lost it save the template of login and
then re-enter the system when I want to see the
So completly lost meant that the form in the popup isn't showed
correctly?
On 23 ún, 13:45, Ellishia Owens ellis...@gmail.com wrote:
Hi!
I'm completely lost about ajax and javascript.
I have to forms (enterprise and category).
I want a button in the enterprise form that makes a new window
Sorry if it's obvious, but what do you use for logging in.
sfDoctrineGuardPlugin?
On 23 ún, 12:25, sajt sajta...@gmail.com wrote:
Hello,
I have a web application, where every page is secure. I like to show a
message when the user is automatically logged out from the site.
I have this in my
46 matches
Mail list logo