Re: [symfony-users] sym 1.2.9 Pagination using Propel........

2010-03-01 Thread Gábor Fási
http://www.symfony-project.org/jobeet/1_2/Propel/en/07#chapter_07_list_pagination

On Mon, Mar 1, 2010 at 08:47, karansoni  wrote:
> Hii everyvone.,,
>
> I am quite new to symfony and using 1.2.9 as the project development.
> An important feature of Pagination i do not know how to do it. I have
> listened about sfPager plugin but do not know how to install and
> integrate it or is there any other method to do that
>
> Please help me wth this
>
>
> sincerely,
> karan soni
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Does 1.4 or any plugin allow to configure Javascript (view.yml) by environment ?

2010-03-01 Thread Massimiliano Arione
Sorry, no link.
Just refer to official documentation.
You only need to create a custom helper, copying use_javascript()
function from AssetHelper and adding a simple logic base on
sfConfig::get('sf_web_debug')

cheers
Massimiliano

On 26 Feb, 18:43, Bruno Reis  wrote:
> Thanks a Lot Massimiliano,
>
> Can you send me a link to where I can read more informations about it?
>
> 2010/2/26 Massimiliano Arione 
>
> > view.yml is deprecated in favors of helpers used directly in the
> > templates or methods called from actions.
> > You can use a conditional helper that checks for sf_debug config
> > variable (that's even better than rely on environments)
>
> > cheers
> > Massimiliano
>
> > On 26 Feb, 00:43, Bruno Reis  wrote:
> > > Hi all,
>
> > > We are working here to deploy a new site done with symfony. We still
> > working
> > > with 1.2, but plan to upgrade soon.
> > > One thing that is being hard to do here is to config different
> > javascripts
> > > for production ( to use a minified one ).
>
> > > Does 1.4 or any plugin allow this to be done in a clean and simple way ?
>
> > > I´m using a workaroud here, setting up the js array in app.yml and then
> > > using this on view.yml, but it´s pretty ugly. And is quite limited either
> > > since app.yml cannot be extended on modules.
>
> > --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.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
> > symfony-users+unsubscr...@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Admin Backend field value depends on another

2010-03-01 Thread Arthur Ccube
Hi Guys,

My Shop form  have two fields - City and Area.

Area depends on the City selected.

How can I do it in my generator.yml for my Shop?

Thanks!

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] html markup in form field's labels get escaped after upgrading to sf1.4

2010-03-01 Thread Hong Kil Dong
I used html markup in form field's labels for some reasons, but after
upgrading from sf1.2 to 1.4 it gets escaped during rendering.

How to abolish output escaping for form field's labels in sf1.4 ?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Jobeet Tutorial: jobs.yml data fixture example won't doctrine:data-load.

2010-03-01 Thread Trung Huynh
I'm aware that indentation should be spaces etc. Its the data fixture
with php combined: jobs.yml

I exactly copy paste the example and i still get this error.

>> doctrine  Loading data fixtures from "/Use...g/Websites/jobeet/data/fixtures"
Unable to parse string: Unable to parse line 1 (  job_100:).


http://www.symfony-project.org/jobeet/1_4/Doctrine/en/06:
# Starts at the beginning of the line (no whitespace before)

  job_:
JobeetCategory: programming
company:  Company 
position: Web Developer
location: Paris, France
description:  Lorem ipsum dolor sit amet, consectetur adipisicing
elit.
how_to_apply: |
  Send your resume to lorem.ipsum [at] company_.sit
is_public:true
is_activated: true
token:job_
email:j...@example.com



Please help because I really like to play with symfony (all day).

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Jobeet Tutorial: jobs.yml data fixture example won't doctrine:data-load.

2010-03-01 Thread Gábor Fási
Try with this one: http://svn.jobeet.org/doctrine/trunk/data/fixtures/jobs.yml

On Mon, Mar 1, 2010 at 14:44, Trung Huynh  wrote:
> I'm aware that indentation should be spaces etc. Its the data fixture
> with php combined: jobs.yml
>
> I exactly copy paste the example and i still get this error.
>
>>> doctrine  Loading data fixtures from 
>>> "/Use...g/Websites/jobeet/data/fixtures"
> Unable to parse string: Unable to parse line 1 (  job_100:).
>
>
> http://www.symfony-project.org/jobeet/1_4/Doctrine/en/06:
> # Starts at the beginning of the line (no whitespace before)
> 
>  job_:
>    JobeetCategory: programming
>    company:      Company 
>    position:     Web Developer
>    location:     Paris, France
>    description:  Lorem ipsum dolor sit amet, consectetur adipisicing
> elit.
>    how_to_apply: |
>      Send your resume to lorem.ipsum [at] company_>.sit
>    is_public:    true
>    is_activated: true
>    token:        job_
>    email:        ...@example.com
>
> 
>
> Please help because I really like to play with symfony (all day).
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Jobeet Tutorial: jobs.yml data fixture example won't doctrine:data-load.

