[symfony-users] SFPropelPager

2010-10-25 Thread Parijat Kalia
Hey guys, running into a cheesy error with sf propel pager... as we know... we can carry out pagination as follows: $pager = new SFPropelPager('Articles', 5); My pagination is fine, what's bugging me is the 2nd argument of SFPropelPager, which is the amount of data that can be seen across a

Re: [symfony-users] Re: return view as pdf.

2010-10-25 Thread Gareth McCumskey
You do not need to run php code inside EOF. Just generate HTML into the variable like you do normally with php: $html = html; $html .= head/head; .. foreach ($array as $key=$value) { $html .= $value; } etc. 2010/10/22 José Regalado djd...@gmail.com On Oct 22, 4:31 pm, Gareth McCumskey

Re: [symfony-users] Re: return view as pdf.

2010-10-25 Thread Gareth McCumskey
Also, something thats not as simple but makes better re-use of symfony resources is to create your own custom view for the html of the pdf. For example in the action of one of our projects: $this-setViewClass('pdf'); $this-setLayout('pdf_layout');

[symfony-users] dynamic security with credentials

2010-10-25 Thread Ben Bieker
Hi dear symfony community, my question is how do I do this: I want to seure my wep-app with different user-roles. But a admin user should be able to configure what group can access which modules in my symfony app. I can configure credentials in the security.yml, but that would be a static

[symfony-users] Re: doctrine query and not in (select ...) doesnt work

2010-10-25 Thread axel at
hm adding an alias in the subquery leads to a doctrine exception :-( regards axel On 24 Okt., 16:52, Stéphane stephane.er...@gmail.com wrote: Perhaps you should add an alias in the subquery for the table ? Regards, Before Printing, Think about Your Environmental Responsibility! Avant

[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

Re: [symfony-users] dynamic security with credentials

2010-10-25 Thread Ben Bieker
Hi, thank you for the advice. I will look into the source code of sfGuard and see how it works. Maybe I will have to implement my own authentication plugin for symfony, because I have to migrate an already existing application with a user-database to symfony. Greetings, Ben On Mon, 25 Oct 2010

[symfony-users] Re: sfDoctrineGuard user profile one-to-one relationships

2010-10-25 Thread Massimiliano Arione
On 23 Ott, 01:31, Jonotron jonot...@gmail.com wrote: I want to create a one-to-one relationship between users and companies. Since I shouldn't be editing the sfDoctrineGuard schema's directlyI've created a sfGuardUserProfile model: You can override plugin's schema without editing it:

[symfony-users] per RECORD/Entity permissions?

2010-10-25 Thread Dennis Gearon
Does sfGuard allow assigning 'per record' permissions, or only the usual Symfony 'per application/action' permissions? Dennis Gearon Signature Warning It is always a good idea to learn from your own mistakes. It is usually a better idea to learn from others’ mistakes, so you

Re: [symfony-users] per RECORD/Entity permissions?

2010-10-25 Thread Stéphane
Hi, sfGuard allows you to assign permissions to users and/or groups. symfony module/action security.yml let you define which permission is needed to the user to be able to execute the action. Anyway, you can use the sfGuard model to create per-record and per-action permissions, like

[symfony-users] Re: SFPropelPager

2010-10-25 Thread Richtermeister
Hey there, without knowing exactly what your issue is, if you're using Propel15 (as you could and should ;) you can just use $query - paginate($page, $per_page); and that works guaranteed. Daniel On Oct 24, 11:05 pm, Parijat Kalia kaliapari...@gmail.com wrote: Hey guys, running into a cheesy

[symfony-users] Re: WkHtmlToPdf in Symfony

2010-10-25 Thread fxsymfony
I haven't tried Snappy yet as we almost have the original script working (it generates the pdf's but the images in subfolders are not shown). @min: I will come into that same problem soon, I haven't got into it yet but I was planning on passing the full html from the action directly into

[symfony-users] Getting DOMDocument::schemaValidate() errors :(

2010-10-25 Thread 6dney
Hi all, I've tried to use Symfony2 with xampp on windows ( last version [pgp5.3.2], i tried the last beta [php5.3.3] ). I did check the Mandatory requirements and all is good. But I'm still getting a Document::schemaValidate() errors in file src

[symfony-users] Re: Dynamic Table?

2010-10-25 Thread xpanshun
Thanks Eno! I used your direction to devise the dynamic table I wanted! :D On Oct 20, 11:43 pm, Eno symb...@gmail.com wrote: On Wed, 20 Oct 2010,xpanshunwrote: In other words, I want product images (along with some other info) to be displayed in a sort of a dynamic table according to how

[symfony-users] You must pass an array parameter to the clean() method

2010-10-25 Thread B.O.G
Hi Can someone tell me what it means ??? This error comes out when i try to update : executeUpdate for an editing form. Thanks!!! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are

[symfony-users] Debug Toolbar Memory Use Value

2010-10-25 Thread Jonathan Franks
What does this amount mean? I have some pages with a value as high as 12544.0 KB. Is that bad? Thanks Jonathan -- 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

[symfony-users] Ajax tips in Symfony?

2010-10-25 Thread Parijat Kalia
Hey people... Sorry if this email sounds hurried up, but I am hurried up! So I have a page view where I have a comments feature. So users can comment upon the data they preview on the page. It is offcourse, a post operation, but I would like the comments to appear simultaneously as I implement

[symfony-users] criteria::notlike

2010-10-25 Thread Parijat Kalia
Hey guys, trying to implement a criteria for my sql query which has a not like clause in it. this is how I proceed: $c-add(CommentsPeer::COMMENT,'likes',Criteria::NOTLIKE); I have also carried out trial and error with the following: $c-add(CommentsPeer::COMMENT,'likes',Criteria::NOT_LIKE);

Re: [symfony-users] Re: SFPropelPager

2010-10-25 Thread Parijat Kalia
Daniel...thanks! Haven't encountered the paginate function as such in the walkthrough I referredhere is what I did: $pagerOp = new sfPropelPager('Questions',5); $pagerOp-setCriteria($c); $pagerOp-setPage($this-getRequestParameter('page', 1)); $pagerOp-init(); Not sure

[symfony-users] Frames? Slots? Structure help

2010-10-25 Thread xpanshun
Hi all, I created a product gallery with the following format: bracelets | [image 1] [image 2] [image 3] earrings | [image 4] [image 5] [image 6] necklaces| [image 7] [image 8] [image 9], etc. sets| So the left side contains links that are in the