Re: [symfony-users] Using sfPHPExcelPlugin in Symfony 1.4

2010-05-17 Thread ReynierPM
Hi Deepak:

As the error says you have missing the handler or maybe the config
file. Try this:
1) Under apps/[application_name]/config create a file called
phpexcel.yml and setup the parameters like this example:

 all:
  meta:
creator:
title:
subject:
description:
keywords:
category:

2) Verify in file apps/[application_name]/config/config_handlers.yml
you have this code:

config/phpexcel.yml:
  class:sfDefineEnvironmentConfigHandler
  param:
prefix: ex_

Cheers

On 17 May 2010 03:17, DEEPAK BHATIA toreachdee...@gmail.com wrote:
 Hi,

 I downloaded the sfPhpExcelPlugin-1.0.3.gz and installed in the

 C:\development\sfprojects\jobeet\lib\vendor\symfony\lib\plugins\sfPhpExcelPlugin

 I updated the ProjectConfiguration.class.php

 ?php
 require_once
 'C:\\development\\sfprojects\\jobeet\\lib\\vendor\\symfony\\lib/autoload/sfCoreAutoload.class.php';
 sfCoreAutoload::register();
 class ProjectConfiguration extends sfProjectConfiguration
 {
   public function setup()
   {
    $this-enablePlugins(array('sfPropelPlugin','sfPhpExcelPlugin'));

   }
 }

 But I get the following error in the action

 Fatal error: Uncaught exception 'sfConfigurationException' with message
 'Configuration file
 C:/development/sfprojects/jobeet/lib/vendor/symfony/lib/plugins/sfPhpExcelPlugin/config/phpexcel.yml
 does not have a registered handler.' in
 C:\development\sfprojects\jobeet\lib\vendor\symfony\lib\config\sfConfigCache.class.php:104
 Stack trace: #0
 C:\development\sfprojects\jobeet\lib\vendor\symfony\lib\config\sfConfigCache.class.php(197):
 sfConfigCache-callHandler('config/phpexcel...', Array,
 'C:\xampp\htdocs...') #1
 C:\development\sfprojects\jobeet\lib\vendor\symfony\lib\plugins\sfPhpExcelPlugin\config\sfPhpExcelPluginConfiguration.class.php(22):
 sfConfigCache-checkConfig('config/phpexcel...', true) #2
 C:\development\sfprojects\jobeet\lib\vendor\symfony\lib\config\sfApplicationConfiguration.class.php(169):
 sfPhpExcelPluginConfiguration-initialize() #3
 C:\development\sfprojects\jobeet\lib\vendor\symfony\lib\config\sfApplicationConfiguration.class.php(150):
 sfApplicationConfiguration-initializePlugins() #4 C:\development\sfpro in
 C:\development\sfprojects\jobeet\lib\vendor\symfony\lib\config\sfConfigCache.class.php
 on line 104



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




-- 
ReynierPM

-- 
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] excel

2010-05-10 Thread ReynierPM
There is a SF extension called sfPHPExcel wich is a wrapper for PHP Excel
give a try and tell us back how going
Cheers
On 10 May 2010 20:32, Julian julian.reyes.escri...@gmail.com wrote:

 Hi in symfony not but you can try with a lib in php is easy to implement
 http://code.google.com/p/php-excel/



 2010/5/10 safa boubekri boubekri.s...@gmail.com

 hello  every  body  how to  import and export file  excel


 please help  me  i will be grateful

 thank you

 --
 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.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




 --
 Si la depuración es el proceso de eliminar errores, entonces la
 programación debe ser el proceso de introducirlos
 – Edsger W. Dijkstra

  --
 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.comsymfony-users%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/symfony-users?hl=en




-- 
ReynierPM

-- 
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] Error message No description for object of class...

2010-02-23 Thread ReynierPM

On 2/23/2010 4:35 PM, Adrien Mogenet wrote:

Well, if I print $extraValue. no problem. But in -setValue, it tries
to set No description for object of class MyClass.
WTF ?? If I set directly a value, it works.


