Depends what you mean by file upload ...
PHP does not manage the input stream, all the work is done before by the
webserver, so you can't catch any error at this point.
On Wed, Nov 4, 2009 at 8:10 AM, dziobacz aaabbbcccda...@gmail.com wrote:
I didn't find article about catching errors which
HI!
I dunno it was discussed before, but... could someone gimme some
comparaisons between propel and Doctrine? We are facing at this point a
critical point of a new application. Whatever work with propel or Doctrine.
I'd like some pluses and some minuses of them
-
Hi,
I am trying to get this
http://www.symfony-project.org/blog/2008/11/12/call-the-expert-customizing-sfdoctrineguardplugin
to work on Symfony 1.3
Everything works aas expected until I try to access
http://yourhost/backend_dev.php/sf_guard_user
I have figured out that the url should be
The probem is the serialize function and the user instance.
If i call serialize($user) i get the error wherever i call it but i
call serialize(another object) i got no errors.
Probablu it's my user instance messed up.
Has anyone had the same problem?
thanks.
cirpo
Hi Deivid, Thank you a lot.
But i was checking at Get Started, and I identified I didn't do the
step configuration with doctrine (Switching to Doctrine)
I mapped my schema with Propel configuration.
Well
I'll Switch Propel to Doctrine. I hope it can work very well now.
Do you have a link or url
i understood that, since both group and credential model has a name
attribute, getName() is called by default.
i had to add a __toString() method in the user model that returns its
getName() and now it works.
but i didn't find where this magic is...
thanks anyway.
On Nov 3, 9:18 pm, lorenx
When I make a relation between two tables, it is possible to use a
automatic join select.
Example:
message:
* id
* user_id
message_i18n:
* id
* culture
* subject
* message
user:
* id
* name
Now I can use MessagePeer::doSelectJoinUser()
Is it also possible to use
It work now, but i can't understand why..
before:
?php include_partial('user_profile_widget', array('user' =
$sf_user) ?
now:
?php include_partial('user_profile_widget', array('user' = $sf_user-
getGuardUser()) ?
does it works because the $sf_user instance can't be serialize with
the
Yes, you have to use event listeners, from Doctrine.
Create your custom behavior, extends I18N behavior, and add an option
autojoin_on_select.
Double check that only your requested culture is joined, if all cultures are
joined, it's a disaster.
Could you give us the solution when you will find
Yes, It works...
try to make it work without the Profile extension. DoctrineGuard as basic
as possible.
2009/11/4 juro fo...@juro.at
Hi,
I am trying to get this
http://www.symfony-project.org/blog/2008/11/12/call-the-expert-customizing-sfdoctrineguardplugin
to work on Symfony 1.3
Thank you for the information. Unfortunately there is no way that I
can use sfDoctrineGuard without being able to associate a profile with
each user.
On Nov 4, 12:41 pm, Alexandre SALOME alexandre.sal...@gmail.com
wrote:
Yes, It works...
try to make it work without the Profile extension.
I have figured out that the url should be
http://yourhost/backend_dev.php/sfGuardUser
but now I get this error: The route sf_guard_user_collection does not exist.
In settings.yml did you enable the sfGuardUser module for your
environment ?
all:
.settings:
enabled_modules:
Checking out: http://es2.php.net/manual/en/ref.pdo-oci.php
Suggests:
The PDO_OCI php_pdo_oci8.dll library (for use with Oracle version 8
client libraries) is no longer being built [with PHP 5.3]. Instead, use
php_pdo_oci.dll (note no '8') with Oracle 10 or 11 client libraries.
Connection to
DoctrineGuard for auth + permissions DoctrineGuardApply for Profiles.
Both work well and without any major issues in sf 1.3.
With some minor changes the call-the-expert article works also.
It's probably best to go back to basics - get Guard installed and
working without profiles, ensure you
I have followed the call-the-expert article for my 1.2 and I know that
it works. I do not see the point in adding a new plugin, which I have
0 experience with.
On Nov 4, 1:45 pm, David Ashwood da...@inspiredthinking.co.uk wrote:
DoctrineGuard for auth + permissions DoctrineGuardApply for
Yes:
all:
.settings:
enabled_modules:[default, sfGuardUser, sfGuardGroup,
sfGuardPermission]
On Nov 4, 12:45 pm, Simone Fumagalli simone.fumaga...@gmail.com
wrote:
I have figured out that the url should be
http://yourhost/backend_dev.php/sfGuardUser
but now I get this error:
With Propel, it's behaviors, it works tooo
2009/11/4 HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com
Hmm... I'm using Propel...does that work with event listeners too?
On 4 nov, 11:36, Alexandre SALOME alexandre.sal...@gmail.com wrote:
Yes, you have to use event listeners, from Doctrine.
Try to make it works without Profile, and in a second time, add the profile.
Could you give us the stack trace generated by Symfony, with portions of
code ?
2009/11/4 juro fo...@juro.at
Yes:
all:
.settings:
enabled_modules:[default, sfGuardUser, sfGuardGroup,
Hi all,
i have a production server based on Debian Etch and so with php
5.2.0... but Symfony 1.2 needs at least php 5.24!
Anyone of you have managed to run newer version of Symfony on this
Debian version?
I have developed a project with Symfony 1.2 and I need to make it
run...
Thank you in
On Wed, 4 Nov 2009, Alexandru-Emil Lupu wrote:
I dunno it was discussed before, but... could someone gimme some
comparaisons between propel and Doctrine? We are facing at this point a
critical point of a new application. Whatever work with propel or Doctrine.
Doctrine will be the default ORM
For example upload photo on the server - for example in normal PHP in
this tutorial: http://www.tizag.com/phpT/fileupload.php
We have catching errors:
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'],
$target_path))
{
echo The file . basename( $_FILES['uploadedfile']['name']).
I think you should learn doctrine, because propel is no more
developed..
On 4 Nov, 10:39, Alexandru-Emil Lupu gang.al...@gmail.com wrote:
HI!
I dunno it was discussed before, but... could someone gimme some
comparaisons between propel and Doctrine? We are facing at this point a
critical
Have a look at sfDoctrineRecord class, in
symfony/lib/plugins/sfDoctrinePlugin/lib/record
Every record class inherits from it.
There is a method __toString() on it and the magic is there :
public function __toString()
{
$guesses = array('name',
'title',
You should update your Debian, or another solution is to compile your PHP
version.
2009/11/4 cosmy c.zec...@gmail.com
Hi all,
i have a production server based on Debian Etch and so with php
5.2.0... but Symfony 1.2 needs at least php 5.24!
Anyone of you have managed to run newer version of
perfect, thanks!
On Nov 4, 1:40 pm, Alexandre SALOME alexandre.sal...@gmail.com
wrote:
Have a look at sfDoctrineRecord class, in
symfony/lib/plugins/sfDoctrinePlugin/lib/record
Every record class inherits from it.
There is a method __toString() on it and the magic is there :
public
On this server there are a lot of other sites and i'm not the only one
who use it.
I could compile php but i need to change less things possible on
production, and there is a risk that something could not work
However, I'll try to compile on the development serve;, if you know a
way to modify
cosmo, you're wrong. Propel is much
alive.http://propel.phpdb.org/trac/timeline
On Wed, Nov 4, 2009 at 1:39 PM, cosmy c.zec...@gmail.com wrote:
I think you should learn doctrine, because propel is no more
developed..
On 4 Nov, 10:39, Alexandru-Emil Lupu gang.al...@gmail.com wrote:
HI!
I
Hi,
Im using sfWidgetFormInputFileEditable to add a photograph of the
users in my backend.
When i try to edit some field of any user, the path to the image is
not showed inside the widget and after pushing the Save button the
image dissapear.
I dont have any problem uploading the file.
Any
There is no fix for symfony to be compatible with older PHP versions, it
would be very unpredictible to do it manually.
You could install PHP apart from your default PHP installation, and
configure it as CGI for Apache, and use it for your symfony installation.
2009/11/4 cosmy
Thanks ...
I already know Propel from my previous projects, but now i have started a
huge project using doctrine ...
It just seems more complete than Propel ...
Alecs
On Wed, Nov 4, 2009 at 3:12 PM, Alan Bem alan@gmail.com wrote:
cosmo, you're wrong. Propel is much
On Wed, 4 Nov 2009, dziobacz wrote:
For example upload photo on the server - for example in normal PHP in
this tutorial: http://www.tizag.com/phpT/fileupload.php
We have catching errors:
if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'],
$target_path))
{
echo The file .
Hi to all
i want test Symfony 1.3 + Doctrine 2, with jobeet tutorial.
Is it possible?
--
Cr. Puentes Diaz
MP 10.12726.9
Córdoba - Argentina
www.puentesdiaz.com.ar/blog/
www.puentesdiaz.com.ar/blog/novedades
www.twitter.com/puentesdiaz
Linux User n° 441474
Ubuntu/Symfony/Eclipse Rocks!
Sign
Ah sorry, I was sure it wasn't supported anymore..
On 4 Nov, 14:12, Alan Bem alan@gmail.com wrote:
cosmo, you're wrong. Propel is much
alive.http://propel.phpdb.org/trac/timeline
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Nope.
- Jon
On Wed, Nov 4, 2009 at 9:17 AM, roberto german puentes diaz
puentesd...@gmail.com wrote:
Hi to all
i want test Symfony 1.3 + Doctrine 2, with jobeet tutorial.
Is it possible?
--
Cr. Puentes Diaz
MP 10.12726.9
Córdoba - Argentina
www.puentesdiaz.com.ar/blog/
My test symfony installation on eth works with 5.2.0, just comment the
message that symfony needs 5.2.4 out.
The php from eth has the most Patches into that 5.2.10 has too, but it
says 5.2.0-10 and that is the problem I think.
But I don't use symfony on this Server for a productiv application,
I had the same problem. For me the problem lies in the class
lime_harness in lime.php
He couldn't find my exe because it did a is_executable on the following string:
C:\Program Files\Zend\ZendServer\bin\php.EXE
All I did was a replace on this string (lime.php:722):
$file = str_replace('', '',
For further readers of this post: If the results of multiple tests and
a single test in isolation differ, you're advised to launch the test
with plain PHP.
php test/unit/MyClassTest.php
If this call fails, this is why it's reported as dubious in the test suite.
Bernhard
Yes:
all:
.settings:
enabled_modules: [default, sfGuardUser, sfGuardGroup,
sfGuardPermission]
Did you ./symfony cc ?
--
Simone
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
symfony users
Yes - in Symfony we must also move file from temt to target. Do You
use some catching errors or rather not ?
On 4 Lis, 15:04, Eno symb...@gmail.com wrote:
On Wed, 4 Nov 2009, dziobacz wrote:
For example upload photo on the server - for example in normal PHP in
this
@Alecs,
glad you raise that question, as I'm in the same position. So far I've
worked with Propel, and there was nothing I couldn't do with it.
To me it seem the slow development perception stems from the fact
that it was pretty mature already.
@Eno,
yeah that's the usual answer, but it offers
On Wed, 4 Nov 2009, Richtermeister wrote:
@Eno,
yeah that's the usual answer, but it offers little explanation as to
*why*.
Couple of reasons:
You remember the survey on uservoice.com? Making Doctrine the default was
a very popular suggestion.
Another reason: Jonathan Wage works on
On 04.11.2009, at 19:56, Eno wrote:
On Wed, 4 Nov 2009, Richtermeister wrote:
@Eno,
yeah that's the usual answer, but it offers little explanation as to
*why*.
Couple of reasons:
You remember the survey on uservoice.com? Making Doctrine the
default was
a very popular suggestion.
I think I ran into a bug in the PropelForm class. It's quite some
story with a lot of large code fragments in it, that's why I think
it's easier to read it on a forum:
http://forum.symfony-project.org/index.php/m/87845/#msg_87845
--~--~-~--~~~---~--~~
You received
I use both of them in 2 projects and Doctrine it's my choice. It's from the
same company than Symfony (Sensio), the documentation is very very good,
it's very easy to use (more friendly than Propel).
Also, Zend Framework is going to adopt Doctrine, how gives you an impression
of how a good ORM it
I write generator.yml like that
generator:
class: sfPropelAdminGenerator
param:
model_class: Photolibrary
theme:default
config:
list:
title: Photo Library Management
display: [=username,name,thumbnail_image,date]
In symfony 1.0 you the admin generator use to automatically extend you
form if you defined Get and Set methods on you're extended model
classes i.e.
/lib/model/posts.php
public static getMetaDescription()
{
..// get data from a separate table
}
public static setMetaDescription()
{
..//
Bonjour
à chaque fois que j'installe un nouveau projet Symfony et que j'essaie
d'y acceder via : ..mon_projet//web/index.php j'ai la page qui
m'indique que tout est Ok mais le fichier style ne se charge pas,
ainsi que les images associés à la page.
J'ai l'impression que c'est un probleme de
I18n, Doctrine, Postgres, Schemas
I have been working on project written in Symfony 1.2.9 with Doctrine
1.2, where
we use several schemas on Postgres database. We use task that renames
lib/model
classes from TableName to SchemaTableName and sets table name to
schema.table_name,
because, as we
Hello,
Some weeks ago, the community page of the symfony site changed how it
presents the information. It is more of a timeline now. But in my opinion,
it was a not a good change.
To me, the most important feature of the page was to go and be able to get a
list of blog posts related to symfony,
MySchema
Category:
actAs: { NestedSet: ~ }
columns:
name: string(255)
relations:
Contents:
local:id
class: Content
foreign: category_id
foreignAlias: Category
Contents:
columns:
title: string(255)
Hi!
By default, all the models are defined inside of project_root/lib/
model/doctrine/.
That makes the model accessible for every applications inside of apps.
What about if i want to make one model accessible only for one app ?
(for example a model User with some special methods which should be
I want that image can has maximum size 150x150 px so I make:
$thumbnail = new sfThumbnail(150, 150);
and everything is ok when image is bigger than 150x150.
But when image has size for example 20x20 px, it is converted to size
150x150 px !!! In that case image should have 20x20 px - how can I do
Hi
Currently I have the same error with sf 1.2 but I can't uprage to sf
1.3. Can you tell me which revision of Doctrine or SF fix this in
order to see the change to have more information on the error
displayed ?
Thanks.
Maxime Menant
On 3 nov, 10:54, David Ashwood da...@inspiredthinking.co.uk
Hi everyone,
I get some trouble validating the unicity of my sfguarduser Username
(which is in fact an email).
Here is the code:
$this-validatorSchema-setPostValidator(new sfValidatorAnd(
array(
new
I'm receiving an error of type:
Doctrine_Record_UnknownPropertyException (Unknown method
Company::getAddress2)
Stack Trace item 1 says: at () in SF_SYMFONY_LIB_DIR/plugins/
sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/Record.php line 2575
The only thing I have done is generate the project and
You can,
but the way to handle file upload routine checks is to use the
http://www.symfony-project.org/api/1_2/sfValidatorFile in your form.
Bye
On Wed, Nov 4, 2009 at 8:10 AM, dziobacz aaabbbcccda...@gmail.com wrote:
I didn't find article about catching errors which can be during upload
I don't know what you asked (not a word in french :) ), but a guess:
you created your application, visited the site via the prod front
controller, and it has no images?
Make sure you create an alias for the /sf directory (or simply copy /
symlink it under your web folder).
2009/11/2 Vladimire
I have Chose to work with Doctrine for several motives:
1) migrations support - on a big project with possible millions of records i
think the ability to add / remove columns from database would be a small
downtime ... as the migrations would do the job pretty well
* propel is able do that by
oh thx - so sfValidatorFile automatically catch partial, can't write
etc. errors - thx
On 4 Lis, 08:21, Damien Alexandre dalexan...@clever-age.com wrote:
You can,
but the way to handle file upload routine checks is to use
thehttp://www.symfony-project.org/api/1_2/sfValidatorFilein your
In the end I've compiled a new php and i use it in the project virtual
host as CGI until debian will release an updated version of PHP, as
Alexandre suggested. I think it should be inserted (i can write two
lines if you want) in the guide as debian etch is very very used as
production server.
It still doesn't work.. anyone could immagine why my app ignore the
modifies on the generator.yml
Is there something to do apart cache:clear?
have you checked the indent?
The indent seems ok, but you can check the code i've posted
--~--~-~--~~~---~--~~
You
Are you sure the routing.yml is configured correctly?
It seems to me, the URL has to be photolibrary/delete/82
On 2 nov, 11:13, saturngod saturn...@gmail.com wrote:
I write generator.yml like that
generator:
class: sfPropelAdminGenerator
param:
model_class:
Yes, that is possible. the apps/[app name]/lib folder is automatically
included.
On 3 nov, 05:49, Mickael HOAREAU mickael.hoar...@bysoft.fr wrote:
Hi!
By default, all the models are defined inside of project_root/lib/
model/doctrine/.
That makes the model accessible for every applications
Hello,
I'm trying to develop universal backend application for my webs. Started
with symfony few weeks ago.
The question was - start with 1.2 or 1.3? Started with 1.3 because of
future support etc...
But when I walk through jobeet tutorial I came to the point where I
should install
+1 to this
Regards,
Alvaro
On Nov 2, 2009, at 11:45 PM, Pablo Godel wrote:
Hello,
Some weeks ago, the community page of the symfony site changed how
it presents the information. It is more of a timeline now. But in my
opinion, it was a not a good change.
To me, the most important
i know the action part but declaring the form in my problem? how can i
do my single upload form into a multi upload form?
On Nov 4, 7:22 pm, mel_06 06melc...@gmail.com wrote:
tried adding this code, but won't upload any file?
for ( $i = 0; $i = count('file') - 1; $i++) {
66 matches
Mail list logo