[symfony-users] [sf2] Trying to import resources (routing)

2011-06-10 Thread Javier Garcia
Hi, I'm gettin this error: Cannot import resource 'UserBundle/Resources/config/routing/ registration.xml' from '/home/me/Symfony/app/config/routing.yml'. This is my user_registration: resource: UserBundle/Resources/config/routing/registration.xml prefix: /register I've extracted the

[symfony-users] Re: [sf2] Trying to import resources (routing)

2011-06-10 Thread Javier Garcia
Thanks, but the error is the same. On Jun 10, 1:18 pm, Michael Holm ho...@hollo.dk wrote: Hi, I think you are missing an @ before you resource.. does it help? Best regards, Michael Holm On Fri, Jun 10, 2011 at 1:17 PM, Javier Garcia tirengar...@gmail.com wrote: Hi, I'm gettin

[symfony-users] Re: Trying to import resources (routing)

2011-06-10 Thread Javier Garcia
Thanks Cristophe, that worked! Don't you think you should correct the documentation (index.rst)? -- 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

[symfony-users] Re: Trying to import resources (routing)

2011-06-10 Thread Javier Garcia
On Jun 10, 1:34 pm, Javier Garcia tirengar...@gmail.com wrote: Thanks Cristophe, that worked! Don't you think you should correct the documentation (index.rst)? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

[symfony-users] Question about security in sf2

2011-06-06 Thread Javier Garcia
Hi, in the section of security of the sf2's manual there is this configuration: security: firewalls: secured_area: pattern:^/ anonymous: ~ http_basic: realm: Secured Demo Area access_control: - { path: ^/admin,

[symfony-users] Re: Question about security in sf2

2011-06-06 Thread Javier Garcia
On Jun 6, 5:10 pm, Christophe COEVOET s...@notk.org wrote: This is defined in the access_control section which requires having the ROLe_ADMIN role to access all url starting by /admin (and the provider section tells you that the admin user has this role). Thanks C, But the access_control

[symfony-users] Re: Question about security in sf2

2011-06-06 Thread Javier Garcia
On Jun 6, 5:42 pm, Christophe COEVOET s...@notk.org wrote: Le 06/06/2011 17:31, Javier Garcia a �crit : On Jun 6, 5:10 pm, Christophe COEVOETs...@notk.org  wrote: This is defined in the access_control section which requires having the ROLe_ADMIN role to access all url starting by /admin

[symfony-users] Re: Question about security in sf2