This error happens when you don't have created __toString() method in 
some classes. Try adding this in the model class where you need to get 
data. For example:


TProvincia
 id_provincia
 name

TMunicipio
 id_municipio
 id_provincia
 name

Then in model class for TProvincia you need to write __toString() method.

public function __toString() {
  return $this-getName();
}

Try this and tell us back

--
Cheers
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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: Problems installing Apostrophe CMS

2010-02-22 Thread ReynierPM

On 2/21/2010 2:52 PM, Tom Boutell wrote:

 The error you mention is a Postgres error, not a MySQL one, so you
 are probably not using our unmodified sandbox, you probably are
 trying to set it up for Postgres.


So at this time it's not possible to install Apostrophe under 
PostgreSQL? To sad to ear this :( because I'm a Postgres guy. (I'm cuban 
and I can't use MySQL from here because Sun block my country)




 We're open to including patches for Postgres that don't break MySQL
 or SQLite, but we don't use Postres in-house.


Wich files need to be patched? Can you point me in the right direction?


 Hmm, is this all the output you got? It feels a bit partial. The
 error mentioned is reported only for commands after an earlier one in
 a given transaction has already failed, at least according to my
 googling on the subject (I'm not a Postgres guy). Maybe you have a
 postgres error log that is more illuminating.


No it's a partial piece of output, before it creates models, forms and 
so on based on schema but when it try to creates the tables this error 
come up


--
Cheers
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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] Problems installing Apostrophe CMS

2010-02-21 Thread ReynierPM

Hi:
I've get the Apostrophe Sandbox for give a try. When I run the command: 
doctrine:build --all I get this error:


 doctrine  creating tables




  SQLSTATE[25P02]: In failed sql transaction: 7 ERROR:  current 
transaction is aborted, commands ignored until end of transaction block. 
Failing Query: CREATE INDEX triple3 ON tag (triple_value). Failing 
Query: CREATE INDEX triple3 ON tag (triple_value)


Can any help me with this?
--
Regards
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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: Why this don't take the real ID values from DB?

2010-02-16 Thread ReynierPM

On 2/16/2010 10:12 AM, Tom Ptacnik wrote:

Is  ID set as primary key in the TEspecialidad table?


I found the problem, the PK is compound by 3 fields and Doctrine have 
problems with this (as far as I know). The solution: leave the PK with 
just one field.


--
Cheers
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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] Why this don't take the real ID values from DB?

2010-02-15 Thread ReynierPM

Hi every:
I have this code in BaseTAfiliadoForm.class.php:

'id_especialidad' = new sfWidgetFormDoctrineChoice(array('model' = 
$this-getRelatedModelName('TEspecialidad'), 'add_empty' = true)),


This generate the following HTML code:

select name=t_afiliado[id_especialidad] id=t_afiliado_id_especialidad
 option value= selected=selected/option
 option value=1Especialidad1/option
/select

But the ID associated to Especialidad1 in TEspecialidad table is 2 not 
1, why this? Every time I try to add a new record I get Invalid 
validation error due to this issue. How can I solve this?

--
Cheers and thx in advance
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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-generator: how to avoid string instead of id

2010-02-11 Thread ReynierPM

Hi every:
I'm working with doctrine:generate-admin task for a while but now I have 
a big problem. When I try to list/show states from state table wich have 
a foreign key with province table I get numeric value for province 
instead of string. Better explain:


t_province:
 id_province  -   name
 1Province 1
 2Province 2

t_state:
 id_state -  id_province   -   name
 1   1 State 1
 2   1 State 2
 3   2 State 3

Understand now?
--
Saludos
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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] admin-generator: how to avoid string instead of id

2010-02-11 Thread ReynierPM

On 2/11/2010 5:12 PM, Stéphane wrote:

Hi,

Try to write a __toString() method in your model classes which will
return $this-getName(); or appropriate.

Cheers,




I've this wrote. See below:

class TEntidad extends BaseTEntidad {
  public function __toString() {
return $this-getNombre();
  }
}

I've to do something else?

