[symfony-users] Re: Utilisation de draggable_element

2008-10-13 Thread pierrix


J'ai trouvé la  solution, voir le lien ci-dessous :

http://trac.symfony-project.org/wiki/Documentation/fr_FR/easy_ajax/trunk

Merci tout de même !

A+

Pierre


On 7 oct, 21:29, pierrix [EMAIL PROTECTED] wrote:
 Bonjour,

 je voudrais glisser déplacer des éléments d'une liste vers une autre
 pour ensuite enregistrer le contenu de la liste cible.

 Ma 1ère question porte sur l'affichage : Comment faire pour que les
 éléments déplacés apparaissent les un sous les autres dans la liste
 cible ?

 Ensuite, faut-il enregistrer le contenu cible à chaque déplacement ?
 Ce qui nécessite des  accès bases de données à chaque fois !

 Ne serait-il pas possible de lire le contenu de la liste cible quand
 tous les éléments sont déplacés et que l'utilisateur décide
 d'enregistrer ? Dans ce cas, comment faire ?

 Merci pour votre aide !

 Pierrix.
--~--~-~--~~~---~--~~
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 read recieving-element content ?

2008-10-13 Thread pierrix

I solved the problem : use Sf_user with an array which save in the
session the content of the list.

Read the following example about Caddie  to understand :
http://trac.symfony-project.org/wiki/Documentation/fr_FR/easy_ajax/trunk

Bye

Pierrix

On 6 oct, 23:45, pierrix [EMAIL PROTECTED] wrote:
 In other term's : I'use somme draggable element which are dropped into
 a receiving element.

 I want add these dropped element. Could I wait the end of the drop and
 update my database when all the element are dropped ? In this case,
 this mean that i could read my list of dropped element. But how read
 them and how put them each one under the other ?

 In other case i would have to create the lines in my database when I
 drop each element ?

 What is the best way to do ?

 Thank's.
--~--~-~--~~~---~--~~
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: Upgrade to 1.1 : Call to undefined method Propel::import()

2008-10-13 Thread DigitalBase

I created a ticket : http://trac.symfony-project.org/ticket/4650
Now when i uninstall propel from pear (runtime  generator) i get this
error :

[wrapped: Unable to load driver class:
symfony.plugins.sfPropelPlugin.lib.creole.drivers.sfDebugConnection]

Is this the same problem ? (autoloader not fully functioning due to
include path problems ?)


On Oct 11, 5:38 pm, Kris Wallsmith [EMAIL PROTECTED]
project.com wrote:
 Looks like there may be a bug in sfPropelPlugin's use of  
 set_include_path(). Please create a ticket on Trac.

 Thanks,
 Kris

 On Oct 11, 2008, at 8:27 AM, DigitalBase [EMAIL PROTECTED] wrote:



  Tnx Kris

  Apparently i do (see pear output below). But as i am using
  svn:externals defenition for the core. It should use the included
  propel plugin no ?
  If i browse the 1.1 repository, i can see sfPropel is included :
 http://trac.symfony-project.org/browser/branches/1.1/lib/plugins/sfPr...
  Also this post tells me propel1.2 is included as a plugin :
 http://www.symfony-project.org/blog/2007/12/12/symfony-propel-and-doc...

  So why is it using my pear version, instead of the included one ?

  pear list -a
  Installed packages, channel __uri:
  ==
  (no packages installed)
  Installed packages, channel pear.phing.info:
  
  Package Version  State
  phing   2.3.1RC1 beta
  Installed packages, channel pear.php.net:
  =
  Package                  Version  State
  Archive_Tar              1.3.2    stable
  Console_Getopt           1.2.3    stable
  DB                       1.7.13   stable
  Log                      1.11.1   stable
  OLE                      1.0.0RC1 beta
  PEAR                     1.6.1    stable
  Spreadsheet_Excel_Writer 0.9.1    beta
  Structures_Graph         1.0.2    stable
  Installed packages, channel pear.phpdb.org:
  ===
  Package          Version  State
  creole           1.1.0    stable
  propel_generator 1.3.0RC1 beta
  propel_runtime   1.3.0RC1 beta
  Installed packages, channel pear.symfony-project.com:
  =
  Package Version State
  symfony 1.0.17  stable
  Installed packages, channel pecl.php.net:
  =

  On Oct 11, 3:26 pm, Kris Wallsmith [EMAIL PROTECTED]
  project.com wrote:
  Hm... The Propel::import() method was renamed Propel::importClass()  
  in
  Propel 1.3. Is it possible you have Propel 1.3 installed somewhere?

  Kris

  On Oct 11, 2008, at 5:45 AM, DigitalBase [EMAIL PROTECTED] wrote:

  I just upgraded my project to 1.1. Now i get the exception :

  bFatal error/b:  Call to undefined method Propel::import() in  
  b/
  home/gnelisse/projects_local/projectname/webroot/core/lib/plugins/
  sfPropelPlugin/lib/vendor/propel/util/BasePeer.php/b on line
  b929/
  bbr /

  I found a thread about it here 
  :http://www.symfony-project.org/forum/index.php/m/62822/
  no solution though.

  I am on ubuntu 8.04. This project is using a svn:externals  
  defenition
  of symfony 1.1 core, altough the system does have symfony 1.0
  installed under PEAR.

  Anyone 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] 404 and referer...

