[symfony-users] Re: File Size validation not working...

2008-05-30 Thread Sumedh

Anyone please? :|

On May 26, 12:03 pm, Sumedh <[EMAIL PROTECTED]> wrote:
> Can't I simply do it the code? :|
>
> But request->getFileSize() is not returning anything... :(  ...why
> would that be?
>
> On May 24, 10:01 am, Charley Tiggs <[EMAIL PROTECTED]> wrote:
>
> > Create a folder with several .htaccess templates in them.
>
> > When you want to limit user upload, copy the approach folder and .htaccess 
> > to the appropriate path then init the upload process.  .htacces can control 
> > the upload size but you can't do it directly within the script according to 
> > this page:
>
> > 
>
> > Maybe more convoluted than you wanted...
>
> > Charley
>
> > Sumedh said on Friday, May 23, 2008:
>
> > >Yeah...but that value will control all the php scripts getting
> > >executed... :(
>
> > >Not very neat, right?
>
> > >I simply want to control upload size of the said file upload box...
>
> > >On May 23, 11:40 am, "Uli Nitsche" <[EMAIL PROTECTED]> wrote:
> > >> Hi,
>
> > >> as far as I remember there is a value in the php.ini which
> > >> must be adapted as well. Not sure, but have a look there.
>
> > >> On Fri, May 23, 2008 at 7:29 AM, Sumedh <[EMAIL PROTECTED]> wrote:
>
> > >> > Hey...someone please say something here??? :)
>
> > >> > On May 22, 2:18 pm, Sumedh <[EMAIL PROTECTED]> wrote:
> > >> >> BTW,
>
> > >> >> 1. It is correctly uploading smaller than 1 MB files...
>
> > >> >> 2. I have declared the form multipart correctly...
>
> > >> >> On May 22, 2:10 pm, Sumedh <[EMAIL PROTECTED]> wrote:
>
> > >> >> > I want to allow users to upload image files of upto 1 MB in size...
>
> > >> >> > I tried with YML...
>
> > >> >> > fields:
> > >> >> > ...
> > >> >> >   file:
> > >> >> > file:   True
> > >> >> > sfFileValidator:
> > >> >> >   mime_types:
> > >> >> > - 'image/jpeg'
> > >> >> > - 'image/png'
> > >> >> > - 'image/gif'
> > >> >> > - 'image/bmp'
> > >> >> >   mime_types_error: Please upload only PNG, JPEG, GIF, BMP 
> > >> >> > images
> > >> >> >   max_size: 1024000
> > >> >> >   max_size_error:   Max size is 1024Kb
>
> > >> >> > It doesn't work...it correctly checks for file type...but it doesn't
> > >> >> > give any error for file size...it doesn't upload it either if it's
> > >> >> > greater than 1 MB...but doesn't generate any error...just goes to
> > >> >> > success page...
>
> > >> >> > In code, I tried this -
>
> > >> >> > $fileName = $this->getRequest()->getFileName('file');
> > >> >> > $fileSize = $this->getRequest()->getFileSize($fileName);
> > >> >> > $this->logMessage(" file size = " . $fileSize);
>
> > >> >> > And I get nothing in the fileSize variable...though I get fileName
> > >> >> > correctly...
>
> > >> >> > So, a simple task is eating up all the time... :(
>
> > >> >> > Any ideas?
>
> > >> --
> > >> Ulrich Nitsche
> > >> -
> > >> Technische Leitung gutefrage.net GmbHhttp://www.gutefrage.net
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: symfony and Vim

2008-05-30 Thread Tom Haskins-Vaughan

Thanks, Daevid, but I'm a penguin lover ;)

Daevid Vincent wrote:
> FYI:
> 
> http://www.e-texteditor.com/
> 
> 
> -Original Message-
> From: Tom Haskins-Vaughan
> 
> I have just started using Vim for my symfony development and so far 
> (touch wood) I find it very good. (I did try Textmate once and loved it, 
> but I can't justify buying a Mac for that sole purpose).
> 
> 
> 
> > 
> 

-- 
Tom Haskins-Vaughan
Temple Street Media: Design and Development for the Web
[EMAIL PROTECTED] | www.templestreetmedia.com

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: how do to execute symfony doctrine-dump-data

2008-05-30 Thread isleshocky77

./symfony doctrine-dump-data [filename.yml]

if you don't specify filename.yml it will dump it to /data/fixtures/
data.yml, otherwise it will go to /data/fixtures/
{the_filename_you_give}

-- Stephen Ostrow <[EMAIL PROTECTED]>

On May 28, 11:06 pm, Carlos Henrique <[EMAIL PROTECTED]> wrote:
> Hi, guys
>
> How do to execute symfony doctrine-dump-data?
>
> somebody can show some example?
>
> thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Transaction with Propel

2008-05-30 Thread Fabian Spillner

thank you for your answer!



On 28 Mai, 08:37, "Thomas Rabaix" <[EMAIL PROTECTED]> wrote:
> Propel has transaction built-in, that's all.
>
> The doSave method can perform X requests. So if there are any errors
> in the nested requests, then propel rollback the transaction.
>
> More over, don't forget to add the $con variable to your save methods
>
> Thomas
>
> On Wed, May 28, 2008 at 12:12 AM,Fabian Spillner
>
>
>
> <[EMAIL PROTECTED]> wrote:
>
> > So, let's begin with an example, that shows what I don't understand...
>
> > In my propel model class I override the save method to start a
> > transaction
> > where I want to update another table:
>
> > public function save($con = null)
> > {
> >  $con = Propel::getConnection();
> >  try
> >  {
> >    $con->begin();
>
> >    $ret = parent::save();
>
> >    $profile = $this->getProfile();
> >    $profile->setNickname($this->getNickname());
> >    $profile->save();
>
> >    $con->commit();
>
> >    return $ret;
> >  }
> >  catch (Exception $e)
> >  {
> >    $con->rollback();
> >    throw $e;
> >  }
> > }
>
> > If I take a look at the save() method of the parent class which is
> > inherited in this model class:
>
> > ...
>
> > try {
> >  $con->begin();
> >  $affectedRows = $this->doSave($con);
> >  $con->commit();
> >  foreach (sfMixer::getCallables('BaseAnswer:save:post') as $callable)
> >  {
> >    call_user_func($callable, $this, $con, $affectedRows);
> >  }
>
> >  return $affectedRows;
> > } catch (PropelException $e) {
> >  $con->rollback();
> >  throw $e;
> > }
>
> > ...
>
> > A commit() is executed there after doSave(...) and what would this
> > affect my own transaction?
>
> > I dont really understand, why there is a transaction defined in
> > generated class!
>
> > Can somebody explain me or I missunderstood this behaviour!
>
> > Thank you very much,
> > Fabian :)
>
> --
> Thomas Rabaix
> Internet Consultant
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: symfony and Vim

2008-05-30 Thread Daevid Vincent

FYI:

http://www.e-texteditor.com/


-Original Message-
From: Tom Haskins-Vaughan

I have just started using Vim for my symfony development and so far 
(touch wood) I find it very good. (I did try Textmate once and loved it, 
but I can't justify buying a Mac for that sole purpose).



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: blog and or email platform needed to incorporate into our social site

2008-05-30 Thread Eno

On May 29, 9:24 pm, "Daevid Vincent" <[EMAIL PROTECTED]> wrote:

> Wondering if anyone knows of, or can recommend (or avoid for that matter),
> any kind of web logging (blogging as the kids call it) and / or email
> system.
>
> By "email system", I refer to the kind like you'd find on MySpace - compose,
> inbox, sent, folders for things like friend requests, comments, etc)
>
> And of course a "blog" is pretty straight forward. You post a bunch of
> ramblings and people can comment on them. Basic editing features of course.
> And ideally a thumbs up/down or ranking system.

This sounds like you want to use something already built - symfony
doesn't give you that (you could use symfony to BUILD something like
that but out of the box its just a tool).

WebMail systems: look at squirrelmail or roundcube.
Blog systems: Look at Wordpress, TextPattern, Typo (there are tons out
there).

You dont mention what the social site is? Nor do you mention what sort
of languages and/or database it uses, so our answers can only be
generic. Moreover, if you want something pre-built then you're
probably asking on the wrong mailing list.


--


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfPropelPlugin (Propel 1.3) and Logging

2008-05-30 Thread Dustin Whittle

Michael,

Not sure why it is slower for you.. For me it is faster. Also, the problem
with logging is that the log level set in factories.yml for each loggers is
not 'debug'. Update factories.yml (for each logger, add parameter level:
debug) and clear cache and it should work.

Works for me:

May 29 23:18:55 symfony [debug] {sfPropelLogger} exec: SET NAMES 'utf8'
May 29 23:18:55 symfony [debug] {sfPropelLogger} prepare: SELECT pages.ID,
pages.SECTION_ID, pages.PERMALINK, pages.TITLE, pages.KEYWORDS,
pages.DESCRIPTION, pages.TREE_LEFT, pages.TREE_RIGHT, pages.TREE_PARENT,
pages.TOPIC_ID, pages.TEMPLATE, pages.IS_PUBLISHED, pages.CREATED_AT,
pages.UPDATED_AT FROM `pages` WHERE pages.PERMALINK=:p1 AND
pages.IS_PUBLISHED=:p2 LIMIT 1
May 29 23:18:55 symfony [debug] {sfPropelLogger} Binding 'about' at position
:p1 w/ PDO type PDO::PARAM_STR
May 29 23:18:55 symfony [debug] {sfPropelLogger} Binding 1 at position :p2
w/ PDO type PDO::PARAM_INT
May 29 23:18:55 symfony [debug] {sfPropelLogger} prepare: SELECT
slots.PAGE_ID, slots.CULTURE, slots.NAME, slots.TYPE, slots.CONTENT,
slots.CREATED_AT, slots.UPDATED_AT FROM `slots` WHERE slots.PAGE_ID=:p1 AND
slots.CULTURE=:p2

The reason it does not show up in the web debug toolbar is that the toolbar
expects 1.2 logging prefixes (prepareStatement + executeQuery|executeUpdate)
and these have changed for Propel 1.3. I have added support in my branch,
but do not want to change 1.1 branch to support propel 1.3 (as it is not the
default). Diff sfWebDebug to see the difference (from 1.1/dwhittle branch).


Cheers,

Dustin

On 5/30/08 5:14 AM, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:

> 
> One more Dustin,
> 
> i'm an experienced devloper and i don't know why, but using PDO needs
> twice as time as using old creole on my linux machine. Everything is
> working (except logging) and i have no database sessions setup
> (sure) ...
> 
> I will try the other plugin just to compare.
> 
> Michael
> 
> 
> 
> On 30 Mai, 13:13, "[EMAIL PROTECTED]"
> <[EMAIL PROTECTED]> wrote:
>> Dear Dustin,
>> 
>> still no luck with logging. The thing is, i'm using DebugPDO and i can
>> see, that in sfPropelLogger the log function is beeing called with the
>> debug string (database query etc.). But is does not appear in the
>> application log. When i switch to PropelPDO, the log function is not
>> called anymore, so this works as it should.
>> 
>> I tried different things and one time i simply replaced in
>> sfPropelLogger
>> 
>> $this->dispatcher->notify(new sfEvent($this, 'application.log', ...
>> 
>> in line 120 with
>> 
>> sfContext::getInstance()->getLogger()->info($message);
>> 
>> and i got the $message in the application log. But this is not the
>> right way as it does not appear in the debug bar. So i guess it's
>> something with the event dispatcher ...
>> 
>> Cheers,
>> Michael
> > 



--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: output escapting

2008-05-30 Thread Nicolas Perriault

2008/5/30 hutchic <[EMAIL PROTECTED]>:

> Output escaping seems to be escaping any ' to '
>
> Any help is appreciated.

This bug has been introduced in 1.0.12 and fixed in 1.0.13. Anyway,
you should update to the latest available (1.0.16)

++

-- 
Nicolas Perriault
http://prendreuncafe.com - http://symfonians.net - http://sensiolabs.com
Phone: +33 660 92 08 76

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] output escapting

2008-05-30 Thread hutchic

Output escaping seems to be escaping any ' to '

Any help is appreciated.

Colin
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: [symfony-devs] Symfony 1.1, Propel 1.3, Pgsql, Issue with sfGuardPlugin in Form generation

2008-05-30 Thread Dustin Whittle
Leonardo,

No there will not be another version for plugins.. If you want to use Propel
1.3 plugin, you will need to manually upgrade the models for every other
plugin that depends on propel 1.2. Until 1.3 becomes the default, it is too
much maintenance in trying to maintain separate versions. The changes should
be fairly easy.

Cheers,

Dustin


On 5/30/08 6:47 AM, "Leonardo Nauta" <[EMAIL PROTECTED]> wrote:

> Thank you Dustin,  so then most of the models are not currently  100% usable
> for propel 1.3, and if we take in count, right now, there are 2 versions of
> some plugins (1.0/1.1 default) then a new one version must be developed for
> propel 1.3 ?
> It's a little complicated to maintain those.
> 
> Well I will keep record of the changes I'm doing for some models maybe someone
> will need them too.
> 
> Thanks Again Dustin.
> 
> On Fri, May 30, 2008 at 12:27 AM, Dustin Whittle
> <[EMAIL PROTECTED]> wrote:
>> Neonard0,
>> 
>> The problem is you are using propel 1.3. All of the symfony plugins use
>> object models built with propel 1.2 (symfony 1.0/1.1 default). If you want
>> to use the plugins you need to upgrade the object model manually.
>> 
>> Cheers,
>> 
>> Dustin
>> 
>> 
>> On 5/29/08 10:15 PM, "Neonard0" <[EMAIL PROTECTED]> wrote:
>> 
>>> >
>>> > Hi I was getting some weird errors when generating forms (symfony1.1
>>> > propel:build-forms) like these:
>>> >
>>> > Fatal error: Declaration of PluginsfGuardUserGroup::save() must be
>>> > compatible with that of Persistent::save() in /var/websites/sfBlog/www/
>>> > plugins/sfGuardPlugin/lib/model/plugin/PluginsfGuardUserPermission.php
>>> > on line 18
>>> >
>>> > So I checked out, in that file PluginsfGuardUserPermission.php I found
>>> > this:
>>> >
>>> > class PluginsfGuardUserPermission extends BasesfGuardUserPermission
>>> > {
>>> >   public function save($con = null)
>>> >   {
>>> > parent::save($con);
>>> >
>>> > $this->getsfGuardUser($con)->reloadGroupsAndPermissions();
>>> >   }
>>> > }
>>> >
>>> > but in BasesfGuardUserPermission line 329 is this:
>>> > public function save(PropelPDO $con = null)
>>> >
>>> > so I updated the error file PluginsfGuardUserPermission.php adding to
>>> > the $con var the ClassName "PropelPDO" so it looks like:
>>> >   public function save(PropelPDO $con = null)
>>> >
>>> > and the error has gone: then a new one:
>>> > Fatal error: Declaration of PluginsfGuardUser::delete() must be
>>> > compatible with that of Persistent::delete() in /var/websites/sfBlog/
>>> > www/plugins/sfGuardPlugin/lib/model/plugin/PluginsfGuardUser.php on
>>> > line 18
>>> >
>>> > I did the same and this one has gone too.
>>> >
>>> > So. I'm wondering if this is a bug of sfGuardPlugin because I've
>>> > tested with the variations and everything seems to work fine but I
>>> > want your oppinions about it.
>>> >
>>> > >>> >
>> 
>> 
> 
> 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Cross schema.xml foreign key references

2008-05-30 Thread halfer

Hi all

There are a number of posts here, and on the forum, about linking two
tables across two different schema files with a foreign key. There's
even a snippet and a changeset mentioning it too, so I think it ought
to be possible. However I don't seem to be able to get this to work
with my XML files (and wondering whether using YML would get this to
work?).

In one schema.xml, in a plugin, I have this:









And in another I have this:
























I thought in the YARD_VISIT I should make a reference to SYSTEM_REASON
and its PKs, omitting all other columns - which would then be defined
in the other schema. However this has not worked, and has instead
created a SYSTEM_REASON table containing just the keys. Given that
this should be possible - see the below link - has anyone any thoughts
on how to achieve it?

http://trac.symfony-project.com/changeset/2081

Many thanks :o)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: blog and or email platform needed to incorporate into our social site

2008-05-30 Thread halfer

Hi Daevid

There's sfSimpleBlogPlugin (http://trac.symfony-project.com/wiki/
sfSimpleBlogPlugin) which will plug straight into a symfony site. Is
that the kind of thing you're after?

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: sfPropelPlugin (Propel 1.3) and Logging