--
Cheers
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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] admin-generator: how to avoid string instead of id

2010-02-11 Thread ReynierPM

On 2/11/2010 5:36 PM, Stéphane wrote:

Well it depends of your model.

If getNombre() returns what you expect to see in the row of the list
table, it's ok.

Does it work ?


Cheers,



It works because if I want to add a new State then in the select for 
Province appear the name and not the ID so the getNombre() return the string


I don't know why it don't work

--
Cheers
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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] Admin generator without CSS

2010-02-09 Thread ReynierPM

On 2/9/2010 10:49 AM, NOOVEO - Christophe Brun wrote:

You should run the
plugin:publish-assets
task from your CLI to fix that



I'm having the same problem. I've run the task plugin:publish-assets and 
sfDoctrineGuard folder was copied to /web directory but not sf_admin 
files. Any way to do this manually?


--
Cheers
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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] Misterious behaviour with admin-generator

2010-02-09 Thread ReynierPM

Hi:
One module of my application is giving me this error:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING, 
expecting ')' in 
D:\WebServer\varwww\dev\afilreg\cache\dashboard\dev\modules\autoT_provincia\lib\BaseT_provinciaGeneratorConfiguration.class.php 
on line 101


Hi check the generated file 
BaseT_provinciaGeneratorConfiguration.class.php and just at the 
beggining of the line 101 I can see a misterious F :( I check the file 
schema.yml (see below) and I can't see any problems:


generator:
  class: sfDoctrineGenerator
  param:
model_class:   TPais
theme: admin
non_verbose_templates: true
with_show: false
singular:  ~
plural:~
route_prefix:  t_pais
with_doctrine_route:   true
actions_base_class:sfActions
config:
  actions:
_new: { label: Adicionar }
  fields:
codigo: { label: Código }
nombre: { label: Nombre }
  list:
title: Listar registros
  filter:  ~
  form:~
  edit:
title: Editar registro %%nombre%%
  new:
title: Adicionar registro

¿Any ideas?
--
Cheers
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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 deal with sequences (PostgreSQL) and Doctrine

2010-02-08 Thread ReynierPM

Hi every:
I'm creating my schema.yml file but have one doubt concerning 
sequences. I've see that serial datatype doesn't exists in Doctrine 
so I can't do this:

id_group: { type: serial, primary: true }
But I need this field autoincrement. I was thinking in use this syntax:
id_group: { type: integer(4), primary: true, autoincrement: true }
But I'm not so sure about the result, I mean this create sequences in 
PostgreSQL? How yours deal with this?

--
Cheers
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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] Strange problem with Doctrine and SF

2010-02-07 Thread ReynierPM

Hi every:
I've generated a admin module using doctrine:generate-admin task. When I 
try to access this module I get this error:


500 | Internal Server Error | Doctrine_Connection_Pgsql_Exception
SQLSTATE[42703]: Undefined column: 7 ERROR: column t.reup does not exist
LINE 1: SELECT t.id_entidad AS t__id_entidad, t.reup AS t__reup, t.n...
^. Failing Query: SELECT t.id_entidad AS t__id_entidad, t.reup AS 
t__reup, t.nombre AS t__nombre, t.direccion AS t__direccion, t.email AS 
t__email, t.telefono AS t__telefono, t.id_municipio AS t__id_municipio, 
t.id_organismo AS t__id_organismo FROM t_entidad t


I check the model, database, schema and not reference to field t.reup 
(the problem) appears. What's wrong with this?


I'm using the latest version of Symfony, 1.4.1, and Doctrine bundled 
with this release.

--
Cheers and thanks in advance
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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] sfDoctrine and admin-generator questions

2010-02-07 Thread ReynierPM

Hi:
I'm having several problems right now with sfDoctrine and 
admin-generator. After create successfully one module with 
doctrine:generate-admin task I try all this functionality:


1) When I add a new record and press the button Save and add all is 
fine but if I press the button Save (only) I get this error (from 
Apache logs):


