[symfony-users] creating drop down in index template

2009-09-01 Thread sunny
Creating a Drop-Down List Based on a Foreign Key Column in index template . --~--~-~--~~~---~--~~ 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 T

[symfony-users] Primary Key Forgery Attack?

2009-09-01 Thread Jeremy Thomerson
I have a question. In Symfony / Propel forms, when I am editing an object, the primary key is a hidden field. I have verified that by using Tamper Data (or anything of the nature), I can modify a different row in the database (iow, someone else's information) by simply changing the ID value in t

[symfony-users] Re: help on Virtual columns display in List view of symfony demo setup tutorial day 12

2009-09-01 Thread yyyyxxxx42
Ofcoz Eno. I thank you for suggestion. If you have done any other tricks also and can share to make such working. I regenerate cache using command: 'php symfony cc' and it ran also without any problem. On Sep 1, 6:12 pm, Eno wrote: > On Tue, 1 Sep 2009, 42 wrote: > > jobeet/1_2/Doctrine

[symfony-users] Re: RestRouting and routing.cache data

2009-09-01 Thread selam
becouse i try want to separate frontend and api functionality on web, i needed three leg api key validation (with request sign) on my projetc. my frontend application just showing data, (only select on all tables, just session and users table included insert and update), other all stuff update,de

[symfony-users] Re: help with customizing sfguard

2009-09-01 Thread jarthel
also, there's a topic about "Customize the sfGuardUser model". It seems I can make changes to the schema.yml for "user profiles". Does that mean I need to also make appropriate changes to my DB? thanks again --~--~-~--~~~---~--~~ You received this message because y

[symfony-users] Re: parameters in configure()

2009-09-01 Thread Eno
On Tue, 1 Sep 2009, Germana Oliveira wrote: > BUT I HAVE TWO PROBLEMS: > > 1. with a new form (isNew): > Notice: Undefined offset: 0 in > /home/germana/www/indepabis/lib/form/PersonaForm.class.php on line 53 Were these form classes generated from models? Also what does the code of PersonaForm.

[symfony-users] Re: Zend Guardian, Ion Cube and Source Guardian

2009-09-01 Thread Sid Ferreira
Tried a bit more, and indeed it seem to loose all classes' names, both Ion and Zend had same errors. On Tue, Sep 1, 2009 at 21:41, Sid Ferreira wrote: > I didn't googled before trying, Im just writting about my tests with the > tools (all demo). > I've used a sf 1.0 project cause it was the most

[symfony-users] help with customizing sfguard

2009-09-01 Thread jarthel
I created "sfGuardAuth" folder in my app-name-here/modules here. I then create the foldesr "actions" and "templates" inside sfGuardAuth. In actions folder, I created a new actions.class.php and place the following contents: http://pastebin.ca/1551008 In templates, I created my own signinSuccess

[symfony-users] Re: global functions: where do I put it?

2009-09-01 Thread jarthel
thank you :) On Sep 2, 9:22 am, Serkan Koyuncu wrote: > You don't need to extend from anything. Just to be sure if file name is > emailChecker.class.php, then your class should be named as > class emailChecker { } > > Symfony will load it for you if it under /lib folder. > Just call it like that

[symfony-users] Zend Guardian, Ion Cube and Source Guardian

2009-09-01 Thread Sid Ferreira
I didn't googled before trying, Im just writting about my tests with the tools (all demo). I've used a sf 1.0 project cause it was the most handy at that moment. *Ion Cube*: Got 7 errors, and died instead of run: data\symfony\skeleton\module\module\actions\actions.class.php data\symfony\skeleton\c

[symfony-users] Re: global functions: where do I put it?

2009-09-01 Thread Serkan Koyuncu
You don't need to extend from anything. Just to be sure if file name is emailChecker.class.php, then your class should be named as class emailChecker { } Symfony will load it for you if it under /lib folder. Just call it like that anywhere in your project: $checker = new emailChecker(); Regard

[symfony-users] Working with filters

2009-09-01 Thread Reynier Pérez Mira
Hi every: I have the following schema.yml file: AreaTematica: tableName: area_tematica actAs: [Timestampable] columns: id: type: integer(4) primary: true autoincrement: true nombre: type: string(35) notnull: true Cursos: tableName: cursos

[symfony-users] Re: global functions: where do I put it?

