[symfony-users] Re: How to access form filter object from within action?
Oh thanks didn't realize I could overwrite it, however I will probably need to do the same for all my Symfony apps so I will keep it in the core. I'll see about submitting it to the Trac. On Jan 16, 4:04 pm, Daniel Lohse wrote: > Hey Darren, > > on reading through the sfModelGeneratorConfiguration.php file I got this on > line 496 (symfony 1.4.1): > > return new $class($filters, $this->getFilterFormOptions()); > > This means that you only have to write the getFilterFormOptions method in > your admin-generated module's lib/*Configuration.php file, no need to > edit/patch symfony core files. > > What you could do is create a ticket in the symfony Trac for this because > it's obviously not following the normal form's method. > > Cheers, Daniel > > On 16.01.2010, at 01:10, Darren884 wrote: > > > > > Hi guys I finally found the solution. The setOptions does not work > > with FilterForms. > > > You must edit /lib/generate/sfModelGeneratorConfiguration.php and make > > getFilterForm resemble getForm so it can contain options. > > > The first instance of the getFilterForm will be called in the > > protected buildQuery method which you can pass the options to. > > > I hope this helps anyone who had as much trouble as I did with this > > issue. > > > Thanks, > > Darren > > > On Jan 15, 2:51 pm, Darren884 wrote: > >> Can someone please tell me or show me an example on how to access a > >> form filter object from within an action so I can pass objects and > >> variables to it? This is killing me that Symfony does not allow > >> instances to travel globally. > > -- > > 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.- Hide quoted text - > > - Show quoted text - -- 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] Same component different app?
As a plugin, maybe? sent via htc magic On Jan 16, 2010 11:57 PM, "Colin" wrote: I have a component in my 'frontend' app that generates the navigation for my application. I would like to use this same component in the 'backend' app. Is this possible? Should I implement it differently? 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. -- 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 access form filter object from within action?
Hey Darren, on reading through the sfModelGeneratorConfiguration.php file I got this on line 496 (symfony 1.4.1): return new $class($filters, $this->getFilterFormOptions()); This means that you only have to write the getFilterFormOptions method in your admin-generated module's lib/*Configuration.php file, no need to edit/patch symfony core files. What you could do is create a ticket in the symfony Trac for this because it's obviously not following the normal form's method. Cheers, Daniel On 16.01.2010, at 01:10, Darren884 wrote: > Hi guys I finally found the solution. The setOptions does not work > with FilterForms. > > You must edit /lib/generate/sfModelGeneratorConfiguration.php and make > getFilterForm resemble getForm so it can contain options. > > The first instance of the getFilterForm will be called in the > protected buildQuery method which you can pass the options to. > > I hope this helps anyone who had as much trouble as I did with this > issue. > > Thanks, > Darren > > On Jan 15, 2:51 pm, Darren884 wrote: >> Can someone please tell me or show me an example on how to access a >> form filter object from within an action so I can pass objects and >> variables to it? This is killing me that Symfony does not allow >> instances to travel globally. > -- > 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] sfDoctrineGuardPlugin Unknown method SfGuardUser::checkPassword
Is myUser extending sfGuardDoctrineUser (or whatever the appropriate class is, that might not be right) in your /lib/myUser.php ? Ashton Honnecke ahonne...@gmail.com On Jan 16, 2010, at 7:31, thronic wrote: I was working on a project at work just playing around with sfDoctrineGuardPlugin. Everything was working perfectly. I decided to zip and copy my app to a usb key and install it at home. same os (ubuntu). Now when i try to log in i get the following error: Unknown method SfGuardUser::checkPassword i can't for the life of me understand it. I've uninstalled and reinstalled the plugin, i've cleared cache, rebuilt models, forms, etc... If i turn off security my app is working fine. Any ideas?? -- 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 1.2 - Propel/mysql MyISAM - onDelete="restrict" not working
I'm using symfony 1.2 / Propel 1.3 / MySQL (MyISAM) and have a table defined with the following entry: The onDelete="restrict" attribute doesn't seem to generate any code to enforce the desired constraint. If I change the attribute to onDelete="setnull" - that works. But its obviously not what I want. According to the Propel 1.3 docs (http://propel.phpdb.org/trac/wiki/ Users/Documentation/1.3/Relationships - On Update and On Delete Triggers ). "For databases that do not support foreign keys, this functionality will be emulated by Propel." Anybody else run into this? Am I missing something? In my propel.ini I have: propel.mysql.tableType = MyISAM propel.addVendorInfo = true propel.addGenericAccessors = true propel.addGenericMutators = true propel.addTimeStamp= true propel.addValidators = false propel.addHooks= true propel.useDateTimeClass = true propel.defaultTimeStampFormat = Y-m-d H:i:s propel.defaultTimeFormat = H:i:s propel.defaultDateFormat = Y-m-d propel.schema.validate= false propel.samePhpName= false propel.disableIdentifierQuoting = false propel.emulateForeignKeyConstraints = true -- 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] Couldn't find class JobeetAffiliate
Hi everybody! I finished day 7 of the jobeet tutorial but I'm getting this error: Base table or view not found: 1146 Table 'jobeet.jobeet_category' doesn't exist. There are no tables in the database. When I run the command doctrine:data-load I get this: >> doctrine created tables successfully Couldn't find class JobeetAffiliate: What should I do? thanks in advance!!! -- 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: Installation on shared hosting
This article will help you: http://www.bernawebdesign.ch/byteblog/2009/07/10/symfony-project-on-bluehost-shared-hosting/comment-page-1/ On Jan 13, 11:30 am, Ali wrote: > Hi , thanks alot for your help , this time i m not getting any 500 > error but , it show me a blank screen > :( > > On Jan 13, 12:29 am, Frank He wrote: > > > You can add multiple symfony projects in just one account, like what I did > > with hostmonster > > structure can be like this: > > > public_html > > --web(all your web assets including index.php) > > --symfony-clb(all symfony files, apps, configue...) > > > And then in your webroot, modify your controller like this: > > > require_once(dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'symfony-clb'.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'ProjectConfiguration.class.php'); > > > for symfony-clb/config/projectconfiguration.class.php, update like this: > > > require_once > > dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'lib'. > > DIRECTORY_SEPARATOR.'vendor'.DIRECTORY_SEPARATOR.'symfony'. > > DIRECTORY_SEPARATOR.'lib'.DIRECTORY_SEPARATOR.'autoload'. > > DIRECTORY_SEPARATOR.'sfCoreAutoload.class.php'; > > > sfCoreAutoload::register(); > > > class ProjectConfiguration extends sfProjectConfiguration > > { > > public function setup() > > { > > // for compatibility / remove and enable only the plugins you want > > $this->enableAllPluginsExcept(array('sfDoctrinePlugin', > > 'sfCompat10Plugin')); > > > $this->setWebDir($this->getRootDir().DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'web'); > > > } > > > public function configure() > > { > > > $this->setWebDir($this->getRootDir().DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'web'); > > > } > > > } > > > This is what I did, hope it is helpful > > > On Tue, Jan 12, 2010 at 2:16 PM, Darren884 wrote: > > > You should have at least one directory above the public_html. What you > > > will have to do is install it there and then set the web directory to > > > the public_html. You might come into some problems with opeb_base_dir. > > > If that is the case you will need to modify your PHP security > > > settings. > > > > On Jan 12, 10:59 am, Ali wrote: > > > > Hi Symfony users and Developers, > > > > i am new in php and > > > > symfony development so far symfony has done wel for me , but its > > > > really hard for me to get the thing done right on deployment side , > > > > its my 10th hour and i am unable to deploy the project on shared > > > > hosting. > > > > > here are some of the facts about my problem > > > > 1 : i am using blue host shared hosting > > > > 2 : i want to deploy the project in sub directory the root is > > > > public_html , but i want my project to be deployed in public_html/ > > > > myproject > > > > 3 : i have done most of the development on my ubuntu machine and want > > > > this project to be deployed > > > > > if any one can share how to get the things done > > > > > Best Regards > > > > -- > > > 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] Same component different app?
I have a component in my 'frontend' app that generates the navigation for my application. I would like to use this same component in the 'backend' app. Is this possible? Should I implement it differently? 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.
[symfony-users] sfDoctrineGuardPlugin Unknown method SfGuardUser::checkPassword
I was working on a project at work just playing around with sfDoctrineGuardPlugin. Everything was working perfectly. I decided to zip and copy my app to a usb key and install it at home. same os (ubuntu). Now when i try to log in i get the following error: Unknown method SfGuardUser::checkPassword i can't for the life of me understand it. I've uninstalled and reinstalled the plugin, i've cleared cache, rebuilt models, forms, etc... If i turn off security my app is working fine. Any ideas?? -- 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] layout.php variable
Hello, Can you tell me how can i use (how can i call) in symfony 1.2 a variable from my actions in layout.php ? Thank you! -- 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 1.2, propel , charset problems
Hello, I have a little trouble... I made a web aplication using symfony 1.1 and propel with mysql. I have a database with romanian characters. This is the old good site: http://www.sejur-extern.ro/Egipt/Sharm-El-Sheikh I started from scrach an aplication with symfony 1.2 with the same database, and the romanian characters are some symbols. This is the new version but with the same database: http://sejurnew.sejur-extern.ro/turism-extern/Egipt/Sharm-El - Sheikh.html Can you tell me how to solve this problem? This are my config/propel.ini: propel.targetPackage = lib.model propel.packageObjectModel = true propel.project = sejurextern propel.database = mysql propel.database.driver = mysql propel.database.url = mysql:host=localhost;dbname=cazari propel.database.creole.url = ${propel.database.url} propel.database.user = root propel.database.password = propel.mysql.tableType = InnoDB propel.addVendorInfo = true propel.addGenericAccessors = true propel.addGenericMutators = true propel.addTimeStamp = true propel.addValidators = false propel.useDateTimeClass = true propel.defaultTimeStampFormat = d-m-Y H:i:s propel.defaultTimeFormat = H:i:s propel.defaultDateFormat = d-m-Y propel.schema.validate = false propel.samePhpName = false propel.disableIdentifierQuoting = false propel.emulateForeignKeyConstraints = true ; directories propel.home = . propel.output.dir = D:\develop\xampp\htdocs\cazari propel.schema.dir = ${propel.output.dir}/config propel.conf.dir = ${propel.output.dir}/config propel.phpconf.dir = ${propel.output.dir}/config propel.sql.dir = ${propel.output.dir}/data/sql propel.runtime.conf.file = runtime-conf.xml propel.php.dir = ${propel.output.dir} propel.default.schema.basename = schema propel.datadump.mapper.from = *schema.xml propel.datadump.mapper.to = *data.xml ; builder settings propel.builder.peer.class = plugins.sfPropelPlugin.lib.builder.SfPeerBuilder propel.builder.object.class = plugins.sfPropelPlugin.lib.builder.SfObjectBuilder propel.builder.objectstub.class = plugins.sfPropelPlugin.lib.builder.SfExtensionObjectBuilder propel.builder.peerstub.class = plugins.sfPropelPlugin.lib.builder.SfExtensionPeerBuilder propel.builder.objectmultiextend.class = plugins.sfPropelPlugin.lib.builder.SfMultiExtendObjectBuilde r propel.builder.mapbuilder.class = plugins.sfPropelPlugin.lib.builder.SfMapBuilderBuilder propel.builder.addIncludes = false propel.builder.addComments = true propel.builder.addBehaviors = true my config/database.yml: dev: propel: param: classname: DebugPDO test: propel: param: classname: DebugPDO all: propel: class: sfPropelDatabase param: classname: PropelPDO dsn: 'mysql:host=localhost;dbname=cazari' username: root password: null encoding: utf8 persistent: true pooling: true my app/config/setings.yml prod: .settings: no_script_name: on logging_enabled: off dev: .settings: error_reporting: web_debug: on cache: off no_script_name: off etag: off test: .settings: error_reporting: cache: off web_debug: off no_script_name: off etag: off all: .settings: # Form security secret (CSRF protection) csrf_secret: false # Unique secret to enable CSRF protection or false to disable # Output escaping settings escaping_strategy: false # Determines how variables are made available to templates. Accepted values: on, off. escaping_method: ESC_SPECIALCHARS # Function or helper used for escaping. Accepted values: ESC_RAW, ESC_ENTITIES, ESC_JS, ESC_JS_NO_ENTITIES, and ESC_SPECIALCHARS. # Cache settings lazy_cache_key: on # Delays creation of a cache key until after checking whether an action or partial is cacheable charset: utf-8 i18n: on default_culture: ro_RO Can you help me please? Thank you very much!!! -- 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] Trying to operate sfLightboxPlugin 1.0.11
Hi, i've just installed sfLightboxPlugin in sf 1.2.10 through: symfony plugin:install sfLightboxPlugin symfony plugin:publish-assets symfony cc Then i wrote this code (i copied it from sfLighboxplugin "Readme"): 'sfLightboxPlugin', 'size' => '550x200', 'speed' => '6' ); // or //$link_options='title=sfLightboxPlugin size=450x180 speed=5'; //$link_options='title="sfLightboxPlugin" class=resizespeed_5 blocksize_450x180'; echo light_modallink( '» Link to test the modal box «', 'sfLightboxPlugin/modal', $link_options ); When i click over the link created the modal window appears for an instant (the typical icon that spins is showed ) but i get this error message: 404 | Not Found | sfError404Exception Action "sfLightboxPlugin/modal" does not exist. stack trace * at () in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/ sfController.class.php line 202 ... 199. $this->dispatcher->notify(new sfEvent($this, 'application.log', array(sprintf('Action "%s/%s" does not exist', $moduleName, $actionName; 200. } 201. 202. throw new sfError404Exception(sprintf('Action "%s/%s" does not exist.', $moduleName, $actionName)); 203. } 204. 205. // create an instance of the action * at sfController->forward('sfLightboxPlugin', 'modal') in SF_ROOT_DIR/lib/vendor/symfony/lib/controller/ sfFrontWebController.class.php line 48 ... 45. } 46. 47. // make the first request 48. $this->forward($moduleName, $actionName); 49. } 50. catch (sfException $e) 51. { * at sfFrontWebController->dispatch() in SF_ROOT_DIR/lib/vendor/symfony/lib/util/sfContext.class.php line 159 ... 156.*/ 157. public function dispatch() 158. { 159. $this->getController()->dispatch(); 160. } 161. 162. /** * at sfContext->dispatch() in SF_ROOT_DIR/web/frontend_dev.php line 13 ... 10. require_once(dirname(__FILE__).'/../config/ ProjectConfiguration.class.php'); 11. 12. $configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', true); 13. sfContext::createInstance($configuration)->dispatch (); 14. symfony settings ... app_categories: Perfil: @perfil Amigos: @amigos app_params_to_escape_list: - loadingString - closeString sf_admin_module_web_dir: /sfDoctrinePlugin sf_admin_web_dir: /sf/sf_admin sf_app: frontend sf_app_base_cache_dir: /opt/lampp/htdocs/rs/cache/frontend sf_app_cache_dir: /opt/lampp/htdocs/rs/cache/frontend/dev sf_app_config_dir: /opt/lampp/htdocs/rs/apps/frontend/config sf_app_dir: /opt/lampp/htdocs/rs/apps/frontend sf_app_i18n_dir: /opt/lampp/htdocs/rs/apps/frontend/i18n sf_app_lib_dir: /opt/lampp/htdocs/rs/apps/frontend/lib sf_app_module_dir: /opt/lampp/htdocs/rs/apps/frontend/modules sf_app_template_dir: /opt/lampp/htdocs/rs/apps/frontend/templates sf_apps_dir: /opt/lampp/htdocs/rs/apps sf_cache: false sf_cache_dir: /opt/lampp/htdocs/rs/cache sf_calendar_web_dir: /sf/calendar sf_charset: utf-8 sf_check_lock: false sf_check_symfony_version: false sf_compressed: false sf_config_cache_dir: /opt/lampp/htdocs/rs/cache/frontend/dev/config sf_config_dir: /opt/lampp/htdocs/rs/config sf_csrf_secret: false sf_data_dir: /opt/lampp/htdocs/rs/data sf_debug: true sf_default_culture: en sf_doc_dir: /opt/lampp/htdocs/rs/doc sf_enabled_modules: - default - sfGuardAuth - sfLightboxPlugin sf_environment: dev sf_error_404_action: error404 sf_error_404_module: default sf_error_reporting: 32767 sf_escaping_method: ESC_SPECIALCHARS sf_escaping_strategy: false sf_etag: false sf_i18n: false sf_i18n_cache_dir: /opt/lampp/htdocs/rs/cache/frontend/dev/i18n sf_jquery_autocomplete: jquery.autocomplete.min.js sf_jquery_core: jquery-1.3.2.min.js sf_jquery_ui: jquery-ui-1.7.2.custom.min.js sf_jquery_web_dir: /sfJqueryReloadedPlugin sf_lazy_cache_key: false sf_lib_dir: /opt/lampp/htdocs/rs/lib sf_lightbox_css_dir: /sfLightboxPlugin/css/ sf_lightbox_images_dir: /sfLightboxPlugin/images/ sf_lightbox_js_dir: /sfLightboxPlugin/js/ sf_log_dir: /opt/lampp/htdocs/rs/log sf_logging_enabled: true sf_login_action: signin sf_login_module: sfGuardAuth sf_max_forwards: 5 sf_module_cache_dir: /opt/lampp/htdocs/rs/cache/frontend/dev/modules sf_module_disabled_action: disabled sf_module_disabled_module: default sf_no_script_name: false sf_orm: doctrine sf_plugins_dir: /opt/lampp/htdocs/rs/plugins sf_prototype_web_dir: /sfProtoculousPlugin sf_rich_text_js_dir: js/tiny_mce sf_root_dir: /opt/lampp/htdocs/rs sf_secure_action: secure sf_secure_module: sfGuardAuth sf_standard_helpers: - Partial - Cache - Form sf_strip_comments: true sf_symfony_lib_dir: /opt/lampp/htdocs/rs/lib/vendor/symfony