Re: [symfony-users] change name of checkbox without change id
Try this foreach ($this->getOption('param') as $i) { $temp = 'test'.$i; $this->widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' => $temp)); } On Wed, Dec 30, 2009 at 12:31 PM, dziobacz wrote: > Is it possible to change name widget ? I am doing that: > > foreach ($this->getOption('param') as $i) > { >$this->widgetSchema['comment'.$i['id']] = new > sfWidgetFormInputCheckbox(array(), array('name' => 'test')); > } > > but I get: > > > > > > ID is the same as 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. > > > -- 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] change name of checkbox without change id
Is it possible to change name widget ? I am doing that: foreach ($this->getOption('param') as $i) { $this->widgetSchema['comment'.$i['id']] = new sfWidgetFormInputCheckbox(array(), array('name' => 'test')); } but I get: ID is the same as 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] sympal plugin install error
Hi, I've installed sympal on windows using wamp & cygwin. I tried to install plugins through CLI command below. $php symfony sympal:install Blog When issued this following error came. Fatal error: Call to member function getRootDir() on a non-object in $Project_Home/plugins/sfSympalPlugin/lib/plugins/sfSympalPluginManagerPlugin/lib/manager/sfSympalPluginManagerInstall.class.php on line 78. I tried with other plugins as well. Same issue getting repeated. Tried searching net, but couldn't get much help on this as sympal seems to be new. Could anybody please on this asp. Thanks, Pavan -- 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 message format
Hi all, I embedded a form inside another form, and I try to print errors (of all the forms combined) like this in the template: getErrorSchema()->getErrors() as $error): ?> *getMessage(); ?> It is able to print all the errors as expected so that's good. But for the embedded form fields, the required error message always show: *0 [Reply to Sid is missing.] Instead of just: * Reply to Sid is missing The 0 is the field name. I want to get rid of it (and the brackets) and tried many ways without success. Does anyone know how to just print the error message without the field name and the brackets?? Cheers, Sid -- 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.
[symfony-users] Re: The user profile class "sfGuardUserProfile" does not exist.
> Thanks for your response. In my lib/model I have SfGuardUserProfile not > sfGuardUserProfile, > but all the other classes start with a capital letter. Do I need to > specifically change this to >small letters and I have other projects where the profile class was >SfGuardUserProfile and they all seem to work fine . If you on a Unix/Linux system then file includes will be case sensitive. I believe this is the problem you are having. If the software goes looking for sfGuardUserProfile, it will not recognize SfGuardUserProfile as a valid alternative. On Dec 29, 4:11 pm, Sorom Uzomah wrote: > Hi Zeek, > > Thanks for your response. In my lib/model I have SfGuardUserProfile not > sfGuardUserProfile, but all the other classes start with a capital letter. Do > I need to specifically change this to small letters and I have other projects > where the profile class was SfGuardUserProfile and they all seem to work fine > . > > I'll try your other suggestions and see what happens. Thanks again. > > > From: Zeek > To: symfony users > Sent: Mon, December 28, 2009 11:20:12 PM > Subject: [symfony-users] Re: The user profile class "sfGuardUserProfile" does > not exist. > > Sorom, what do you get if you do this: > > echo get_class($this->getUser()->getGuardUser()->getProfile()); > > Do you get an error when this is called? > > echo get_class($this->getUser()->getGuardUser()); > > If you look in lib/model do you see a sfGuardUserProfile class? It is > case sensitive. Be sure you do not have SfGuardUserProfile. > > On Dec 28, 3:52 pm, Sorom Uzomah wrote: > > > > > > > Hello, > > > I am using symfony 1.2.10 with sfGuardPlugin 3.1.3 , I have created a > > profile class sfGuardUserProfile through my schema.yml. When I try to use > > $this->getUser()->getGuardUser()->getProfile()->getId() in my action class > > as described in the readme file for sfGuardPlugin I get the following error > > > The user profile class "sfGuardUserProfile" does not exist. > > even when I try to use the proxy method i get the same response. I've tried > > rebuilding my model and I've even run the propel:build-all as well as > > cleared my cache etc > > I believe its a simple solution but just cant get it to work. My schema.yml > > is below. Thanks for any help i can get. > > > # config/schema.yml > > propel: > > sf_guard_user_profile: > > id: ~ > > user_id: { type: integer, foreignTable: sf_guard_user, > > foreignReference: id } > > title: { type: varchar(255) } > > last_name: { type: varchar(255) } > > first_name: { type: varchar(255) } > > middle_name: { type: varchar(255) } > > facebook_uid: { type: integer } > > email: { type: varchar(255) } > > email_hash: { type: varchar(255) } > > created_at: ~ > > updated_at: ~ > > > description: > > id: ~ > > sf_guard_user_profile_id: { type: integer, foreignTable: > > sf_guard_user_profile, foreignReference: id } > > content: { type: longvarchar } > > range: { type: varchar(255) } #global, friends, hidden > > created_at: ~ > > updated_at: ~ > > > comment: > > id: ~ > > description_id: { type: integer, foreignTable: description, > > foreignReference: id } > > content: { type: longvarchar } > > created_at: ~ > > updated_at: ~ > > > picture: > > id: ~ > > description_id: { type: integer, foreignTable: description, > > foreignReference: id } > > name: { type: longvarchar } > > location: { type: longvarchar } > > created_at: ~ > > updated_at: ~ > > -- > > 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] Re: The user profile class "sfGuardUserProfile" does not exist.
Hi Zeek, Thanks for your response. In my lib/model I have SfGuardUserProfile not sfGuardUserProfile, but all the other classes start with a capital letter. Do I need to specifically change this to small letters and I have other projects where the profile class was SfGuardUserProfile and they all seem to work fine . I'll try your other suggestions and see what happens. Thanks again. From: Zeek To: symfony users Sent: Mon, December 28, 2009 11:20:12 PM Subject: [symfony-users] Re: The user profile class "sfGuardUserProfile" does not exist. Sorom, what do you get if you do this: echo get_class($this->getUser()->getGuardUser()->getProfile()); Do you get an error when this is called? echo get_class($this->getUser()->getGuardUser()); If you look in lib/model do you see a sfGuardUserProfile class? It is case sensitive. Be sure you do not have SfGuardUserProfile. On Dec 28, 3:52 pm, Sorom Uzomah wrote: > Hello, > > I am using symfony 1.2.10 with sfGuardPlugin 3.1.3 , I have created a profile > class sfGuardUserProfile through my schema.yml. When I try to use > $this->getUser()->getGuardUser()->getProfile()->getId() in my action class as > described in the readme file for sfGuardPlugin I get the following error > > The user profile class "sfGuardUserProfile" does not exist. > even when I try to use the proxy method i get the same response. I've tried > rebuilding my model and I've even run the propel:build-all as well as cleared > my cache etc > I believe its a simple solution but just cant get it to work. My schema.yml > is below. Thanks for any help i can get. > > # config/schema.yml > propel: > sf_guard_user_profile: > id: ~ > user_id: { type: integer, foreignTable: sf_guard_user, foreignReference: > id } > title: { type: varchar(255) } > last_name: { type: varchar(255) } > first_name: { type: varchar(255) } > middle_name: { type: varchar(255) } > facebook_uid: { type: integer } > email: { type: varchar(255) } > email_hash: { type: varchar(255) } > created_at: ~ > updated_at: ~ > > description: > id: ~ > sf_guard_user_profile_id: { type: integer, foreignTable: > sf_guard_user_profile, foreignReference: id } > content: { type: longvarchar } > range: { type: varchar(255) } #global, friends, hidden > created_at: ~ > updated_at: ~ > > comment: > id: ~ > description_id: { type: integer, foreignTable: description, > foreignReference: id } > content: { type: longvarchar } > created_at: ~ > updated_at: ~ > > picture: > id: ~ > description_id: { type: integer, foreignTable: description, > foreignReference: id } > name: { type: longvarchar } > location: { type: longvarchar } > created_at: ~ > updated_at: ~ -- 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. -- 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] sfWidgetFormInputFileEditable no updating the file when edit
Sorry. That has to be in your model class Alecs sent via htc magic On Dec 29, 2009 9:05 PM, "Alexandru-Emil Lupu" wrote: Override your delete method to: Public function delete(PropelPDO/ DoctrinePDO $con = null) { @unlink($this->getFilePath()); Parent::delete($con); } Or appropriate to fix full path to the file, and also the appropriate db adaptor. Alecs sent via htc magic > > On Dec 29, 2009 7:44 PM, "ilcaduceo" wrote: > > Hi all, I'm using the sfW... -- 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] sfWidgetFormInputFileEditable no updating the file when edit
Override your delete method to: Public function delete(PropelPDO/ DoctrinePDO $con = null) { @unlink($this->getFilePath()); Parent::delete($con); } Or appropriate to fix full path to the file, and also the appropriate db adaptor. Alecs sent via htc magic On Dec 29, 2009 7:44 PM, "ilcaduceo" wrote: Hi all, I'm using the sfWidgetFormInputFileEditable for simple uploading of file in the filesystem and then storing name in the database associated with a model, but I noticed that when I'm editing/ deleting the model the old images remain in the filesystem... I want that when edit the image in the model, the old image is deleted. How perform this? Sorry for my English... Thanks to all!! -- 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. -- 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 installing Propel 1.5 plugin
Hi, I am trying to install the new propel plugin but struggle to install it on my 1.3 system. What am I missing? PS, I also noticed that the plugin status is still alpha. Anybody already using it? symfony plugin:install sfPropel15Plugin-0.5.5.tgz >> sfPearFrontendPlugin Download of "symfony-plugins/sfPropel15Plugin" succeeded, but >> sfPearFrontendPlugin it is not a valid package archive >> sfPearFrontendPlugin Error: cannot download "symfony-plugins/sfPropel15Plugin" -- 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] sfWidgetFormInputFileEditable no updating the file when edit
Hi all, I'm using the sfWidgetFormInputFileEditable for simple uploading of file in the filesystem and then storing name in the database associated with a model, but I noticed that when I'm editing/ deleting the model the old images remain in the filesystem... I want that when edit the image in the model, the old image is deleted. How perform this? Sorry for my English... Thanks to all!! -- 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: approve comments clicking on checkboxes using AJAX - should I use Symfony forms ?
Unfortunately Your solution doesn't work :/ On 29 Gru, 08:16, James Cauwelier wrote: > Well, I wouldn 't use the remote function since it 's deprecated. And > yes, you could use the form framework for this. > > The 'normal way' of constructing a symfony form is to build your > widget schema using the configure () method and nothing prevents you > to put a loop in that method. If this behavior is going to be used in > multiple locations, you could even subclass sfForm to package only > this behavior. > > I 've only been using sf1.2+ recently, so there might be another > (better) way of doing this. I 'v also seen sfWidgetFormSchemaForEach > () in the API documentation which might be what you 're looking for > judging by it 's name, but I haven't studied the API docs. > > Something like this could work: > > $form = new CommentApprovalForm; > // set id 's of comments in the form and reconfigure > $form->setCommentValues (array(1,2,54,10)); > $form->configure(); > > // In your template > foreach ($form as $form_field){ > $form_field->renderRow(); > > } > > // your form class configure method > public function configure () { > ... > foreach ($this->comment_values as $comment_value) { > $this->addWidget(...); > } > ... > > } > > On Dec 28, 9:42 am, dziobacz wrote: > > > I would like to approve comments clicking on checkboxes using AJAX > > (without refreshing page). > > Screen is here:http://forum.symfony-project.org/index.php/t/24537/ > > So as you can see above now I have checkboxes - each checkbox is a one > > row from table - so I must write in view: > > > > > > foreach($comments as $c) > > { > > echo " > value='".$c->getId > > ()."'"; > > if($c->getApproved() == 1) echo "checked='checked'"; > > echo " />"; > > echo $c->getComment(); > > } > > ?> > > > > > Is it the best solution ? Maybe I should create this form using > > Symfony forms in catalog /form ? But in that case I will have to pass > > $this->comments to Symfony form and then create one checkbox per one > > row using loop, so I don't know if it is possible in Symfony forms and > > I don't know if I should in that case using Symfony forms ? > > -- 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] creating repository
Download Tortoise SVN, then righ click anywhere on a folder of your choice, you'll get Checkout button, you'll have to enter symfony svn address, then OK and wait for tortoise to gather sf files in the specified dir. Here you'll have to go to your www dir, create a new dir, go inside and call "php /path/to/your/svn/symfony/data/bin/symony generate:project $projectName" Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Dec 29, 2009 at 12:16 PM, Elix Clutlix wrote: > hi there, > > iam a newbie. > > what for a repository in symfony? > > and how to creat a repository for the project ? > > * on windows machine (xp). > > thx. > > -- > 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. > -- 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] creating repository
hi there, iam a newbie. what for a repository in symfony? and how to creat a repository for the project ? * on windows machine (xp). thx. -- 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: Passing Params to Routes
On Tue, Dec 29, 2009 at 7:15 AM, Daniel Lohse wrote: > Can you show us your complete routing.yml? You've already got most of it (it's a pretty simple situation). In addition to the page_show route, I've got this for the homepage route: homepage: url: / class: sfPropelRoute param: { module: page, action: show, domain_slug: portal, slug: dashboard ) } options: model: Page type: object method: doSelectByDomain > Additionally, I'd like you to clear the development log file > (log/frontend_dev.log) and point your browser to one of the URLs that produce > an error and also paste the content of the log file here. You can delete > things you know are irrelevant. Here is my log dump when attempting to load the homepage (the only page that throws an error). As you can see, the domain_slug and slug parameters simply aren't getting passed along: Dec 29 09:49:23 symfony [info] {sfPatternRouting} Match route "homepage" (/) for / with parameters array ( 'module' => 'page', 'action' => 'show', 'domain_slug' => 'portal', 'slug' => 'dashboard )',) Dec 29 09:49:23 symfony [info] {sfFilterChain} Executing filter "sfRenderingFilter" Dec 29 09:49:23 symfony [info] {sfFilterChain} Executing filter "sfExecutionFilter" Dec 29 09:49:23 symfony [info] {pageActions} Call "pageActions->executeShow()" Dec 29 09:49:23 symfony [notice] {sfWebDebugLogger} Notice at /Users/rwilkerson/Development/vaudeville/lib/model/PagePeer.php on line 23 (Undefined index: domain_slug) Dec 29 09:49:23 symfony [notice] {sfWebDebugLogger} Notice at /Users/rwilkerson/Development/vaudeville/lib/model/PagePeer.php on line 24 (Undefined index: slug) Dec 29 09:49:23 symfony [debug] {sfPropelLogger} time: 0.000 sec | slow: NO | mem:8.3 MB | mempeak:8.3 MB | memdelta: 0.0 B | SET NAMES 'utf8' Dec 29 09:49:23 symfony [debug] {sfPropelLogger} time: 0.000 sec | slow: NO | mem:8.5 MB | mempeak:8.5 MB | memdelta: 0.0 B | SELECT page.ID, page.ENTITY_TYPE_ID, page.NAME, page.SLUG, page.ACTIVE, page.CREATED_AT, page.UPDATED_AT FROM `page` CROSS JOIN `nav_menu` LEFT JOIN entity_type ON (page.ENTITY_TYPE_ID=entity_type.ID) WHERE nav_menu.NAME IS NULL AND page.SLUG IS NULL LIMIT 1 Dec 29 09:49:23 symfony [err] {sfError404Exception} Unable to find the PagePeer object with the following parameters "array ()"). Dec 29 09:49:23 symfony [info] {sfWebResponse} Send status "HTTP/1.1 404 Not Found" Dec 29 09:49:23 symfony [info] {sfWebResponse} Send header "Content-Type: text/html; charset=utf-8" Dec 29 09:49:23 symfony [info] {sfWebDebugLogger} Configuration 0.91 ms (8) Dec 29 09:49:23 symfony [info] {sfWebDebugLogger} Factories 27.97 ms (1) Dec 29 09:49:23 symfony [info] {sfWebDebugLogger} Action "page/show" 40.63 ms (1) -- Rob Wilkerson http://robwilkerson.org @robwilkerson -- 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 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 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 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 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 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 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é > > > > > 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 > > > > > > > > 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 the filters since I didn't know what I was > > > > > > > doing > > > > > > > when I implemented those. here is my current file: > > > > > > > > rendering: ~ > > > > > > > web_debug: ~ > > > > > > > > facebook_connect: > > > > > > > class: sfFacebookConnectFilter > > > > > > > > security: > > > > > > > class: sfGuardBasicSecurityFilter > > > > > > > > facebook_application: > > > > > > > class: sfFacebookApplicationFilter > > > > > > > > sfFacebookConnectRememberMe: > > > > > > > class: sfFacebookConnectRememberMeFilter > > > > > > > > #sfFacebookSecurity: > > > > > > > # class: sfFacebookSecurityFilter > > > > > > > > cache: ~ > > > > > > > common: ~ > > > > > > > flash: ~ > > > > > > > execution: ~ > > > > > > > > Thanks for your help. > > > > > > > I've been struggling getting all this to work right. > > > > > > > > On Dec 3, 5:27 pm, Fabrice Bernhard wrote: > > > > > > > > Great you managed to solve your problem, although it would have > > > > > > > > been > > > > > > > > nice to actually see what you did wrong. > > > > > > > > > Cheers, > > > > > > > > > Fabrice > > > > > > > > --http://www.theodo.fr > > > > > > > > -- > > > > > > > > You received this message because you are subscribed to the > > > > > > > Google Groups
[symfony-users] sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?
after upgrading to symonfy 1.3 and sfFormExtraPlugin 1.1.1 the "format" option is no longer supported by sfWidgetFormJQuery $this->setWidgets(array( 'from_date'=> new sfWidgetFormJQueryDate(array( 'image'=>'/images/icons/calendar_view_month.gif', 'format' => '%day%-%month%-%year%', 'culture' => 'de_AT') ), )); is there another way to change the date format (from mm-dd- to dd- mm-)? -- 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 use Filter Forms without Admin Generator?
In the first link i pasted in my post before there is this code: public function executeFiltrar(sfWebRequest $request) { $this->filtro = new ClienteFormFilter(); // Build a criteria object withe the value of the filters $criteria = $this->filtro->buildCriteria($request->getParameter ('cliente_filters')); $this->clientes = ClientePeer::doSelect($criteria); $this->setTemplate('index'); } Is there anything equivalent to buildCriteria() in Doctrine? Javi On Dec 28, 9:18 pm, tirengarfio wrote: > hi, > > maybe these links can be interesting for someone: > > http://axiacore.com/blog/2009/09/trabajando-con-filtros-en-symfony-i/http://axiacore.com/blog/2009/09/trabajando-con-filtros-en-symfony-ii/ > > Are in spanish... > > Anyway, any reason for not implementing the "Filter" button > functionality? > > Javi > > On Dec 11, 11:03 am, cosmy wrote: > > > Interesting topic.. would you mind posting the solution when you have > > done? > > Thnak you in advance > > > On 10 Dic, 08:48, Christopher Schnell wrote: > > > > Yeah, I thought so. But I can use the fieldset of the filter form > > > anyway. I was mainly curious because the form filters are nowhere > > > described, and I use filters to let the user select the records quite > > > often. So it would have come handy earlier, but i just didn't know how > > > to use them. > > > > Maybe I could make a documentation request :-) > > > > Regards, > > > Christopher. -- 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: Passing Params to Routes
Can you show us your complete routing.yml? Additionally, I'd like you to clear the development log file (log/frontend_dev.log) and point your browser to one of the URLs that produce an error and also paste the content of the log file here. You can delete things you know are irrelevant. Cheers, Daniel On Dec 29, 2009, at 1:09 PM, Rob Wilkerson wrote: > On Mon, Dec 28, 2009 at 9:16 PM, Zeek wrote: >> Can you show us an example URL? And what does your doSelectByDomain >> methods look like? > > Sure. For most pages, the URI will look something like this: > > /portal/dashboard > /audiences/find > /behaviors/edit > > Each, of course, following the :domain_slug/:slug (i.e. page slug). > The doSelectByDomain() method ensures that the correct page is pulled > based on the domain (page slugs are not necessarily unique in and of > themselves, but the combo of domain slug and page slug is). Here's the > method code: > > > > static public function doSelectByDomain( $params ) { > $c = new Criteria(); > $c->addJoin( PagePeer::ENTITY_TYPE_ID, EntityTypePeer::ID, > Criteria::LEFT_JOIN ); > $c->add( NavMenuPeer::NAME, $params['domain_slug'] ); > $c->add( self::SLUG, $params['slug'] ); > > return self::doSelectOne( $c ); > } > > Thanks. > > -- > Rob Wilkerson > http://robwilkerson.org > @robwilkerson > > -- > > 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. > > -- 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: Passing Params to Routes
On Mon, Dec 28, 2009 at 9:16 PM, Zeek wrote: > Can you show us an example URL? And what does your doSelectByDomain > methods look like? Sure. For most pages, the URI will look something like this: /portal/dashboard /audiences/find /behaviors/edit Each, of course, following the :domain_slug/:slug (i.e. page slug). The doSelectByDomain() method ensures that the correct page is pulled based on the domain (page slugs are not necessarily unique in and of themselves, but the combo of domain slug and page slug is). Here's the method code: static public function doSelectByDomain( $params ) { $c = new Criteria(); $c->addJoin( PagePeer::ENTITY_TYPE_ID, EntityTypePeer::ID, Criteria::LEFT_JOIN ); $c->add( NavMenuPeer::NAME, $params['domain_slug'] ); $c->add( self::SLUG, $params['slug'] ); return self::doSelectOne( $c ); } Thanks. -- Rob Wilkerson http://robwilkerson.org @robwilkerson -- 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] Nested SEF URLs
Hi, I want to use nested category title in URLs. I need URLs like, http://www.domain.com/category/category1/category2/. /id/2 There may be one or more category title in the URL. In routing.yml: category_show: url: /category/:category_slug/:id/ class: sfPropelRoute options: { model: DirectoryCategory, type: object } param: { module: category, action: show } requirement: id: \d+ sf_method: [get] Please let me know, What and where to change? If something more needed, please let me know. Thanks Apul Gupta -- 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 plugin:
This thread is solved. It seems that the user has double posted. Please ignore tthis thread. Alecs sent via htc magic On Dec 29, 2009 12:56 PM, "axel at" wrote: PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 -- 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. -- 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] error in jobeet day9
Also, if you are using doctrine, check your schema.yml file. You might need to add actAs: [Sluggable] Alecs sent via htc magic On Dec 29, 2009 1:18 PM, "Parijat Kalia" wrote: Your way of pointing the issue is broad, going through the entire jobeet tutorial is difficult for anyone...but from the looks of it...it says that there is an unknown column slug in your database table field list. Check across your schema.yml file, where the database table field list is represented. If the column j.slug exists, it would be specified. If not, include the column either in your database table or in the schema.yml file, and repeat the propel:build-schema procedure. You will need to go through the data model (day 3) once again, to figure out the rebuilding of the db steps. Hopefully this is what you need, let me know if it works for you or not On Tue, Dec 29, 2009 at 12:08 PM, vikram patel wrote: > > hey i just finished... -- You received this message because you are subscribed to the Google Groups "symfony users" group -- 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: symfony plugin:*
the problem was a "currupted" sfformextraplugin.reg file after deleting plugins/.registry/..channgel.plugins.symfony- project.org/sfformextraplugin.reg and the pluginfolder plugins/ sfFormExtraPlugin I was able to reinstall formExtraPlugin and now everything works as it should On 29 Dez., 12:21, axel at wrote: > sorry, that doesn't solve the problem. > > I still get: > c:\dev\projectXY>s plugin:list > Installed plugins: > PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: > \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 > PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: > \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 > PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: > \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 > PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: > \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 > PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: > \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 > PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: > \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 > symfony 1.3.1-stable # > pear.symfony-project.com (symfony) > sfDoctrineGuardPlugin 4.0.1-stable # > plugins.symfony-project.org (symfony-plugins) > - # > pear.php.net (pear) > > On 29 Dez., 12:04, Stéphane wrote: > > > Try to remove all your enablePlugins in your projectConfig and try again ? > > > Before Printing, Think about Your Environmental Responsibility! > > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! > > > On Tue, Dec 29, 2009 at 11:59 AM, axel at wrote: > > > Hello list, > > > > any plugin shell command (eg symfony plugin-list) produces the > > > following error: > > > > PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: > > > \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 > > > is there a way to fix this? > > > > thx a lot > > > > -- > > > > 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. -- 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: symfony plugin:*
sorry, that doesn't solve the problem. I still get: c:\dev\projectXY>s plugin:list Installed plugins: PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 symfony 1.3.1-stable # pear.symfony-project.com (symfony) sfDoctrineGuardPlugin 4.0.1-stable # plugins.symfony-project.org (symfony-plugins) - # pear.php.net (pear) On 29 Dez., 12:04, Stéphane wrote: > Try to remove all your enablePlugins in your projectConfig and try again ? > > Before Printing, Think about Your Environmental Responsibility! > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! > > On Tue, Dec 29, 2009 at 11:59 AM, axel at wrote: > > Hello list, > > > any plugin shell command (eg symfony plugin-list) produces the > > following error: > > > PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: > > \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 > > is there a way to fix this? > > > thx a lot > > > -- > > > 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. -- 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] error in jobeet day9
Your way of pointing the issue is broad, going through the entire jobeet tutorial is difficult for anyone...but from the looks of it...it says that there is an unknown column slug in your database table field list. Check across your schema.yml file, where the database table field list is represented. If the column j.slug exists, it would be specified. If not, include the column either in your database table or in the schema.yml file, and repeat the propel:build-schema procedure. You will need to go through the data model (day 3) once again, to figure out the rebuilding of the db steps. Hopefully this is what you need, let me know if it works for you or not On Tue, Dec 29, 2009 at 12:08 PM, vikram patel wrote: > hey i just finished the jobeet day 9 !! now i have an error which > says: > 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception > SQLSTATE[42S22]: Column not found: 1054 Unknown column 'j.slug' in > 'field list' > > can anyone tell what it is?? i am new to symfony and php as well!! > > -- > > 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. > > > -- 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 plugin:*
Try to remove all your enablePlugins in your projectConfig and try again ? Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Dec 29, 2009 at 11:59 AM, axel at wrote: > Hello list, > > any plugin shell command (eg symfony plugin-list) produces the > following error: > > PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: > \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 > is there a way to fix this? > > thx a lot > > -- > > 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. > > > -- 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 plugin:*
Hello list, any plugin shell command (eg symfony plugin-list) produces the following error: PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 is there a way to fix this? thx a lot -- 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 plugin:
PHP Notice: unserialize(): Error at offset 6885 of 20307 bytes in C: \PHP52\PEAR\pear\PEAR\Registry.php on line 1147 -- 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.