2010-03-01 Thread Trung Huynh
gets me this :(

>> doctrine  Loading data fixtures from 
>> "/Users/trung/Websites/jobeet/data/fixtures"

Warning: strtotime() expects parameter 1 to be string, array given in /
Users/trung/Websites/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/
lib/vendor/doctrine/Doctrine/Record.php on line 1526

Warning: strtotime() expects parameter 1 to be string, array given in /
Users/trung/Websites/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/
lib/vendor/doctrine/Doctrine/Record.php on line 1526

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252


  SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate
entry 'Array' for key 'token'


mac:jobeet trung$


On Mar 1, 3:06 pm, Gábor Fási  wrote:
> Try with this one:http://svn.jobeet.org/doctrine/trunk/data/fixtures/jobs.yml
>
> On Mon, Mar

[symfony-users] Re: Why is this fixture not working?

2010-03-01 Thread Samuel Morhaim
Anyone? Thank you

On 3/1/10, Samuel Morhaim  wrote:
> Never mind about this one, but now I am facing one more issue..  Based on
> the below schema.. why is the 1 to many between Command and Events not
> working?  I get a method such as $command->getEvent() but it seems to be
> bringing the first record.. not all records.. i cant find a getEvents()
> method..
>
> Can anyone help?  thank you.
>
> Command:
>   columns:
> id:
>   primary: true
>   unique: true
>   type: integer
>   notnull: true
>   autoincrement: true
> rule_id:
>   type: integer
>   notnull: true
> command:
>   type: string(160)
>   notnull: false
>   relations:
> Rule:
>   local: rule_id
>   foreign: id
>   cascade: [delete]
>
> Event:
>   columns:
> id:
>   primary: true
>   unique: true
>   type: integer
>   notnull: true
>   autoincrement: true
> command_id:
>   type: integer
>   notnull: true
> name:
>   type: string(50)
>   notnull: true
> campaign_id:
>   type: integer
>   notnull: false
> template_id:
>   type: integer
>   notnull: false
>   relations:
> Command:
>   local: command_id
>   foreign: id
>   type: many
>   cascade: [delete]
> Campaign:
>   local: campaign_id
>   foreign: id
>   cascade: [delete]
> Template:
>   local: template_id
>   foreign: id
>
>
>
>
> On Sun, Feb 28, 2010 at 2:42 PM, Samuel Morhaim
> wrote:
>
>> It is a somewhat complex table relation but it should work..
>>
>> A rule, can have a command, the command can have many events. I get this
>> error:   Unknown record property / related component "ev1" on "Event"
>>
>>
>> Fixture:
>> Rule:
>>   rule_1:
>> id: 1
>> type: User
>> campaign_id: 1
>> msg_to: 32075
>> msg_from: Outbound
>> description: See if the user replies the number 1 or 2
>> Command:
>>   command_1:
>> command: 1
>> Event:
>>   ev1:
>> name: Add
>>   ev2:
>> name: Remove
>>   command_2:
>> command: 2
>>
>>
>>
>> Schema
>>
>> Rule:
>>   columns:
>> id:
>>   primary: true
>>   unique: true
>>   type: integer
>>   notnull: true
>>   autoincrement: true
>> type:
>>   type: enum
>>   values: [User,System]
>> campaign_id:
>>   type: integer
>>   notnull: false
>> msg_to:
>>   type: string(20)
>>   notnull: false
>> msg_from:
>>   type: enum
>>   values: [Anyone,Outbound]
>> description:
>>   type: string(255)
>>   notnull: false
>> is_active:
>>   default: true
>>   type: boolean
>>   notnull: true
>>   relations:
>> Campaign:
>>   local: campaign_id
>>   foreign: id
>>   type: many
>>   cascade: [delete]
>>
>>
>> Command:
>>   columns:
>> id:
>>   primary: true
>>   unique: true
>>   type: integer
>>   notnull: true
>>   autoincrement: true
>> rule_id:
>>   type: integer
>>   notnull: true
>> command:
>>   type: string(160)
>>   notnull: false
>>   relations:
>> Rule:
>>   local: rule_id
>>   foreign: id
>>   cascade: [delete]
>>
>> Event:
>>   columns:
>> id:
>>   primary: true
>>   unique: true
>>   type: integer
>>   notnull: true
>>   autoincrement: true
>> command_id:
>>   type: integer
>>   notnull: true
>> name:
>>   type: string(50)
>>   notnull: true
>> campaign_id:
>>   type: integer
>>   notnull: false
>> template_id:
>>   type: integer
>>   notnull: false
>>   relations:
>> Command:
>>   local: command_id
>>   foreign: id
>>   type: many
>>   cascade: [delete]
>> Campaign:
>>   local: campaign_id
>>   foreign: id
>>   cascade: [delete]
>> Template:
>>   local: template_id
>>   foreign: id
>>
>>
>>
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Using a customized table_method on sfGuardUser

2010-03-01 Thread NOOVEO - Christophe Brun
I'm working on the backend side of a web application, with the
sfDoctrineGuardPlugin. 
In sfGuardUser/config/generator.yml, I add the line : 
  list:
table_method: retrieveAdminsList
 
and in the model : 
class sfGuardUserTable extends PluginsfGuardUserTable {
public function retrieveAdminsList(Doctrine_Query $q) {
   $rootAlias = $q->getRootAlias();
   $q->leftJoin($rootAlias.'.groups g');
   return $q;
}
}
 
The generated SQL is : 
SELECT s.id AS s__id, s.username AS s__username, s.algorithm AS
s__algorithm, s.salt AS s__salt, s.password AS s__password, s.is_active
AS s__is_active, s.is_super_admin AS s__is_super_admin, s.last_login AS
s__last_login, s.created_at AS s__created_at, s.updated_at AS
s__updated_at, s2.id AS s2__id, s2.name AS s2__name, s2.description AS
s2__description, s2.created_at AS s2__created_at, s2.updated_at AS
s2__updated_at FROM sf_guard_user s LEFT JOIN sf_guard_user_group s3 ON
(s.id = s3.user_id) LEFT JOIN sf_guard_group s2 ON s2.id = s3.group_id
WHERE s.id IN ('16', '1', '3')
 
I don't understand why this 
WHERE s.id IN ('16', '1', '3')
is appended to the request. 
 
NB : 1, 3, 16 are the 3 ids registered in the sf_guard_user table. 
 
Moreover, this behaviour leads to an incorrect  request if I want to
display only administrators : 

class sfGuardUserTable extends PluginsfGuardUserTable {
public function retrieveAdminsList(Doctrine_Query $q) {
   $rootAlias = $q->getRootAlias();
   $q->leftJoin($rootAlias.'.groups g')
   ->andWhere('g.id = ?', sfGuardUserGroup::ADMIN);
   return $q;
}
}
 
Generated SQL : 
SELECT s.id AS s__id, s.username AS s__username, s.algorithm AS
s__algorithm, s.salt AS s__salt, s.password AS s__password, s.is_active
AS s__is_active, s.is_super_admin AS s__is_super_admin, s.last_login AS
s__last_login, s.created_at AS s__created_at, s.updated_at AS
s__updated_at, s2.id AS s2__id, s2.name AS s2__name, s2.description AS
s2__description, s2.created_at AS s2__created_at, s2.updated_at AS
s2__updated_at FROM sf_guard_user s LEFT JOIN sf_guard_user_group s3 ON
(s.id = s3.user_id) LEFT JOIN sf_guard_group s2 ON s2.id = s3.group_id
WHERE s.id IN ('1') AND (s2.id = 1)
!! 
 
s2.id = 1 is OK, this is my filter.
But s.id IN ('1') is wrong. 
 
What did I miss here ? How can I configure the module to display only
one specific group of users ? 

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Why is this fixture not working?

2010-03-01 Thread Tom Ptacnik
You can look etc into the Practical symfony-jobeet-1.4-doctrine-en.pdf
and there you can see that you have badly set your relations

look on the JobeetJob - JobeetCategory realation

1) specify the relation only on one side
2) specify the foreignAlias: etc JobeetJobs
...