2008-10-13 Thread Sumedh

Hi Friends,

I want to send an email to web-admin of my site whenever there is 404
or 500 error...

I am being able to send the email successfully on 404...however, I
don't get valid referer value in the error action...what might be the
reason?

Secondly, I want a similar behavior for internal error (500)...how can
I configure an action for 500? I saw in the documentation about
error500.php page...but is there any way that the web-admin can know
of this error as well?

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: IDE for symfony

2008-10-13 Thread Alex

i think its working with symfony 1.0 only at this moment, is not it?

i use NuSphere PhpED, love it! there is console, db editing tool... so
i don`t need putty or navicat.

On Oct 13, 9:05 am, Pankaj Jain [EMAIL PROTECTED] wrote:
 Go for eclipse+PDT+Symfoeclipse
 its the best
 Pankaj Jain

 Harinath wrote:
 Hi, I have started looking into symfony recently for building a web
 based solution for voluntary groups in india. I am looking for a IDE
 which is compatable with symfony and can ease out the development
 process.

 Please do let me know if  you have any inputs on the same.

 Thanks
 harinath


--~--~-~--~~~---~--~~
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: Propel error in Symfony 1.0.18

2008-10-13 Thread Ludens

Couldn't find the cause of this error. What I did was start over again
with a new symfony 1.0 project and I didn't get the error any more.
Hope this helps others.

On Oct 12, 4:20 pm, Ludens [EMAIL PROTECTED] wrote:
 When trying to install the sfGuardPlugin for symfony 1.0, I get the
 following error when trying to load the fixtures into the database via
 the CLI or open the sfGuardUser or any sfGuard page. I have looked at
 the other discussions about this, but none of the solutions worked for
 me.

 [PropelException]
 No connection params set for propel

 Strange thing is, the command 'php symfony build-all-load' can make
 new tables in the database, so the information in propel.ini and
 databases.yml has to be correct in some way. But when it wants to load
 data from the fixtures into the db, I get this error.

 propel.ini:

 propel.targetPackage       = lib.model
 propel.packageObjectModel  = true
 propel.project             = crealev
 propel.database            = mysql
 propel.database.createUrl  = mysql://[user]:[EMAIL PROTECTED]/
 propel.database.url        = mysql://[user]:[EMAIL PROTECTED]/[dbname]

 databases.yml:

 all:
 --propel:
 class: sfPropelDatabase
 param:
 --is_default: true
 --dsn: mysql://crealev:[EMAIL PROTECTED]/crealev

 - = space

 any ideas? I am using the downloaded version of symfony 1.0.18 and the
 installation of the sfGuardPlugin went without problems.

 Regards,

 Alex
--~--~-~--~~~---~--~~
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: using Session variables in my class

2008-10-13 Thread jasonb

1.0 version i am using

On Oct 10, 7:38 pm, Kris Wallsmith [EMAIL PROTECTED]
project.com wrote:
 Hi Michael,

 What version of symfony are you using?

 Kris

 On Oct 10, 10:15 am, [EMAIL PROTECTED]

 [EMAIL PROTECTED] wrote:
  Which log do you mean? Symfony logs many informations (debug
  enviroment). The first are logged, when the routing is configured (as
  in sf 1.2). I don't think that the session data is available at this
  time.

  Michael

  On 10 Okt., 17:51, jasonb [EMAIL PROTECTED] wrote:

   any ideas?

   On Oct 9, 5:19 pm, [EMAIL PROTECTED]

   [EMAIL PROTECTED] wrote:
When, and in which context is this class called?
It seems, that whenever your class is called, the User object is not
created yet.
So when do you call it in your request?

Michael

On 9 Okt., 20:55, jasonb [EMAIL PROTECTED] wrote:

 this must be a difficult thing to do since I've asked on the forum and
 the IRC channels and no one knows?
 can someone at least direct me to where I might find my answer?

 On Oct 9, 2:42 pm, jasonb [EMAIL PROTECTED] wrote:

  Im trying to use session variables in my /lib/mylogger.php class

  everytime i reference
  $username =  sfContext::getInstance()-getUser()-

  getAttribute('Username');

  the code says
  Fatal error: Call to a member function getAttribute() on a 
  non-object

  but I've been struggling and I even tried doing a
  print_r(sfContext::getInstance()) and i see the attribute in the 
  page
  but it wont allow me to access 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] Re: dbFinder ordered numerically

2008-10-13 Thread Yuretsz
Show me schema

On Mon, Oct 13, 2008 at 2:37 PM, Cindy Cullen [EMAIL PROTECTED]wrote:

 I've tried it both ways - I can make it either, but currently it is set to
 varchar.
 On Oct 13, 2008, at 5:17 AM, Yuretsz wrote:

  Your Score field is iteger or varchar?

 On Mon, Oct 13, 2008 at 5:49 AM, Cindy Cullen [EMAIL PROTECTED]wrote:


 I'm using PropelFinder and I need to order my results numerically:

 $this-scores = sfPropelFinder::from('Scores')-orderBy(Score','desc')-
  find();

 I want them in order numerically - in other words, I want this:

 1
 750
 1500

 not this:

 1
 1500
 750

 How do I make the order by use the ABS() function that I can use in
 MySQL?

 Thanks!

 Cindy





 --
 
 Regards...





 



-- 

Regards...

--~--~-~--~~~---~--~~
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: dbFinder ordered numerically

2008-10-13 Thread Cindy Cullen
Here is my schema:

   trivia_scores:
 _attributes: { phpName: triviaScores }
 id:
 username: varchar(128)
 score: varchar(10)
 last_level: varchar(10)

Thanks for your help!

Cindy

On Oct 13, 2008, at 8:13 AM, Yuretsz wrote:

 Show me schema

 On Mon, Oct 13, 2008 at 2:37 PM, Cindy Cullen [EMAIL PROTECTED] 
  wrote:
 I've tried it both ways - I can make it either, but currently it is  
 set to varchar.

 On Oct 13, 2008, at 5:17 AM, Yuretsz wrote:

  Your Score field is iteger or varchar?

 On Mon, Oct 13, 2008 at 5:49 AM, Cindy Cullen [EMAIL PROTECTED] 
  wrote:

 I'm using PropelFinder and I need to order my results numerically:

 $this-scores = sfPropelFinder::from('Scores')- 
 orderBy(Score','desc')-
  find();

 I want them in order numerically - in other words, I want this:

 1
 750
 1500

 not this:

 1
 1500
 750

 How do I make the order by use the ABS() function that I can use in
 MySQL?

 Thanks!

 Cindy





 -- 
 
 Regards...









 -- 
 
 Regards...

 


--~--~-~--~~~---~--~~
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: Upgrade to 1.1 : Call to undefined method Propel::import()

2008-10-13 Thread volatt

Hi.

We had the same problem here:

# pear list -a
Installed packages, channel __uri:
==
(no packages installed)
Installed packages, channel pear.php.net:
=
Package  Version State
Archive_Tar  1.3.2   stable
Console_Getopt   1.2.3   stable
Log  1.9.11  stable
PEAR 1.6.1   stable
Structures_Graph 1.0.2   stable
Installed packages, channel pear.phpdb.org:
===
PackageVersion State
propel_runtime 1.3.0   stable
Installed packages, channel pear.symfony-project.com:
=
Package Version State
symfony 1.0.17  stable
Installed packages, channel pecl.php.net:
=
(no packages installed)

However, the problem was solved after uninstalling propel_runtime:
# pear uninstall  pear.phpdb.org/propel_runtime
# symfony cc

Regards,

Alfonso



--~--~-~--~~~---~--~~
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] Error generating forms with Propel

2008-10-13 Thread tveon

Hi all,

I am making a very simple page using Symfony, and have already run
into a bit of a problem using forms.
After successfully building the model, I want to generate the
corresponding form.

Here is what happens:

symfony propel:build-forms
 propelgenerating form classes

Fatal error: Class 'Team-surveyMapBuilder' not found in C:\wamp\bin\php
\php5.2.6
\PEAR\symfony\plugins\sfPropelPlugin\lib\propel\generator
\sfPropelFormGenerator.
class.php on line 484

Team-surveyMapBuilder is defined in lib/model/map/Team-
surveyMapBuilder.php.

Am I supposed to register this path somewhere to make Propel able to
find it? Or what am I doing wrong?

If this has already been answered, I apologize. I have been unable to
find it.

Thanks,
Thomas

P.S. I have encountered the problem with both Symfony 1.1.3 and 1.1.4.

--~--~-~--~~~---~--~~
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: dbFinder ordered numerically

2008-10-13 Thread Cindy Cullen
I figured it out.

I had to change both the database AND the schema to integer, rebuild  
the model and clear the cache.

I had done bits and pieces of that, but never all at the same time.

Thanks for everyone's help!

Cindy

On Oct 13, 2008, at 8:22 AM, Cindy Cullen wrote:

 Here is my schema:

   trivia_scores:
 _attributes: { phpName: triviaScores }
 id:
 username: varchar(128)
 score: varchar(10)
 last_level: varchar(10)

 Thanks for your help!

 Cindy

 On Oct 13, 2008, at 8:13 AM, Yuretsz wrote:

 Show me schema

 On Mon, Oct 13, 2008 at 2:37 PM, Cindy Cullen [EMAIL PROTECTED] 
  wrote:
 I've tried it both ways - I can make it either, but currently it is  
 set to varchar.

 On Oct 13, 2008, at 5:17 AM, Yuretsz wrote:

  Your Score field is iteger or varchar?

 On Mon, Oct 13, 2008 at 5:49 AM, Cindy Cullen [EMAIL PROTECTED] 
  wrote:

 I'm using PropelFinder and I need to order my results numerically:

 $this-scores = sfPropelFinder::from('Scores')- 
 orderBy(Score','desc')-
  find();

 I want them in order numerically - in other words, I want this:

 1
 750
 1500

 not this:

 1
 1500
 750

 How do I make the order by use the ABS() function that I can use in
 MySQL?

 Thanks!

 Cindy





 -- 
 
 Regards...









 -- 
 
 Regards...





 


--~--~-~--~~~---~--~~
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: dbFinder ordered numerically

2008-10-13 Thread Yuretsz
 Your Score field is iteger or varchar?

On Mon, Oct 13, 2008 at 5:49 AM, Cindy Cullen [EMAIL PROTECTED]wrote:


 I'm using PropelFinder and I need to order my results numerically:

 $this-scores = sfPropelFinder::from('Scores')-orderBy(Score','desc')-
  find();

 I want them in order numerically - in other words, I want this:

 1
 750
 1500

 not this:

 1
 1500
 750

 How do I make the order by use the ABS() function that I can use in
 MySQL?

 Thanks!

 Cindy

 



-- 

Regards...

--~--~-~--~~~---~--~~
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: dbFinder ordered numerically

2008-10-13 Thread Yuretsz
You should change it to

  trivia_scores:
_attributes: { phpName: triviaScores }
id:
username: varchar(128)
score: integer
last_level: varchar(10)

And rebuild your model and database.


 Thanks for your help!

 Cindy

 On Oct 13, 2008, at 8:13 AM, Yuretsz wrote:

 Show me schema

 On Mon, Oct 13, 2008 at 2:37 PM, Cindy Cullen [EMAIL PROTECTED]wrote:

 I've tried it both ways - I can make it either, but currently it is set to
 varchar.
 On Oct 13, 2008, at 5:17 AM, Yuretsz wrote:

  Your Score field is iteger or varchar?

 On Mon, Oct 13, 2008 at 5:49 AM, Cindy Cullen [EMAIL PROTECTED]wrote:


 I'm using PropelFinder and I need to order my results numerically:

 $this-scores = sfPropelFinder::from('Scores')-orderBy(Score','desc')-
  find();

 I want them in order numerically - in other words, I want this:

 1
 750
 1500

 not this:

 1
 1500
 750

 How do I make the order by use the ABS() function that I can use in
 MySQL?

 Thanks!

 Cindy





 --
 
 Regards...









 --
 
 Regards...





 



-- 

Regards...

--~--~-~--~~~---~--~~
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: 404 and referer...

2008-10-13 Thread Steve Daniels

2008/10/13 Sumedh [EMAIL PROTECTED]:

 Hi Friends,

 I want to send an email to web-admin of my site whenever there is 404
 or 500 error...

 I am being able to send the email successfully on 404...however, I
 don't get valid referer value in the error action...what might be the
 reason?

 Secondly, I want a similar behavior for internal error (500)...how can
 I configure an action for 500? I saw in the documentation about
 error500.php page...but is there any way that the web-admin can know
 of this error as well?

 Thanks...

Hi Sumedh,

You might want to think this through a little. A website that has been
on the net for any length of time will generate numerous benign 404's
possibly so many that your inbox would be very quickly flooded. I'd
settle for frequent monitoring of the sfErrorLogger plugin.

Steve Daniels

--~--~-~--~~~---~--~~
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: IDE for symfony

2008-10-13 Thread Geoff

Netbeans for PHP IDE
Symfony would be supported soon ... we hope

On Oct 13, 11:10 am, Alex [EMAIL PROTECTED] wrote:
 i think its working with symfony 1.0 only at this moment, is not it?

 i use NuSphere PhpED, love it! there is console, db editing tool... so
 i don`t need putty or navicat.

 On Oct 13, 9:05 am, Pankaj Jain [EMAIL PROTECTED] wrote:

  Go for eclipse+PDT+Symfoeclipse
  its the best
  Pankaj Jain

  Harinath wrote:
  Hi, I have started looking into symfony recently for building a web
  based solution for voluntary groups in india. I am looking for a IDE
  which is compatable with symfony and can ease out the development
  process.

  Please do let me know if  you have any inputs on the same.

  Thanks
  harinath
