English 中文(简体)
与 CakePHPP2.0 的 CakePHPP 插件配置问题
原标题:kaching-php Shopping Cart Plugin configuration issues with CakePHP2.0

我做了以下步骤来在我的 cakephp 2. 0 中配置 kaching-php 购物 Cart 插件。 Placed 应用程序/ plugin 文件夹中的插件并导入数据库。 在此之后, 将 ap/ config/ routes.php 中的数据替换为 ap/ config/ routes.php 。

<?php
include (APP . ‘plugins’ . DS . ‘kaching’ . DS . ‘config’ . DS . ‘routes.php’);
Router::connect(‘/’, array(‘plugin’=>’kaching’, ‘controller’ => ‘carts’, ‘action’ => ‘category’, ‘1’));
?>

这些配置之后, 我得到了此错误的错误, 无法打开流流: 没有此文件或目录, 然后我将上述代码更改为

include (APP .  Plugin  . DS .  kaching  . DS .  config  . DS .  routes.php );
Router::connect( / , array( Plugin => kaching ,  controller  =>  carts ,  action  =>  category ,  1 )); 

错误 错误 : 找不到 Carts 主计长 。

请让我知道我们能否使用这些带有 cakephop2. 0 的插件, 或者还有任何其他的购物车插件, 我们可以与我们的 cakephop2. 0 站点合并 。

谢谢 谢谢

问题回答

这是“ 插件” 而不是“ 插件 ”, 数组键对大小写敏感

尝试 :

include (APP .  Plugin  . DS .  kaching  . DS .  config  . DS .  routes.php );
Router::connect( / , array( plugin => kaching ,  controller  =>  carts ,  action  =>  category ,  1 ));

希望这有帮助!





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签