[Sun Feb 07 22:17:26 2010] [error] [client 127.0.0.1] Action 
t_provincia/show does not exist., referer: 
http://regafi.localhost/dashboard_dev.php/t_provincia/new
[Sun Feb 07 22:17:37 2010] [error] [client 127.0.0.1] Action 
t_provincia/show does not exist.


Why?

2) I run the task plugin:publish-assets and all the content from 
sfDoctrine was copied to /web folder, now when I access to the interface 
created with admin-generator I can't see any style, why?


3) When I have a relation between two tables for example Province/State 
and I want to add a new State (this one belongs to a Province) I get 
this No description for object of class TProvincia in the combo 
(select), why?

--
Cheers and waiting for your help
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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] Changing where sfDoctrineGuard login form is

2010-02-06 Thread ReynierPM

Hi:
I want to change the position of the form generated by sfDoctrineGuard 
plugin to the header of my page. Does any body knows if this is 
possible? Can I use a partial to do this?

--
Cheers and thanks in advance
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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 know if a user is logged in

2010-02-05 Thread ReynierPM

Hi:
I need to know if a user is logged in or not from my layout.php file, is 
this possible? How?

--
Cheers
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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 know if a user is logged in

2010-02-05 Thread ReynierPM

On 2/5/2010 5:38 PM, Michał Piotrowski wrote:



I'm using something like this
 ?php if ($sf_user-isAuthenticated()): ?
   li
 ?php echo link_to('Wyloguj', '@sf_guard_signout') ?
   /li
 ?php else: ?
   li
 ?php echo link_to('Logowanie', '@sf_guard_signin') ?
   /li
   li
 ?php echo link_to('Rejestracja', '@sf_guard_register') ?
   /li
 ?php endif; ?

Regards,
M


Thx a lot, both of you


--
Saludos
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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: sfDoctrineGuard and more than one Profile

2010-02-01 Thread ReynierPM

On 2/1/2010 8:12 AM, Tom Ptacnik wrote:

I don't know if you are asking for such a simple think, or I just
don't uderstand :)

You can simply put all schemas your tables into the schema.yml file
and then add a relations between sf_guard_user table and you tables.



Hi:
I know that adding relations between tables perhaps can work but how I 
can handle all this from one single interface? I mean adding a Profile 
to sfDoctrineGuard can handle just one profile table but then I break my 
DB integrity due to mix tables. Understand now?


--
Cheers
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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: sfDoctrineGuard and more than one Profile

2010-02-01 Thread ReynierPM

On 2/1/2010 12:41 PM, ashton wrote:

I think that you are looking for something like this:

detect_relations: true

Profile:
   columns:
 sf_guard_user_id: integer(4)
 first_name: string(255)
 middle_name: string(255)
 last_name: string(255)
 email_address: string(255)
   relations:
 User:
   class: sfGuardUser
   foreignType: one

InfrequentlyAccessed:
   columns:
 sf_guard_user_id: integer(4)
 favorite_song: string(255)
 waist_size: interger(4)
   relations:
 User:
   class: sfGuardUser
   foreignType: one

This way you will have two user profiles, both pointing at the user
table.

Is this what you are talking about?



Yes, it's what I'm talking about. I'll give a try and let you know how goes
--
Cheers and thx
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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] Problems while trying to create a new project and using --installer option

2010-02-01 Thread ReynierPM

On 1/25/2010 12:59 PM, Eno wrote:


Have you tried using an absolute path?



Hi Eno:
I move my development enviroment to a dedicated Linux server. So I try 
this 3 commands:


1)
r...@ep-reynier:/var/www/sfwebacula# symfony generate:project 
--installer=./installer.php sfwebacula ReynierPM


The installer ./installer.php does not exist.

2)
r...@ep-reynier:/var/www/sfwebacula# symfony generate:project 
--installer=installer.php sfwebacula ReynierPM


The installer installer.php does not exist.

3)
r...@ep-reynier:/var/www/sfwebacula# symfony generate:project 
--installer=/var/www/sfwebacula/installer.php sfwebacula ReynierPM


