dtc88867 2013-05-13 04:51
浏览 13
已采纳

注册插件的问题

Hi i am trying to use Sign me up Plugin for my application. But unable to get it running. There are so many issues and errors.

Plugin i have downloaded is:-

sign_me_up-2.0

But there are so many errors i am getting

Ex:- Declaration of SignMeUpComponent::initialize() should be compatible with Component::initialize(Controller $controller)

I have tried for tutorials and serached for solutions online. But no luck...

Can anyone help me out on how to use this plugin ??? What i reffered :-

http://www.jotlab.com/2011/sign-me-up-a-cakephp-registration-plugin

Thanks in advance

  • 写回答

1条回答 默认 最新

  • duancui19840401 2013-05-13 07:14
    关注

    Make sure your version of CakePHP is compatible with the plugin. I understand between version 1.3 and 2, they took advantage of the newer features of PHP which included strongly-typed method parameters. The error you're receiving is that the SignMeUpComponent inherits from the Component class which is in framework core. If the component wants to override the initialize method, it must follow the same method/function signature.

    If the plugin is on Git and you feel comfortable in doing so, clone it and update all the components methods, and then put in a pull request so you're changes can be merged in.

    Alternatively use an earlier version of CakePHP.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 求帮我调试一下freefem代码
  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?
  • ¥15 有偿求跨组件数据流路径图