JobeetCategory:
  actAs: { Timestampable: ~ }
  columns:
   name: { type: string(255), notnull: true, unique: true }

JobeetJob:
  actAs: { Timestampable: ~ }
  columns:
category_id: { type: integer, notnull: true }
type: { type: string(255) }
company: { type: string(255), notnull: true }
   ...
  relations:
JobeetCategory: { onDelete: CASCADE, local: category_id, foreign:
id, foreignAlias: JobeetJobs }

On 1 bře, 06:15, Samuel Morhaim  wrote:
> Never mind about this one, but now I am facing one more issue..  Based on
> the below schema.. why is the 1 to many between Command and Events not
> working?  I get a method such as $command->getEvent() but it seems to be
> bringing the first record.. not all records.. i cant find a getEvents()
> method..
>
> Can anyone help?  thank you.
>
> Command:
>   columns:
>     id:
>       primary: true
>       unique: true
>       type: integer
>       notnull: true
>       autoincrement: true
>     rule_id:
>       type: integer
>       notnull: true
>     command:
>       type: string(160)
>       notnull: false
>   relations:
>     Rule:
>       local: rule_id
>       foreign: id
>       cascade: [delete]
>
> Event:
>   columns:
>     id:
>       primary: true
>       unique: true
>       type: integer
>       notnull: true
>       autoincrement: true
>     command_id:
>       type: integer
>       notnull: true
>     name:
>       type: string(50)
>       notnull: true
>     campaign_id:
>       type: integer
>       notnull: false
>     template_id:
>       type: integer
>       notnull: false
>   relations:
>     Command:
>       local: command_id
>       foreign: id
>       type: many
>       cascade: [delete]
>     Campaign:
>       local: campaign_id
>       foreign: id
>       cascade: [delete]
>     Template:
>       local: template_id
>       foreign: id
>
> On Sun, Feb 28, 2010 at 2:42 PM, Samuel Morhaim 
> wrote:
>
>
>
> > It is a somewhat complex table relation but it should work..
>
> > A rule, can have a command, the command can have many events. I get this
> > error:   Unknown record property / related component "ev1" on "Event"
>
> > Fixture:
> > Rule:
> >   rule_1:
> >     id: 1
> >     type: User
> >     campaign_id: 1
> >     msg_to: 32075
> >     msg_from: Outbound
> >     description: See if the user replies the number 1 or 2
> >     Command:
> >       command_1:
> >         command: 1
> >         Event:
> >           ev1:
> >             name: Add
> >           ev2:
> >             name: Remove
> >       command_2:
> >         command: 2
>
> > Schema
>
> > Rule:
> >   columns:
> >     id:
> >       primary: true
> >       unique: true
> >       type: integer
> >       notnull: true
> >       autoincrement: true
> >     type:
> >       type: enum
> >       values: [User,System]
> >     campaign_id:
> >       type: integer
> >       notnull: false
> >     msg_to:
> >       type: string(20)
> >       notnull: false
> >     msg_from:
> >       type: enum
> >       values: [Anyone,Outbound]
> >     description:
> >       type: string(255)
> >       notnull: false
> >     is_active:
> >       default: true
> >       type: boolean
> >       notnull: true
> >   relations:
> >     Campaign:
> >       local: campaign_id
> >       foreign: id
> >       type: many
> >       cascade: [delete]
>
> > Command:
> >   columns:
> >     id:
> >       primary: true
> >       unique: true
> >       type: integer
> >       notnull: true
> >       autoincrement: true
> >     rule_id:
> >       type: integer
> >       notnull: true
> >     command:
> >       type: string(160)
> >       notnull: false
> >   relations:
> >     Rule:
> >       local: rule_id
> >       foreign: id
> >       cascade: [delete]
>
> > Event:
> >   columns:
> >     id:
> >       primary: true
> >       unique: true
> >       type: integer
> >       notnull: true
> >       autoincrement: true
> >     command_id:
> >       type: integer
> >       notnull: true
> >     name:
> >       type: string(50)
> >       notnull: true
> >     campaign_id:
> >       type: integer
> >       notnull: false
> >     template_id:
> >       type: integer
> >       notnull: false
> >   relations:
> >     Command:
> >       local: command_id
> >       foreign: id
> >       type: many
> >       cascade: [delete]
> >     Campaign:
> >       local: campaign_id
> >       foreign: id
> >       cascade: [delete]
> >     Template:
> >       local: template_id
> >       foreign: id

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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@google

[symfony-users] How to include javascript files in web/js/ui/ in symfony?

2010-03-01 Thread SymfonyNewbie
I tried this:

use_javascript('jquery.ui.core.js','/js/ui/');

But it reports:

 The position "/js/ui/" does not exist

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: How to include javascript files in web/js/ui/ in symfony?

2010-03-01 Thread jp_morvan
Hi,
Did you try this :
  use_javascript('ui/jquery.ui.core.js');

symfony add 'js/'