2011-06-06 Thread Javier Garcia
On Jun 6, 6:10 pm, Christophe COEVOET s...@notk.org wrote: the firewall section defines the authentication, not the authorization. Yes I know that. My question is: If authentication is defined in the section firewalls (as the manual says), why do you say the line /- { path: ^/admin, roles:

[symfony-users] Re: Trying to generate entities (doctrine)

2011-05-26 Thread Javier Garcia
Thanks that worked! On May 25, 11:09 pm, Pierre p...@pierre-minnieur.de wrote: I bet the following will result in a could not guess where to put the classes in error:     php app/console doctrine:generate:entities Jander\\CalendarBundle But this should work right now:     php app/console

[symfony-users] Trying to generate entities (doctrine)

2011-05-25 Thread Javier Garcia
Hi, I'm using this command: php app/console doctrine:generate:entities ClanderBundle and I'm getting this error: [ErrorException] Notice: Undefined index: Jander\ClanderBundle\Entity\Jander \ClanderBundle\Entity\User in /home/me/Symfony/vendor/doctrine/lib/

[symfony-users] Re: Trying to generate entities (doctrine)

2011-05-25 Thread Javier Garcia
On May 25, 5:18 pm, Christophe COEVOET s...@notk.org wrote: Le 25/05/2011 17:15, Javier Garcia a �crit : Hi, I'm using this command: php app/console doctrine:generate:entities ClanderBundle and I'm getting this error: [ErrorException] Notice: Undefined index: Jander\ClanderBundle

[symfony-users] Fatal error: Cannot redeclare class...

2011-05-23 Thread Javier Garcia
Hi, I have downloaded this PayPal API: https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_PHP_SOAP_SDK.tar.gz And I'm getting this error: Fatal error: Cannot redeclare class SOAP_Client in /home/me/app1/ plugins/mbpPlatformFrontendPlugin/lib/paypal/PayPal/SOAP/Client.php on line 83

[symfony-users] Re: Fatal error: Cannot redeclare class...

2011-05-23 Thread Javier Garcia
On May 23, 11:45 am, Javier Garcia tirengar...@gmail.com wrote: Hi, I have downloaded this PayPal API: https://cms.paypal.com/cms_content/US/en_US/files/developer/PP_PHP_SO... And I'm getting this error: Fatal error: Cannot redeclare class SOAP_Client in /home/me/app1/ plugins

[symfony-users] About the order of autoloading

2011-05-18 Thread Javier Garcia
Hi, I'm getting this error: Declaration of PayPal::raiseError() should be compatible with that of PEAR::raiseError() These are PayPal::raiseError() and PEAR::raiseError() respectively: function raiseError($message = null, $code = null,

[symfony-users] No Metadata Classes to process when trying to create the schema.

2011-05-12 Thread Javier Garcia
Hi, after doing php app/console doctrine:schema:create I'm getting the message No Metadata Classes to process.. My steps are just these: - Download sf2, create the bundle Jander/ClarBlundle. - Create Jander/ClarBundle/Resources/config/doctrine/ Jander.ClarBundle.Entity.User.orm.dcm.yml with

[symfony-users] Re: No Metadata Classes to process when trying to create the schema.

2011-05-12 Thread Javier Garcia
On Thu, May 12, 2011 at 5:51 PM, Christophe COEVOET s...@notk.org wrote: Or place it in Resources/config/doctrine/metadata/orm/ and remove the .orm part if you are using beta1 I did that but now when I do schema:create I get: PHP Warning: class_parents(): Class

[symfony-users] Re: No Metadata Classes to process when trying to create the schema.

2011-05-12 Thread Javier Garcia
But I change the location and I'm getting that ReflectionException (in my second post)..or maybe I don't understand.. On May 12, 12:41 pm, Christophe COEVOET s...@notk.org wrote: Le 12/05/2011 12:31, Zolzaya Erdenebaatar a crit : Can you put your code please? no need to put the code. I still

[symfony-users] Re: Symfony2 returning a JSON object

2011-05-12 Thread Javier Garcia
On May 12, 1:51 pm, Christophe COEVOET s...@notk.org wrote: the render method is not about creating a response. It is about creating a response *with a content set by a template*. Yes, but.. why not implement render() to create responses whose *content could be 'anything' (JSON data for

[symfony-users] Re: R: Functional test: how to set JSON data in a POST method?

2011-04-28 Thread Javier Garcia
-getContent() returns the JSON data correctly) ... Any help? On Apr 22, 3:21 pm, Massimiliano Arione garak...@gmail.com wrote: Il giorno giovedì 21 aprile 2011 17:48:41 UTC+2, Javier Garcia ha scritto: I want to create a functional test for an action that receives a POST method with data

[symfony-users] symfony: trying to run all the tests of an app.

2011-04-21 Thread Javier Garcia
Hi, I'm trying to launch all the functional tests of an app, but when I do it, I get this: [mbpPlatformApi] functionaldistritoActionsTest...dubious Test returned status 255 Failed tests: 0 [mbpPlatformApi] functionaleventoActionsTest..dubious

[symfony-users] Re: Changing the validator of an embedded form field

2011-04-07 Thread Javier Garcia
On Mar 27, 1:01 am, Javier Garcia tirengar...@gmail.com wrote: But.. why if paginas has a validator-pass? Well, I have learned the validatorPass doesn't mean it always passes validation...Now I have change my code but it neither works...This is my new code: var_dump($this-embeddedForms

[symfony-users] Re: How to do something after user is authorized

2011-04-06 Thread Javier Garcia
Could you give more details, please? On Apr 6, 1:33 pm, Azat a3at.m...@gmail.com wrote: How can I update some field in DB (i.e. Last time of login) ? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because

[symfony-users] Symfony + CMS

2011-03-30 Thread Javier Garcia
Hi, someone to tell me what pros and cons combining symfony with drupal? Should i use better any other CMS based on symfony (sympal, diem,...) ? What is your experience? Bye Javi -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] Trying to set a form field value before saving the form

2011-03-15 Thread Javier Garcia
Hi, I have a many-to-many relationship (User-UserGroup-Group). When I generate the User form class I find a field called user_group_list that is is showed in a module based on User model. As I read here below, it is possible to set the value of a field before saving the form:

[symfony-users] Question about a .css file that is not loaded in all the pages of the backend.

2011-03-14 Thread Javier Garcia
Hi, I have this file apps/backend/config/view.yml. default: http_metas: content-type: text/html metas: #title:symfony project #description: symfony project #keywords: symfony, project #language: en #robots: index, follow stylesheets:

[symfony-users] Re: Question about a .css file that is not loaded in all the pages of the backend.

2011-03-14 Thread Javier Garcia
of your view.ymls contain a [-background] directive? On Mon, Mar 14, 2011 at 12:03, Javier Garcia tirengar...@gmail.com wrote: Hi, I have this file apps/backend/config/view.yml. default:  http_metas:    content-type: text/html  metas:    #title:        symfony project

[symfony-users] 1:1 relation, is there any way to show the colums of the daughter model just writing in the generator?

2011-03-11 Thread Javier Garcia
Hi, for example I have created with symfony a module based on sfGuardUser. Now, in the list of elements of that module I want to show the sfGuardUserProfile columns (name, surname..). I know i can create a query, but is there any way just writing in the generator? sf 1.4/propel 1.6 Javi --

[symfony-users] 1:m and m:m relations: give some information about the associated elements in the backend list.

2011-03-10 Thread Javier Garcia
Hi, I have created a module using the sfGuardUser model. I'd like to show in the list of the backend of that module, the groups that a user belongs to. I know the backend is not initially prepared for that, but is there any plugin or any other way to do easily? sf 1.4/propel 1.6 Javier -- If

[symfony-users] Trying to set a field in executeUpdate()

2011-03-09 Thread Javier Garcia
Hi, I have just generated a module and I'm trying to set the value of a field before saving it this way: public function executeUpdate(sfWebRequest $request) { $this-process = $this-getRoute()-getObject(); $this-form = $this-configuration-getForm($this-process);

[symfony-users] Re: sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-03-07 Thread Javier Garcia
http://trac.symfony-project.org/ticket/8171 what to do when someone has assigned a ticket since 1 year and it has not been resolved or deleted? On Mar 1, 7:27 pm, Javier Garcia tirengar...@gmail.com wrote: Hi again.. I'm following the tutorial/snippet I mentioned before. I have followed

[symfony-users] Trying to unset a field before saving it, using offsetUnset()

2011-03-07 Thread Javier Garcia
Hi, I'm trying to unset a field before saving it, exactly in the executeCreate() function generated by sf. I'm using this: $this-configuration-getForm()-getWidgetSchema()- offsetUnset('clienti'); var_dump($this-configuration-getForm()-getWidgetSchema()); But after that the field clients

[symfony-users] Re: Trying to unset a field before saving it, using offsetUnset()

2011-03-07 Thread Javier Garcia
Well I mean $this-configuration-getForm()-getWidgetSchema()- offsetUnset('clients'); On Mar 7, 7:40 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, I'm trying to unset a field before saving it, exactly in the executeCreate() function generated by sf. I'm using

[symfony-users] Remember: how to create a Doctrine project in symfony 1.2?

2011-03-02 Thread Javier Garcia
Hi, someone can remember how to create a Doctrine project in symfony 1.2? Regards Javi -- 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.

[symfony-users] Re: Remember: how to create a Doctrine project in symfony 1.2?

2011-03-02 Thread Javier Garcia
nothing to do with it, when you have the documentation. public function setup() {   $this-enablePlugins(array('sfDoctrinePlugin'));   $this-disablePlugins(array('sfPropelPlugin')); } On Wed, Mar 2, 2011 at 10:29, Javier Garcia tirengar...@gmail.com wrote: Hi, someone can remember how

[symfony-users] Re: Remember: how to create a Doctrine project in symfony 1.2?

2011-03-02 Thread Javier Garcia
Sorry..I was in a hurry.. On Mar 2, 2:36 pm, Gareth McCumskey gmccums...@gmail.com wrote: What do you need to remember? Go read! On 02/03/2011 11:29, Javier Garcia wrote: Hi, someone can remember how to create a Doctrine project in symfony 1.2? Regards Javi -- If you want

[symfony-users] Re: sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-03-01 Thread Javier Garcia
I found this snippet maybe will be usefull: http://snippets.symfony-project.org/snippets/from/antitoxic/order_by/popularity On Feb 28, 10:40 am, Javier Garcia tirengar...@gmail.com wrote: Alex, what do you mean with It's maybe more along the lines of a feature that would be nice to have

[symfony-users] Re: sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-03-01 Thread Javier Garcia
I just wanted to add taht in that snippet tags_list is not a casual name, is the name of the field generated by symfony that shows the elements of the other side of the relation. In that way you will overwrite it. I'm missing a comment like that in the snippet. On Mar 1, 5:20 pm, Javier Garcia