--~--~-~--~~~---~--~~
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] Decimal separator not working on custom widget when form does not validate.

2008-10-13 Thread Bruno Reis

Hi there,

I made the following class to render my decimal numbers with commas
instead of dots. But if the form does not validate, then the render
function is called with the user entered value. So the first time, for
instance, its called with 14.54(dot) to show the form. It is shown as
14,54(comma). When the user submits the form (that is not validated) ,
then its called with 14,54 (comma) and does not work as expected.

Am I doing something wrong here?
Is the Class right implemented?

thks,
Bruno

-

class sfWidgetFormInputDecimal extends sfWidgetForm
{

  protected function configure($options = array(), $attributes = array())
  {
parent::configure($options,$attributes);
$this-addRequiredOption('culture');
  }


  public function render($name, $value = null, $attributes = array(),
$errors = array())
  {
$numberFormat = new sfNumberFormat($this-getOption('culture'));
$value = $numberFormat-format($value);
return $this-renderTag('input', array_merge(array('type' =
$this-getOption('type'), 'name' = $name, 'value' = $value),
$attributes));
  }
}

--~--~-~--~~~---~--~~
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] Problem: Change values after from $from-bind() and function isValid();

2008-10-13 Thread Guilherme Veras

hello staff would like to help with a following question

I have the tables Pessoa and Pessoa Fisica

  pessoa:
_attributes: { idMethod: native }
id: { type: INTEGER, required: true, autoIncrement: true,
primaryKey: true }
created_at: { type: TIMESTAMP }
updated_at: { type: TIMESTAMP }
nome: { type: VARCHAR, size: '40' }

  pessoa_fisica:
_attributes: { idMethod: native }
id: { type: INTEGER, required: true, autoIncrement: true,
primaryKey: true }
created_at: { type: TIMESTAMP }
updated_at: { type: TIMESTAMP }
pai: { type: VARCHAR, size: '40' }
mae: { type: VARCHAR, size: '40' }
rg: { type: VARCHAR, size: '10' }
cpf: { type: VARCHAR, size: '14' }
data_nascimento: { type: TIMESTAMP }
tel_ddd1: { type: VARCHAR, size: '2' }
tel_num1: { type: VARCHAR, size: '10' }
tel_ddd2: { type: VARCHAR, size: '2' }
tel_num2: { type: VARCHAR, size: '10' }
pessoa_id: { type: INTEGER, required: true, foreignTable: pessoa,
foreignReference: id, onDelete: RESTRICT, onUpdate: RESTRICT }
_indexes: { FK_pessoa_fisica_0: [pessoa_id]}

Both are correct for my type of application and the relationship is
working.

In my file cadastrarpessoaSuccess.php I have the fields being
printed correctly but I'm not printing the pessoa_id
why have not registered the person (being a person who is physically
to be related to a person).