On 1 mar, 16:00, SymfonyNewbie  wrote:
> I tried this:
>
>     use_javascript('jquery.ui.core.js','/js/ui/');
>
> But it reports:
>
>  The position "/js/ui/" does not exist

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Jobeet Tutorial: jobs.yml data fixture example won't doctrine:data-load.

2010-03-01 Thread Alexandru-Emil Lupu
I think that on job_expired token is a typo. Try to chage it from
'job_expired' to 'expired_job' or so... i am mono tasking and i cannot copy
paste what i think is the right key for the fixture...
Alecs

sent via htc magic

On Mar 1, 2010 4:20 PM, "Trung Huynh"  wrote:

gets me this :(

>> doctrine  Loading data fixtures from
"/Users/trung/Websites/jobeet/data/fixtures"

Warning: strtotime() expects parameter 1 to be string, array given in /
Users/trung/Websites/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/
lib/vendor/doctrine/Doctrine/Record.php on line 1526

Warning: strtotime() expects parameter 1 to be string, array given in /
Users/trung/Websites/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/
lib/vendor/doctrine/Doctrine/Record.php on line 1526

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.php on line 252

Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
Connection/Statement.ph

Re: [symfony-users] Re: Why is this fixture not working?

2010-03-01 Thread Samuel Morhaim
Tom,

Thank you for the reply, but I don't think that is the problem.

1. The relation between my Command and Event, is only defined in one side,
the Event
  relations:
Command:
  local: command_id
  foreign: id
  type: many
  cascade: [delete]
  foreignAlias: Events

2. I added the foreignAlias  but that only creates the method  getEvents()
instead of getEvent() ... however, calling getEvents() is only brginging one
record, not a collection of Events.

Since my relation Command to Events, is 1 to manny i should be getting a
collection back...

Any other ideas?

Thank you.


On Mon, Mar 1, 2010 at 9:39 AM, Tom Ptacnik  wrote:

> You can look etc into the Practical symfony-jobeet-1.4-doctrine-en.pdf
> and there you can see that you have badly set your relations
>
> look on the JobeetJob - JobeetCategory realation
>
> 1) specify the relation only on one side
> 2) specify the foreignAlias: etc JobeetJobs
> ...
>
> JobeetCategory:
>  actAs: { Timestampable: ~ }
>  columns:
>   name: { type: string(255), notnull: true, unique: true }
>
> JobeetJob:
>  actAs: { Timestampable: ~ }
>  columns:
>category_id: { type: integer, notnull: true }
>type: { type: string(255) }
>company: { type: string(255), notnull: true }
>   ...
>  relations:
>JobeetCategory: { onDelete: CASCADE, local: category_id, foreign:
> id, foreignAlias: JobeetJobs }
>
> On 1 bře, 06:15, Samuel Morhaim  wrote:
> > Never mind about this one, but now I am facing one more issue..  Based on
> > the below schema.. why is the 1 to many between Command and Events not
> > working?  I get a method such as $command->getEvent() but it seems to be
> > bringing the first record.. not all records.. i cant find a getEvents()
> > method..
> >
> > Can anyone help?  thank you.
> >
> > Command:
> >   columns:
> > id:
> >   primary: true
> >   unique: true
> >   type: integer
> >   notnull: true
> >   autoincrement: true
> > rule_id:
> >   type: integer
> >   notnull: true
> > command:
> >   type: string(160)
> >   notnull: false
> >   relations:
> > Rule:
> >   local: rule_id
> >   foreign: id
> >   cascade: [delete]
> >
> > Event:
> >   columns:
> > id:
> >   primary: true
> >   unique: true
> >   type: integer
> >   notnull: true
> >   autoincrement: true
> > command_id:
> >   type: integer
> >   notnull: true
> > name:
> >   type: string(50)
> >   notnull: true
> > campaign_id:
> >   type: integer
> >   notnull: false
> > template_id:
> >   type: integer
> >   notnull: false
> >   relations:
> > Command:
> >   local: command_id
> >   foreign: id
> >   type: many
> >   cascade: [delete]
> > Campaign:
> >   local: campaign_id
> >   foreign: id
> >   cascade: [delete]
> > Template:
> >   local: template_id
> >   foreign: id
> >
> > On Sun, Feb 28, 2010 at 2:42 PM, Samuel Morhaim <
> samuel.morh...@gmail.com>wrote:
> >
> >
> >
> > > It is a somewhat complex table relation but it should work..
> >
> > > A rule, can have a command, the command can have many events. I get
> this
> > > error:   Unknown record property / related component "ev1" on "Event"
> >
> > > Fixture:
> > > Rule:
> > >   rule_1:
> > > id: 1
> > > type: User
> > > campaign_id: 1
> > > msg_to: 32075
> > > msg_from: Outbound
> > > description: See if the user replies the number 1 or 2
> > > Command:
> > >   command_1:
> > > command: 1
> > > Event:
> > >   ev1:
> > > name: Add
> > >   ev2:
> > > name: Remove
> > >   command_2:
> > > command: 2
> >
> > > Schema
> >
> > > Rule:
> > >   columns:
> > > id:
> > >   primary: true
> > >   unique: true
> > >   type: integer
> > >   notnull: true
> > >   autoincrement: true
> > > type:
> > >   type: enum
> > >   values: [User,System]
> > > campaign_id:
> > >   type: integer
> > >   notnull: false
> > > msg_to:
> > >   type: string(20)
> > >   notnull: false
> > > msg_from:
> > >   type: enum
> > >   values: [Anyone,Outbound]
> > > description:
> > >   type: string(255)
> > >   notnull: false
> > > is_active:
> > >   default: true
> > >   type: boolean
> > >   notnull: true
> > >   relations:
> > > Campaign:
> > >   local: campaign_id
> > >   foreign: id
> > >   type: many
> > >   cascade: [delete]
> >
> > > Command:
> > >   columns:
> > > id:
> > >   primary: true
> > >   unique: true
> > >   type: integer
> > >   notnull: true
> > >   autoincrement: true
> > > rule_id:
> > >   type: integer
> > >   notnull: true
> > > command:
> > >   type: string(160)
> > >   notnull: false
> > >   relations:
> > > Rule:
> > >   local: rule_id
> > >   foreign: id
> > >   cascade

