[symfony-users] Symfony 1.1 Type INET and MACADDR - PostgreSQL

2008-12-07 Thread AlphaX

Hello, everyone...

Friends, I am having trouble with the type of field inet, manually
define it as numeric but when I'll save something on the table is
empty and instead of going to be placed null ("") someone knows how to
solve this problem?
--~--~-~--~~~---~--~~
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: Error in My First Project (1.2)

2008-12-07 Thread Sid Ferreira
My problem was actually the new comment link...

On Sun, Dec 7, 2008 at 15:05, Marius Rugan <[EMAIL PROTECTED]> wrote:

> yes, it seems it's a bug, already known / don't know if reported which
> quotes the dsn
> http://www.symfony-project.org/forum/index.php/m/66290/
>
> anyways Sid,
>
> you have to edit manually the configuration(s) file inside config/
>
> i would suggest that you place a "catchy" subject in your email(s) e.g.
> error: configure:database quotes the
> dsn so someone who's scanning the list could make things happen for you
> inside svn
>
>
> *databases.yml*
>
> all:
>   propel:
> class:  sfPropelDatabase
> param:
>   dsn:  mysql://user:[EMAIL PROTECTED]/mydatabasename
>
> *propel.ini*
>
> propel.database= mysql
> propel.database.createUrl  = mysql://user:[EMAIL PROTECTED]/
> propel.database.url= mysql://user:[EMAIL PROTECTED]
> /mydatabasename
> ...
> propel.output.dir  = /home/where/your-www-data-is/project_name
>
>
>
>
>
>
>
>
>
> On Sun, Dec 7, 2008 at 6:46 PM, Sid Ferreira <[EMAIL PROTECTED]> wrote:
>
>> the command line seem to be wrong, try:
>>
>>> php symfony configure:database "mysql:host=localhost;dbname=mydb"
>>> username password
>>>
>>
>> On Sun, Dec 7, 2008 at 14:25, Marius Rugan <[EMAIL PROTECTED]> wrote:
>>
>>> what would be the error at  "database configuration failed" ?
>>>
>>>
>>>
>>> On Sun, Dec 7, 2008 at 4:26 PM, Sid Ferreira <[EMAIL PROTECTED]> wrote:
>>>
 btw, I did this:
 changed the 'executeNew' to:

> $comment = new BlogComment();
>
 $comment->setBlogPostId($this->getRequestParameter('post_id'));
>
 $this->form = new BlogCommentForm($comment);
>

 and used 'comment/new' in the link, and not 'comment/edit'

 On Sun, Dec 7, 2008 at 12:07, Sid Ferreira <[EMAIL PROTECTED]> wrote:

> http://www.symfony-project.org/tutorial/1_2/my-first-project
> The part that handles the database configuration failed to me and to a
> frend of mine. Also, que part with the link to comment a post.
>
> --
> Sidney G B Ferreira
> Desenvolvedor Web - Tibox Innovations
>
> Steve Martin
>



 --
 Sidney G B Ferreira
 Desenvolvedor Web - Tibox Innovations

 Marie von Ebner-Eschenbach



>>>
>>>
>>>
>>
>>
>> --
>> Sidney G B Ferreira
>> Desenvolvedor Web - Tibox Innovations
>>
>> Joe E. Lewis
>>
>>
>>
>
> >
>


-- 
Sidney G B Ferreira
Desenvolvedor Web - Tibox Innovations

Zsa Zsa Gabor

--~--~-~--~~~---~--~~
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: Error in My First Project (1.2)

2008-12-07 Thread Marius Rugan
yes, it seems it's a bug, already known / don't know if reported which
quotes the dsn
http://www.symfony-project.org/forum/index.php/m/66290/

anyways Sid,

you have to edit manually the configuration(s) file inside config/

i would suggest that you place a "catchy" subject in your email(s) e.g.
error: configure:database quotes the
dsn so someone who's scanning the list could make things happen for you
inside svn


*databases.yml*