in my action (see right) I would like to have the following code ...

public function executeCadastrarpessoa($request)
  {

  $this-form = new PessoaForm();
  $this-form_pessoa_fisica = new PessoaFisicaForm();

  if ($request-isMethod('post'))
  {

 $this-form-bind($request-getParameter('pessoa'));
 $this-form_pessoa_fisica-bind($request-
getParameter('pessoa_fisica'));


if ($this-form-isValid()  $this-form_pessoa_fisica-
isValid())

  {
try
{
// pessoa
$pessoa = $this-form-save();
// pessoa fisica
$this-form_pessoa_fisica-getObject()-
setPessoaId($pessoa-getId());

$pessoa_fisica = $this-
form_pessoa_fisica-save();

$this-getUser()-setFlash('sucesso',
'OK. =)');

$this-form = new PessoaForm();
$this-form_pessoa_fisica = new
PessoaFisicaForm();

}catch($e)
{
$this-getUser()-setFlash('erro',
'Error: 65494654454544656 ...');
}
  }
  }

  }

Well above this the code that I thought to be able to resolve my
this problem under the code that works
my problem is that after we made the bind (by which I understand it
converts in the array object)
After he is done I can not change the value of PessoaId in my
object to save the relationship correct.
Another thing I would like to know if it is nice to get validation of
key
because of foreign layout without entering the value of pessoa_id can
not pass
by function isValid ();