[symfony-users] Re: sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-03-01 Thread Javier Garcia
Hi again.. I'm following the tutorial/snippet I mentioned before. I have followed it, but when the form is showed, it shows the word Array inside the autocompletion field. Any idea? On Mar 1, 5:22 pm, Javier Garcia tirengar...@gmail.com wrote: I just wanted to add taht in that snippet

[symfony-users] Re: sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-02-28 Thread Javier Garcia
thishttp://www.symfony-project.org/plugins/sfDoctrineFBAutocompletePlugin On Sat, Feb 26, 2011 at 11:23, Javier Garcia tirengar...@gmail.com wrote: Ok, now I understand how this widget works..When you create this kind of widget, it actually creates two fields: autocomplete_my_field

[symfony-users] Re: sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-02-26 Thread Javier Garcia
it's a bug I think.. Javier On Feb 24, 4:27 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, i have this widget :     $this-widgetSchema['user']  = new sfWidgetFormChoice(array(       'choices'          = array(),       'renderer_class'   = 'sfWidgetFormJQueryAutocompleter

[symfony-users] sfWidgetFormJQueryAutocompleter: how to retrieve the keys of the selected elements?

2011-02-24 Thread Javier Garcia
Hi, i have this widget : $this-widgetSchema['user'] = new sfWidgetFormChoice(array( 'choices' = array(), 'renderer_class' = 'sfWidgetFormJQueryAutocompleter', 'renderer_options' = array('url' = 'autocomplete', 'config' = '{ multiple:true }'), )); And this

[symfony-users] Is there any way to set post parameters?

2011-02-23 Thread Javier Garcia
Hi, is there any way to set post parameters? When i submit a form I would like to set a variable (that I give a value dinamically) as a post parameter. Is that possible? sf 1.4 Javi -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

[symfony-users] Is sfWidgetFormPropelChoiceMany class deprecated in sf 1.4?

2011-02-21 Thread Javier Garcia
Hi, is sfWidgetFormPropelChoiceMany class deprecated? why? what class should i use? Javier -- 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

[symfony-users] Re: Trying to send emails

2011-02-08 Thread Javier Garcia
No idea? On Feb 7, 7:14 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, I'm trying to send emails using this code:      var_dump($this-getMailer()-composeAndSend(   //this outputs '0'         'f...@example.com',         'j.gar...@jander.eu',         'Subject',         'Body

[symfony-users] Re: Trying to send emails

2011-02-08 Thread Javier Garcia
Hi, my problem: no email is sent. On Feb 8, 5:01 pm, stof s...@notk.org wrote: On Tue, 8 Feb 2011 06:21:36 -0800 (PST), Javier Garcia tirengar...@gmail.com wrote: No idea? Well, what is your problem exactly ? You don't ask any question in your previous mail. Thus, the logs say the mail

[symfony-users] Trying to send emails

2011-02-07 Thread Javier Garcia
Hi, I'm trying to send emails using this code: var_dump($this-getMailer()-composeAndSend( //this outputs '0' 'f...@example.com', 'j.gar...@jander.eu', 'Subject', 'Body' )); The factories configuration is this (I have the same configuration in my

[symfony-users] Question about sfOutputEscaperArrayDecorator

2011-02-07 Thread Javier Garcia
Hi, when i do a sfGuardUserPeer::doSelect(new Criteria()), i get an object like this: object(sfOutputEscaperArrayDecorator)[114] private 'count' = int 1 protected 'value' = array 0 = object(sfGuardUser)[108] protected 'profile' = null protected 'groups'

[symfony-users] format_currency() adds an space before the number

2011-02-04 Thread Javier Garcia
Hi when i do this: var_dump(format_currency('1004.569')); I get: string ' 1.004,56' (length=10) Notice that there is a space before the 1. Any idea? sf 1.4. Javi -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received

[symfony-users] What are the URL for the pages using PropelPager ?

