[symfony-users] Problems paginating with DbFinder Plugin

2008-08-30 Thread Reynier Perez Mira
Hi every: I'm developing a new application and I trying DbFinder Plugin. Following the documentation I build this method: function executeListarAutores() { $this->pag = DbFinder::from('Autores')->paginate($currentPage = 1, $maxResultsPerPage = sfConfig::get('app_cantidadpaginadodefecto')); }

[symfony-users] Integrating FirePHP in Symfony Core

2008-09-04 Thread Reynier Perez Mira
First of all I'm not a ZF user I'm a Symfony user. Recently and reading on Internet Zend Co. release ZF 1.6 and it comes with some new features. One of them is really interesting and it's FirePHP Log Support. I'm asking if will be possible include this feature in the next Symfony 1.2 version. I

[symfony-users] Problems with DbFinder Wiki Page

2008-09-18 Thread Reynier Perez Mira
Hi every: I spent some time trying to access to DbFinder Wiki[1] Page and I can't I get this message always: Content Encoding Error The page you are trying to view cannot be shown because it uses an invalid or unsupported form of compression. The page you are trying to view cannot be shown bec

[symfony-users] dbFinder problem

2008-09-24 Thread Reynier Perez Mira
Hi every: Recently I start a new project with Symfony 1.1.2. After created all model classes I'm trying to use dbFinder plugin but I get this error: Notice: Undefined variable: finder in D:\Development\WWW\gestion.local\plugins\DbFinderPlugin\lib\DbFinder.php on line 171 Fatal error: Call to

[symfony-users] Re: dbFinder problem

2008-09-24 Thread Reynier Perez Mira
> Doctrine class? Which version of the plugin are you using? Can you > paste the finder initialization line? > > François > > 2008/9/24 Reynier Perez Mira <[EMAIL PROTECTED]>: > > > > Hi every: > > Recently I start a new project with Symfony 1.1.2. Af

[symfony-users]

2008-09-24 Thread Reynier Perez Mira
Hi: I'm developing a new Project with Symfony 1.1.x and I want to use the new Form Framework. When I build the project I generated also the model using propel:build-model and then the respective forms using propel:build-forms. Then I have this method: public function executeAdicionarAutor($req

[symfony-users] Re: [symfony-users]

2008-09-24 Thread Reynier Perez Mira
> Try to execute "symfony cc" Thanks, this solve the problem Ing. Reynier Pérez Mira Grupo de Soporte al Desarrollo - Dirección Técnica IP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To

[symfony-users] Symfony 1.1, i18n y sfGuard

2008-10-03 Thread Reynier Perez Mira
Hi every: I'm developing a fresh application and I take Symfony 1.1.4 as Symfony release. I'm using also the sfGuard plugin to take advantage in user and group managment. Because I speak Spanish I want to internationalize the app and for that I do this: 1) Activate the right options in setting

[symfony-users] Understanding routing system

2008-10-04 Thread Reynier Perez Mira
Hi every: I have a problem with routing system. I have this rule: list_author: url: /modules/author/list param: { module: geslicsoft, action: ListAuthors } So if I call the URL: http://gestion.local/backend_dev.php/geslicsoft/modules/author/list this rule match and will be executed, no?

[symfony-users] Problems with redirection and sfGuard for Symfony 1.1

2008-10-06 Thread Reynier Perez Mira
Hi every: I'm using sfGuard plugin in one of my applications. When I login inside the application I get a server 500 response wich is a Internal Server Error. I see the Apache logs and I can see this: [Mon Oct 06 20:17:00 2008] [error] [client 127.0.0.1] Empty module and/or action after parsin

[symfony-users] Re: Problems with redirection and sfGuard for Symfony 1.1

2008-10-06 Thread Reynier Perez Mira
Ok sorry about that bunch of code. Here is the code http://paste.org/index.php?id=3975 also what you mean with try to login using DEV environment? Cheers and thanks in advance Ing. Reynier Pérez Mira Grupo de Soporte al Desarrollo - Dirección Técnica IP > Do you _REALLY_ think that your erro

[symfony-users] Re: Problems with redirection and sfGuard for Symfony 1.1