public function executeCadastrarpessoa($request)
  {

  $this-form = new PessoaForm();
  $this-form_pessoa_fisica = new PessoaFisicaForm();

  if ($request-isMethod('post'))
  {

$this-form-bind($request-getParameter('pessoa'));


$pessoa_fisica = $request-getParameter('pessoa_fisica');
$pessoa_fisica['pessoa_id'] = 1;
$this-form_pessoa_fisica-bind($pessoa_fisica);


  if ($this-form-isValid()  $this-
form_pessoa_fisica-isValid())

  {
try
{
// pessoa
$pessoa = $this-form-save();
// pessoa fisica
$pessoa_fisica = $request-
getParameter('pessoa_fisica');
$pessoa_fisica['pessoa_id'] = $pessoa-
getId();
$this-form_pessoa_fisica-
bind($pessoa_fisica);

$pessoa_fisica = $this-
form_pessoa_fisica-save();

$this-getUser()-setFlash('sucesso',
'OK. =)');

$this-form = new PessoaForm();
$this-form_pessoa_fisica = new
PessoaFisicaForm();

}catch($e)
{
$this-getUser()-setFlash('erro',
'Error: 65494654454544656 ...');
}
  }
  }

  }


I appreciate any help.
If someone does not understand the problem may request further
information.
now appreciate that.

