Re: [symfony-users] how create empty module
Le lundi 04 octobre 2010 à 17:09 -0700, Martin Ibarra Cervantes a écrit : hi, thanks Jérémie but the error is because i use doctrine:generate-module. i read the documentation symfony generate:module aplication module is only generate:module and not doctrine:generate-module thanks for you time. I don't understand ^^' You want to use symfony doctrine:generate-module, right? So, you need to give the task 3 arguments: Arguments: application The application name module The module name modelThe model class name So: php symfony doctrine:generate-module my_application_name my_module_name MY_MODEL_NAME - php symfony doctrine:generate-module backend admin_customers Customer Jérémie On Mon, Oct 4, 2010 at 1:47 PM, Jérémie jeremie.symf...@gmail.com wrote: Le lundi 04 octobre 2010 à 13:34 -0700, Martin Ibarra Cervantes a écrit : symfony doctrine:generate-module [--theme=...] [--generate-in-cache] [--non-verbose-templates] [--with-show] [--singular=...] [--plural=...] [--route-prefix=...] [--with-doctrine-route] [--env=...] [--actions-base-class=...] It's written: application module model You gave 2 arguments, 3 required. Jérémie -- 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: Propel route: new object with foreign key (sf 1.3.7)
On 4 Ott, 18:53, Christian alice...@googlemail.com wrote: So, i have to create a new route and modify the executeNew action? Is there no way to use the default @offer_refurbishment_new route? You can use the default route, just pass any added parameter as query string. E.g.: @offer_refurbishment_new?offer_id=1 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] Re: Propel route: new object with foreign key (sf 1.3.7)
hmm, doesnt work. link_to(add refurbishment, '@offer_refurbishment_new?offer_id='. $offer-getId()) generates: http://domain.tld/backoffice_dev.php/offer_refurbishment/new.html why? any idea? On 5 Okt., 15:17, Massimiliano Arione garak...@gmail.com wrote: On 4 Ott, 18:53, Christian alice...@googlemail.com wrote: So, i have to create a new route and modify the executeNew action? Is there no way to use the default @offer_refurbishment_new route? You can use the default route, just pass any added parameter as query string. E.g.: �...@offer_refurbishment_new?offer_id=1 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] Re: Edit form data does not update
Hi, Have you read : http://www.symfony-project.org/forms/1_4/en/ chapter 1 and 2 ? Guillaume On 4 oct, 21:49, Social It social@gmail.com wrote: My edit form does not update when I make changes to it. I have to wait a couple of seconds and hit refresh. Same with a page that queries the database and shows the records. The table is updated in mysql, but the form shows the old value. public function executeEdit(sfWebRequest $request) { $this-forward404Unless($items = Doctrine::getTable('items')-find(array($request-getParameter('item_id'))), sprintf('Object items does not exist (%s).', $request-getParameter('item_id'))); //make sure the item being edited is owned by the logged in user $this-forward404Unless($items-getUser_id()==$this-getUser()-getGuardUser()-getId()); //set category id $query=Doctrine_Query::create() -select('name') -from('categories') -where('category_id='.$items-category_id.'') -limit(1); $category=$query-fetchArray(); @$items-category_id=$category[0]['name']; $this-form = new itemsUserForm($items); } -- 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] London Symfony Lightning Talks - November 9th
A couple of us are organising a symfony meetup in London and thought it would be awesome to get some people to do some lightning talks on symfony usage. We're especially keen on anyone's experience with symfony2 (but anything symfony'ish would be great). If each of us breaks off a small piece of the puzzle, and report back on the night, it will help us all! If you're interested in contributing a talk, please get in touch. http://www.meetup.com/symfony/calendar/14951826/ John -- 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: Propel route: new object with foreign key (sf 1.3.7)
Nope, that won't work because the named route doesn't take or expect a real parameter and you're providing it your offer_id. Try this: link_to(add refurbishment, '@offer_refurbishment_new', array('query_string' = 'offer_id='.$offer-getId())) But you'd be much better served if you just redefined the offer_refurbishment_new route like this: offer_refurbishment_new: url: /offer_refurbishment/new/:offer_id.:sf_format class: sfPropelRoute options: { model: OfferRefurbishment, type: object } param: { module: offer_refurbishment, action: new, sf_format: html } requirements: { sf_method: get, offer_id: '\d+' } Add this rule below your PropelRouteCollection rule for offer_refurbishment. Please check if the model I put up there is correct. Having done this, you can use this: link_to(add refurbishment, '@offer_refurbishment_new?offer_id='.$offer-getId()) Cheers, Daniel On 05.10.2010, at 16:32, Christian wrote: link_to(add refurbishment, '@offer_refurbishment_new?offer_id='. $offer-getId()) -- 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] Proof of concept of Symfony2 in multitier architecture
Hello, I'm working in a company where IT architects advocate 3-tier architecture. The main reason is security. Those same architects usually defines 3-tier architecture with JAVA technologies like this : - A frontend server (Presentation tier) listens to HTTP requests and creates the HTTP response. In web environment, an HTML page (containing tables, forms, ...) is built using JAVA templates depending on user credentials. - A backend server (Application tier) is called using JAVA RMI (Remote Method Invocation, implemented for instance by EJB containers) each time business logic (e.g. form validation, data persistence) or data (e.g. paginated rows) is needed. - A database server (Data tier) stores relational data. Pages are rendered on Presentation tier, buisness logic is executed on Application tier and data are saved on Data tier. See [http:// en.wikipedia.org/wiki/Multitier_architecture] for more information. My boss asked me to build a proof of concept of a PHP framework relying on such a 3-tier architecture. I chose Symfony2 as this PoC basis because of its flexible architecture (and its Oracle support via OCI8 with Doctrine DBAL's help). My idea is to replace RMI by SOAP : Presentation tier will call a webservice (passing something like the serialized DIC as parameter), then the Application tier will run the controller (eventually calling Data tier using Doctrine) and return template vars and the view to be rendered by Presentation tier and sent back to the client. I've spent the last week reading a lot of documentation and code to see what i have to tweak in Symfony2 code and i think it could be great if you can tell me your opinion about my idea or even point me in the right direction. Regards, Benoît -- 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] how create empty module
On Mon, Oct 4, 2010 at 4:34 PM, Martin Ibarra Cervantes ibarra.cervan...@gmail.com wrote: Hi, i need a empty module on my application but when try this m...@sopias ~/code/Projects/php/retratos/trunk $ ./symfony doctrine:generate-module public feed display this error symfony doctrine:generate-module [--theme=...] [--generate-in-cache] [--non-verbose-templates] [--with-show] [--singular=...] [--plural=...] [--route-prefix=...] [--with-doctrine-route] [--env=...] [--actions-base-class=...] application module model you can help me. -- 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 need a module not binded to the model or to any table, you can just create a directory inside the modules, with the following structure: modules `-- empty_module `-- actions `-- templates That's what I did for a static content module. Regards, -- Diego Bello Carreño -- 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] Problem with Lucent output data search in Doctrine
Hello again ;-) As I see that most people recommend Lucent Search, I have decided keep trying to include it in my project, using the manual as jobeet reference. At the most I've come to is that some files called Segments under data / index / are updated, but only shows me a few strange characters like: ˇL´Ki, but it dont returns any data to /search, and the array jobs is empty. I think my problem is that It dosent save the Lucent Index correctly, what I should have in this file? Someone can give me a clue where I am wrong? Many, many 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] Problem trying to do propel:build-all-load
Hi, i have just installed symfony, created a propel project (--orm=propel) and an frontend app. After doing propel:build-all-load i get several error messages: PHP Warning: Invalid argument supplied for foreach() in /opt/lampp/ htdocs/rs_propel_1/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/ addon/sfPropelDatabaseSchema.class.php on line 153 PHP Stack trace: PHP 1. {main}() /opt/lampp/htdocs/rs_propel_1/symfony:0 PHP 2. include() /opt/lampp/htdocs/rs_propel_1/symfony:14 PHP 3. sfSymfonyCommandApplication-run() /opt/lampp/htdocs/ rs_propel_1/lib/vendor/symfony/lib/command/cli.php:20 PHP 4. sfTask-runFromCLI() /opt/lampp/htdocs/rs_propel_1/lib/vendor/ symfony/lib/command/sfSymfonyCommandApplication.class.php:76 PHP 5. sfBaseTask-doRun() /opt/lampp/htdocs/rs_propel_1/lib/vendor/ symfony/lib/task/sfTask.class.php:97 PHP 6. sfPropelBuildAllLoadTask-execute() /opt/lampp/htdocs/ rs_propel_1/lib/vendor/symfony/lib/task/sfBaseTask.class.php:68 PHP 7. sfTask-run() /opt/lampp/htdocs/rs_propel_1/lib/vendor/ symfony/lib/plugins/sfPropelPlugin/lib/task/ sfPropelBuildAllLoadTask.class.php:79 PHP 8. sfBaseTask-doRun() /opt/lampp/htdocs/rs_propel_1/lib/vendor/ symfony/lib/task/sfTask.class.php:173 PHP 9. sfPropelBuildAllTask-execute() /opt/lampp/htdocs/rs_propel_1/ lib/vendor/symfony/lib/task/sfBaseTask.class.php:68 PHP 10. sfTask-run() /opt/lampp/htdocs/rs_propel_1/lib/vendor/ symfony/lib/plugins/sfPropelPlugin/lib/task/ sfPropelBuildAllTask.class.php:84 PHP 11. sfBaseTask-doRun() /opt/lampp/htdocs/rs_propel_1/lib/vendor/ symfony/lib/task/sfTask.class.php:173 PHP 12. sfPropelBuildModelTask-execute() /opt/lampp/htdocs/ rs_propel_1/lib/vendor/symfony/lib/task/sfBaseTask.class.php:68 PHP 13. sfPropelBaseTask-schemaToXML() /opt/lampp/htdocs/rs_propel_1/ lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/task/ sfPropelBuildModelTask.class.php:59 PHP 14. sfPropelDatabaseSchema-convertOldToNewYaml() /opt/lampp/ htdocs/rs_propel_1/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/ task/sfPropelBaseTask.class.php:112 Warning: Invalid argument supplied for foreach() in /opt/lampp/htdocs/ rs_propel_1/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/addon/ sfPropelDatabaseSchema.class.php on line 153 Call Stack: 0.0003 323588 1. {main}() /opt/lampp/htdocs/rs_propel_1/ symfony:0 0.0029 579384 2. include('/opt/lampp/htdocs/rs_propel_1/lib/ vendor/symfony/lib/command/cli.php') /opt/lampp/htdocs/rs_propel_1/ symfony:14 0.13795895252 3. sfSymfonyCommandApplication-run() /opt/ lampp/htdocs/rs_propel_1/lib/vendor/symfony/lib/command/cli.php:20 0.14215896808 4. sfTask-runFromCLI() /opt/lampp/htdocs/ rs_propel_1/lib/vendor/symfony/lib/command/ sfSymfonyCommandApplication.class.php:76 0.14235897600 5. sfBaseTask-doRun() /opt/lampp/htdocs/ rs_propel_1/lib/vendor/symfony/lib/task/sfTask.class.php:97 0.15696489624 6. sfPropelBuildAllLoadTask-execute() /opt/ lampp/htdocs/rs_propel_1/lib/vendor/symfony/lib/task/ sfBaseTask.class.php:68 0.15996625604 7. sfTask-run() /opt/lampp/htdocs/rs_propel_1/ lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/task/ sfPropelBuildAllLoadTask.class.php:79 0.16026629544 8. sfBaseTask-doRun() /opt/lampp/htdocs/ rs_propel_1/lib/vendor/symfony/lib/task/sfTask.class.php:173 0.16066631988 9. sfPropelBuildAllTask-execute() /opt/lampp/ htdocs/rs_propel_1/lib/vendor/symfony/lib/task/sfBaseTask.class.php:68 0.16076636032 10. sfTask-run() /opt/lampp/htdocs/rs_propel_1/ lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/task/ sfPropelBuildAllTask.class.php:84 0.16086638984 11. sfBaseTask-doRun() /opt/lampp/htdocs/ rs_propel_1/lib/vendor/symfony/lib/task/sfTask.class.php:173 0.16116641000 12. sfPropelBuildModelTask-execute() /opt/ lampp/htdocs/rs_propel_1/lib/vendor/symfony/lib/task/ sfBaseTask.class.php:68 0.16116641124 13. sfPropelBaseTask-schemaToXML() /opt/lampp/ htdocs/rs_propel_1/lib/vendor/symfony/lib/plugins/sfPropelPlugin/lib/ task/sfPropelBuildModelTask.class.php:59 0.17206921152 14. sfPropelDatabaseSchema- convertOldToNewYaml() /opt/lampp/htdocs/rs_propel_1/lib/vendor/ symfony/lib/plugins/sfPropelPlugin/lib/task/sfPropelBaseTask.class.php: 112 Any idea? 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
[symfony-users] Having a web layer for the model
Most of the times in symfony applications, we'll have a model let's say it's 'Product' and then many interactions that I don't think belong to the model part of the application still would be really convenient if you could write them as $myModel-doThis() The kind of interaction I'm thinking about are more 'application' level. For example I'll usually have a link to a page where this product is displayed, and instead of having to write the url_for ('product_route', $myProduct), it seems to me much more natural if I could write something like $myProduct-getUrl(). Same thing for removing bits of cache related to this product, it seems correct in a way to write $myProduct-removeCachedElements(); or something like this. However those interactions as I see them don't belong to the model, they are much more linked with a higher presentational or web level of interaction. Just wondering how other people do things this way or not? -- 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