如何安装cilesoft论坛插件由Miles J? [英] How do i install the cakephp forum plugin by Miles J?

查看:109
本文介绍了如何安装cilesoft论坛插件由Miles J?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我确定这是一个蛋糕1.3问题 - 插件与2.0不兼容

Am pretty sure this is a cake 1.3 question - the plugin is not compatible with 2.0

我试图为论坛安装miles J插件cakephp可以在这里找到:
http://milesj.me/code/cakephp/forum

I am trying to install the Miles J plugin for cakephp for forums, which can be found here: http://milesj.me/code/cakephp/forum

我正在努力学习他的教程。叹息。

I am struggling with his tutorial though. Sigh.

SO,这里是我做的 -

SO, here is what i have done -


  1. 插件

  2. 将其插件移动到我的/ app / plugins / forum文件夹中(因此内容是Config,Console ... View,webroot,readme.md - eg / app / plugins / forum / config>

  3. 已将此内容移至/ app / plugins / utils文件夹(因此其内容已读取控制器, locale ... license.txt,readme.md - eg / app / plugins / utils / Controller)

  4. 完成步骤2和3上面 - 其中2开头为:论坛插件旨在与外部用户交互...和3与:必须在app / config / core.php中启用管理路由。

  5. 现在它让人困惑。他写了关于某种安装程序...不是最后两步安装步骤?他们是分开的吗?我不知道!无论如何,我去运行他的蛋糕命令,我得到一个错误〜蛋糕找不到

  6. 导航到:/ cake_install / cake /是我的蛋糕文件夹的基本路径,当然)

  7. 运行cake命令...但这一次我完全不确定/ path / to / app手段。它是插件的路径(这对我来说有意义)或者cake_install文件夹(我的意思是,我已经在 它似乎有点冗余)。

  8. 请尝试这两个 - 每次我得到一个错误:类InstallShell无法加载。错误,这不是很有用。

  1. downloaded his plugin
  2. moved his plugin into my /app/plugins/forum folder (so contents are Config, Console...View, webroot, readme.md -- eg /app/plugins/forum/Config)
  3. downloaded the cakedc utils plugin
  4. moved this to the /app/plugins/utils folder (so its contents read Controller, Lib, locale...license.txt, readme.md -- eg /app/plugins/utils/Controller)
  5. done steps "2" and "3" from that page i have linked to above - where "2" starts with: "The forum plugin was designed to interact with an external users..." and "3" with: "Admin routing must be enabled in app/config/core.php."
  6. And now it gets confusing. He writes about some sort of install program... weren't the last two steps install steps? Are they separate? I don't know! Anyway, I go to run the "cake" command he has, and I get an error ~ "cake not found"
  7. Navigate to: /cake_install/cake/console (where "cake_install" is the base path for my cake folder, of course)
  8. Run the cake command... but this time I am totally unsure what the "/path/to/app" Miles writes about means. Is it the path to the plugin (which would make sense to me) or to the cake_install folder (i mean, I am in it already, seems a bit redundso).
  9. try both of them - each time i get an "Error: Class InstallShell could not be loaded." error, which isn't very useful.

有什么想法我应该做什么?我不介意做手动安装,但我在正确的轨道上?哪里的步骤2和3意味着运行?是否有更简单的事情可以让这个东西工作?

Any ideas on what I should do next? I don't mind doing a manual install, but am i on the right track? Where steps "2" and "3" meant to be run? Is there something simpler to do to get this thing working?

如果你不知道,有人可能推荐一个简单的论坛插件/工具/东西,我可以买可以改用吗?我现在不是特别束缚这个论坛插件...

If you don't know, could someone recommend a simple forum plugin/tool/thing i can buy that i can use instead? I am not particularly tied to this forum plugin right now...

干杯!

奖金问题:
在步骤3结束时Miles有助于建议:
在app / tmp文件夹中创建一个论坛文件夹也是一个好主意,并将它修改为777.

BONUS QUESTION: at the end of step "3" Miles helpfully suggests: "It is also a good idea to create a "forum" folder within your app/tmp folder, and chmod it to 777. "

一切都很好,但是我只是需要创建一个论坛文件夹,或者我需要说,告诉cakephp使用它?为什么是一个好主意,使一个论坛文件夹?我是不是该?如果我不这样做会发生什么?

All well and good, but do i just need to make a forum folder, or do i need to, say, tell cakephp to use it? Why is it a good idea to make a forum folder? Should i? What happens if i don't?

推荐答案

首先,你似乎混淆了蛋糕1.3和2.0。请阅读文档和教程。这个插件在2.0中的正确路径是/ APP / Plugin / PluginName / ...(还要注意这是非常重要的套)。

first of all you seem to mix up cake 1.3 and 2.0. please read the documentation and tutorials. the correct path for plugins like this one in 2.0 is /APP/Plugin/PluginName/... (also note the casing which is very important).

指出,论坛插件是一个插件。因此它需要一个周围的应用程序(应用程序),它的工作。如果您将其命名为site,您的论坛将位于 / site / Plugin / Forum /

as you already pointed out, the forum plugin is a "plugin". therefore it needs a surrounding app (application) for it to work. if you name it "site", your forum would be in /site/Plugin/Forum/

应该导航到这个 / site 文件夹,并执行 cake 命令。还要确保你通过CakePlugin :: loadAll()在你的引导中加载插件。
那么它会找到Plugin shell。

then you should navigate to this /site folder with your shell and there execute the cake commands. Also make sure you loaded the Plugin via CakePlugin::loadAll() in your bootstrap. then it will find the Plugin shells.

2.0文档可以在这里找到: http://book.cakephp.org/2.0/en/

The 2.0 doc can be found here: http://book.cakephp.org/2.0/en/

这篇关于如何安装cilesoft论坛插件由Miles J?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