Excuse my English

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
symfony users group.
To 

[symfony-users] not able to create yaml schema from existing database

2008-10-13 Thread harinath
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

Hi,
I am not able to create YAML datamodel from existing database with the
instructions given in the book /
www.symfony-project.org/book/1_1/08-Inside-the-Model-Layer.html

some exception is happening, please do let me know what could be the fix.

thanks

 Directory of D:\workarea\simfony\sf_sandbox\ocms

10/11/2008  02:29 PMDIR  .
10/11/2008  02:29 PMDIR  ..
10/12/2008  09:03 AMDIR  .cache
10/11/2008  02:29 PM   529 .project
10/11/2008  02:29 PMDIR  .settings
10/09/2008  11:19 PMDIR  apps
10/09/2008  10:25 PMDIR  cache
10/09/2008  10:17 PMDIR  config
10/09/2008  10:17 PMDIR  data
10/09/2008  10:17 PMDIR  doc
10/09/2008  10:17 PMDIR  lib
10/11/2008  03:27 PMDIR  log
10/09/2008  10:17 PMDIR  plugins
10/09/2008  10:17 PM   482 symfony
10/09/2008  10:17 PMDIR  test
10/09/2008  11:19 PMDIR  web
   2 File(s)  1,011 bytes
  14 Dir(s)   6,061,199,360 bytes free

D:\workarea\simfony\sf_sandbox\ocmsphp symfony propel:build-schema
Buildfile:
C:\xampp\php\PEAR\symfony\plugins\sfPropelPlugin\lib\vendor\propel-ge
nerator\build.xml
[resolvepath] Resolved D:\workarea\simfony\sf_sandbox\ocms\config to
D:\workarea
\simfony\sf_sandbox\ocms\config

propel-project-builder  check-project-or-dir-set:

propel-project-builder  check-project-set:

propel-project-builder  set-project-dir:

propel-project-builder  check-buildprops-exists:

propel-project-builder  check-buildprops-for-propel-gen:

propel-project-builder  check-buildprops:

propel-project-builder  configure:
 [echo] Loading project-specific props from
D:\workarea\simfony\sf_sandbox\o
cms\config/propel.ini
 [property] Loading D:\workarea\simfony\sf_sandbox\ocms\config\propel.ini

propel-project-builder  creole:
[phing] Calling Buildfile
'C:\xampp\php\PEAR\symfony\plugins\sfPropelPlugin\
lib\vendor\propel-generator\build-propel.xml' with target 'creole'
 [property] Loading
C:\xampp\php\PEAR\symfony\plugins\sfPropelPlugin\lib\vendor\
propel-generator\.\default.properties

propel  creole:
 [echo] +---+
 [echo] |   |
 [echo] | Generating XML from Creole connection !   |
 [echo] |   |
 [echo] +---+
[propel-creole-transform] Propel - CreoleToXMLSchema starting
[propel-creole-transform] Your DB settings are:
[propel-creole-transform] driver : (default)
[propel-creole-transform] URL : mysql://root:[EMAIL PROTECTED]/ocms
[PHP Error] domdocument::domdocument() expects parameter 2 to be long,
string gi
ven [line 273 of
C:\xampp\php\PEAR\symfony\plugins\sfPropelPlugin\lib\vendor\pro
pel-generator\classes\propel\phing\PropelCreoleTransformTask.php]

