[symfony-users] WkHtmlToPdf in Symfony

2010-10-19 Thread fxsymfony
Has anyone used WkHtmlToPdf in Symfony? I have it set up on my server (in works on command line) but don't know how to use in Symfony to generate pdf files. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message

Re: [symfony-users] $_GET['variable'] after post

2010-10-19 Thread Gareth McCumskey
With symfony, it automatically takes the $_GET and $_POST parameters from the request and cleans them for you (for security) and makes them available through a different method. To get the $_GET or $_POST parameters you should use $request-getParameter(). For example, using your url of

[symfony-users] Re: WkHtmlToPdf in Symfony

2010-10-19 Thread Florian
Hi, If you're talking of Symfony2, there is a bundle for that : http://symfony2bundles.org/knplabs/SnappyBundle It uses the Snappy php5 lib, which is a wrapper for wkhtml2pdf. http://github.com/knplabs/snappy On 19 oct, 09:03, fxsymfony fari...@gmail.com wrote: Has anyone used WkHtmlToPdf in

[symfony-users] sfDoctrinePlugin Query Cache Configuration

2010-10-19 Thread bzarzuela
Hello, Where do you need to specify attributes for Doctrine in Symfony 1.4? Line 75 of sfDoctrineDatabase.class.php is what I'm trying to affect. $attributes = $this-getParameter('attributes', array()); I'm trying to set the query_cache here: dev: doctrine: class: sfDoctrineDatabase

Re: [symfony-users] perform symfony task function in module action

2010-10-19 Thread Gareth McCumskey
Define a generic class that can perform the function you desire, say in your lib directory. In your task you can use that class to perform the functions on cron by instantiating an object of that class and passing the required parameters (through the constructor or with setters) and because it is

Re: [symfony-users] perform symfony task function in module action

2010-10-19 Thread Gareth McCumskey
Let me rephrase something quick. Its not an abstracted class. The logic to perform the function you want is abstracted to a class meaning it can be reused everywhere and anywhere. On Tue, Oct 19, 2010 at 11:28 AM, Gareth McCumskey gmccums...@gmail.comwrote: Define a generic class that can

[symfony-users] Credentials: is there any difference between [[ ]] and [] ?

2010-10-19 Thread Javier Garci
Hi, is there any difference between credentials: [[admin]] and credentials: [admin] ? Javier -- 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] Credentials: is there any difference between [[ ]] and [] ?

2010-10-19 Thread Gábor Fási
The difference comes when you have multiple credentials: [c1, c2] means the user must have both c1 and c2 [[c1, c2]] means the user must have at least one of c1 and c2 but there's no diff between [admin] and [[admin]]. On Tue, Oct 19, 2010 at 11:53, Javier Garci tirengar...@gmail.com wrote:  

[symfony-users] Re: Credentials: is there any difference between [[ ]] and [] ?

2010-10-19 Thread Florian
check the docs : http://www.symfony-project.org/book/1_2/06-Inside-the-Controller-Layer#chapter_06_sub_complex_credentials As soon as you open a new [ bracket, the logic operator changes ( AND / OR ). You can then switch operator by doing: [[ admin, [editor, creator], supervisor, [[ tester,

[symfony-users] Saving m:n relations without a form (doctrine)

2010-10-19 Thread Phil Moorhouse
Hi, I have the following schema: Artist - ArtistSession - Session Artist: columns: id: primary: true type: integer notnull: true autoincrement: true snip.../snip relations: Sessions: class: Session refClass: ArtistSession local: artist_id

[symfony-users] Re: DI factory