2008-05-30 Thread [EMAIL PROTECTED]

One more Dustin,

i'm an experienced devloper and i don't know why, but using PDO needs
twice as time as using old creole on my linux machine. Everything is
working (except logging) and i have no database sessions setup
(sure) ...

I will try the other plugin just to compare.

Michael



On 30 Mai, 13:13, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Dear Dustin,
>
> still no luck with logging. The thing is, i'm using DebugPDO and i can
> see, that in sfPropelLogger the log function is beeing called with the
> debug string (database query etc.). But is does not appear in the
> application log. When i switch to PropelPDO, the log function is not
> called anymore, so this works as it should.
>
> I tried different things and one time i simply replaced in
> sfPropelLogger
>
> $this->dispatcher->notify(new sfEvent($this, 'application.log', ...
>
> in line 120 with
>
> sfContext::getInstance()->getLogger()->info($message);
>
> and i got the $message in the application log. But this is not the
> right way as it does not appear in the debug bar. So i guess it's
> something with the event dispatcher ...
>
> Cheers,
> Michael
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] sfPropelPlugin (Propel 1.3) and Logging

2008-05-30 Thread [EMAIL PROTECTED]

Dear Dustin,

still no luck with logging. The thing is, i'm using DebugPDO and i can
see, that in sfPropelLogger the log function is beeing called with the
debug string (database query etc.). But is does not appear in the
application log. When i switch to PropelPDO, the log function is not
called anymore, so this works as it should.

I tried different things and one time i simply replaced in
sfPropelLogger

$this->dispatcher->notify(new sfEvent($this, 'application.log', ...

in line 120 with

sfContext::getInstance()->getLogger()->info($message);

and i got the $message in the application log. But this is not the
right way as it does not appear in the debug bar. So i guess it's
something with the event dispatcher ...

Cheers,
Michael
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] i18n - problem with special chars in xliff

2008-05-30 Thread gestadieu

Hi all,

I am translating an application in chinese and others languages but
whenever I have in the default language (english) a & (encoded as
& ) symfony does not show the translated text. Everything is utf-8
(including file encoding)...and I am getting out of ideas (except
reformulate the sentence to remove those chars)!

any solution?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: forwardUnless(1,"a message")

2008-05-30 Thread Nicolas Perriault

2008/5/29 russell <[EMAIL PROTECTED]>:

> From within error404Success.php template, how can I access the message
> passed by forwardUnless(1, "this is the message I want to display")?

In your symfony app log file, eg. log/frontend_dev.log or in the web
debug toolbar.

++

-- 
Nicolas Perriault
http://prendreuncafe.com - http://symfonians.net - http://sensiolabs.com
Phone: +33 660 92 08 76

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] sfGuardDoctrine error - compat_10

2008-05-30 Thread Johannes Frandsen

Hi

Im trying to setup sfGuardDoctrine.

The frontend part works nice, but when I try to setup the modules in  
the backend I get this:

[sfConfigurationException]
You must set "compat_10" to true if you want to use this method which  
is deprecated.
stack trace

 * at ()
   in SF_SYMFONY_LIB_DIR/request/sfRequest.class.php line 197 ...
  194.   {
  195. if (!sfConfig::get('sf_compat_10'))
  196. {
  197.   throw new sfConfigurationException('You must  
set "compat_10" to true if you want to use this method which is  
deprecated.');
  198. }
  199.
  200. return array_key_exists($name, $this->errors);

I'm running symfony version 1.1.0-rc1 and latest check from trunk of  
sfGuardDoctrine and sfDoctrine


What to do?...

Thanks in advance

Joe


On 29 May 2008, at 11:03, CaffeineInc wrote:

>
> I use the following on OSX 10.5.. Allows PDO mysql which is way
> faster, and supports doctrine.
>
> If your using OSX as a dedicated webserver MAMP just doesn't cut it...
>
> You'll need to install ports (like apt-get) to get some of the GD
> libraries and perhaps a c compiler, (gcc) if you haven't installed the
> developer tools.
>
> I compiled my own binaries with the following configuration..
> # Apache 2.2.8
> #! /bin/sh
> './configure' \
> '--enable-so' \
> '--enable-rewrite' \
> '--enable-deflate' \
> "$@"
>
> # PHP 5.2.5
> #! /bin/sh
> './configure' \
> '--with-config-file-path=/etc' \
> '--with-apxs2=/usr/local/apache2/bin/apxs' \
> '--with-pdo-mysql=/usr/local' \
> '--with-mysql=/usr/local' \
> '--with-mcrypt' \
> '--with-mhash' \
> '--with-gd' \
> '--with-gmp' \
> '--with-bz2' \
> '--with-pear' \
> '--with-tidy' \
> '--enable-mbstring' \
> '--enable-zip' \
> "$@"
>
> # MySql? 5.1.23 RC release candidate
> #! /bin/sh
> './configure' \
> '--with-pthread' \
> '--with-big-tables' \
> '--with-plugin-innobase' \
> '--with-plugin-myisam' \
> '--with-fast-mutexes' \
> '--enable-assembler' \
> "$@"
>
> >
>


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to change the default upload directory ?

2008-05-30 Thread Gilles Doge

Hello,

On 30 mai, 09:38, Sylver <[EMAIL PROTECTED]> wrote:
> When i write "sfConfig::set('sf_upload_dir', '/home/sylver/workspace/
> sta/www/uploads');" in /config/config.php
> -> Fatal error: Class 'sfConfig' not found in /home/simon/workspace/
> sta/config/config.php on line 6
>
> :/
Use the config.php in your config application folder: apps/myapp/
config/config.php.

Gilles.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: How to change the default upload directory ?

2008-05-30 Thread Sylver

When i write "sfConfig::set('sf_upload_dir', '/home/sylver/workspace/
sta/www/uploads');" in /config/config.php
-> Fatal error: Class 'sfConfig' not found in /home/simon/workspace/
sta/config/config.php on line 6

:/

On 30 mai, 07:46, "Dmitry Nesteruk" <[EMAIL PROTECTED]> wrote:
> Try to set upload directory in the config/config.php
> Example:
>
> sfConfig::set('sf_upload_dir', '/home/sylver/workspace/sta/www/uploads');
>
> You should create this directory before you will try to upload some file.
>
> 2008/5/29 Sylver <[EMAIL PROTECTED]>:
>
>
>
> > Hello,
> > i have installed my symfony project on OVH (french host) and my web-
> > directory is /www instead of /web.
> > When i try to upload a file, it try upload it on /web/uploads wich
> > doesn't exist. How can i change that ?
>
> > echo sfConfig::get('sf_upload_dir'); -> /home/sylver/workspace/sta/web/
> > uploads
> > and i want to have :  /home/sylver/workspace/sta/www/uploads
>
> > I try to find where to change that but i don't find it...
>
> > Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---