The installer /var/www/sfwebacula/installer.php does not exist.

And none of them works. What I'm doing wrong at this point?

--
Cheers
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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] It's possible to use two differents DB in the same application

2010-02-01 Thread ReynierPM

Hi:
I have a application running in some server with a DB (db1 from now) 
created and I don't have permissions to add tables or change something 
else. I have other DB (db2 from now) server in wich I want to put 
sfDoctrineGuard tables for user management. My question is: it's 
possible to deal with this in the same application? I mean for example 
if I work with sfDoctrineGuard modules then the DB to use will be db2 
and for others reports will be used db1. Can any help me here?

--
Cheers and thx
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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] It's possible to use two differents DB in the same application

2010-02-01 Thread ReynierPM

Hi Alvaro and thx for your reply:

On 2/1/2010 8:54 PM, Alvaro Videla wrote:

I think this is in the docs, in the definitive guide somewhere, anyway...


You're right I check and it's there (Chapter 8: Database Connections) 
but I not understand some parts. For example the guide says this:


For each environment, you can define many connections. Each connection 
refers to a schema being labeled with the same name. The default 
connection name used is propel and it refers to the propel schema in 
Listing 8-3. The name option allows you to create another connection:


 php symfony --name=main configure:database 
mysql://login:pas...@localhost/blog


So if I understood right this add a entry in my databases.yml file like 
this:


main:
  propel:
   class:  sfPropelDatabase
   param:
 dsn:  mysql://login:pas...@localhost/blog

I'm right or I'm lossed?

Anyway I work with Doctrine the same behaviour apply to this ORM or 
exists another way to achieve this?



create a file

db1.schema.yml with the tables for that db


In this file goes the entries related to the DB where I can't change 
anything?



and then

db2.schema.yml with the other tables.


So n this other file goes the entries related to the sfDoctrineGuard plugin?


You also need to add db1 and db2 connection properties in the databases.yml

Any sample on this?

--
Cheers
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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] sfDoctrineGuard and more than one Profile

2010-01-31 Thread ReynierPM

Hi every:
I'm building a application based on Symfony and sfDoctrineGuard. The ER 
design of the DB have a lot of tables asociated to sf_guard_users table 
so exists more than one table storing profiles fields. Wich are the 
better ways to deal with this?

--
Cheers and thx in advance
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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] Problems while trying to create a new project and using --installer option

2010-01-25 Thread ReynierPM

Hi every:
I need to create a installer for a project and I run this command for 
accomplish this task:


D:\WebServer\varwww\sfwebaculasymfony generate:project sfwebacula 
ReynierPM --installer=./installer.php


But get this error:
The installer ./installer.php does not exist.

What I'm doing wrong? Thx in advance
--
Cheers
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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] Changes in models?

2010-01-25 Thread ReynierPM

On 1/25/2010 12:04 PM, Pax95 wrote:

I have a book writing about Symfony 1.0 and tricks written there
doesn't work anymore in 1.4. What is equivalent of ModelPeer::doSelect
()?

Code:
$this-Welcome = PgNewTable::doSelect( new Criteria );

Error:
Fatal error: Call to undefined method PgNewTable::doSelect() in D:
\Serwer\www\palmgames\apps\palmgames\modules\news\actions
\actions.class.php on line 26



You will need to check specific ORM manual, this changes are not related 
to Symfony (I think maybe I'm wrong ;) ), see the changes maded to the 
API and so on.


--
Cheers
ReynierPM

--
You received this message because you are subscribed to the Google Groups symfony 
users group.
To post to this group, send email to symfony-us...@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] sfDoctrineGuard Plugin Status

2010-01-13 Thread ReynierPM

Hi every:
I didn't know if this is the right place to ask if not please my 
apologies. I'm using sfDoctrineGuard plugin for a while in some 
projects. For now I have latest release 4.0.1 but I have a question: the 
SVN version is updated and ready to use in production enviroments or not?

--
Cheers and thx in advance
Ing. Reynier Pérez Mira
-- 
You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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] Strange sfGuard bug/problem