all:
  propel:
class:  sfPropelDatabase
param:
  dsn:  mysql://user:[EMAIL PROTECTED]/mydatabasename

*propel.ini*

propel.database= mysql
propel.database.createUrl  = mysql://user:[EMAIL PROTECTED]/
propel.database.url= mysql://user:[EMAIL PROTECTED]/mydatabasename
...
propel.output.dir  = /home/where/your-www-data-is/project_name









On Sun, Dec 7, 2008 at 6:46 PM, Sid Ferreira <[EMAIL PROTECTED]> wrote:

> the command line seem to be wrong, try:
>
>> php symfony configure:database "mysql:host=localhost;dbname=mydb" username
>> password
>>
>
> On Sun, Dec 7, 2008 at 14:25, Marius Rugan <[EMAIL PROTECTED]> wrote:
>
>> what would be the error at  "database configuration failed" ?
>>
>>
>>
>> On Sun, Dec 7, 2008 at 4:26 PM, Sid Ferreira <[EMAIL PROTECTED]> wrote:
>>
>>> btw, I did this:
>>> changed the 'executeNew' to:
>>>
 $comment = new BlogComment();

>>> $comment->setBlogPostId($this->getRequestParameter('post_id'));

>>> $this->form = new BlogCommentForm($comment);

>>>
>>> and used 'comment/new' in the link, and not 'comment/edit'
>>>
>>> On Sun, Dec 7, 2008 at 12:07, Sid Ferreira <[EMAIL PROTECTED]> wrote:
>>>
 http://www.symfony-project.org/tutorial/1_2/my-first-project
 The part that handles the database configuration failed to me and to a
 frend of mine. Also, que part with the link to comment a post.

 --
 Sidney G B Ferreira
 Desenvolvedor Web - Tibox Innovations

 Steve Martin

>>>
>>>
>>>
>>> --
>>> Sidney G B Ferreira
>>> Desenvolvedor Web - Tibox Innovations
>>>
>>> Marie von Ebner-Eschenbach
>>>
>>>
>>>
>>
>>
>>
>
>
> --
> Sidney G B Ferreira
> Desenvolvedor Web - Tibox Innovations
>
> Joe E. Lewis
>
> >
>

--~--~-~--~~~---~--~~
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: Error in My First Project (1.2)

2008-12-07 Thread Sid Ferreira
the command line seem to be wrong, try:

> php symfony configure:database "mysql:host=localhost;dbname=mydb" username
> password
>

On Sun, Dec 7, 2008 at 14:25, Marius Rugan <[EMAIL PROTECTED]> wrote:

> what would be the error at  "database configuration failed" ?
>
>
>
> On Sun, Dec 7, 2008 at 4:26 PM, Sid Ferreira <[EMAIL PROTECTED]> wrote:
>
>> btw, I did this:
>> changed the 'executeNew' to:
>>
>>> $comment = new BlogComment();
>>>
>> $comment->setBlogPostId($this->getRequestParameter('post_id'));
>>>
>> $this->form = new BlogCommentForm($comment);
>>>
>>
>> and used 'comment/new' in the link, and not 'comment/edit'
>>
>> On Sun, Dec 7, 2008 at 12:07, Sid Ferreira <[EMAIL PROTECTED]> wrote:
>>
>>> http://www.symfony-project.org/tutorial/1_2/my-first-project
>>> The part that handles the database configuration failed to me and to a
>>> frend of mine. Also, que part with the link to comment a post.
>>>
>>> --
>>> Sidney G B Ferreira
>>> Desenvolvedor Web - Tibox Innovations
>>>
>>> Steve Martin
>>>
>>
>>
>>
>> --
>> Sidney G B Ferreira
>> Desenvolvedor Web - Tibox Innovations
>>
>> Marie von Ebner-Eschenbach
>>
>>
>>
>
> >
>


-- 
Sidney G B Ferreira
Desenvolvedor Web - Tibox Innovations