2011-01-20 Thread Javier Garcia
Hi, I have an action with this code: $c = new Criteria(); $c-addJoin(sfGuardUserProfilePeer::USER_ID, sfGuardUserGroupPeer::USER_ID, Criteria::INNER_JOIN); $c-add(sfGuardUserGroupPeer::GROUP_ID, 2 ); $this-pager = new PropelPager($c, 'sfGuardUserProfilePeer', 'doSelect', $page = 2, $rowsPerPage

[symfony-users] Re: After installing sfPropel15Plugin: error when i try to build classes

2011-01-18 Thread Javier Garcia
Sorry, I was commeting/removing also this line below in config/ propel.ini: propel.behavior.default = symfony,symfony_i18n Javier On Jan 17, 10:15 pm, Gabriel Petchesi pghora...@gmail.com wrote: Check the autoloader cache, it's found in cache/. In my app is

[symfony-users] Re: After installing sfPropel15Plugin: error when i try to build classes

2011-01-17 Thread Javier Garcia
?php require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/ sfCoreAutoload.class.php'; sfCoreAutoload::register(); class ProjectConfiguration extends sfProjectConfiguration { public function setup() { //$this-enablePlugins('sfPropelPlugin');

[symfony-users] Many to many relationship: complete iteration.

2011-01-17 Thread Javier Garcia
Hi, I have a many-to-many relationship between two tables. I would like to show the elements of a table with the corresponding elements of the other table. For example: user1-group2 group5 user2-group1 group3 group4 ... In an easy and smart way, of course. sf 1.4/propel

[symfony-users] Re: Many to many relationship: complete iteration.

2011-01-17 Thread Javier Garcia
I used a join and I get the objects from the exchange table, so if I iterate it I get: user1-group2 user1-group5 user2-group1 user2-group3 user2-group4 But I'm wondering how could i get the group objects from the user objects... On Jan 17, 11:04 pm, Javier Garcia tirengar...@gmail.com wrote

[symfony-users] How to hide the label of the object actions in the backend list?

2011-01-13 Thread Javier Garcia
Hi, how to hide the label of the object actions? I've tried these below (separately of course...) but noone of them works ok. object_actions: _delete: {label: ' '} _delete: {label: ' '} _delete: {label: false} _delete: {label: none} sf 1.4

[symfony-users] Re: After installing sfPropel15Plugin: error when i try to build classes

2011-01-13 Thread Javier Garcia
no idea? On Jan 11, 5:07 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, when i do propel:build --all-classes i get these errors below. I have followed the instructions that are in the README. sf 1.4 schema    converting /home/javier/program...rueba1/config/schema.yml to XML

[symfony-users] Column not found: 1054 Unknown column 'sf_guard_group.ID' in 'where clause'

2011-01-13 Thread Javier Garcia
Hi, i have this code: $c-addMultipleJoin(array( array(UserProceduraPeer::USER_ID, sfGuardUserProfilePeer::USER_ID ), array(UserProceduraPeer::USER_ID, sfGuardGroupPeer::ID), CRITERIA::INNER_JOIN)); but I'm getting this error:

[symfony-users] Simulating an enum type in Propel: error trying to generate form classes

2011-01-12 Thread Javier Garcia
Hi, documento: {type: varchar, sqltype: enum, size: 'F','DDT','RC','FOURTH_ELEMENT','PM','KV','VN','CMS', required: true, defaultValue: 'F', required: true} I get the next error message (always with the fourth element, I mean if i write 3 or less elements it doesn't give any error): propel

[symfony-users] Re: Simulating an enum type in Propel: error trying to generate form classes

2011-01-12 Thread Javier Garcia
Sorry I'm using sf 1.4. On Jan 12, 1:53 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, documento: {type: varchar, sqltype: enum, size: 'F','DDT','RC','FOURTH_ELEMENT','PM','KV','VN','CMS', required: true, defaultValue: 'F', required: true} I get the next error message (always

[symfony-users] Save the output of a task.

2011-01-11 Thread Javier Garcia
Hi, i have a long error message when i execute a task. In order to save the output i'm writing task foo.txt. But when i open foo.txt the error messages are not there. Any idea? Any alternative? Regards Javi -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] After installing sfPropel15Plugin: error when i try to build classes

2011-01-11 Thread Javier Garcia
Hi, when i do propel:build --all-classes i get these errors below. I have followed the instructions that are in the README. sf 1.4 schemaconverting /home/javier/program...rueba1/config/schema.yml to XML schemaputting /home/javier/programazio...eba1/config/generated-schema.xml schema

[symfony-users] Re: Save the output of a task.

2011-01-11 Thread Javier Garcia
Thanks! On Jan 11, 4:58 pm, Gábor Fási maerl...@gmail.com wrote: You also need to redirect the stderr:     task foo.txt 21 this redirects it to the stdout, so it gets logged to the same file. On Tue, Jan 11, 2011 at 15:56, Javier Garcia tirengar...@gmail.com wrote: Hi, i have a long

[symfony-users] Question about fixtures: the object is not defined in your data file.

2011-01-10 Thread Javier Garcia
Hi, I have this code: sfGuardUser: utente_1: username: j.gar...@esempio.com password: 123456 ?php for($i=2; $i=50; $i++): ? utente_?php echo $i?: username: utente_?php echo $i?@esempio.com password: 123456 ?php endfor ? sfGuardUserProfile: profilo_1:

[symfony-users] Propel criteria: undefined offset

2011-01-09 Thread Javier Garcia
Hi, i have this schema below, i have generated the classes using symfony and created a pair of objects using the form class generated. moto: marca: { type: varchar(255), required: true } matricula: { type: integer, required: true } Now i have this criteria: $c = new Criteria();

[symfony-users] Problem trying to add a new object action in a backend module

2010-12-22 Thread Javier Garcia
Hi, i have created this model: propel: shop_orders: orders_id: { phpName: Id, type: INTEGER, size: '11', primaryKey: true, autoIncrement: true, required: true } email: { type: VARCHAR, size: '45', required: true } Then i have generated an admin module and i have add this below to

[symfony-users] Re: Manage the credentials of the actions and modules through a form

2010-12-12 Thread Javier Garcia
, Javier Garcia tirengar...@gmail.com wrote: Hi, as you know you can edit the credentials of an action or a module going to file view.yml of the module and editing them. Ourbossdoesn't want to go to the files to edit the credentials in each view.yml file, but wants to have a form where he can

[symfony-users] Trying to add a field from another model in a backend list.

2010-12-07 Thread Javier Garcia
Hi, I have created an inner join criteria to show a list of elements in the backend. This are my models: user: name: { type: varchar(255) } age: { type: integer } article: title:{ type: varchar(255) } content: { type: varchar(255) }

[symfony-users] Error when trying to declare a variable as a parameter. No problem when I declare it inside the function.

2010-12-07 Thread Javier Garcia
Hi, I have this static function: public static function getOrdini($sort_order = 4) { $con = Propel::getConnection(); $sql = select * from shop_orders LEFT JOIN shop_orders_total ON shop_orders.orders_id = shop_orders_total.orders_id AND

[symfony-users] Re: 500 internal server error

2010-12-07 Thread Javier Garcia
Or look at the log of the server (apache2 /var/log/apache2). On 7 Dic, 10:03, Justen Doherty phpc...@gmail.com wrote: switch to dev mode by adding _dev.php to your URL - e.g. frontend_dev.php (dev mode) frontend.php (production mode) On Tue, Dec 7, 2010 at 4:37 AM, jyoti jyt...@gmail.com

[symfony-users] Trying to create a new action in a backend module: Action module/show does not exist.

2010-12-07 Thread Javier Garcia
Hi, i have created a new action called executeDetagli() in backend/modules/ ordini/actions/actions.class.php. When I try to go to backend_dev.php/ordini/detagli It gives me this error: 404 | Not Found | sfError404Exception Action ordini/show does not exist. stack trace * at () in

[symfony-users] Re: Trying to create a new action in a backend module: Action module/show does not exist.

2010-12-07 Thread Javier Garcia
I have realized that it works perfect when i add / at the end of the url, but why??? I don't have any problem to go to the New action just using backend_dev.php/ordini/new. On 7 Dic, 17:50, Javier Garcia tirengar...@gmail.com wrote: Hi, i have created a new action called executeDetagli

[symfony-users] Question about accessing a child class from a parent class

2010-12-06 Thread Javier Garcia
Hi, i have this schema: shop_products: _attributes: { phpName: ShopProduct } products_id: { phpName: Id, type: INTEGER, size: '11', primaryKey: true, autoIncrement: true, required: true } products_quantity: { phpName: Quantity, type: INTEGER, size: '4', required: true }

[symfony-users] Trying to use my own method to show a list in the backend: undefined offset notice

2010-12-06 Thread Javier Garcia
Hi, i'm trying to use my own method to show a list in the backend: class ShopOrderPeer extends BaseShopOrderPeer { public static function getOrdini() { $con = Propel::getConnection(); $sql = select customers_name, value, date_purchased, orders_status from shop_orders

[symfony-users] Re: Trying to use my own method to show a list in the backend: undefined offset notice

2010-12-06 Thread Javier Garcia
Workaround: instead of select customers_name, value, date_purchased, orders_status from shop_orders LEFT JOIN ..., select * LEFT JOIN ... On 6 Dic, 18:39, Javier Garcia tirengar...@gmail.com wrote: Hi, i'm trying to use my own method to show a list in the backend: class ShopOrderPeer extends

[symfony-users] The error is not showed in the backend

2010-12-06 Thread Javier Garcia
Hi, I have these models: user: name: { type: varchar(255) } age: { type: integer } article: title:{ type: varchar(255) } content: { type: varchar(255) } user_id: { type: varchar(255) } I have this generator.yml list: display:

[symfony-users] Manage the credentials of the actions and modules through a form

2010-11-25 Thread Javier Garcia
Hi, as you know you can edit the credentials of an action or a module going to file view.yml of the module and editing them. Our boss doesn't want to go to the files to edit the credentials in each view.yml file, but wants to have a form where he can select the modules and the actions of the

[symfony-users] Re: clean-model-files for Propel?

2010-11-20 Thread Javier Garcia
I think there isn't anyone..so.. from what folder should i remove the files? On Nov 5, 12:51 pm, Javier Garcia tirengar...@gmail.com wrote: Hi, when i try build-all-load i'm getting errors about models that doesn't exist any more in my schema. I know in doctrine i can use clean-model-files

[symfony-users] Setting the object of the form before saving

2010-11-19 Thread Javier Garcia
Hi, i want a form in my app uses AJAX, so as my first-first-first step (i dont know exactly if it finally will really serve me..) I'm just trying to modificate the update action this way: public function executeUpdate(sfWebRequest $request) {

[symfony-users] How to disable the modules/action routes?

2010-11-17 Thread Javier Garcia
Hi, how to disable the module/action routes? I mean i just want the short routes work, for example www.mysite.com/login will work, but www.mysite.com/sfGuardAuth/signin will not work. Javi -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] When i write a task php symfony .. I only get the first lines of config/ProjectConfiguration.class.php

2010-11-12 Thread Javier Garcia
Hi, I have done a svn co for a repository that contains a symfony app. Then i went to the root of the project and when i write a task php symfony .. I only get the first lines of config/ ProjectConfiguration.class.php ini_set('display_errors', 1); ini_set('session.save_handler','files');

[symfony-users] Re: Credentials for an action in the backend

2010-11-11 Thread Javier Garcia
sf 1.4 On Nov 11, 1:49 am, Martin Ibarra Cervantes ibarra.cervan...@gmail.com wrote: You add credentials on your backend when your user has login. On Wed, Nov 10, 2010 at 8:01 AM, Javier Garcia tirengar...@gmail.com wrote: Hi, I have this in the generator.yml of a module: config

[symfony-users] Credentials for an action in the backend

2010-11-10 Thread Javier Garcia
Hi, I have this in the generator.yml of a module: config: actions: _new: { credentials: [user] }. and I've overwriten the action new i mention in the generator.yml this way: public function executeNew(sfWebRequest $request) { var_dump($this-getCredential()); $this-form =

[symfony-users] clean-model-files for Propel?

2010-11-05 Thread Javier Garcia
Hi, when i try build-all-load i'm getting errors about models that doesn't exist any more in my schema. I know in doctrine i can use clean-model-files but in propel? Javier -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

[symfony-users] Trying to build and load

2010-11-04 Thread Javier Garcia
Hi, i have just created a new project and this models and the fixtures below: culture: id: ~ code: { type: CHAR, size: 6, default: 'it', required: true } text: { type: VARCHAR, size: 50, default: 'italiano', required: true } folder_prod:{ type:

[symfony-users] Just trying to build and load

2010-11-04 Thread Javier Garcia
Hi, i have just created a new project and this models and the fixtures below: sediOK: id: ~ culture_id: { type: integer, required: true, foreignTable: culture, foreignReference: id } nations_id: { type: integer, required: true,

[symfony-users] Trying to manage the credentials of the actions

2010-11-03 Thread Javier Garcia
Hi, we want to manage the credentials of the actions of the backend from the backend. How to get the list of the actions of an app? After that we could show the credential of each one through getCredential(). 2nd question: i found the function to get the credential of an action

[symfony-users] Re: Using generator.yml, is there any way to hide the fields of the i18n forms in the admin?

2010-10-26 Thread Javier Garcia
well, maybe the question is: using generator.yml, is there any way to hide the fields of the i18n table forms in the admin? sf 1.4/propel On Oct 25, 9:50 am, Javier Garcia tirengar...@gmail.com wrote: Hi, using generator.yml, is there any way to hide the fields of the i18n forms

[symfony-users] Using generator.yml, is there any way to hide the fields of the i18n forms in the admin?

2010-10-25 Thread Javier Garcia
Hi, using generator.yml, is there any way to hide the fields of the i18n forms in the admin? Javi -- 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

[symfony-users] Starting with propel schemas

2010-10-22 Thread Javier Garcia
Hi, i have this propel schema: comentario: id: author: varchar(255) content: longvarchar created_at: when i do build-all-load the classes (model, form, filter) are not created. But if i change add the _attributes key like this: comentario: _attributes: { phpName: Comment }

[symfony-users] Re: Question about i18nTable in Jobeet

2010-10-22 Thread Javier Garcia
No idea? On Oct 19, 5:41 pm, Javier Garci tirengar...@gmail.com wrote:   Hi, in Jobeet there is this part below of the schema: jobeet_category:    _attributes:  { isI18N: true, i18nTable: jobeet_category_i18n }    id:           ~ jobeet_category_i18n:    id:           { type: integer,

[symfony-users] Re: Problems trying to go the previous element of a group of elements retrieved using a propel criteria.

2010-10-07 Thread Javier Garcia
Hi Gareth, Im not using foreach(), jut i'm trying to use just prev() method. Javier On Oct 7, 11:43 am, Gareth McCumskey gmccums...@gmail.com wrote: I assume that $Sedi18ns is a result from a doSelect call? If so, this means that items are stored in an array. Therefore in your TEMPLATE

[symfony-users] Problem trying to do propel:build-all-load

2010-10-05 Thread Javier Garcia
Hi, i have just installed symfony, created a propel project (--orm=propel) and an frontend app. After doing propel:build-all-load i get several error messages: PHP Warning: Invalid argument supplied for foreach() in /opt/lampp/

[symfony-users] Question about a propel query

2010-10-04 Thread Javier GARCIA
Hi, I have this query inside a method: public static function pincopalla(){ $con = Propel::getConnection(SediI18nPeer::DATABASE_NAME); $sql = select * from sedii18n where culture = :country UNION select * from sedii18n where culture :country;

[symfony-users] Any way to retrieve from the layout to the name of the template of the action?

2010-09-07 Thread Javier Garcia
Hi, hi, any way to retrieve from the layout to the name of the template of the action? -- Javi Ubuntu 10.04, sf 1.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

[symfony-users] Re: How to translate the layout texts?

2010-09-02 Thread Javier Garcia
Sorry, my fault. On Sep 2, 11:54 am, Javier Garcia tirengar...@gmail.com wrote:   Hi, i have added something like this below in the layout: ?php echo __('foo'); ? I have added ?php use_helper('I18N') ? in the top of the layout code, but it doesn't translate it. No problem translating

Re: [symfony-users] Problems after adding standard_helpers: [I18N] in settings.yml

2010-09-02 Thread Javier Garcia
Thanks, so maybe when i add that line I'm _overwriting_ a configuration by default... Don't you think it would be better an _adding_ way ? In that way it would not be necessary adding Partial, etc...when you add I18N. On 09/02/2010 12:20 PM, Gábor Fási wrote: Add the Partial helper to the

[symfony-users] Re: The form empty values are not translated

2010-09-02 Thread Javier Garcia
No idea? On Aug 24, 1:46 pm, Javier Garcia tirengar...@gmail.com wrote:   Hi, I have a select to change the language of my forms and i have this widget: $this-setWidget('fecha_nac', new sfWidgetFormI18nDate(array('culture' = 'es_ES

[symfony-users] Trying to call an object method.

2010-08-30 Thread Javier Garcia
Hi, I have created an object method called getContenidoParcial(). When i call it, i get the error Unknown record property / related component contenido_parcial on Mensaje I created the method I say inside the Mensaje class this way: class Mensaje extends BaseMensaje { public function

[symfony-users] Trying to set sfGuardUser objects after applying

2010-08-28 Thread Javier Garcia
Hi, i have installed sfDoctrineGuardPlugin and sfDoctrineApplyPlugin. When a user is register through sfApply/apply i would like to save the value of the field 'email' of that apply form in the sfGuardUser 'email_address' field. So I added this in executeApply:

[symfony-users] How to setup magento and symfony?

2010-08-28 Thread Javier Garcia
Hi, just that. -- Javi Ubuntu 8.04. sf 1.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] How to translate a text that contains p/p ?

2010-08-27 Thread Javier Garcia
Hi, i want to translate this below: ?php echo __(EOM p For security reasons... /p EOM ) ? So i create this translation unit: trans-unit sourceFor security reasons.../source targetPor razones de seguridad.../target /trans-unit The problem: it is not translated less than i remove the p/p

  1   2   3   4   >