2009-12-02 Thread ReynierPM
Patrick Fong wrote:
 Has anyone experienced this or able to point me in the right direction.
Yes, I have this problem in the past and off course you're missing add 
some routes. Look at docs for the topic Customize sfGuardAuth redirect 
handling there is your solution. Just add this:

all:
   sf_guard_plugin:
 success_signin_url:  @my_route?param=value
 success_signout_url: module/action

To your app.yml file and the problem is solved, at least for me works
-- 
Cheers
ReynierPM

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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: The template TestTwigSuccess.php does not exist or is unreadable in .

2009-11-22 Thread ReynierPM
Richtermeister wrote:
 You're not doing anything with the output of twig. as far as the
 surrounding symfony application is concerned, you're executing the
 TestTwig action, and it's looking for a corresponding template. In
 your case you want to echo the twig output and then say:
 return sfView::NONE, or stick the twig output into the response
 directly..
 
 Hope this helps,
 Daniel

Hi Daniel:
I'm trying to get this working and I can't. As follow your suggestions 
and wrote this piece of code at the end of the function:

$template = $twig-loadTemplate('install.index.html');
echo $template-render(array());
return sfView::NONE;

But it didn't show me the template content. Why?
Cheers
-- 
ReynierPM

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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=.




[symfony-users] The template TestTwigSuccess.php does not exist or is unreadable in .

2009-11-19 Thread ReynierPM
Hi every:
I'm trying to use Twig on Symfony 1.4RC1. After read the docs I've wrote 
this piece of code:

function preExecute() {
 require_once sfConfig::get('sf_lib_dir').'/twig/Autoloader.php';
 Twig_Autoloader::register();
}

public function executeTestTwig() {
 $loader = new 
Twig_Loader_Filesystem(sfConfig::get('sf_web_dir').'/themes/default');
 $twig = new Twig_Environment($loader, array(
 'cache' = sfConfig::get('sf_cache_dir').'/templates'
 ));

 $twig-loadTemplate('install.index.html');
}

But surprise when I call the method I get this error:

500 | Internal Server Error | sfRenderException
The template TestTwigSuccess.php does not exist or is unreadable in .

What I'm doing wrong?
Cheers and thanks in advance

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@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=.




Re: [symfony-users] Re: My first work with Twig template

2009-11-18 Thread ReynierPM
Matt Robinson wrote:
 I'd like to use Twig in Symfony 1.3 too. A couple of years ago I
 implemented phpTAL pretty easily in Symfony 1.0 by writing a custom
 view class and telling Symfony to use that instead of its usual
 sfPHPView. Perhaps Twig would be similarly easy?

Well if you can provide me those class maybe I can take a look inside 
them and try to tweak Twig for work with SF 1.3. I haven't time right 
now because I'm very busy at work but in my free times I can do that.

Cheers

--

You received this message because you are subscribed to the Google Groups 
symfony users group.
To post to this group, send email to symfony-us...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Re: My first work with Twig template

2009-11-16 Thread ReynierPM

Davide Borsatto wrote:
 It's just my opinion but...
 Using the templating component in sf 1.X is not a great idea. It
 offers a few advantages, but as far as I've seen it's quite hard to
 implement (it replaces a whole layer of the MVC architecture, it IS a
 big deal) without strange hacks and keeping the code clean.
 
 IMHO, templates the way we know them are just fine. At least for the
 1.x releases. Sf 2 will be a MAJOR code rewrite, and it will include
 (I think) Twig and the templating component, for those who don't want
 to forced to use a template language. So just stick with the current
 system, it works just fine :)
 

I agree with you but I need theming functionalities in my project for 
this I will like to use Twig or some other template library. As far as I 
know Symfony in 1.0.x and 1.2.x branch doesn't supported.

Can any say me if exists another way to do this?

--~--~-~--~~~---~--~~
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] My first work with Twig template

2009-11-15 Thread ReynierPM

Hi every:
I've working in my first project based on Symfony 1.3 and Twig (latest). 
For that I check first the doc but I missing something because I'm 
getting a error. See what I've done.