Fatal error: Call to undefined method domdocument::appendChild() in
C:\xampp\php
\PEAR\symfony\plugins\sfPropelPlugin\lib\vendor\propel-generator\classes\propel\
phing\PropelCreoleTransformTask.php on line 276

D:\workarea\simfony\sf_sandbox\ocms

-- 
Regards...
Harinath
http://harinath.in
http://sosoft.org/ciki Your information source of Hyderabad
Beauty is that which attracts your soul, and that which loves to give and
not to receive

--~--~-~--~~~---~--~~
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] Why this ...

2008-10-13 Thread Reynier Perez Mira

Hi every:
I have this routing defined:

cambiar_cultura:
  url:   /change/lang/*
  param: { module: geslicsoft, action: ChangeAppCulture }
  requirements: { lang: (?:es|en|fr|it) }

I have this link in my template:
link_to(image_tag('icn_spanish',array('title'=__('espanol'),'alt'=__('espanol'))),'@cambiar_cultura?lang=es');

I have this method in my class:
public function ChangeAppCulture($request)
{
$this-getUser()-setCulture($request-getParameter('lang'));
}

Why when I click in that link I get this error:

[sfError404Exception]
Action geslicsoft/ChangeAppCulture does not exist. 

Cheers and thanks in advance
Ing. Reynier Pérez Mira
Grupo de Soporte al Desarrollo - Dirección Técnica IP 

--~--~-~--~~~---~--~~
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: Why this ...

2008-10-13 Thread James
function needs to be called executeChangeAppCulture()

James


On Oct 14, 2008, at 12:18 AM, Reynier Perez Mira wrote:


 Hi every:
 I have this routing defined:

 cambiar_cultura:
  url:   /change/lang/*
  param: { module: geslicsoft, action: ChangeAppCulture }
  requirements: { lang: (?:es|en|fr|it) }

 I have this link in my template:
 link_to
 (image_tag
 ('icn_spanish
 ',array
 ('title'=__('espanol'),'alt'=__('espanol'))),'@cambiar_cultura? 
 lang=es');

 I have this method in my class:
 public function ChangeAppCulture($request)
 {
   $this-getUser()-setCulture($request-getParameter('lang'));
 }

 Why when I click in that link I get this error:

 [sfError404Exception]
 Action geslicsoft/ChangeAppCulture does not exist.

 Cheers and thanks in advance
 Ing. Reynier Pérez Mira
 Grupo de Soporte al Desarrollo - Dirección Técnica IP

 


--~--~-~--~~~---~--~~
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: Why this ...

2008-10-13 Thread James
oh also your action should be changeAppCulture if your method is  
executeChangeAppCulture

James


On Oct 14, 2008, at 12:39 AM, James wrote:

 function needs to be called executeChangeAppCulture()

 James


 On Oct 14, 2008, at 12:18 AM, Reynier Perez Mira wrote:


 Hi every:
 I have this routing defined:

 cambiar_cultura:
  url:   /change/lang/*
  param: { module: geslicsoft, action: ChangeAppCulture }
  requirements: { lang: (?:es|en|fr|it) }

 I have this link in my template:
 link_to 
 (image_tag 
 ('icn_spanish 
 ',array 
 ('title'=__('espanol'),'alt'=__('espanol'))),'@cambiar_cultura? 
 lang=es');

 I have this method in my class:
 public function ChangeAppCulture($request)
 {
  $this-getUser()-setCulture($request-getParameter('lang'));
 }

 Why when I click in that link I get this error:

 [sfError404Exception]
 Action geslicsoft/ChangeAppCulture does not exist.

 Cheers and thanks in advance
 Ing. Reynier Pérez Mira
 Grupo de Soporte al Desarrollo - Dirección Técnica IP

 



--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---