2008-10-06 Thread Reynier Perez Mira
Well I try this URL http://gestion.local/backend_dev.php and when I login inside the system I get this message error: [InvalidArgumentException] An internal URI must contain a module and an action (module/action) ("" given). Also you can check the backend_dev.log content here http://paste.org/

[symfony-users] Re: Problems with redirection and sfGuard for Symfony 1.1

2008-10-07 Thread Reynier Perez Mira
Before this email I have not because reading sfGuard documentation in somewhere said that this is not obligatory so I didn't write in the file. Today I added this clear the cache try again and the same error still appearing. Is this a sfGuard problem? Cheers and thanks in advance Ing. Reynie

[symfony-users] How can I access to the actual module name?

2008-10-09 Thread Reynier Perez Mira
Hi every: I have this code in the preExecute action: PHP Code: public function preExecute() { $this->moduleName = $this->getModuleName(); } Then in my layout.php file I have this: echo $moduleName; If I try the URL http://gestion.local/backend_dev.php/geslicsoft the $moduleName variab

[symfony-users] Re: How can I access to the actual module name?

2008-10-09 Thread Reynier Perez Mira
Thanks for your reply Ant but I resolve the problem using $sf_context var from the view layout.php. Now the code is: $moduleName = $sf_context->getModuleName(); if (isset($moduleName)) { switch ($moduleName) { case "geslicsoft": include_partial('Li

[symfony-users] sfForms doesn't validate

2008-10-09 Thread Reynier Perez Mira
Hi every: I created a Forms based on a Propel Model and using the propel:build-forms task. I try to personalize a little more the generated form adding some rules for validation. See the code below: class BaseAutoresForm extends BaseFormPropel { public function setup() { $this->setW

[symfony-users] Re: sfForms doesn't validate

2008-10-09 Thread Reynier Perez Mira
t why are you > extending the base class? Normal procedure is to extend the generated > form class. > > > Reynier Perez Mira wrote: > > Hi every: > > I created a Forms based on a Propel Model and using the propel:build-forms > > task. I > try to perso

[symfony-users] Why this ...

2008-10-13 Thread Reynier Perez Mira
Hi every: I have this routing defined: cambiar_cultura: url: /change/lang/* param: { module: geslicsoft, action: ChangeAppCulture } requirements: { lang: (?:es|en|fr|it) } I have this link in my template: link_to(image_tag('icn_spanish',array('title'=>__('espanol'),'alt'=>__('espanol')))

[symfony-users] How to deal with Check Boxes in Symfony 1.1.4

2008-10-16 Thread Reynier Perez Mira
Hi every: I have a form created using the task propel-build:forms and look like this: class BaseModlicCategoriasForm extends BaseFormPropel { public function setup() { $this->setWidgets(array( 'id_categoria' => new sfWidgetFormInputHidden(), 'titulo_categoria' => new sfWid

[symfony-users] What the character "~" means in schema.yml file

2008-10-17 Thread Reynier Perez Mira
Hi: I have been checking the new form Framework book [1] and I notice something insteresting to me: propel: article: id: ~ title: { type: varchar(255), required: true } slug: { type: varchar(255), required: true } content:longvarch

[symfony-users] Problems with sfDoctrinePlugin

2008-10-26 Thread Reynier Perez Mira
Hi every: I'm trying to migrate my projects from Propel to Doctrine. Today I did a checkout from sfDoctrinePlugin SVN and copy the code to plugins dir. When I try to clear the cache I get this error: D:\Development\WWW\gestion.local>symfony cache:clear --app=backend --env=dev >> cache Clear

[symfony-users] How to work with sfGuard Plugin and sfDoctrine

2008-11-03 Thread Reynier Perez Mira
Hi every: I'm trying to migrate one of my developments to sfDoctrine Plugin but I have a problem: I can not use sfGuard Plugin with sfDoctrine. I get this error when I try to access to the system: [PropelException] No connection params set for propel stack trace * at () in SF_SYMFONY_

[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine

2008-11-03 Thread Reynier Perez Mira
> You need to be using the doctrine version of the plugin, > sfDoctrineGuardPlugin. > Currently you can only get it from SVN. >From this addres: >http://svn.symfony-project.com/plugins/sfDoctrineGuardPlugin/trunk/? Ing. Reynier Pérez Mira Dirección Técnica IP --~--~-~--~~---

[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine

2008-11-03 Thread Reynier Perez Mira
8 11:57 AM > To: symfony-users@googlegroups.com > Subject: [symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine > > Yes, if you are using symfony 1.2 > > A branch exists for 1.0 and 1.1 as well. > > - Jon > > > On Mon, Nov 3, 2008 at 10:58

[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine

2008-11-03 Thread Reynier Perez Mira
> PHP Fatal error: Cannot redeclare class sfGuardPromoteSuperAdminTask in > D:\Development\WWW\gestion.local\plugins\sfGuardPlugin\lib\task\sfGuardCreateAd > minTask.class.php on line 69 Ok, I find a solution for my last problem. I delete the old sfGuardPlugin folder and everything is fine now.

[symfony-users] Re: How to work with sfGuard Plugin and sfDoctrine

2008-11-03 Thread Reynier Perez Mira
> Hmm. Because you have 2 classes with the same name defined :) > Search your code and find out where and why. OK, I find but without success and for that I start from zero and delete every generated class. I try again using this task: D:\Development\WWW\gestion.local>symfony doctrine-build-al

[symfony-users] Can I install Symfony 1.0.x and 1.1.x and 1.2.x in the same server

2008-11-04 Thread Reynier Perez Mira
Hi every: I have this question since few days ago because I have at least 12 projects in development and not all are in the same Symfony version. So I ask here if I can have Symfony 1.0.18 and Symfony 1.1.4 and Symfony 1.2 BETA1 in the same server and how to do this? Regards Ing. Reynier Pérez

[symfony-users] Re: Can I install Symfony 1.0.x and 1.1.x and 1.2.x in the same server

2008-11-04 Thread Reynier Perez Mira
> yes you can, It was actually discussed a few weeks ago. The trick is to > install one, > then copy it to a new path like, "symfony" to "symfony-1.0" then do an > upgrade, and > copy "symfony" to "symfony-1.1" and them upgrade to 1.2 > > Then in each project change the data in config/config

[symfony-users] What about the Symfony Guide ...

2008-12-01 Thread Reynier Perez Mira
Hi every: I have one doubt about the release of Symfony 1.2. Is the documentation updated or not? What is the state of this? Regards and thanks in advance Ing. Reynier Pérez Mira Dirección Técnica IP --~--~-~--~~~---~--~~ You received this message because you a

[symfony-users] Re: What about the Symfony Guide ...

2008-12-01 Thread Reynier Perez Mira
> http://www.symfony-project.org/book/1_2/ This is outdate see by yourself the Chapter 10 Forms for example Ing. Reynier Pérez Mira Dirección Técnica IP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony user

[symfony-users] Re: What about the Symfony Guide ...

2008-12-01 Thread Reynier Perez Mira
> -> http://www.symfony-project.org/book/forms/1_2/en/ I agree with you Fabian we can use this book (that remains incomplete yet) but this is not the only thing that changes in the new Symfony 1.2. There are a lots of things changed here for example: * Routing * Forms * Request * and much

[symfony-users] Problem with Task or with PHP?

2008-12-04 Thread Reynier Perez Mira
Hi every: I started a new project with Symfony 1.2 and because I have a database created I need to build the schema file. I try to run the task: > symfony12 propel:buil-schema And I get this error: Failed loading /usr/lib/php5/20060613+lfs/xcache.so: /usr/lib/php5/20060613+lfs/xcache.so: can

[symfony-users] Re: Problem with Task or with PHP?

2008-12-04 Thread Reynier Perez Mira
install the xcache extension. > > On Dec 4, 6:22 pm, "Reynier Perez Mira" <[EMAIL PROTECTED]> wrote: > > Hi every: > > I started a new project with Symfony 1.2 and because I have a database > created I need to build the schema file. I try to run the task: >

[symfony-users] Validating before show up the form

2009-03-25 Thread Reynier Perez Mira
Hi every: I have a n:m relationship between two tables: modlic_dvd y modlic_licencia. As every here know this kind of relation generate a new table: modlic_rel_dvd_licencia with the primary keys of the main tables. I generate the model, the filters and the forms for this three tables without pr

[symfony-users] Can Symfony works with PHP 5.3RC1

2009-05-01 Thread Reynier Perez Mira
Hi: Can Symfony work with PHP 5.3RC1 without any problems? Cheers and thanks in advance Ing. Reynier Pérez Mira Dirección Técnica IP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post

[symfony-users] Problems with sfExtraWidgetsPlugin

2009-05-05 Thread Reynier Perez Mira
Hi every: Recently I start to use this amazing plugin but I get an error when trying to work with "datepicker" component. The error message, provide by Firebug, is this: $ is not defined dp_display("tb_reservacion_f_entrada") date

[symfony-users] Re: Problems with sfExtraWidgetsPlugin

2009-05-05 Thread Reynier Perez Mira
> Hi, > the sfExtraWidgetsPlugin is not bundled with the jquery lib and so it > is not loaded automatically. > Therefore you have to define and load the according jquery and jquery > ui assets. > > Example within PHP (but you should better define this assets in the > view.yml): > > $response->ad

[symfony-users] Help with sfGuard and LDAP external method

2009-05-06 Thread Reynier Perez Mira
Hi every: I'm trying to integrate sfGuard with my LDAP. For that I add this lines to my app.yml file: /frontend/config/app.yml all: sf_guard_plugin: check_password_callable: [LDAP, checkLDAPPassword] Then I create a file called LDAP.class.php and put inside /frontend/lib directory. The m

[symfony-users] Re: Help with sfGuard and LDAP external method

2009-05-06 Thread Reynier Perez Mira
> Compare: > > > check_password_callable: [LDAP, checkLDAPPassword] > > class LDAPclass extends sfGuardSecurityUser { > > in the config you say LDAP, but later you call it LDAPclass, this is > why you get the following error: Thanks FASI, the error now is solved but it doesn't work with LDAP. I

[symfony-users] Inserting new users into sfGuard tables

2009-05-07 Thread Reynier Perez Mira
Hi every: Recently I send some emails asking how to integrate sfGuard and LDAP authentication. Now I'm asking how to save, at least, the username and password once it was authenticated over LDAP. Any help? Cheers Ing. Reynier Pérez Mira Dirección Técnica IP --~--~-~--~~--

[symfony-users] Re: Inserting new users into sfGuard tables

2009-05-07 Thread Reynier Perez Mira
> I've done integration with ldap or similar systems before and I always > integrated my model directly with the central auth server. So that > anytime > the model changes, the same changes are made there. You can do this by > utilizing the postSave() events, etc. Can you send me an example? J

[symfony-users] Re: Syntax for embedded forms

2009-05-07 Thread Reynier Perez Mira
main_form['sub_form']['field_to_show'] Best Ing. Reynier Pérez Mira Dirección Técnica IP > -Original Message- > From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] > On Behalf Of Steve the Canuck > Sent: Thursday, May 07, 2009 5:13 PM > To: symfony users > Subject

[symfony-users] Why this behaviour

2009-05-11 Thread Reynier Perez Mira
Hi every: I try to hide a widget if a user (managed by sfGuard) has not "administrador" privileges. For that in my Form class named TbReservacionForm.class.php I do this: $context = sfContext::getInstance(); $user = $context->getUser(); if (!$user->hasCredential('administrador')) { unset($th

[symfony-users] Re: Why this behaviour

2009-05-12 Thread Reynier Perez Mira
> Where did you put this code? I mean in which method in the class? Wich code? This one? > > $context = sfContext::getInstance(); > > $user = $context->getUser(); > > > > if (!$user->hasCredential('administrador')) { > > unset($this['estado_reservacion']); > > } In the config() from TbReservac

[symfony-users] Re: Why this behaviour

2009-05-12 Thread Reynier Perez Mira
> Can you paste trace of the error? Sure ... # at () in SF_SYMFONY_LIB_DIR\form\sfForm.class.php line 956 ... 953. { 954. if (!$widget = $this->widgetSchema[$name]) 955. { 956. throw new InvalidArgumentException(sprintf('Widget "%s" does not e

[symfony-users] Re: Why this behaviour

2009-05-12 Thread Reynier Perez Mira
> In your _form.php you have the following line: > > renderLabel(), $form['estado_reservacion'] ?> > > It is trying to access the widget which does not exists anymore and therefore > throwing the error. So I need this logic in the template? Any other way? How the admin-generator does? Cheers I

[symfony-users] Problems with Propel while trying to insert data into PostgreSQL database

2009-05-12 Thread Reynier Perez Mira
Hi every: I'm trying to insert some data into a PostgreSQL DB and I get this error: 500 | Internal Server Error | PropelException Unable to get sequence id. [wrapped: SQLSTATE[42P01]: Undefined table: 7 ERROR: no existe la relación «tb_edificio_id_eficio_seq» LINE 1: SELECT nextval('tb_edifici

[symfony-users] Why the form isn't saved?

2009-05-14 Thread Reynier Perez Mira
Hi every: I have a form which code is this one (soury for be to long): hasGlobalErrors()): ?> renderGlobalErrors() ?> 'formulario_nuevo_editar')) ?> renderLabel(), $form['nombre_profesor'] ?> renderLabel(), $form['id_apartamento'] ?> renderLabel(), $form['c

[symfony-users] Re: Why the form isn't saved?

2009-05-15 Thread Reynier Perez Mira
> Your form is invalid, because your bind call is not correct. A missing > array_merge call is missing there. > Try this one: You're right. I do the things as you suggested me and the form fail. What you mean with array_merge call is missing? Can you help me there? Also none error is displayed

[symfony-users] Re: Symfony Virtual Machine

2009-05-20 Thread Reynier Perez Mira
Could you include PostgreSQL also? I live in Cuba and because blocking from US I can't download nothing related to MySQL Ing. Reynier Pérez Mira Dirección Técnica IP -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of David Ashw

[symfony-users] Re: Symfony Virtual Machine

2009-05-21 Thread Reynier Perez Mira
> Sure. I'm working on a first run script and I'll include it. Ok, waiting then. Also where I can download the ISO image or .tar.gz or whatever? I can't find it in the site you provide and also my FF doesn't work fine with this site (maybe some add-on is crashing the FF) Cheers Ing. Reynier Pé

[symfony-users] Symfony 1.2 and Doctrine 1.1 problem

2009-05-21 Thread Reynier Perez Mira
Hi every: I want to start with Doctrine ORM and nothing better for that than Jobeet for Doctrine. Because JW release the Doctrine 1.1 I update the libraries at D:\Server\SF\lib\plugins\sfDoctrinePlugin\lib\. Then following the Jobeet Book I try to empty the cache: symfony cc but I get this erro

[symfony-users] Help with link cross applications

2009-05-22 Thread Reynier Perez Mira
Hi every: I read this great article[1] wrote by Fabien and try to create a link between "frontend" and "backend" applications. For that I modified some parts of the original code from Fabien and now looks like this: class frontendConfiguration extends sfApplicationConfiguration { protected

[symfony-users] Re: Help with link cross applications

2009-05-22 Thread Reynier Perez Mira
> Bring it up a folder to the /frontend/lib directory Nothing it doesn't work Ing. Reynier Pérez Mira Dirección Técnica IP --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group

[symfony-users] Re: Help with link cross applications

2009-05-22 Thread Reynier Perez Mira
> Ok - I thought it would pick it up from there - otherwise put it into > apps/myapp/lib/helper/ Thx, now it works but show me another error: 500 | Internal Server Error | sfConfigurationException The route "reservacion/new" does not exist. This route exists in /apps/backend/config/routing.yml so

[symfony-users] OT: Help with Query in Doctrine

2009-05-27 Thread Reynier Perez Mira
Hi every: I started to use Doctrine today and it's amazing but I have some problems. Can any help me to build this query: > select sum(JobBytes),count(*) from Job where Endtime <= NOW() and > UNIX_TIMESTAMP(EndTime) > UNIX_TIMESTAMP(NOW())-86400 I try this: $last24bytes = Doctrine_Query::crea

[symfony-users] Error while trying to extend from sfGuard

2009-06-01 Thread Reynier Perez Mira
Hi every: I try to build my own logic with sfGuard for LDAP authentication because the code in the Wiki doesn't work for me. I'm based on this two posts from Sensio Labs: http://www.symfonylab.com/extra-questions-and-solutions-for-sfguardplugin/ http://www.symfonylab.com/extending-sfguardplugin

[symfony-users] Re: Error while trying to extend from sfGuard

2009-06-02 Thread Reynier Perez Mira
> This is your function signature: > public function executeSignin(sfWebRequest $request) > This is the originl from BasesfGuardAuthActions: > public function executeSignin($request) > They should be the same. Thanks now it works. Ing. Reynier Pérez Mira --~--~-~--~~~

[symfony-users] Adding a field to sfGuard Signin

2009-06-02 Thread Reynier Perez Mira
Hi every: Because I have a big problems while trying to integrate sfGuard and LDAP I will extend the Signin() method and add my own logic. What I'm want to do is this: 1. Add a sfWidgetFormSelect to make a choice between LDAP and Local. Something like that: class sfGuardFormSignin extends sfFo

[symfony-users] Re: Adding a field to sfGuard Signin

2009-06-03 Thread Reynier Perez Mira
> As to your second question, I've integrated LDAP with sfGuard in the > past. > > First off, I used adLDAP (http://adldap.sourceforge.net/ > documentation.php) to connect to the LDAP server. > > Then I created my own class (myLDAP) with a static method for checking > a username and password aga

[symfony-users] Why the fors always is invalid?

2009-06-06 Thread Reynier Perez Mira
Hi every: I'm trying to build my own logic behind sfGuard plugin. Right now I can authenticate over LDAP but the same user need to exists in the DB also. Why? I don't know but this is what I'm see. For this I proposed myself do something. First I write this code inside /apps/frontend/lib/myUser

[symfony-users] Re: Why the form isn't saved?

2009-06-06 Thread Reynier Perez Mira
> Let me see your current used code please. Maybe there is still a > mistake in binding request values to your form. Hi Frank: I didn't reply to you until now because I get the other form working but now I'm running a similar problem, thx for the help also. I try to override the Signin() method

[symfony-users] Re: Why the form isn't saved?

2009-06-06 Thread Reynier Perez Mira
> When you do not have overwritten the sfGuardFormSignin then your logic > fails due to the post validator of this form. > Look in "sfGuardValidatorUser" and it should open your eyes. This > validator fetches an existing user from the database and returns the > cleaned data, when no user could be

[symfony-users] Why this action from a custom form doesn't take values ...

2009-06-07 Thread Reynier Perez Mira
Hi every: I have this two methods in my class: public function executeFiltrarPorApartamentoForm(sfWebRequest $request) { $this->form = new TbPorApartamentoForm(); $this->setTemplate('porApartamento'); } public function executeFiltrarPorApartamento(sfWebRequest $request) { echo 'Enter

[symfony-users] How to build my own filters

2009-06-08 Thread Reynier Perez Mira
Hi every: I need filter some data and for that nothing better than the "filters" generated using symfony propel:build-filters or even better using admin-generator filters but I need a special filter for a given role based on user permissions. Does anybody know how to do this? I was thinking and

[symfony-users] Redirect a user from inside sfGuardSecurity or sfGuardValidatorUser class

2009-06-08 Thread Reynier Perez Mira
Hi every, see this code: class sfGuardValidatorUserCustom extends sfGuardValidatorUser { protected function doClean($values) { $username = isset($values[$this->getOption('username_field')]) ? $values[$this->getOption('username_field')] : ''; $password = isset($values[$this->getOption('

[symfony-users] Symfony + Propel + Multiple Schemas

2008-03-03 Thread Reynier Perez Mira
Hi every: I'm asking if Symfony 1.0.11 can work with multiple schemas in PostgreSQL. If the answer is yes, exists any guide or any documentation about how to configure the propel.ini and databases.yml? Cheers and thanks in advance Ing. Reynier Pérez Mira Grupo Soporte al Desarrollo - Dirección

[symfony-users] Working with slots first time

2008-03-24 Thread Reynier Perez Mira
Hi every: I have a menu and I need this menu specific only for admin pages. For that I think the better option is "slots". Well I put this code inside backend/templates/layout.php: And in my backend/modules/license/templates/EditAutorSuccess.php the menu code: Here goes my menu Ho

[symfony-users] Accesing config values

2008-04-07 Thread Reynier Perez Mira
Hi every: I need to paginate some values from a query. This is not a problem because I can use sfPropelPager class. For that I do this at first: public function executeListar() { $this->pag = new sfPropelPager('Nombre_Clase', cantidad_por_pagina); } Now I want to create some global var and ac

[symfony-users] Re: Symfony + Propel + Multiple Schemas

2008-04-10 Thread Reynier Perez Mira
Hi every: > Define "multiple schemas". What you mean with "define multiples schemas"? I understand by "schema" at least in PostgreSQL (the SGBD I use in my project now) a set of objects (tables, views, indexes, etc) that belongs to an user account and as Oracle Wiki [1] said It is often used

[symfony-users] Re: Symfony + Propel + Multiple Schemas

2008-04-10 Thread Reynier Perez Mira
> lol thats useful :) Nah seriously, does anyone from Doctrine read > these forums and could give us any direction? :) Maybe we should be > posting this on the Doctrine forum too? :) A friend mine in spanish community/list made a modifications to PgSQLDatabaseInfo and PgSQLConnection classes [1]

[symfony-users] Re: Symfony + Propel + Multiple Schemas

2008-04-10 Thread Reynier Perez Mira
> Within the same database or does each user have a separate database? Yep, within the same database. > We too have been working with legacy code where we have to work with > existing tables but also add new tables for new features (which > usually becomes a new database with its own set of table

[symfony-users] sfGuard installing problems

2008-04-10 Thread Reynier Perez Mira
Hi every: I build a clean Project to install, configure and try sfGuard and LDAP. I download the file sfGuardPlugin-1.1.13.tgz from www.symfony-project.org uncompress and start read the file README. I start following every step by step: - Configuring the databases.yml all: propel: class:

[symfony-users] OT: Symfony pages doesn't show

2008-04-14 Thread Reynier Perez Mira
Hi every: I try to read in the Symfony Project site the pages titled: * A week of symfony #66 (31 march -> 6 april 2008) [1] * A week of symfony #67 (7->13 april 2008) [2] [1] http://www.symfony-project.org/blog/2008/04/06/a-week-of-symfony-66-31-march-6-april-2008 [2] http://www.symfony-proj

[symfony-users] How to use relations with sfPropelPager

2008-04-19 Thread Reynier Perez Mira
Hi every: I have two tables, "Categorias" and "SubCategorias". Each "Categoria" have a lot of "SubCategorias" so the relationship between tables is 1:n. I have this method for get every record in SubCategorias table. [code] public function executeListarSubCategorias() { $subcatsql = new

[symfony-users] SO: Documentation about new Symfony 1.1 Features

2008-04-29 Thread Reynier Perez Mira
Hi every: I'm preparing a Symfony mini conference to talk about new functionalities that come with Symfony 1.1. I found a lot of presentations but all them too abstract. I need some extended information, not manual or book, to understand the new features and then can explain to my students. Is

[symfony-users] Route named "editar_dvd" have a mandatory "id_licencia" parameter

2008-04-30 Thread Reynier Perez Mira
Hi every: I have the following routes defined in my routing.yml file: [code] listar_dvd: url: /ListarDVD param: { module: geslicsoft, action: ListarDVD } adicionar_dvd: url: /AdicionarDVD param: { module: geslicsoft, action: AdicionarDVD } editar_dvd: url: /EditarDVD/:id_dvd par

[symfony-users] Re: Route named "editar_dvd" have a mandatory "id_licencia" parameter

2008-05-01 Thread Reynier Perez Mira
Hi Nicolas and thanks for your reply: > Try to invert the editar_dvd and form_editar_dvd routes If by invert you mean this: form_editar_dvd: url: /EditarDVD param: { module: geslicsoft, action: EditarDVD } editar_dvd: url: /EditarDVD/:id_dvd param: { module: geslicsoft, action: Edit

[symfony-users] How I get the Database Connection ...

2008-05-03 Thread Reynier Perez Mira
Hi every: I have this settings in my databases.yml [code] all: propel: class: sfPropelDatabase param: dsn: pgsql://gestec:[EMAIL PROTECTED]/uci_recursos and in my propel.ini this other settings: [code] propel.targetPackage = lib.model propel.packageObjectModel = tru

[symfony-users] Symfony and credentials

2008-05-06 Thread Reynier Perez Mira
Hi every: I've been reading this "Action Security" but I can't find what I'm looking for. Any here know if is possible use credentials for secure a entire module or application (backend)? For now my modules are small, at least 20 actions, but they are growing up and really faster: I use sfGuard

[symfony-users] Loosing partial after validate

2008-05-06 Thread Reynier Perez Mira
Hi every: I have the following code at preExecute() function: [code] public function preExecute() { if ( $this->getModuleName() == "geslicsoft") { $this->mostrar_parcial = "geslicsoft"; } } Then in the "layout.php" I have this other code: [code] When I execute the action, normally,

[symfony-users] Re: How I get the Database Connection ...

2008-05-06 Thread Reynier Perez Mira
Yes it is, I founded few hours ago when I post the message, anyway thanks Ing. Reynier Pérez Mira Grupo Soporte al Desarrollo - Dirección Técnica IP > -Original Message- > From: symfony-users@googlegroups.com > [mailto:[EMAIL PROTECTED] On Behalf Of Whisller > Sent: Tuesday, May 06, 2

[symfony-users] Symfony validators documentation ...

2008-05-09 Thread Reynier Perez Mira
Hi every: I need to use some Symfony validators but I can't find a place to see doc about they. Can any help me with a site or URL or book or anything? Cheers and thanks in advance Ing. Reynier Pérez Mira Grupo Soporte al Desarrollo - Dirección Técnica IP --~--~-~--~~~-

[symfony-users] Problems with translation and I18N

2008-05-15 Thread Reynier Perez Mira
Hi, I've been reading detailed the "Symfony Book" and paying greater attention to the Chapter 13 "I18n And L10n". I need to translate a application interface because I need this in English and Spanish. This is what I have done until now: 1. Enable the use of i18n in /apps/backend/config/settin

[symfony-users] Re: Problems with translation and I18N

2008-05-16 Thread Reynier Perez Mira
m: symfony-users@googlegroups.com [mailto:symfony- > [EMAIL PROTECTED] On Behalf Of Nicolas Perriault > Sent: Friday, May 16, 2008 04:23 AM > To: symfony-users@googlegroups.com > Subject: [symfony-users] Re: Problems with translation and I18N > > > 2008/5/16

[symfony-users] Re: Problems with translation and I18N

2008-05-17 Thread Reynier Perez Mira
s" if the active culture is "es". Could that be the > problem? > > Regards and good luck, > Bernhard > > 2008/5/16 Reynier Perez Mira <[EMAIL PROTECTED]>: > > > > Thanks Nicholas but nothing, I still getting the

[symfony-users] Propel Exception Help

2008-05-17 Thread Reynier Perez Mira
Hi, I'm working in a form and using the input_date_tag helper. By default this construct the dates as dd/mm/. When I try to insert this data to a table I get this error: [PropelException] Unable to parse date/time value for [fecha_creacion] from input: '17/05/2008' I do a Google research f

[symfony-users] Validation problems

2008-05-19 Thread Reynier Perez Mira
Hi, I'm trying to valídate the data inserted in a form. For that reason I created a file called AdicionarLicencias.yml inside the /validate folder in my module. This is the content of the file: /valídate/AdicionarLicencias.yml fillin: enabled: true fields: nombre: required: msg:

[symfony-users] new project sfConfigurationException error

2008-06-05 Thread Reynier Perez Mira
Hi, I'm trying to start a fresh Project and aparently al lis fine. When I open the page for check if every is fine as I thought this error appear: == [sfConfigurationException] Invalid configuration settings: [sf_error_404_module] "default", [sf_error_404_action] "error404" stack trace

[symfony-users] Re: new project sfConfigurationException error

2008-06-05 Thread Reynier Perez Mira
uration it can't find them. > > > On 6/5/08 10:28 AM, "Reynier Perez Mira" <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > I'm trying to start a fresh Project and aparently al lis fine. When I open > the > > page for check if ever

[symfony-users] sfPropel13 Plugin and Symfony 1.0.16 error

2008-06-06 Thread Reynier Perez Mira
Hi every, I follow all the steps in sfPropel13Plugin wiki to install it. I upgrade the Propel libraries to Propel 1.3 Beta2. So because schema.yml haven't any changes between Propel 1.2 and Propel 1.3 I not recreate again the file. This mean I don't use the command: # symfony propel-13-build-s