2010-10-19 Thread Florian
Hi, What is your problem ? On 18 oct, 06:24, Daniel khodyre...@gmail.com wrote: Hello, lady and gentlemans! I have some problems with configure this code: class Container extends sfServiceContainer { ... protected function getAclService() {     if (isset($this-shared['acl'])) return

[symfony-users] Doctrine request problem with different connexions

2010-10-19 Thread ziclo
Hello, I have a problem with a doctrine request which uses a link between two differents databases. The schema : == # config/doctrine/schema.yml rsource: connection: doctrine1 columns: oid: {type: integer, primary: true} nameres: { type:

[symfony-users] Day 3 output does not show graphically

2010-10-19 Thread mrhassan
Hi, I have installed Symfony and followed all the instructions upto the end of day 3. Everything worked fine. But at the last step, if I want to see the output of the following page: http://www.jobeet.com.localhost/frontend_dev.php/job the output is not shown. The page shows some data in text

[symfony-users] Re: How to change a POST value posted from form

2010-10-19 Thread hribo
thank you, but is it possible to get request parameter inside the model layer? if yes, what is the proper syntax //lib/model/Reminder.class.php public function save(Doctrine_Connection $conn = null){ //??? $id = $request-getParameter('id'); //not working, how to get parameter from

Re: [symfony-users] Re: How to change a POST value posted from form

2010-10-19 Thread Eno
On Tue, 19 Oct 2010, hribo wrote: thank you, but is it possible to get request parameter inside the model layer? if yes, what is the proper syntax Probably better to get the value in your controller and pass it to a method in the model layer. This is MVC. -- -- If you want to report

[symfony-users] Re: Zend Lucene Search Results - Strange order

2010-10-19 Thread Jonathan
found this... http://trac.symfony-project.org/ticket/5859 implemented suggested solution #3. It works now! Thanks On Oct 18, 10:56 pm, Jonathan Franks jonat...@ifranks.com wrote: I've followed the Jobeet Tutorial chapter on search and managed to implement a lucene based search engine for

Re: [symfony-users] Zend Lucene Search - Parser problem

2010-10-19 Thread Jonathan Franks
Hi Adam, The chapter after search adds implements getting the results by ajax. The javascript that sends the request adds an asterisk (*) to the end of the search query. You can add asterisks to the ends of the words in the user search query. On 19 Oct 2010, at 10:59, Adam wrote: Hi I

[symfony-users] Re: Zend Lucene Search - Parser problem

2010-10-19 Thread Adam
Hi, Thx for your fast reply. Bad bad javascript :). Is there a way to search for word parts? example: search saw result chainsaw, woodsawlikething etc ( so its like *saw* but i get Error: At least 3 non-wildcard characters are required at the beginning of pattern. ) On okt. 19, 16:38, Jonathan

[symfony-users] Question about i18nTable in Jobeet

2010-10-19 Thread Javier Garci
Hi, in Jobeet there is this part below of the schema: jobeet_category: _attributes: { isI18N: true, i18nTable: jobeet_category_i18n } id: ~ jobeet_category_i18n: id: { type: integer, required: true, primaryKey: true, foreignTable: jobeet_category, foreignReference:

[symfony-users] Question with form

2010-10-19 Thread eliana m.
hello. I have a question. I can build a form with a field that does not exist in the model? Thank you for your help. -- 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

Re: [symfony-users] Error sencillo

2010-10-19 Thread Martin Ibarra Cervantes
Creo que eso es el theme podrian ser bien las GTK theme o bien creo que hicieron el ejemplo en una Mac OS :-) que es lo mas seguro .. On Tue, Oct 19, 2010 at 6:54 AM, rfvillavicen...@cav.uci.cu wrote: Miren descargué las imagenes y los css, los puse dentro del directorio web pero hay css

Re: [symfony-users] Question with form

2010-10-19 Thread Martin Ibarra Cervantes
maybe you can try use input type=input name =name / in your form view. On Tue, Oct 19, 2010 at 11:30 AM, eliana m. eliana...@gmail.com wrote: hello. I have a question. I can build a form with a field that does not exist in the model? Thank you for your help. -- If you want to report a

[symfony-users] Re: front end product gallery

2010-10-19 Thread xpanshun
Richtermeister, I tried to install this code, but it wouldn't work for me. In my indexSuccess.php, how can I get the path from the database as the first parameter of thumbnail_tag? Please reference my original post for the coding. Thanks. On Oct 18, 12:37 pm, Richtermeister nex...@gmail.com

[symfony-users] Re: front end product gallery

2010-10-19 Thread xpanshun
Hi Alan, Thanks for the post. I would like to use this plugin if I could. My problem is I am a complete novice with Symfony and so I don't know how to actually use it. What code needs to be inserted in the actions.class.php file and how do I call it for the effect I am trying to achieve? I do

Re: [symfony-users] Question with form

2010-10-19 Thread Pavel Pecheny
In your yourForm.class.php add class yourForm extends BaseyourForm { public function configure() { $this-setWidget('fieldname' , new sfWidgetFormInputText()); $this-setValidator('stuff_list' , new sfValidatorString(array('max_length' = 255))); } 2010/10/19 Martin Ibarra

Re: [symfony-users] Re: Zend Lucene Search - Parser problem

2010-10-19 Thread Jonathan Franks
http://framework.zend.com/manual/en/zend.search.lucene.query-language.html Starting from ZF 1.7.7 wildcard patterns need some non-wildcard prefix. Default prefix length is 3 (like in Java Lucene). So *, te?t, *wr?t* terms will cause an exception