Re: [symfony-users] How to properly override Doctrine_Record::delete()?
You should use preDelete and postDelete methods. class YouModel extends BaseModel { public function postDelete() { // no your code // ex: unlink($this-file) } } On Sat, Feb 6, 2010 at 9:54 AM, Absalón Valdés absal...@gmail.com wrote: hi. you can use a event handler adn the catch delete execution, e.g: class backendConfiguration extends sfApplicationConfiguration { public function configure() { $this-dispatcher-connect('admin.delete_object', array($this,'xmethod')); } public function xmethod(sfEvent $event) { // do some stuff } } This should work... i think 2010/2/5 Darren884 darren...@gmail.com Does anyone have any simple example code I can place into my objects model to override this function? I need to add some stuff into it. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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. -- Thomas Rabaix http://rabaix.net -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: Memory Leak using Doctrine in Tasks?
On Feb 2, 7:59 pm, Brandon Turner btur...@bltweb.net wrote: In the meantime, you could set up a new environment and disable the profiler in that environment. This can be done in your databases.yml by adding param: profiler: false. Great tip Brandon. I've modified it slightly - I set profiler: false in all:, then set it to true for dev and test, and simply run my tasks with the --env=prod argument. No need to make a new environment (actually a bit surprised that the production environment loads the connection profiler -- am I missing something there? Surely it has no use in the default production setup). I tried extending sfBaseTask and overriding the getApplicationConfiguration() method that has the hardwired debug setting, but this caused a fatal error redeclaring sfLogger, which might yield some clue as to why it's that way. Didn't really have time to delve deeper. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] link_to2 and query_string
I have this route: category_listing_pag: url: /:slug/:num_products_page/:page.html class: sfDoctrineRoute param: { module: listing, action: category } options: { model: Category, type: object } And I'm trying to display this link: ?php echo link_to('Previous', 'category_listing_pag', $category, array('query_string' = num_products_page= $num_products_pagepage=page{$pager-getPreviousPage()}, 'class' = 'pagelink_prev')) ? Then I get this error: 500 | Internal Server Error | InvalidArgumentException The /:slug/:num_products_page/:page.html route has some missing mandatory parameters (:num_products_page, :page). So, I suppose link_to2 is not processing the query_string option. Would this be a bug? Or am I using it wrong? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] Changing group title in admin generator edit view
hello, how can I change the displayed group title from an admin generated edit view: form: fields: display: NONE: [a,b,c] Group1: [x,y,z ] Group2: [u,v,w ] from eg Group1: special i18n title with öüß -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] Functional tests for file uploads
Hello, The documentation says that I should be able to do the following: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/11 The browser also simulates file uploads if you pass the absolute path to the file to upload However I can't seem to get it to work, the code actually works I have tested it with a real upload but I get a validation error saying required field. $form_data = array( passport = array( present_citzenship = United Kingdom, passport_number = 123456789, issue_date = array( day = 28, month = 10, year = 2003 ), expiry_date = array( day = 27, month = 10, year = 2010 ) ), passport_scan = array( file=sfConfig::get('sf_test_dir')./fixtures/images/test.jpg ) ); The pasport scan form is embedded. I remove the embedded passport form and the validation passes fine. Has anyone actually got functional testing of uploads working? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] Edit/Show - protect against non permission access
Hello buddies, need help! On my Edit/Show actions i use the route to get the object to Edit/ Show. Edit: $this-form = new LeadsForm($this-getRoute()-getObject()); Show: $this-leads = $this-getRoute()-getObject(); All normal here and works fine, but i need something more secure. For example: I'm the owner from the fields on the table with ID=1 and ID=2; Someone that is no owner from that fields try to hack my values, for that he goes to URL and type: http://localhost/frontend_dev.php/leads/1 He will be able to Edit/Show my values. How can i prevent this thing happen? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: how to set up and configure memcache?
Is the sfMemcacheCache link you provide in the blog the same as http://www.symfony-project.org/plugins/sfMemcachePlugin The link you provide says 1.1 and the link above says 1.0 (also has other WARNINGS). I'm using 1.2, a little reluctant to use what appears to be a fringe plugin no one is monitoring or updating. Also I'm using this on a distributed load balanced system. The link you provide says it ignores multi-memcache-server configuration and defaults to localhost On Feb 8, 1:52 am, Frank Stelzer d...@bleedingmoon.de wrote: Hi, Here is explained, how you could configure memcache for the view cache or how you can handle memcache using within a singleton using it for everything:http://dev.esl.eu/blog/2009/06/05/memcached-as-singleton-in-symfony/ Frank Am 08.02.2010 um 05:05 schrieb Joshua: My end goal here is to have propel queries be memcached so common queries do not need to be constantly run. On Feb 7, 11:04 pm, Joshua houseaddi...@gmail.com wrote: I have searched and read and searched but I can't find any clear documentation to set this up for symfony 1.2+. Apparently there are configurations that need to be added to yml files and other things. Where can I go to read about how to do this? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com . For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en . -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: Functional tests for file uploads
Oh God. Ignore me I am being stupid. My tests were working as expected I hadn't completed a part of the code. On 8 Feb, 16:08, johnwards johnwa...@gmail.com wrote: Hello, The documentation says that I should be able to do the following: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/11 The browser also simulates file uploads if you pass the absolute path to the file to upload However I can't seem to get it to work, the code actually works I have tested it with a real upload but I get a validation error saying required field. $form_data = array( passport = array( present_citzenship = United Kingdom, passport_number = 123456789, issue_date = array( day = 28, month = 10, year = 2003 ), expiry_date = array( day = 27, month = 10, year = 2010 ) ), passport_scan = array( file=sfConfig::get('sf_test_dir')./fixtures/images/test.jpg ) ); The pasport scan form is embedded. I remove the embedded passport form and the validation passes fine. Has anyone actually got functional testing of uploads working? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: Error using sfFacebookConnectPlugin and sfGuardPlugin
I have a question regarding the getSfGuardUserByFacebookSession function of the sfFacebook class. I am overriding the BasesfFacebookConnectAuthActions executeSignin() function to see if an sfGuardUser has been created and if not redirect to a different page to confirm some details and add the email and phone number. I tried calling getSfGuardUserByFacebookSession(false,true) thinking that it wouldn't create a user since I passed false for the create paramter. But apparently it does create a Guard User. Here's my code: public function executeSignin() { $sfGuardUser = sfFacebook::getSfGuardUserByFacebookSession(false,true); if($sfGuardUser){ ...execute some irrelevant code... }else{ //if the guard user has not yet been created, set the forward parameter to redirect to, in the base signin function $this-getRequest()-setParameter('forward','mymodule/myaction'); } BasesfFacebookConnectAuthActions::executeSignin(); } It never executes the else and therefor the forward parameter is never set. So I cannot redirect to save some information from the facebook user. Perhaps I am misunderstanding the purpose of the create parameter or maybe I have the completely wrong approach. Thanks in advance for your time and help. Zach On Dec 29 2009, 7:00 am, Fabrice Bernhard fabri...@theodo.fr wrote: I would definitely check the configuration. To get the Facebook UID in a website, you need Facebook Connect to be perfectly configured and to not forget the publish-assets command for the html file to be visible. To get the Facebook UID in a Facebook app, you need to test inside the Facebook frame. Fabrice On Dec 28, 2:15 pm, Andrés Cristi andrescri...@gmail.com wrote: Yes, i'm testing on an internet-accessible server. I will see if there's something wrong on the configuration of the application on facebook. Thank's On 24 dic, 17:00, Fabrice Bernhard fabri...@theodo.fr wrote: Are you testing on an internet-accessible server ? To get the Facebook uid, you need Facebook servers to see your server. Fabrice On Dec 21, 6:32 pm, Andrés Cristi andrescri...@gmail.com wrote: Currently i'm having a similar problem. I'm working with symfony 1.4+sfDoctrineGuardPlugin. My problem is that the the user seems to be null, so when it is saved to the database, the username is saved like Facebook_, when it should be something like Facebook_.$FacebookUserId. I've read the documentation from the advent calendar and i still haven't found how to solve this. Cheers, Andrés On 8 dic, 23:27, Hardeep Khehra hardeep.s.khe...@gmail.com wrote: Not sure what I'm doing wrong, but for starters i'm beginning a fresh project using symfony 1.4, but I can't get this plugin to work for the life of me. I've followed all the instructions and cannot get this plugin to work using sfDoctrineGuardPlugin. The facebook dialog appears and i can log into facebook, but the user is never added to the database. I installed the plugin by downloading the packaging and unzipping to the plugins folder. On Dec 8, 7:46 am, Fabrice Bernhard fabri...@theodo.fr wrote: Hi Zach, You don't need any sfFacebookConnect filters in a standard implementation. Better documentation will soon be online as part of the symfony 2009 advent calendar :-) Cheers, Fabrice --http://www.theodo.fr On Dec 8, 7:28 am, Alexandre Salomé alexandre.sal...@gmail.com wrote: Hi, You should contact the author of the plugin to have more informations, or look for a README file or an INSTALL file. Alexandre 2009/12/7 Zach zach...@gmail.com I have run into another error... I am running the sfFacebookConnectDemo. It prompts me to connect, I enter my facebook email and password, click connect, and I get this error: Strict Standards: Non-static method sfFacebookGuardAdapter::getUserProfileProperty() should not be called statically, assuming $this from incompatible context in /var/www/ losebig/plugins/sfFacebookConnectPlugin/lib/ sfFacebookApplicationFilter.class.php on line 25 Fatal error: Cannot call abstract method sfFacebookGuardAdapter::getUserProfileProperty() in /var/www/losebig/ plugins/sfFacebookConnectPlugin/lib/ sfFacebookApplicationFilter.class.php on line 25 If I refresh the page, it says Welcome Zach Fry and has my facebook profile picture. I'm not sure how I am supposed implement the filters, and wondered if someone could show me what the filters.yml file is supposed to look like. I don't really know where my problem lies, but I thought it might be
[symfony-users] Re: How to properly override Doctrine_Record::delete()?
Thank you Thomas that worked perfectly and ironically deleting a file was what I was after. Thanks, Darren On Feb 8, 12:55 am, Thomas Rabaix thomas.rab...@gmail.com wrote: You should use preDelete and postDelete methods. class YouModel extends BaseModel { public function postDelete() { // no your code // ex: unlink($this-file) } } On Sat, Feb 6, 2010 at 9:54 AM, Absalón Valdés absal...@gmail.com wrote: hi. you can use a event handler adn the catch delete execution, e.g: class backendConfiguration extends sfApplicationConfiguration { public function configure() { $this-dispatcher-connect('admin.delete_object', array($this,'xmethod')); } public function xmethod(sfEvent $event) { // do some stuff } } This should work... i think 2010/2/5 Darren884 darren...@gmail.com Does anyone have any simple example code I can place into my objects model to override this function? I need to add some stuff into it. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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. -- Thomas Rabaixhttp://rabaix.net -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: I18n: database configuration
You do it like that: database:mysql://MYUSER:my...@unix+%2ftmp%2fmysql5.sock/MY_DB Note the unix+ and the encoded socket url which you can generate by using rawurlencode('/tmp/mysql5.sock');. Man, that was a lot of work figuring that out! Eddie -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] Error on extending profile for sfguard
What am I doing wrong? I keep getting errors rebuilding and also importing fixtures.. Schema # config/doctrine/schema.yml Organization: actAs: { Timestampable: ~ } columns: sf_guard_user_id: { type: integer(5) } name: { type: string(255), notnull: true, unique: true } first_name: { type: string(255) } last_name:{ type: string(255), notnull: true } phone:{ type: string(20) } mobile: { type: string(20) } email:{ type: string(255), notnull: true } logo: { type: string(255) } is_active:{ type: boolean, notnull: true, default: 1 } relations: User: class: sfGuardUser type: one Error: doctrine created tables successfully SQLSTATE[HY000]: General error: 1005 Can't create table './zd2/#sql-6d40_252e2.frm' (errno: 150). Failing Query: ALTER TABLE organization ADD CONSTRAINT organization_sf_guard_user_id_sf_guard_user_id FOREIGN KEY (sf_guard_user_id) REFERENCES sf_guard_user(id). Failing Query: ALTER TABLE organization ADD CONSTRAINT organization_sf_guard_user_id_sf_guard_user_id FOREIGN KEY (sf_guard_user_id) REFERENCES sf_guard_user(id) -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] symfony memcache support by default?
Does symfony come with any level of support for memcache out of the box? One of our sites was brought down from an influx of traffic from email blasts. Monitoring the slow query log, I made some changes to a few propel queries. That relieved a lot of the stress, the site went from crashed to sluggish. Then we installed memcache on the servers. A few minutes later, before making any actual code updates to use memcache, the slow query log made a dead stop and the site was very speedy. Any ideas? Mine are: a) Symfony has some basic level of memcache support that kicked in after we installed. b) MySQL Query Cache kicked in from my previous updates to the slow queries. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] How to get raw data in a partial???
In my template I am trying to do ?php include_partial('global/ navigator', array('User' = $sf_user)); ? But when I run $User-getAttributes() in my partial it is cleaning the code which makes it so it does not work. How can I get around this?? Thanks, Darren -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: How to get raw data in a partial???
It seems I was able to pass the second argument ESC_RAW, but this butchers my ability to read credentials either way. Is there any I can just a simple damn array? I mean its Symfony's own variable. What is going on here? On Feb 8, 11:41 am, Darren884 darren...@gmail.com wrote: In my template I am trying to do ?php include_partial('global/ navigator', array('User' = $sf_user)); ? But when I run $User-getAttributes() in my partial it is cleaning the code which makes it so it does not work. How can I get around this?? Thanks, Darren -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: How to get raw data in a partial???
Just use $value-getRawValue() --- nat...@nathan.gs : http://nathan.gs : http://twitter.com/nathan_gs On Mon, Feb 8, 2010 at 8:49 PM, Darren884 darren...@gmail.com wrote: It seems I was able to pass the second argument ESC_RAW, but this butchers my ability to read credentials either way. Is there any I can just a simple damn array? I mean its Symfony's own variable. What is going on here? On Feb 8, 11:41 am, Darren884 darren...@gmail.com wrote: In my template I am trying to do ?php include_partial('global/ navigator', array('User' = $sf_user)); ? But when I run $User-getAttributes() in my partial it is cleaning the code which makes it so it does not work. How can I get around this?? Thanks, Darren -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] set a value to a widget in the actions
Hi there, I have a sfWidgetFormInputHidden that its value depends of the others widgets, I would like to set its value in the actions (ex:executeCreate or processForm), how can I do that? Thanks... -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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 to get raw data in a partial???
Am 08.02.10 20:41, schrieb Darren884: In my template I am trying to do?php include_partial('global/ navigator', array('User' = $sf_user)); ? But when I run $User-getAttributes() in my partial it is cleaning the code which makes it so it does not work. How can I get around this?? Thanks, Darren try this in your template: look at : http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer echo $sf_data-getRaw('test'); -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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 object-specific form options/labels from the database
I'm new to symfony, so this may be trivial, but I'm getting frustrated trying to find a solution. I'm having a problem creating a form to edit a set of objects associated with another specified object. Here's an abridged version of the relevant part of the schema (assume id fields are auto-generated): Collection: columns: name: type: string(255) description: type: string() Question: columns: question_text: type: string(255) QuestionOption: columns: question_id: type: integer option_text: type: string(255) relations: Question: local: question_id foreign: id type: one QuestionResponse: columns: collection_id: type: integer context_question_id: type: integer context_question_option_id: type: integer relations: Question: local: context_question_id foreign: id type: one foreignAlias: Answers QuestionOption: local: context_question_option_id foreign: id type: one foreignAlias: Choices Collection: local: collection_id foreign: id type: one foreignAlias: QuestionResponses I have a basic form to create/edit the standard Collection info (name, description, some other fields I haven't shown here). I've added code to actions.class.php so that when a new Collection is created, a corresponding empty QuestionResponse (i.e. no QuestionOption specified) is created for each Question in the database. What I want now is a new form to edit the Question Responses for a Collection. I've created a custom form, and the corresponding custom actions within the Collection module and embedded the QuestionResponseForm within it. There are two things I can't see how to do: a) Restrict the QuestionOptions available for each QuestionResponse (using sfWidgetFormSelect) to those appropriate to the corresponding Question. b) Display the text of the corresponding Question as the label for each field. This sounds to me like it should be straightforward, which is making it all the more frustrating that I can't see the solution. I'm using Symfony 1.4, btw. Thanks for any advice, Paddy -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] one module - many models (tables)
Hi, I'm new to symfony and am trying to learn it. I am trying to develop a new module (something like a forum). in a very simple form, this module works with 2 database tables: forum_threads and forum_posts. First, I think that I should not develop 2 different modules, because forum sounds like one module in my mind. (am I right?) the create new thread form has 2 fields: subject and message. when someone clicks on the save button, the subject field should be saved in the forum_thread table and the message field should be saved in the forum_posts table. Any clue for doing this? Any suggestion is highly appreciated. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: Error on extending profile for sfguard
same problem here On Feb 8, 7:16 pm, Samuel Morhaim samuel.morh...@gmail.com wrote: What am I doing wrong? I keep getting errors rebuilding and also importing fixtures.. Schema # config/doctrine/schema.yml Organization: actAs: { Timestampable: ~ } columns: sf_guard_user_id: { type: integer(5) } name: { type: string(255), notnull: true, unique: true } first_name: { type: string(255) } last_name: { type: string(255), notnull: true } phone: { type: string(20) } mobile: { type: string(20) } email: { type: string(255), notnull: true } logo: { type: string(255) } is_active: { type: boolean, notnull: true, default: 1 } relations: User: class: sfGuardUser type: one Error: doctrine created tables successfully SQLSTATE[HY000]: General error: 1005 Can't create table './zd2/#sql-6d40_252e2.frm' (errno: 150). Failing Query: ALTER TABLE organization ADD CONSTRAINT organization_sf_guard_user_id_sf_guard_user_id FOREIGN KEY (sf_guard_user_id) REFERENCES sf_guard_user(id). Failing Query: ALTER TABLE organization ADD CONSTRAINT organization_sf_guard_user_id_sf_guard_user_id FOREIGN KEY (sf_guard_user_id) REFERENCES sf_guard_user(id) -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: how to set up and configure memcache?
just rtfm ;-) http://www.doctrine-project.org/documentation/manual/1_2/en/caching http://www.symfony-project.org/book/1_2/18-Performance Am 08.02.10 17:29, schrieb Joshua: Blogs blogs blogs. How am I supposed to know where to find these things short of a google search? On Feb 8, 1:52 am, Frank Stelzerd...@bleedingmoon.de wrote: Hi, Here is explained, how you could configure memcache for the view cache or how you can handle memcache using within a singleton using it for everything:http://dev.esl.eu/blog/2009/06/05/memcached-as-singleton-in-symfony/ Frank Am 08.02.2010 um 05:05 schrieb Joshua: My end goal here is to have propel queries be memcached so common queries do not need to be constantly run. On Feb 7, 11:04 pm, Joshuahouseaddi...@gmail.com wrote: I have searched and read and searched but I can't find any clear documentation to set this up for symfony 1.2+. Apparently there are configurations that need to be added to yml files and other things. Where can I go to read about how to do this? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com . For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en . -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] symfony memcache support by default?
On Mon, 8 Feb 2010, Joshua wrote: Does symfony come with any level of support for memcache out of the box? It has some support but it has to be explicitly enabled. Then we installed memcache on the servers. A few minutes later, before making any actual code updates to use memcache, the slow query log made a dead stop and the site was very speedy. Any ideas? Mine are: a) Symfony has some basic level of memcache support that kicked in after we installed. b) MySQL Query Cache kicked in from my previous updates to the slow queries. Or the app has some caching already? Or the traffic dropped off? -- -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] one module - many models (tables)
You should see the sfsimpleforum. Also .. you could use embed form or merge form... sent via htc magic On Feb 8, 2010 10:17 PM, Martin Henits martin.hen...@googlemail.com wrote: Hi, I'm new to symfony and am trying to learn it. I am trying to develop a new module (something like a forum). in a very simple form, this module works with 2 database tables: forum_threads and forum_posts. First, I think that I should not develop 2 different modules, because forum sounds like one module in my mind. (am I right?) the create new thread form has 2 fields: subject and message. when someone clicks on the save button, the subject field should be saved in the forum_thread table and the message field should be saved in the forum_posts table. Any clue for doing this? Any suggestion is highly appreciated. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] set a value to a widget in the actions
On Mon, 8 Feb 2010, Relez wrote: Hi there, I have a sfWidgetFormInputHidden that its value depends of the others widgets, I would like to set its value in the actions (ex:executeCreate or processForm), how can I do that? When initializing the form, you can add a configure() method to create/update/delete fields. There's probably a similar method for when the form gets processed. -- -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: Error on extending profile for sfguard
I found this http://jonocode.wordpress.com/2009/07/11/adding-sf_guard_user_profile-to-the-sfdoctrineguardplugin/ but still get the issue, can't fix it... My complete schema and eror are here http://pastebin.com/m4a2812bd in case anyone wants to help.. thanks.. On Mon, Feb 8, 2010 at 3:07 PM, Filipe filipepimentasi...@gmail.com wrote: same problem here On Feb 8, 7:16 pm, Samuel Morhaim samuel.morh...@gmail.com wrote: What am I doing wrong? I keep getting errors rebuilding and also importing fixtures.. Schema # config/doctrine/schema.yml Organization: actAs: { Timestampable: ~ } columns: sf_guard_user_id: { type: integer(5) } name: { type: string(255), notnull: true, unique: true } first_name: { type: string(255) } last_name:{ type: string(255), notnull: true } phone:{ type: string(20) } mobile: { type: string(20) } email:{ type: string(255), notnull: true } logo: { type: string(255) } is_active:{ type: boolean, notnull: true, default: 1 } relations: User: class: sfGuardUser type: one Error: doctrine created tables successfully SQLSTATE[HY000]: General error: 1005 Can't create table './zd2/#sql-6d40_252e2.frm' (errno: 150). Failing Query: ALTER TABLE organization ADD CONSTRAINT organization_sf_guard_user_id_sf_guard_user_id FOREIGN KEY (sf_guard_user_id) REFERENCES sf_guard_user(id). Failing Query: ALTER TABLE organization ADD CONSTRAINT organization_sf_guard_user_id_sf_guard_user_id FOREIGN KEY (sf_guard_user_id) REFERENCES sf_guard_user(id) -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: Error on extending profile for sfguard
I removed the primary: true and it worked.. i hope this helps. On Mon, Feb 8, 2010 at 4:46 PM, Samuel Morhaim samuel.morh...@gmail.comwrote: I found this http://jonocode.wordpress.com/2009/07/11/adding-sf_guard_user_profile-to-the-sfdoctrineguardplugin/ but still get the issue, can't fix it... My complete schema and eror are here http://pastebin.com/m4a2812bd in case anyone wants to help.. thanks.. On Mon, Feb 8, 2010 at 3:07 PM, Filipe filipepimentasi...@gmail.comwrote: same problem here On Feb 8, 7:16 pm, Samuel Morhaim samuel.morh...@gmail.com wrote: What am I doing wrong? I keep getting errors rebuilding and also importing fixtures.. Schema # config/doctrine/schema.yml Organization: actAs: { Timestampable: ~ } columns: sf_guard_user_id: { type: integer(5) } name: { type: string(255), notnull: true, unique: true } first_name: { type: string(255) } last_name:{ type: string(255), notnull: true } phone:{ type: string(20) } mobile: { type: string(20) } email:{ type: string(255), notnull: true } logo: { type: string(255) } is_active:{ type: boolean, notnull: true, default: 1 } relations: User: class: sfGuardUser type: one Error: doctrine created tables successfully SQLSTATE[HY000]: General error: 1005 Can't create table './zd2/#sql-6d40_252e2.frm' (errno: 150). Failing Query: ALTER TABLE organization ADD CONSTRAINT organization_sf_guard_user_id_sf_guard_user_id FOREIGN KEY (sf_guard_user_id) REFERENCES sf_guard_user(id). Failing Query: ALTER TABLE organization ADD CONSTRAINT organization_sf_guard_user_id_sf_guard_user_id FOREIGN KEY (sf_guard_user_id) REFERENCES sf_guard_user(id) -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: How to get raw data in a partial???
Just to your specific point, $sf_user is accessible from every template or partial anyways.. no need to pass it along. Daniel On Feb 8, 1:09 pm, Darren884 darren...@gmail.com wrote: I solved it guys but the above would not work so I had to do a different way. I found out about hasCredential and used that. The above methods don't work too nicely on object methods. On Feb 8, 12:11 pm, Norbert haigermo...@web.de wrote: Am 08.02.10 20:41, schrieb Darren884: In my template I am trying to do?php include_partial('global/ navigator', array('User' = $sf_user)); ? But when I run $User-getAttributes() in my partial it is cleaning the code which makes it so it does not work. How can I get around this?? Thanks, Darren try this in your template: look at :http://www.symfony-project.org/book/1_2/07-Inside-the-View-Layer echo $sf_data-getRaw('test'); -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] Proper way to access object..
I am trying to access the object of the extended profile for sfguard.. http://pastebin.com/md823309 How is the correct way of doing that? # config/doctrine/schema.yml Organization: actAs: { Timestampable: ~ } columns: sf_guard_user_id: { type: integer(4) } name: { type: string(255), notnull: true, unique: true } first_name: { type: string(255) } last_name:{ type: string(255), notnull: true } phone:{ type: string(20) } mobile: { type: string(20) } email:{ type: string(255), notnull: true } logo: { type: string(255) } is_active:{ type: boolean, notnull: true, default: 1 } relations: sfGuardUser: foreign: id local: sf_guard_user_id ??? echo $this-getUser()-getOrganization()-first_name; ?? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] Where to put the model code?
Hi. I create a partial file that will be added in all page request by users. I put this partial file, i.e. partial.php in the global layout template? layout.php. Ok. My doubt is where to put the model code of the partial file. some idea? Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] How to deal with sequences (PostgreSQL) and Doctrine
Hi every: I'm creating my schema.yml file but have one doubt concerning sequences. I've see that serial datatype doesn't exists in Doctrine so I can't do this: id_group: { type: serial, primary: true } But I need this field autoincrement. I was thinking in use this syntax: id_group: { type: integer(4), primary: true, autoincrement: true } But I'm not so sure about the result, I mean this create sequences in PostgreSQL? How yours deal with this? -- Cheers ReynierPM -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: Where to put the model code?
HI. I use the sfComponents class to do it. Worked fine. bye. Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] Help with Schema
I am trying to create the following schema with the following requirements. * One to one Organization to sfGuardUser * Each organization, may have multiple campaigns. * Each campaign may have multiple addressbooks. * MessageQueue holds general information for all organizations/campaigns/addressbooks Please let me know what should I do to make it correct... thank you. # config/doctrine/schema.yml Organization: actAs: { Timestampable: ~ } columns: sf_guard_user_id: { type: integer(4) } name: { type: string(255), notnull: true, unique: true } first_name: { type: string(255) } last_name:{ type: string(255), notnull: true } phone:{ type: string(20) } mobile: { type: string(20) } email:{ type: string(255), notnull: true } logo: { type: string(255) } is_active:{ type: boolean, notnull: true, default: 1 } relations: sfGuardUser: foreign: id local: sf_guard_user_id owningSide: true type: one foreignType: one Campaign: actAs: { Timestampable: ~ } columns: organization_id: { type: integer, notnull: true } name: { type: string(255), notnull: true, unique: false } keyword: { type: string(8), notnull: true, unique: true } relations: Organization: local: organization_id foreign: id foreignType: many AddressBook: actAs: { Timestampable: ~ } columns: organization_id: { type: integer, notnull: true } campaign_id: { type: integer, notnull: true } first_name: { type: string(255) } last_name: { type: string(255), notnull: true } mobile: { type: string(20) } email: { type: string(255) } is_active: { type: boolean, notnull: true, default: 1 } relations: Organization: local: organization_id foreign: id foreignType: many CampaignAddressBook: columns: campaign_id: { type: integer, primary: true } address_book_id: { type: integer, primary: true } relations: Campaign: { onDelete: CASCADE, local: campaign_id, foreign: id } AddressBook: { onDelete: CASCADE, local: address_book_id, foreign: id } MessageQueue: actAs: { Timestampable: ~ } columns: organization_id: { type: integer, notnull: true } address_book_id: { type: integer, notnull: false } msg_from:{ type: string(255) } msg_to: { type: string(255) } message_content: { type: string(255) } status: type: enum values: [Pending,Delivered,Processed,Failed] notnull: true result_code: { type: string(255) } direction: type: enum values: [Inbound,Outbound] notnull: true keyword: { type: string(20) } message_option: { type: string(255) } data:{ type: string(255) } response_type: type: enum values: [NORMAL,UNKNOWN] notnull: false delivery_type: type: enum values: [SMS,Email] carrier: { type: string(100) } network_type: type: enum values: [gsm,cdma,tdma,iden] notnull: false received_at: { type: timestamp, notnull: false } relations: Organization:{ local: organization_id, foreign: id } AddressBook: { local: address_book_id, foreign: id } -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: how to set up and configure memcache?
I used the definitive guide to symfony to do it myself. I was only trying to help by offering a link to an article I wrote with practical information on it. So sorry for trying :S On Mon, Feb 8, 2010 at 6:29 PM, Joshua houseaddi...@gmail.com wrote: Blogs blogs blogs. How am I supposed to know where to find these things short of a google search? On Feb 8, 1:52 am, Frank Stelzer d...@bleedingmoon.de wrote: Hi, Here is explained, how you could configure memcache for the view cache or how you can handle memcache using within a singleton using it for everything:http://dev.esl.eu/blog/2009/06/05/memcached-as-singleton-in-symfony/ Frank Am 08.02.2010 um 05:05 schrieb Joshua: My end goal here is to have propel queries be memcached so common queries do not need to be constantly run. On Feb 7, 11:04 pm, Joshua houseaddi...@gmail.com wrote: I have searched and read and searched but I can't find any clear documentation to set this up for symfony 1.2+. Apparently there are configurations that need to be added to yml files and other things. Where can I go to read about how to do this? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com . For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en . -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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. -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] default selection value
Hey guys, Wondering how to specify a default value for select tags in symfony say for e.g i have a select_tag with options 1,2,3,4,5,6,7,and I want 4 to be the default selected value, how can I get this done? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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: ORDER BY insists on using sort_order
As I said: sorting is saved into the session, so if you change something wits that, you have to destroy your session... e.g.: clear browser cookies and cache, restart browser. clear cache in symfony. voila! On 7 ún, 19:09, michael hodges mhodg...@gmail.com wrote: Issue: updating the list sort criteria in the generator.yml file does not seem to change the default sort for the list. Symptoms: initially updating the list sort criteria seems to work, and then it stops working and appears to be ignored. Worse case is that you may be stuck with a sort criteria for a field you decided to drop from the schema. This will prevent the list from displaying at all. Solution found: clear browser cookies and cache, restart browser. clear cache in symfony. voila! The generator will correctly update the default sort field from the value in the generator.yml files. Must be something pecular to my platform since this problem doesn't seem to have driven anyone else nuts. My platform is OSX 10.6.2, firefox 3.5.7, symfony 1.4.1 Hope this info saves someone else a few hours effort. - Michael On Feb 6, 8:04 pm, michael hodges mhodg...@gmail.com wrote: Problem not resolved after all. The progress made is that symfony does not insist on sorting by sort_order any longer, but for all classes the generator ignores anything I specify for the sort statement in the generator.yml file. While experimenting I created a sort: bogusvvv entry in a generator file, cleared cache, refreshed the page, and..no errors. Using Spot-light to search I see the generated ...GeneratorConfiguration.Class.php in the cache that the generator created, and it does confirm that the sort statement is being read out of the generator.yml file: public function getDefaultSort() { return array('bogusvvv', 'asc'); } The implication is that something is preventing the default sort I specify from being used. Does anyone have a recommendation for how I might figure how what is overriding the default sort? At this point in my project I have no customizations except what I've made in the generator.ym files. Well, that's almost a true statement, I have one virtual column that does a table looking for a count of items, but I can't image that this would be relevant. Thanks in advance for any recommendations. I'm using Symfony 1.4 with Doctrine and mostly just experimenting with what I'm learning from the jobeet tutorial. - Michael On Feb 5, 10:15 pm, michael hodges mhodg...@gmail.com wrote: Problem resolved by creating a whole new project directory and starting over. I was able to copy all generator.yml files, partials, etc without making any changes and everything runs fine. The only thing that I can think of that created the misbehavior in the previous project was the fact that I named a column sort_order and then specified it in the generator as the field to sort on. Subsequently, I removed it from the schema and thought I regenerated the entire app folder, the framework's generator did not pick up that one change. Doesn't make sense, but any other explanation just gets weirder. - Michael On Feb 5, 7:08 pm, michael hodges mhodg...@gmail.com wrote: # In which file did you find the sort_order database_interface.lib.php # Did you clear the cache First I cleared the cache, but that didn't work Second I renamed the app directory and recreated it from scratch using just my schema and fixture Even with the classes and generator files back to their pristine states the error would not go away for the one class I then cleared the cache and hunted for any file with 'sort_order', and found no occurrences unaccounted for. Not sure what to do next, execpt to start over since there are no stones left that I know to look under. What's especially odd for that class is I can change the generator entry for limit and see in the logs that the change is processed. But there is nothing I can do in the generator.yml file to change the sort. Whatever I specify is ignored. Thanks for your response. Nice to see that this is an active list. - Michael On Feb 5, 12:40 am, Tom Ptacnik to...@tomor.cz wrote: Did you cleared the cache folder? In which file ddid you find the sort_order (as you said you have found it in internal symfony files...) On 4 ún, 09:29, michael hodges mhodg...@gmail.com wrote: Hello all, I'm new to Symfony. While I've been able to figure things out as I go along, this one is very strange. I had a column named 'sort_order' and used if in the generator.yml to request a sort in the list. Subsequently I removed it from the schema and regenerated everything, including the backend. No matter what I do, I can't get executeView not to include ORDER BY
[symfony-users] changing symfony project structure
Hello, I want to know what do you think about my new Somfony project structures which I've created. I needed to change it, because of my clients hosting. He host on the server, where he can't change anything in apache configuration. He has configured hosting that way, that every folder in his webfolder is a subdomain /www is www.domain.com, /new is new.domain.com etc. So every subfolder is like a virtual. The problem is, that I can't deploy the application into the parent folder and thus use classic symfony structure and use /www for a classic symfony webfolder. I've created two functional project structures, which works on his host and I want to know your judgement :) In both ways I have web folder directly in the /www folder In both ways I can't create the /sf alias - so I simply copied the /sf folder to the /www folder 1) /www (web folder - index.php, .htaccess, css, js) /application (rest of the application - apps,cache,config, data,) In this solution I've created .htacces with deny from all and inserted it to the /application folder - for denying the access to the application subdomain which is automaticly created by the settings of the webserver. 2) /www(web folder - index.php, .htaccess, css, js) /www/application(rest of the application - apps,cache,config, data,) In this solution I've inserted the application directory into the www folder. Created the .htaccess with deny from all in it too - deny the access to the www.domain.com/application I like this second solution because I have whole application in one directory. It look pretty compact to me. For both possibilities need only to change 3 things - the web folder path in the /config/ProjectConfiguration.class.php: $this-setWebDir($this-getRootDir().'/../'); - the include of the ProjectConfiguration.class.php in all indexes (index.php, frontend_dev.php) - uncomment the RewriteBase / in the standard symfony .htaccess file The image is maybe more explainable : http://tinyurl.com/yzf3na3 (on the picture the application folder of the 1) solution is named app ) I haven't created whole functional application, I've only generated a frontend application and managed to show the Congratulations! You have successfully created your symfony project. page. So I think, it will work.. Before I will start to develope the application I want to know your opinion. Please tell me what do you think about this solutions and if you know some disadvantages / advantages of some of them... -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] Where are the whole page cache files in sf 1.4?
I set the view cache option's dir in %sf_view_cache_dir% and i can see those cache files in the view cache folder when the cache's with_layout option is false but if I set the with_layout option to true the cache would never appear in the view cache folder, so where are the with_layout cache files stored in? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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 Helpers
Hi, It seems link_to_remote and form_remote_tag has been deprectaed in Symfony 1.4. How do we achieve this functionality in Symfony 1.4. The Jobeet tutorial for 1.4 discusses briefly about AJAX. Thanks in advance. Regards Deepak Bhatia -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] AJAX Helpers
Learn to use jQuery! Seriously, it's very easy to replace those functions with plain jQuery. On Tue, Feb 9, 2010 at 8:20 PM, DEEPAK BHATIA toreachdee...@gmail.com wrote: Hi, It seems link_to_remote and form_remote_tag has been deprectaed in Symfony 1.4. How do we achieve this functionality in Symfony 1.4. The Jobeet tutorial for 1.4 discusses briefly about AJAX. Thanks in advance. Regards Deepak Bhatia -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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. -- Blue Horn Ltd - System Development http://bluehorn.co.nz -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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] AJAX Helpers
http://www.symfony-project.org/plugins/sfProtoculousPlugin ;) 9 2010 ., 10:20:27: Hi, It seems link_to_remote and form_remote_tag has been deprectaed in Symfony 1.4. How do we achieve this functionality in Symfony 1.4. The Jobeet tutorial for 1.4 discusses briefly about AJAX. Thanks in advance. Regards Deepak Bhatia -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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. -- , mailto:y...@zemskov.name -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@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] AJAX Helpers
Is this the same old obtrusive Javascript version or has it been refactored as an unobtrusive version? 2010/2/9 Земсков Юрий y...@zemskov.name http://www.symfony-project.org/plugins/sfProtoculousPlugin ;) Вы писали 9 февраля 2010 г., 10:20:27: Hi, It seems link_to_remote and form_remote_tag has been deprectaed in Symfony 1.4. How do we achieve this functionality in Symfony 1.4. The Jobeet tutorial for 1.4 discusses briefly about AJAX. Thanks in advance. Regards Deepak Bhatia -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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. -- С уважением, Земсков Юрий mailto:y...@zemskov.namey...@zemskov.name -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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 -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@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.