[symfony-users] Check if partial exists

2010-03-01 Thread HAUSa
Is there a way to check if a partial exists in the template?
I've looked around in Google, but it doesn't give very useful
results...

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Check if partial exists

2010-03-01 Thread Mr_chon
Hi,

Maybe you could try this, or something similar :

http://forum.symfony-project.org/index.php/m/76440/#msg_76440

On Mar 1, 5:04 pm, HAUSa 
wrote:
> Is there a way to check if a partial exists in the template?
> I've looked around in Google, but it doesn't give very useful
> results...

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: How to include javascript files in web/js/ui/ in symfony?

2010-03-01 Thread SymfonyNewbie
Oh,this time it works.

Why it doesn't work when I set  the location explicitly?

On 3月1日, 下午11时36分, jp_morvan  wrote:
> Hi,
> Did you try this :
>   use_javascript('ui/jquery.ui.core.js');
>
> symfony add 'js/'
>
> On 1 mar, 16:00, SymfonyNewbie  wrote:
>
>
>
> > I tried this:
>
> >     use_javascript('jquery.ui.core.js','/js/ui/');
>
> > But it reports:
>
> >  The position "/js/ui/" does not exist- 隐藏被引用文字 -
>
> - 显示引用的文字 -

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: How to include javascript files in web/js/ui/ in symfony?

2010-03-01 Thread jp_morvan
Because this method does not accept location on second parameter
This parameter is the position in witch the meta tag will be include
(first, last).

On 1 mar, 17:12, SymfonyNewbie  wrote:
> Oh,this time it works.
>
> Why it doesn't work when I set  the location explicitly?
>
> On 3月1日, 下午11时36分, jp_morvan  wrote:
>
> > Hi,
> > Did you try this :
> >   use_javascript('ui/jquery.ui.core.js');
>
> > symfony add 'js/'
>
> > On 1 mar, 16:00, SymfonyNewbie  wrote:
>
> > > I tried this:
>
> > >     use_javascript('jquery.ui.core.js','/js/ui/');
>
> > > But it reports:
>
> > >  The position "/js/ui/" does not exist- 隐藏被引用文字 -
>
> > - 显示引用的文字 -

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] sf_flash gone in 1.4?

2010-03-01 Thread Darren884
In my template I put the following:
has('status')): ?>
  get('status') ?>


Now I get:

Notice: Undefined variable: sf_flash in /var/www/vhosts/blackhawk.biz/
symfony/apps/frontend/modules/customers/templates/loginSuccess.php on
line 2

Fatal error: Call to a member function has() on a non-object in /var/
www/vhosts/blackhawk.biz/symfony/apps/frontend/modules/customers/
templates/loginSuccess.php on line 2

Why the hell would they deprecate this?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: How to include javascript files in web/js/ui/ in symfony?

2010-03-01 Thread SymfonyNewbie
Yes,exactly.

I've checked the code,it's just used as a key for javascript files.

Thanks

On 3月2日, 上午12时19分, jp_morvan  wrote:
> Because this method does not accept location on second parameter
> This parameter is the position in witch the meta tag will be include
> (first, last).
>
> On 1 mar, 17:12, SymfonyNewbie  wrote:
>
>
>
> > Oh,this time it works.
>
> > Why it doesn't work when I set  the location explicitly?
>
> > On 3月1日, 下午11时36分, jp_morvan  wrote:
>
> > > Hi,
> > > Did you try this :
> > >   use_javascript('ui/jquery.ui.core.js');
>
> > > symfony add 'js/'
>
> > > On 1 mar, 16:00, SymfonyNewbie  wrote:
>
> > > > I tried this:
>
> > > >     use_javascript('jquery.ui.core.js','/js/ui/');
>
> > > > But it reports:
>
> > > >  The position "/js/ui/" does not exist- 隐藏被引用文字 -
>
> > > - 显示引用的文字 -- 隐藏被引用文字 -
>
> - 显示引用的文字 -

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] A suggestion for javscript plugin/widget of the symfony community

2010-03-01 Thread SymfonyNewbie
It's only classified by symfony version,

in order for it to be practically reusable,

I think it should also need to be grouped by the
library(prototype,jquery,yui) and version(1.3,1.4...)

What's your opinion?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Only one model per module for doctrine-generate-crud?

2010-03-01 Thread Roland Cruse
Not for the url, as routing can show what ever url you want.

Its more of a house keeping design thing. Lets say you have three
areas of your web site: hotels, apartments and availability each area
may have many db tables (i.e. models) that support it. It would be
convenient to have a module for each of these and put your related
models there. I am also thinking that this one to one relationship for
module to model to generated crud would not always fit for actions and
templates that support complicated forms, like merged forms for
instance.

So I am wondering if this one module to one model is the accepted way
to build a symfony app? I have been coding in Symfony before version
one and back then it seemed arbitrary as to what models you put into
your modules. More of a design decision.

Thanks!


On Sun, Feb 28, 2010 at 7:10 AM, Tom Ptacnik  wrote:
> Why do you want to add another model to an existing module? Because of
> the URL?
>
> On 27 ún, 08:05, Roland Cruse  wrote:
>> Hi
>>
>> symfony doctrine-generate-crud seems to build a module for each model
>> (database table) with actions edit, delete, create etc.Using this task
>> you can not add another model to the same module. The task will over
>> write the edit, delete etc. actions. I see no options in the task for
>> prefixing action names, which stop the crud functions from being
>> overwritten.  Or would that mess things up for a routing collection
>> come form submission time?
>>
>> Is there no way around this, using the crud generator?
>>
>> Or does conventional symfony wisdom say each model must have its own module?
>>
>> Any tips or hints would be greatly appreciated.
>>
>> signed: confused.
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] sf_flash gone in 1.4?

2010-03-01 Thread Gábor Fási
$sf_user->hasFlash()