2009-09-01 Thread jarthel
if I create it as a class, do I need to extend anything? thanks again On Sep 1, 3:33 pm, Stefan Koopmanschap wrote: > Hi, > > The best way to do this in my opinion is to create a class in the lib/ > folder (or in a subfolder, for instance lib/jarthel) where you put the > method. So for instance

[symfony-users] Re: save a rendered partial in db

2009-09-01 Thread cirpo
dumb question, sorry :P cirpo On Sep 1, 11:40 pm, alessandro cinelli wrote: > Hi, > > can you save a rendered partial in the db instead of sending it to the > browser? > > thanks, > > cirpo --~--~-~--~~~---~--~~ You received this message because you are subscrib

[symfony-users] parameters in configure()

2009-09-01 Thread Germana Oliveira
I have been doing this: class DenunciaForm extends BaseDenunciaForm { public function configure() { ... //embedded forms if ($this->isNew()) { $denuncianteForm = new PersonaForm(null, array('natural')); $denunciadoForm = new PersonaForm(null, arr

[symfony-users] save a rendered partial in db

2009-09-01 Thread alessandro cinelli
Hi, can you save a rendered partial in the db instead of sending it to the browser? thanks, cirpo --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-

[symfony-users] Re: Right join in Doctrine

2009-09-01 Thread Lukas Kahwe Smith
On 01.09.2009, at 21:41, jaime wrote: > > Hi everyone > > I need to make a right join on Doctrine, because I'm working in a old > database not designed for an ORM. > > Someone knows how to do a right join on Doctrine, because nothing > appears in the documentation. err .. right join's are just

[symfony-users] Right join in Doctrine

2009-09-01 Thread jaime
Hi everyone I need to make a right join on Doctrine, because I'm working in a old database not designed for an ORM. Someone knows how to do a right join on Doctrine, because nothing appears in the documentation. Thanks --~--~-~--~~~---~--~~ You received this mess

[symfony-users] sfDoctrineActAsTaggablePlugin question

2009-09-01 Thread Kevin Bond
Hi Guys, I have a question about this plugin for anyone who knows about it. I have an Article model that I have set as Taggable. The article model has an 'active?' column. When selecting tags (ie using TagTable::getPopulars) I only want tags that are attached to active Articles to be returned.

[symfony-users] Re: RestRouting and routing.cache data

2009-09-01 Thread Eno
On Sep 1, 8:30 am, selam wrote: > I try write a rest route class for using in my project,  i write that > becouse i needed route with get (as query_params) and post params and > checking all data must be valid before execute action. Im wondering why you need to write a RESTful route class when

[symfony-users] Re: jobeet day 12 - getJobeetCategory()

2009-09-01 Thread Eno
On Sep 1, 5:52 am, stefan wrote: > I am reading the doctrine edition. In day 12, it says "But the > JobeetJob class already has a getJobeetCategory() method that returns > the related category object". I opened lib/model/doctrine/ > JobeetJob.class.php and I can't see a getJobeetCategory(). Neit

[symfony-users] Calendar

2009-09-01 Thread RajKodali
Hi, I am looking for help in integrating http://www.k5n.us/webcalendar.php . I am looking at any existing calendar that can be ported easily to Symfont 1.2 and are also iCal compliant. The primary requirement is to integrate an open standard calendar which can be integrated to mail Clients/Calend

[symfony-users] Re: global functions: where do I put it?

2009-09-01 Thread Hellmich Dennis
You could also try, to include this as a helper. Am 01.09.2009 um 08:13 schrieb jarthel: > > I have an "email address" format checker that I found in the net. It's > straight PHP with a function inside. > > I'm a bit unsure on where to put it. I thought of putting it somewhere > in "project-her

[symfony-users] Re: help on Virtual columns display in List view of symfony demo setup tutorial day 12

2009-09-01 Thread Eno
On Tue, 1 Sep 2009, 42 wrote: > jobeet/1_2/Doctrine/en/12#chapter_12_sub_virtual_columns). I think I > followed the guide as per described and changing in file 'apps\backend > \modules\job\config\generator.yml'. But still job list in admin > section appears tabular. Did you regenerate an

[symfony-users] RestRouting and routing.cache data

2009-09-01 Thread selam
Hi, I try write a rest route class for using in my project, i write that becouse i needed route with get (as query_params) and post params and checking all data must be valid before execute action. I Write a new class named RestRoute and define in routing.yml, and i define sfNoRouting in factor

[symfony-users] Re: Form layout

2009-09-01 Thread micke
Hello Mark Maybe this could help some. http://www.thatsquality.com/articles/7-days-of-symfony-1-1-forms-widgets-and-validators-day7 /Michael On 1 Sep, 12:42, Mark Smith wrote: > Symfony seems to implement forms in such a way that it uses tables for > html layout. Everything I have read to s

[symfony-users] help on Virtual columns display in List view of symfony demo setup tutorial day 12

2009-09-01 Thread yyyyxxxx42
Hi All If anybody has idea on how Virtual columns functionality works in day 12 of symfony demo setup tutorial(http://www.symfony-project.org/ jobeet/1_2/Doctrine/en/12#chapter_12_sub_virtual_columns). I think I followed the guide as per described and changing in file 'apps\backend \modules\job\co

[symfony-users] Re: error on day 12 of symfony tutorial

2009-09-01 Thread yyyyxxxx42
It's a wrong post i raised. I fixed it following the guide properly. Thanks On Sep 1, 11:54 am, 42 wrote: > I am getting an error like > > "Warning: Invalid argument supplied for foreach() in C:\wamp\www > \development\sfprojects\jobeet\lib\vendor\symfony\lib\generator > \sfModelGenerat

[symfony-users] Textarea value

2009-09-01 Thread Mark Smith
Hi, I am contructing a text area widget inside the configure method of my form like this: $this->setWidget("Notes", new sfWidgetFormTextarea(array(),array ('value'=>$this->entity->Notes))); In the template when I try to print out the widget like this: The resulting html is: For a textare

[symfony-users] Form layout

2009-09-01 Thread Mark Smith
Symfony seems to implement forms in such a way that it uses tables for html layout. Everything I have read to say this is incredibly bad web design practice. It seems like an odd decision for such a well thought out framework. Is the only way to override this behavior to access the form field nam

[symfony-users] jobeet day 12 - getJobeetCategory()

2009-09-01 Thread stefan
Hello, I am reading the doctrine edition. In day 12, it says "But the JobeetJob class already has a getJobeetCategory() method that returns the related category object". I opened lib/model/doctrine/ JobeetJob.class.php and I can't see a getJobeetCategory(). Neither in the base class. Although it

[symfony-users] Re: I18n + doctrine + admin generator = Doctrine_Validator_Exception

2009-09-01 Thread christopher o'connor
Hi, I have had the same error when we upgraded to doctrine 1.1.3 using symfony 1.2.7 When I added the following code it seemed to solve the problem. $this->getUser()->setCulture('en'); The only thing I could track it down to was the Culture in User (in my case en_GB), but if I set it to 'en' The

[symfony-users] generated admin module with default template

2009-09-01 Thread Mihai Rusoaie
Hello! How can I generate an admin module, but keep the default template (the one that appears in the modules generated with generate-admin)> Thank you! Mihai Rusoaie e-Business Consultant Mobile: +40 72 RUSOAIE Web: http://mihai.rusoaie.com --~--~-~--~~~---~--~~

[symfony-users] Re: how do I found our if anything has been added to a Criteria object? How do I find the length of the current query?

2009-09-01 Thread ev...@freshheads.com
You should say this should work too $this->listOfMembersWhoMeetSearchCriteria = array(); $c = new Criteria(); $uvaStatusArray = $request->getParameter('uva_status'); if (!is_array($uvaStatusArray)) { $uvaStatusArray = array(); } $c->addOr(sfGuardUserProfilePeer::UVA_STATUS, $uvaStatusArray,

[symfony-users] error on day 12 of symfony tutorial

2009-09-01 Thread yyyyxxxx42
I am getting an error like "Warning: Invalid argument supplied for foreach() in C:\wamp\www \development\sfprojects\jobeet\lib\vendor\symfony\lib\generator \sfModelGeneratorConfiguration.class.php on line 316" in the admin new, edit job post page. But when i comment class parameter in the belo

[symfony-users] Re: mysqli + doctrine

2009-09-01 Thread Johannes Heinen
Thanks Masaki, thats what i already did: php5-mysql .deb-package is shipped with everything needed to build a mysql based php app. This was merly a question about if it is possible to explicit use mysqli with a php "pdo-style" driver/adapter (due to the fact that the built in doctrine-adapter "Do