Joe E. Lewis

--~--~-~--~~~---~--~~
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: Error in My First Project (1.2)

2008-12-07 Thread Marius Rugan
what would be the error at  "database configuration failed" ?


On Sun, Dec 7, 2008 at 4:26 PM, Sid Ferreira <[EMAIL PROTECTED]> wrote:

> btw, I did this:
> changed the 'executeNew' to:
>
>> $comment = new BlogComment();
>>
> $comment->setBlogPostId($this->getRequestParameter('post_id'));
>>
> $this->form = new BlogCommentForm($comment);
>>
>
> and used 'comment/new' in the link, and not 'comment/edit'
>
> On Sun, Dec 7, 2008 at 12:07, Sid Ferreira <[EMAIL PROTECTED]> wrote:
>
>> http://www.symfony-project.org/tutorial/1_2/my-first-project
>> The part that handles the database configuration failed to me and to a
>> frend of mine. Also, que part with the link to comment a post.
>>
>> --
>> Sidney G B Ferreira
>> Desenvolvedor Web - Tibox Innovations
>>
>> Steve Martin
>>
>
>
>
> --
> Sidney G B Ferreira
> Desenvolvedor Web - Tibox Innovations
>
> Marie von Ebner-Eschenbach
>
> >
>

--~--~-~--~~~---~--~~
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: adding stylesheet fomr sfPHPView class file.

2008-12-07 Thread James
Thanks,  I figured it out just before going to bed last night, and  
that is exactly how I did it.

James


On Dec 7, 2008, at 8:16 AM, Lee Bolding wrote:

>
> Try...
>
>  sfContext::getInstance()->getResponse()->addStyleSheet('themes/'.
> $theme);
>
> No guarantees, but sfContext is a singleton, so it should work...
>
> On 7 Dec 2008, at 06:14, James wrote:
>
>>
>> ok,
>>
>> In symfony 1.0 if I created a class that extended sfPHPView I could
>> add a stylesheet dynamically by calling
>>
>>  $this->getContext()->getResponse()->addStyleSheet('themes/'. 
>> $theme);
>>
>> Things seemed to have changed in > symfony 1.1 when I call the same
>> above line it doesn't seem to be able to get the context.  I am not
>> sure how to get the response object in 1.1 from my new class  
>> extending
>> sfPHPView, can some one point me in the right direction, the API docs
>> aren't leading me anywhere.
>>
>> Thanks
>> James
>>
>>>
>
>
> >


--~--~-~--~~~---~--~~
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: Error in My First Project (1.2)

2008-12-07 Thread Sid Ferreira
btw, I did this:
changed the 'executeNew' to:

> $comment = new BlogComment();
>
$comment->setBlogPostId($this->getRequestParameter('post_id'));
>
$this->form = new BlogCommentForm($comment);
>

and used 'comment/new' in the link, and not 'comment/edit'

On Sun, Dec 7, 2008 at 12:07, Sid Ferreira <[EMAIL PROTECTED]> wrote:

> http://www.symfony-project.org/tutorial/1_2/my-first-project
> The part that handles the database configuration failed to me and to a
> frend of mine. Also, que part with the link to comment a post.
>
> --
> Sidney G B Ferreira
> Desenvolvedor Web - Tibox Innovations
>
> Steve Martin
>



-- 
Sidney G B Ferreira
Desenvolvedor Web - Tibox Innovations

Marie von Ebner-Eschenbach

--~--~-~--~~~---~--~~
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 in My First Project (1.2)

2008-12-07 Thread Sid Ferreira
http://www.symfony-project.org/tutorial/1_2/my-first-project
The part that handles the database configuration failed to me and to a frend
of mine. Also, que part with the link to comment a post.

-- 
Sidney G B Ferreira
Desenvolvedor Web - Tibox Innovations

Steve Martin

--~--~-~--~~~---~--~~
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: adding stylesheet fomr sfPHPView class file.

2008-12-07 Thread Lee Bolding

