[symfony-users] SFPropelPager
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 single page. I have the user specify through a select menu, the total amount of data he expects to be reflected across a single page.Each of the answer options correspond to choices, for ,e.g : 1=1, 2='2', 3='3'...etc...so on...basically in my azction, I retrieve 1 or 2 or 3 depending on the user choice.this I then send as an argument to my pager function, which seemingly does not recognize it. It simply displays no data at all./..i.e it will display 0 data when infact I have chosen 10 as the option.. What's funny is that the way I am sp[ecifiny this default is like: if(!isset($totalQuestions)) $totalQuestions = 5; $pager = new SFPropelPager('Articles', $totalQuestions); the default is working fine, that is in the first case, 4 articles can be seen...but when I hit the query button, and have a post happening, although the value is prpagated across the function, it just does not seem to work.. I hope I described this well...please let me know if anyone has any leads on this. -- 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] Re: return view as pdf.
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 gmccums...@gmail.com wrote: http://www.symfony-project.org/plugins/sfTCPDFPlugin mccumskey.blogspot.com twitter: @garethmcc Yes but my difficult is here: HI. i am using tcpdf and the following code: $config = sfTCPDFPluginConfigHandler::loadConfig(); // create new PDF document $pdf = new sfTCPDF(); // set document information $pdf-SetCreator(PDF_CREATOR); $pdf-SetAuthor('Nicola Asuni'); $pdf-SetTitle('TCPDF Example 061'); $pdf-SetSubject('TCPDF Tutorial'); $pdf-SetKeywords('TCPDF, PDF, example, test, guide'); // set default header data //$pdf-SetHeaderData(PDF_HEADER_TITLE.' 061', PDF_HEADER_STRING); // set header and footer fonts $pdf-setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); $pdf-setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); // set default monospaced font $pdf-SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); //set margins $pdf-SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); $pdf-SetHeaderMargin(PDF_MARGIN_HEADER); $pdf-SetFooterMargin(PDF_MARGIN_FOOTER); //set auto page breaks $pdf-SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); //set image scale factor $pdf-setImageScale(PDF_IMAGE_SCALE_RATIO); //set some language-dependent strings $pdf-setLanguageArray($l); $pdf-AddPage(); $html = EOF dynamic html code, css ?php echo $foo; foearch()... ?, etc. EOF; // output the HTML content $pdf-writeHTML($html, true, false, true, false, ''); // reset pointer to the last page $pdf-lastPage(); //Close and output PDF document $pdf-Output(sfConfig::get('sf_web_dir').'/pdf/'.'mipdf.pdf', 'F'); echo link_to('pdf', '/pdf/'.'mipdf.pdf'); // throw new sfStopException(); ? I need fill the $html with dynamic content: dynamic css, html and i am open and close php tags, etc. into EOF, can not do it. some way?, or how i do conver the dynamic html output to pdf?.. Would some way to dump the symfony action(view) to PDF? 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 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 -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- 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] Re: return view as pdf.
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'); $this-setTemplate('pdfReport'); $response = sfContext::getInstance()-getResponse(); //Clear name to HTTP headers here, cannot figure out how to padd variables // to custom view class $response-clearHttpHeaders(); $response-setHttpHeader('Content-Disposition', 'attachment; filename=WhateverFilenameYouWant.pdf;'); sfContext::getInstance()-setResponse($response); Then you can create your own custom view class extending the sfPHPView class symfony provides. Doing this is too complex for a single mail so here's a link: http://obvioushints.blogspot.com/2009/01/custom-views-in-symfony-10.html 2010/10/22 José Regalado djd...@gmail.com On Oct 22, 4:31 pm, Gareth McCumskey gmccums...@gmail.com wrote: http://www.symfony-project.org/plugins/sfTCPDFPlugin mccumskey.blogspot.com twitter: @garethmcc Yes but my difficult is here: HI. i am using tcpdf and the following code: $config = sfTCPDFPluginConfigHandler::loadConfig(); // create new PDF document $pdf = new sfTCPDF(); // set document information $pdf-SetCreator(PDF_CREATOR); $pdf-SetAuthor('Nicola Asuni'); $pdf-SetTitle('TCPDF Example 061'); $pdf-SetSubject('TCPDF Tutorial'); $pdf-SetKeywords('TCPDF, PDF, example, test, guide'); // set default header data //$pdf-SetHeaderData(PDF_HEADER_TITLE.' 061', PDF_HEADER_STRING); // set header and footer fonts $pdf-setHeaderFont(Array(PDF_FONT_NAME_MAIN, '', PDF_FONT_SIZE_MAIN)); $pdf-setFooterFont(Array(PDF_FONT_NAME_DATA, '', PDF_FONT_SIZE_DATA)); // set default monospaced font $pdf-SetDefaultMonospacedFont(PDF_FONT_MONOSPACED); //set margins $pdf-SetMargins(PDF_MARGIN_LEFT, PDF_MARGIN_TOP, PDF_MARGIN_RIGHT); $pdf-SetHeaderMargin(PDF_MARGIN_HEADER); $pdf-SetFooterMargin(PDF_MARGIN_FOOTER); //set auto page breaks $pdf-SetAutoPageBreak(TRUE, PDF_MARGIN_BOTTOM); //set image scale factor $pdf-setImageScale(PDF_IMAGE_SCALE_RATIO); //set some language-dependent strings $pdf-setLanguageArray($l); $pdf-AddPage(); $html = EOF dynamic html code, css ?php echo $foo; foearch()... ?, etc. EOF; // output the HTML content $pdf-writeHTML($html, true, false, true, false, ''); // reset pointer to the last page $pdf-lastPage(); //Close and output PDF document $pdf-Output(sfConfig::get('sf_web_dir').'/pdf/'.'mipdf.pdf', 'F'); echo link_to('pdf', '/pdf/'.'mipdf.pdf'); // throw new sfStopException(); ? I need fill the $html with dynamic content: dynamic css, html and i am open and close php tags, etc. into EOF, can not do it. some way?, or how i do conver the dynamic html output to pdf?.. Would some way to dump the symfony action(view) to PDF? 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 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 -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- 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
[symfony-users] dynamic security with credentials
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 solution. How can I use these per-module-restrictions with credentials dynamically? So that a module always checks from the DB what credential is required for the module that is currently called? Many thanks four your replies in advance! -- 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
[symfony-users] Re: doctrine query and not in (select ...) doesnt work
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 d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Sun, Oct 24, 2010 at 4:33 PM, axel at axel.zu...@gmail.com wrote: hello, I need the follwing query: - select * from person p where ... and (p.personid not in (select personid form person2building...) where person2building is an m:n relation connecting person and building table via primary keys the following doctrine query $q = Doctrine_Query::create() -from('Person p') ... -andWhere('p.personid not in (select personid from person2building where buildingid = ' . $buildingid . ') '); generates the following sql statement, that doesn't work because of the (select p.pesonid ... ) in the subselect section - select * from person p ... and (p.personid not in (select p.personid form person2building...) any ideas how to solve this? -- 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 -- 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
[symfony-users] Using generator.yml, is there any way to hide the fields of the i18n forms in the admin?
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 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] dynamic security with credentials
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 12:58:04 +0200, Stéphane stephane.er...@gmail.com wrote: If I understand right, what you want is already implemented. To secure a module/action with a credential, you have to: 1/define the needed credential within security.yml 2/create the credential in the DB 3/link your users or groups with the credential. There is a module to manage credentials, users and groups, look in the sfDoctrineGuardPlugin. Regards, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! -- 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
[symfony-users] Re: sfDoctrineGuard user profile one-to-one relationships
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: http://www.symfony-project.org/gentle-introduction/1_4/en/17-Extending-Symfony#chapter_17_sub_doctrine cheers Massimiliano -- 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
[symfony-users] per RECORD/Entity permissions?
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 do not have to make them yourself. from 'http://blogs.techrepublic.com.com/security/?p=4501tag=nl.e036' EARTH has a Right To Life, otherwise we all die. -- 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] per RECORD/Entity permissions?
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 %CLASS%_%OBJECT_ID%_%MODULE%_%ACTION% which will create, for example, for a module named myClassModule and its show action, for an object of class myClass with id 2, this permission : myClass_2_myClassModule_show. Then, another problem is assigning the permission to the users/groups. Regards, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Mon, Oct 25, 2010 at 6:38 PM, Dennis Gearon gear...@sbcglobal.net wrote: 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 do not have to make them yourself. from 'http://blogs.techrepublic.com.com/security/?p=4501tag=nl.e036' EARTH has a Right To Life, otherwise we all die. -- 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 -- 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
[symfony-users] Re: SFPropelPager
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 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 single page. I have the user specify through a select menu, the total amount of data he expects to be reflected across a single page.Each of the answer options correspond to choices, for ,e.g : 1=1, 2='2', 3='3'...etc...so on...basically in my azction, I retrieve 1 or 2 or 3 depending on the user choice.this I then send as an argument to my pager function, which seemingly does not recognize it. It simply displays no data at all./..i.e it will display 0 data when infact I have chosen 10 as the option.. What's funny is that the way I am sp[ecifiny this default is like: if(!isset($totalQuestions)) $totalQuestions = 5; $pager = new SFPropelPager('Articles', $totalQuestions); the default is working fine, that is in the first case, 4 articles can be seen...but when I hit the query button, and have a post happening, although the value is prpagated across the function, it just does not seem to work.. I hope I described this well...please let me know if anyone has any leads on this. -- 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
[symfony-users] Re: WkHtmlToPdf in Symfony
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 wkhtml2pdf, like explained here: http://www.symfonyexperts.com/question/show/id/141 Let me know if it works for you. On Oct 23, 11:10 pm, ming minga...@gmail.com wrote: On Oct 22, 9:29 am, Florian sideral.undergro...@gmail.com wrote: Rectification: $snappy = new SnappyPdf; $snappy-setExecutable('/usr/bin/wkhtml2pdf'); // or whatever else $snappy-save('http://google.fr', '/tmp/google.pdf'); Your code work right, but how I can retrieve a page that required authentication? When I call $snappy-save, wkhtmltopdf open a new http connection with no cookie and credential... -- 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
[symfony-users] Getting DOMDocument::schemaValidate() errors :(
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 \vendor\symfony\src\Symfony\Component\Routing\Loader \XmlFileLoader.php line 138 :( Here is some logs: at ErrorHandler-handle('2', 'DOMDocument::schemaValidate() [domdocument.schemavalidate]: Invalid Schema', 'C:\Documents and Settings\\Bureau\wwwtest\bo\src\vendor\symfony\src\Symfony \Component\Routing\Loader\XmlFileLoader.php', '138', array('dom' = object(DOMDocument), 'file' = 'C:\Documents and Settings\\Bureau \wwwtest\bo\app/../src/vendor/symfony/src/Symfony/Bundle \WebProfilerBundle/Resources/config/routing/profiler.xml', 'parts' = array('Documents and Settings', '', 'Bureau', 'wwwtest', 'bo', 'src', 'vendor', 'symfony', 'src', 'Symfony', 'Component', 'Routing', 'Loader', 'schema', 'routing', 'routing-1.0.xsd'), 'drive' = 'C:/', 'location' = 'file:///C:/Documents%20and%20Settings//Bureau/ wwwtest/bo/src/vendor/symfony/src/Symfony/Component/Routing/Loader/ schema/routing/routing-1.0.xsd', 'current' = false)) at DOMDocument-schemaValidate('file:///C:/Documents%20and%20Settings/ /Bureau/wwwtest/bo/src/vendor/symfony/src/Symfony/Component/ Routing/Loader/schema/routing/routing-1.0.xsd') in C:\Documents and Settings\xxx\Bureau\wwwtest\bo\src\vendor\symfony \src\Symfony\Component\Routing\Loader\XmlFileLoader.php line 138 » my activated modules: extension=php_bz2.dll extension=php_mbstring.dll extension=php_exif.dll extension=php_gd2.dll extension=php_gettext.dll extension=php_imap.dll extension=php_mysql.dll extension=php_mysqli.dll extension=php_pdo_mysql.dll extension=php_pdo_odbc.dll extension=php_pdo_sqlite.dll extension=php_soap.dll extension=php_sockets.dll extension=php_sqlite.dll extension=php_sqlite3.dll extension=php_xmlrpc.dll extension=php_xsl.dll Could someone help me with this please Regards 6dney -- 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
[symfony-users] Re: Dynamic Table?
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 many entries are in the database. To get images to display 4 per row, then move to the next row, etc. So just make an HTML table. You just need to maintain a counter as you loop through the list and echo each TD, and start a new row when the remainder left after dividing the counter by the number of items per row (i.e. the modulus) is zero. Pretty basic stuff really. -- -- 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
[symfony-users] You must pass an array parameter to the clean() method
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 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] Debug Toolbar Memory Use Value
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 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] Ajax tips in Symfony?
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 this. I have 0 experience regarding Ajax, but if anyone can send pointers to me as to exactly how this can happen, that would be really cool! Regards Parijat -- 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
[symfony-users] criteria::notlike
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); $c-add(CommentsPeer::COMMENT,'%likes%',Criteria::NOTLIKE); $c-add(CommentsPeer::COMMENT,'%likes%',Criteria::NOT_LIKE); also made use of not_equal $$c-add(CommentsPeer::COMMENT,'likes',Criteria::NOTEQUAL); $c-add(CommentsPeer::COMMENT,'likes',Criteria::NOT_EQUAL); None of these work, neither are they causing any background errors in the action within which they are called. Yet they always yield the 'likes' query in the results. Not sure what I am doing wrong here, would anybody like to point out any errors? Regards, Parijat Kalia -- 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] Re: SFPropelPager
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 where the method call you mentioned fits in here. what exactly is the $page variable supposed to hold. or is that a pre defined variable ??? Also it isn't a member function of sfPropelPager, so what exactly is $query that you are mentioning here Thanks again Parijat On Mon, Oct 25, 2010 at 10:46 AM, Richtermeister nex...@gmail.com wrote: 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 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 single page. I have the user specify through a select menu, the total amount of data he expects to be reflected across a single page.Each of the answer options correspond to choices, for ,e.g : 1=1, 2='2', 3='3'...etc...so on...basically in my azction, I retrieve 1 or 2 or 3 depending on the user choice.this I then send as an argument to my pager function, which seemingly does not recognize it. It simply displays no data at all./..i.e it will display 0 data when infact I have chosen 10 as the option.. What's funny is that the way I am sp[ecifiny this default is like: if(!isset($totalQuestions)) $totalQuestions = 5; $pager = new SFPropelPager('Articles', $totalQuestions); the default is working fine, that is in the first case, 4 articles can be seen...but when I hit the query button, and have a post happening, although the value is prpagated across the function, it just does not seem to work.. I hope I described this well...please let me know if anyone has any leads on this. -- 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 -- 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
[symfony-users] Frames? Slots? Structure help
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 following categories (of products): bracelets, earrings, necklaces, and sets. How can I make it so that when the user clicks one of these links, the result images for that criteria appear in the right hand panel. What kind of page structure do I need? I already know how to retrieve the array using DQL and show the images, but I can't fathom how I can make them appear on the right side--reloading the images to fit the criteria. I don't think frames will work here (tell me if I'm wrong) and I don't know how to work with slots. :( I would appreciate any help and direction you can provide for me to achieve this. 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.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en