class installActions extends sfActions {
   public function preExecute() {
 
require_once(sfConfig::get('sf_lib_dir').'/twig/sfTemplateAutoloader.php');
 sfTemplateAutoloader::register();
   }

   public function executeIndex(sfWebRequest $request) {
 $helperSet = new sfTemplateHelperSet(array(
 new sfTemplateHelperJavascripts(),
 new sfTemplateHelperStylesheets(),
 ));

 $loader = new 
sfTemplateLoaderFilesystem(sfConfig::get('sf_web_dir').'/themes/%name%.php');
 $engine = new sfTemplateEngine($loader, array(), $helperSet);
 echo $engine-render('frontend/index');
   }

Then my templates are located under:
/web
  /themes
   /default
/frontend
 index.php
/css
  style.css
/images
/js
layout.php

The code for layout.php is this one:
!DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN 
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd;
html xmlns=http://www.w3.org/1999/xhtml; xml:lang=?php echo 
$sf_user-getCulture() ? lang=?php echo $sf_user-getCulture() ?
   head
 title
   ?php $this-output('title', 'Sistema de Gestioacute;n de 
Incidencias v0.1') ?
   ?php echo $this-get('title', 'Sistema de Gestioacute;n de 
Incidencias v0.1') ?
   ?php if (!$this-output('title')): ?
   Sistema de Gestioacute;n de Incidencias v0.1
   ?php endif; ?
 /title
 ?php include_http_metas() ?
 ?php include_metas() ?
 ?php $this-stylesheets-add('/css/style.css') ?
   /head
   body
 div id=wrapper
   div id=headernbsp;/div
   div id=navbarnbsp;/div
   div id=center?php echo $this-get('content') ?/div
   div id=footerp copy; copyright 2009 strong?php echo 
__('compania') ?/strong | ?php echo __('Valid: ') ? a 
href=http://validator.w3.org/check/referer;XHTML/a | a 
href=http://jigsaw.w3.org/css-validator/check/referer;CSS/a/p/div
 /div
   /body
/html

And the code for index.php is just a Hello World for testing purpose. 
When I try to render the page I get this error:

500 | Internal Server Error | InvalidArgumentException
The template frontend/index does not exist (renderer: php).
stack trace

 * at ()
   in SF_ROOT_DIR\lib\twig\sfTemplateEngine.php line 87 ...
   84.
   85. if (false === $template)
   86. {
   87.   throw new InvalidArgumentException(sprintf('The 
template %s does not exist (renderer: %s).', $name, $renderer));
   88. }
   89.
   90. $this-current = $name;
 * at sfTemplateEngine-render('frontend/index')
   in 
SF_ROOT_DIR\apps\frontend\modules\install\actions\actions.class.php line 
91 ...
   88. $loader = new 
sfTemplateLoaderFilesystem(sfConfig::get('sf_web_dir').'/themes/%name%.php');
   89. $engine = new sfTemplateEngine($loader, array(), 
$helperSet);
   90.
   91. echo $engine-render('frontend/index');
   92.   }

Where is the error here? What I'm missing?
Cheers


--~--~-~--~~~---~--~~
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] Some question regarding SF plugins

2009-11-09 Thread ReynierPM

Hi every:
I use several plugins in my applications: sfGuardDoctrine, 
sfExtraWidgets and so on. I follow Symfony Blog every
day and see that many of those plugins are updated constantly. My
question here is: are the tarball (.tar.gz) updated too or just the SVN
code is updated? When those tarballs are updated? Personally I prefer to
download the tarball and install it on my local server.
Cheers and thanks in advance
-- 
Saludos
ReynierPM

--~--~-~--~~~---~--~~
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] It's possible use Template component in SF 1.3

2009-11-08 Thread ReynierPM

Hi every:
I'm asking if it's possible to use Template Component in a SF 1.3 
Project. I need to develop my application skinnable and I tough that 
Template Component will be nice for this purpose. If it wasn't possible: 
any others suggestions?
-- 
Cheers
ReynierPM

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