Try...

  sfContext::getInstance()->getResponse()->addStyleSheet('themes/'. 
$theme);

No guarantees, but sfContext is a singleton, so it should work...

On 7 Dec 2008, at 06:14, James wrote:

>
> ok,
>
> In symfony 1.0 if I created a class that extended sfPHPView I could
> add a stylesheet dynamically by calling
>
>   
> $this->getContext()->getResponse()->addStyleSheet('themes/'.$theme);
>
> Things seemed to have changed in > symfony 1.1 when I call the same
> above line it doesn't seem to be able to get the context.  I am not
> sure how to get the response object in 1.1 from my new class extending
> sfPHPView, can some one point me in the right direction, the API docs
> aren't leading me anywhere.
>
> Thanks
> James
>
> >


--~--~-~--~~~---~--~~
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: embed propel forms

2008-12-07 Thread [EMAIL PROTECTED]

Hi guys, I'm interested in that problem too, and I got a question: I
use symfony 1.2 and propel, and actually I've never seen the
'relations' field in schema.yml. Should I write that? And where I can
read about it?

On Oct 30, 6:30 pm, "Jonathan Wage" <[EMAIL PROTECTED]> wrote:
> It works for me both ways.
>
> - Jon
>
>
>
> On Thu, Oct 30, 2008 at 10:26 AM, kayoone <[EMAIL PROTECTED]> wrote:
>
> > that works now, but i dont really get why but oh well...maybe i should
> > have done it the other way round, embedding the profile in the sfguard
> > user form or something like that.
>
> > Anyway, thanks alot
>
> > On Oct 30, 4:02 pm, "Jonathan Wage" <[EMAIL PROTECTED]> wrote:
> > > It works for me with this:
>
> > > schema
> > > --
> > > Profile:
> > >   columns:
> > >     first_name: string(255)
> > >     last_name: string(255)
> > >     email_address: string(255)
> > >     sf_guard_user_id: integer(4)
> > >   relations:
> > >     User:
> > >       class: sfGuardUser
> > >       type: one
> > >       foreignType: one
>
> > > user form
> > > --
> > > class sfGuardUserForm extends PluginsfGuardUserForm
> > > {
> > >   public function configure()
> > >   {
> > >     unset($this['is_active'], $this['is_super_admin'],
> > $this['created_at'],
> > > $this['updated_at'], $this['last_login'], $this['algorithm'],
> > $this['salt'],
> > > $this['groups_list'], $this['permissions_list']);
> > >     $profile = new ProfileForm();
> > >     unset($profile['sf_guard_user_id']);
> > >     $this->embedForm('Profile', $profile);
> > >   }
>
> > > }
>
> > > actions
> > > --
> > > class testActions extends sfActions
> > > {
> > >  /**
> > >   * Executes index action
> > >   *
> > >   * @param sfRequest $request A request object
> > >   */
> > >   public function executeIndex($request)
> > >   {
> > >     $this->form = new sfGuardUserForm();
> > >     if ($request->getMethod() == sfRequest::POST)
> > >     {
> > >       $this->form->bindAndSave($request->getParameter('sf_guard_user'));
> > >       $this->redirect('test/index');
> > >     }
> > >   }
>
> > > }
>
> > > template
> > > ---
> > > 
> > >   
> > >     
> > >   
> > >   
> > > 
>
> > > On Thu, Oct 30, 2008 at 9:49 AM, kayoone <[EMAIL PROTECTED]> wrote:
>
> > > > complete and updated code:
> > > >http://nopaste.php-q.net/66370
>
> > > --
> > > Jonathan H. Wage
> > > Open Source Software Developer &
> > Evangelisthttp://www.jwage.comhttp://www.doctrine-project.orghttp://
> >www.symfony-project.org
>
> --
> Jonathan H. Wage
> Open Source Software Developer & 
> Evangelisthttp://www.jwage.comhttp://www.doctrine-project.orghttp://www.symfony-project.org
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---