On Mon, Mar 1, 2010 at 19:14, Darren884  wrote:
> In my template I put the following:
> has('status')): ?>
>  get('status') ?>
> 
>
> Now I get:
>
> Notice: Undefined variable: sf_flash in /var/www/vhosts/blackhawk.biz/
> symfony/apps/frontend/modules/customers/templates/loginSuccess.php on
> line 2
>
> Fatal error: Call to a member function has() on a non-object in /var/
> www/vhosts/blackhawk.biz/symfony/apps/frontend/modules/customers/
> templates/loginSuccess.php on line 2
>
> Why the hell would they deprecate this?
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: sf_flash gone in 1.4?

2010-03-01 Thread Richtermeister
The flash variable is now attached to the user. Use $sf_user ->
getFlash() -> has('blah');

They did that because it interacts with the user anyways (storing
stuff in session), so now it explicitly belongs to the user.
If you need to fix hundreds of templates, you can just listen to the
filterTemplates event and add the flash variable back in.

Daniel


On Mar 1, 10:14 am, Darren884  wrote:
> In my template I put the following:
> has('status')): ?>
>   get('status') ?>
> 
>
> Now I get:
>
> Notice: Undefined variable: sf_flash in /var/www/vhosts/blackhawk.biz/
> symfony/apps/frontend/modules/customers/templates/loginSuccess.php on
> line 2
>
> Fatal error: Call to a member function has() on a non-object in /var/
> www/vhosts/blackhawk.biz/symfony/apps/frontend/modules/customers/
> templates/loginSuccess.php on line 2
>
> Why the hell would they deprecate this?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Check if partial exists

2010-03-01 Thread Gunther Konig
> Maybe you could try this, or something similar :
>
> http://forum.symfony-project.org/index.php/m/76440/#msg_76440

On Mar 1, 5:04 pm, HAUSa 
> wrote:
> > Is there a way to check if a partial exists in the template?
> > I've looked around in Google, but it doesn't give very useful
> > results...
>
Or try to include it and catch the exception

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Jobeet Tutorial: jobs.yml data fixture example won't doctrine:data-load.

2010-03-01 Thread Trung Huynh
changing it to expired_job doesn't help neither. I have no clue what's going
on. I really want to go on with the tutorial, i like it so far.



On Mon, Mar 1, 2010 at 4:58 PM, Alexandru-Emil Lupu wrote:

> I think that on job_expired token is a typo. Try to chage it from
> 'job_expired' to 'expired_job' or so... i am mono tasking and i cannot copy
> paste what i think is the right key for the fixture...
> Alecs
>
> sent via htc magic
>
> On Mar 1, 2010 4:20 PM, "Trung Huynh"  wrote:
>
> gets me this :(
>
> >> doctrine  Loading data fixtures from
> "/Users/trung/Websites/jobeet/data/fixtures"
>
> Warning: strtotime() expects parameter 1 to be string, array given in /
> Users/trung/Websites/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/
> lib/vendor/doctrine/Doctrine/Record.php on line 1526
>
> Warning: strtotime() expects parameter 1 to be string, array given in /
> Users/trung/Websites/lib/vendor/symfony/lib/plugins/sfDoctrinePlugin/
> lib/vendor/doctrine/Doctrine/Record.php on line 1526
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doctrine/Doctrine/
> Connection/Statement.php on line 252
>
> Notice: Array to string conversion in /Users/trung/Websites/lib/vendor/
> symfony/lib/plugins/sfDoctrinePlugin/lib/vendor/doct

[symfony-users] Symfony doctrine and CRUD?

2010-03-01 Thread Darren884
Do I have to install a different module for generating CRUD? When I
tried to run the crud generation command it said the task did not
exists and then when I listed the available builder command line
options it didn't exist in there. Is my Symfony installation missing
something?

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Calling an action from an outside class

2010-03-01 Thread Samuel Morhaim
Is there a way to call an action, from an outside Class?

I am handling the processing of one of my routines with an outside class..
I need to call the exact same code being called in one of my actions.. how
can i do this?

or should i move the code somewhere else?

thanks.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Calling an action from an outside class

2010-03-01 Thread Daniel Lohse
Move it out to the model or into the outside class and also call it from the 
action. :)

Daniel

On 01.03.2010, at 23:43, Samuel Morhaim wrote:

> Is there a way to call an action, from an outside Class?
> 
> I am handling the processing of one of my routines with an outside class..  I 
> need to call the exact same code being called in one of my actions.. how can 
> i do this?
> 
> or should i move the code somewhere else?
> 
> thanks.
> 
> 
> -- 
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Calling an action from an outside class

2010-03-01 Thread Samuel Morhaim
Sorry for the dumb question, but now that I moved it to
lib/Message.class.php ... how do I call it from there from within a separate
Class?  I manage to call it from within the actions..

but now i am in this external class, and i need to call that method ?


On Mon, Mar 1, 2010 at 5:57 PM, Daniel Lohse
wrote:

> Move it out to the model or into the outside class and also call it from
> the action. :)
>
> Daniel
>
> On 01.03.2010, at 23:43, Samuel Morhaim wrote:
>
> Is there a way to call an action, from an outside Class?
>
> I am handling the processing of one of my routines with an outside class..
> I need to call the exact same code being called in one of my actions.. how
> can i do this?
>
> or should i move the code somewhere else?
>
> thanks.
>
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
>
>  --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Calling an action from an outside class

2010-03-01 Thread Daniel Lohse
require_once the file and instantiate the Message class... oh man, symfony is 
not there for you to completely forget either PHP or plain OOP :)

Daniel

On 02.03.2010, at 01:00, Samuel Morhaim wrote:

> Sorry for the dumb question, but now that I moved it to lib/Message.class.php 
> ... how do I call it from there from within a separate Class?  I manage to 
> call it from within the actions..
> 
> but now i am in this external class, and i need to call that method ?
> 
> 
> On Mon, Mar 1, 2010 at 5:57 PM, Daniel Lohse  
> wrote:
> Move it out to the model or into the outside class and also call it from the 
> action. :)
> 
> Daniel
> 
> On 01.03.2010, at 23:43, Samuel Morhaim wrote:
> 
>> Is there a way to call an action, from an outside Class?
>> 
>> I am handling the processing of one of my routines with an outside class..  
>> I need to call the exact same code being called in one of my actions.. how 
>> can i do this?
>> 
>> or should i move the code somewhere else?
>> 
>> thanks.
>> 
>> 
>> -- 
>> If you want to report a vulnerability issue on symfony, please send it to 
>> security at symfony-project.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
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
> 
> 
> -- 
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
> 
> 
> -- 
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Calling an action from an outside class

2010-03-01 Thread Samuel Morhaim
lol yes,  sorry, i click sent, and then figured it out. :)


On Mon, Mar 1, 2010 at 7:02 PM, Daniel Lohse
wrote:

> require_once the file and instantiate the Message class... oh man, symfony
> is not there for you to completely forget either PHP or plain OOP :)
>
> Daniel
>
> On 02.03.2010, at 01:00, Samuel Morhaim wrote:
>
> Sorry for the dumb question, but now that I moved it to
> lib/Message.class.php ... how do I call it from there from within a separate
> Class?  I manage to call it from within the actions..
>
> but now i am in this external class, and i need to call that method ?
>
>
> On Mon, Mar 1, 2010 at 5:57 PM, Daniel Lohse  > wrote:
>
>> Move it out to the model or into the outside class and also call it from
>> the action. :)
>>
>> Daniel
>>
>> On 01.03.2010, at 23:43, Samuel Morhaim wrote:
>>
>> Is there a way to call an action, from an outside Class?
>>
>> I am handling the processing of one of my routines with an outside
>> class..  I need to call the exact same code being called in one of my
>> actions.. how can i do this?
>>
>> or should i move the code somewhere else?
>>
>> thanks.
>>
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.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
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>>
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to
>> security at symfony-project.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
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>
>
>  --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Calling an action from an outside class

2010-03-01 Thread Daniel Lohse
no problem, it's late over here, anyway :D

On 02.03.2010, at 01:07, Samuel Morhaim wrote:

> lol yes,  sorry, i click sent, and then figured it out. :)
> 
> 
> On Mon, Mar 1, 2010 at 7:02 PM, Daniel Lohse  
> wrote:
> require_once the file and instantiate the Message class... oh man, symfony is 
> not there for you to completely forget either PHP or plain OOP :)
> 
> Daniel
> 
> On 02.03.2010, at 01:00, Samuel Morhaim wrote:
> 
>> Sorry for the dumb question, but now that I moved it to 
>> lib/Message.class.php ... how do I call it from there from within a separate 
>> Class?  I manage to call it from within the actions..
>> 
>> but now i am in this external class, and i need to call that method ?
>> 
>> 
>> On Mon, Mar 1, 2010 at 5:57 PM, Daniel Lohse  
>> wrote:
>> Move it out to the model or into the outside class and also call it from the 
>> action. :)
>> 
>> Daniel
>> 
>> On 01.03.2010, at 23:43, Samuel Morhaim wrote:
>> 
>>> Is there a way to call an action, from an outside Class?
>>> 
>>> I am handling the processing of one of my routines with an outside class..  
>>> I need to call the exact same code being called in one of my actions.. how 
>>> can i do this?
>>> 
>>> or should i move the code somewhere else?
>>> 
>>> thanks.
>>> 
>>> 
>>> -- 
>>> If you want to report a vulnerability issue on symfony, please send it to 
>>> security at symfony-project.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
>>> symfony-users+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/symfony-users?hl=en
>> 
>> 
>> -- 
>> If you want to report a vulnerability issue on symfony, please send it to 
>> security at symfony-project.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
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>> 
>> 
>> -- 
>> If you want to report a vulnerability issue on symfony, please send it to 
>> security at symfony-project.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
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
> 
> 
> -- 
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
> 
> 
> -- 
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] How to migrate and deploy

2010-03-01 Thread Arthur Ccube
Hi Guys,

I am new to symphony. My application has backend and frontend apps.

I was used to RubyOnRails, there, I can deploy by using a list of
migration files to update DB.

In symfony, what i know is updating schema.yml. However, it does not
keep version, that means my db has to be dropped each time I update
the db?

How can I migrate DBs for my deploys? (both rollback and migrate are
useful for me).

Thanks!
Arthur

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] how to do pdf in symfony

2010-03-01 Thread Arthur Ccube
how to generate pdf files from my html/pdf templates in symfony?

It is better to have free/open source methods.

Thanks!

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Payment Gateway and Paypal

2010-03-01 Thread Arthur Ccube
Hi Guys,

I am working on a e Commerce website which has payments via Visa and
Payment.

What is the common way to do it in symfony?

Thanks a lot!
Arthur

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Payment Gateway and Paypal

2010-03-01 Thread Sid Bachtiar
There is a plugin, but I usually just rolled out my own with library
provided by Paypal.

On Tue, Mar 2, 2010 at 2:20 PM, Arthur Ccube  wrote:
> Hi Guys,
>
> I am working on a e Commerce website which has payments via Visa and
> Payment.
>
> What is the common way to do it in symfony?
>
> Thanks a lot!
> Arthur
>
> --
> If you want to report a vulnerability issue on symfony, please send it to 
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>



-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Probleme avec le tutorial symfony "6 eme jour"

2010-03-01 Thread aymen-web
aprés l'execution du cette instruction
"Doctrine::getTable('JobeetCategory')->getWithJobs();" une erreur est
declencher.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] How does form widgets take default into account?

2010-03-01 Thread Aadaam
Hi all,

I now this is a silly question, but I simply can't set a date widget
to a default value, nor I am able to understand how it is supposed to
work.

What I tried:

class SomeForm extends DoctrineForm {
  public function configure(){
  $this->widgetSchema['startdate'] = new sfWidgetFormDate(
array(
'format' => '%year% - %month% - %day%',
'default' => array(
'year'=> date('Y',$time),
'month' => date('m', $time),
'day' => date('j', $time)
),
));

$this->setDefault('startdate', array(
'year'=> date('Y',$time),
'month' => date('m', $time),
'day' => date('j', $time)
)); // also tried with date('Y-m-j')
}
}
None of these works. I looked at the forums, looked at the sourcecode
of symfony 1.1,1.2 and 1.4.

I'm using 1.2 currently, but I couldn't find a clue on how does this
widget take default into account at all.

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] sfWidgetFormSelectRadio and onxxx action

2010-03-01 Thread sebastien Aucouturier
Hi,
can i request your help  ?

the following code :
new sfWidgetFormSelectRadio( array('choices'=>array("1","2") ) ,
array('onclick'=>"alert('click')"));

produce HTML :



 
1

 
2



is there a way to get the event ONLY set on the  ? not on ,
,  ?

Any helps appreciate, thanks.
(1 week newbie writing)

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Database design and modification - methodology

2010-03-01 Thread beach_defender
Hi,
I imagine that this has been discussed in great detail, but I have not
as yet seen any detailed discussion of it.  If you have a link, please
offer it, otherwise, I'm happy to continue this thred.

I have been building PHP and other language based apps for some time
(started about 1983), and over time have found a range of design tools
that I like, such as Enterprise Architect, ArgUML, pen and paper. I do
not like YAML as a declarative language and so prefer to design and
build my db's outside the symfony environment. I have no trouble with
doctrine:build-schema, but I find that as one gets into the design and
implementation of a system, there are going to be required
modifications to the db design, mostly because I forgot a certain
Foreign Key or column or the customer introduces a new requirement.

My understanding is that if I change the database I then need to
rebuild YML files, model etc completely.  Is this correct?

I'm not criticising the process, just trying to understand the best
approach to this.

It would be really cool if I could simply update ot add a single table
and then rollout those changes only, rather than a complete DB.

I am looking at potentially migrating a suite of applications in PHP/
PEAR (PEAR:DB, DatabaseObjects, QuickForm, QFC) with over 1,000,000
lines of PHP, three separate databases (mysql, MSSQL, pgsql) and
hundreds of tables in the db's. In this instance methodology is
important and any thoughts would be greatly appreciated.

Stay well
B

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Database design and modification - methodology

2010-03-01 Thread Eno
On Mon, 1 Mar 2010, beach_defender wrote:

> My understanding is that if I change the database I then need to
> rebuild YML files, model etc completely.  Is this correct?
> 
> I'm not criticising the process, just trying to understand the best
> approach to this.

Its the other way round: i.e. you define your schema in YAML, from that 
you can rebuild models, generate SQL, etc.

> It would be really cool if I could simply update ot add a single table
> and then rollout those changes only, rather than a complete DB.

You can - that's what migrations in Doctrine are for.

http://www.doctrine-project.org/documentation/cookbook/1_0/en/symfony-and-doctrine-migrations



-- 


-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] how to do pdf in symfony

2010-03-01 Thread DEEPAK BHATIA
http://www.symfony-project.org/plugins/sfPhpExcelPlugin

PDF can be generated using this library.
On Tue, Mar 2, 2010 at 6:48 AM, Arthur Ccube  wrote:

> how to generate pdf files from my html/pdf templates in symfony?
>
> It is better to have free/open source methods.
>
> Thanks!
>
> --
> If you want to report a vulnerability issue on symfony, please send it to
> security at symfony-project.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
> symfony-users+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/symfony-users?hl=en
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] how to do pdf in symfony

2010-03-01 Thread Alexandru-Emil Lupu
You could try sftcpdfPlugin or so...

sent via htc magic

On Mar 2, 2010 7:21 AM, "DEEPAK BHATIA"  wrote:

http://www.symfony-project.org/plugins/sfPhpExcelPlugin

PDF can be generated using this library.

On Tue, Mar 2, 2010 at 6:48 AM, Arthur Ccube  wrote:
> > how to generate pdf ...

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Only one model per module for doctrine-generate-crud?

2010-03-01 Thread Roland Cruse
Seeking feedback. Does each module only pertain to a one model
(database table)?

On Mon, Mar 1, 2010 at 11:07 AM, Roland Cruse  wrote:
> Not for the url, as routing can show what ever url you want.
>
> Its more of a house keeping design thing. Lets say you have three
> areas of your web site: hotels, apartments and availability each area
> may have many db tables (i.e. models) that support it. It would be
> convenient to have a module for each of these and put your related
> models there. I am also thinking that this one to one relationship for
> module to model to generated crud would not always fit for actions and
> templates that support complicated forms, like merged forms for
> instance.
>
> So I am wondering if this one module to one model is the accepted way
> to build a symfony app? I have been coding in Symfony before version
> one and back then it seemed arbitrary as to what models you put into
> your modules. More of a design decision.
>
> Thanks!
>
>
> On Sun, Feb 28, 2010 at 7:10 AM, Tom Ptacnik  wrote:
>> Why do you want to add another model to an existing module? Because of
>> the URL?
>>
>> On 27 ún, 08:05, Roland Cruse  wrote:
>>> Hi
>>>
>>> symfony doctrine-generate-crud seems to build a module for each model
>>> (database table) with actions edit, delete, create etc.Using this task
>>> you can not add another model to the same module. The task will over
>>> write the edit, delete etc. actions. I see no options in the task for
>>> prefixing action names, which stop the crud functions from being
>>> overwritten.  Or would that mess things up for a routing collection
>>> come form submission time?
>>>
>>> Is there no way around this, using the crud generator?
>>>
>>> Or does conventional symfony wisdom say each model must have its own module?
>>>
>>> Any tips or hints would be greatly appreciated.
>>>
>>> signed: confused.
>>
>> --
>> If you want to report a vulnerability issue on symfony, please send it to 
>> security at symfony-project.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
>> symfony-users+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/symfony-users?hl=en
>>
>

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.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
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en