Google 網上論壇首頁
說明 | 登入
vendor integration question
目前本群組有太多主題設為優先顯示。 要優先顯示這個主題,請將其他主題的這個選項取消。
在處理您的要求時發生錯誤。 請再試一次。
標幟
  4 個訊息 - 全部摺疊
您要留言的群組是 Usenet 群組。在此群組留言,網際網路上的任何使用者將可以看到您的電郵地址。
您的回覆郵件尚未寄出。
您已成功留言
.  
檢視個人資料
 更多選項 9月8日, 下午4時44分
寄件者: . <lun...@gmail.com>
日期: Mon, 8 Sep 2008 01:44:40 -0700
當地時間: 2008年9月8日(星期一) 下午4時44分
主旨: vendor integration question

I am trying to put the nusoap library into the vendors area (cake 1.2 rc2)

so i have vendors/nusoap/lib/...
              vendors/nusoap/samples/client1.php

in client1.php, i have require_once('../lib/nusoap.php');

However, this returns an error (cannot find the file nusoap.php in the lib
folder.

This is how to fix it (I think)
require_once('APP\vendors\nusoap\lib\nusoap.php');
Why wouldn't require_once('../lib/nusoap.php') work?

thanks


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
Adam Royle  
檢視個人資料
 更多選項 9月8日, 下午6時18分
寄件者: Adam Royle <a...@sleekgeek.com.au>
日期: Mon, 8 Sep 2008 03:18:51 -0700 (PDT)
當地時間: 2008年9月8日(星期一) 下午6時18分
主旨: Re: vendor integration question
http://book.cakephp.org/view/538/Loading-Vendor-Files

On Sep 8, 6:44 pm, . <lun...@gmail.com> wrote:


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
.  
檢視個人資料
 更多選項 9月8日, 下午6時39分
寄件者: . <lun...@gmail.com>
日期: Mon, 8 Sep 2008 03:39:44 -0700
當地時間: 2008年9月8日(星期一) 下午6時39分
主旨: Re: vendor integration question

Adam, that is not the problem I was having. I am calling the library
correctly
(App::import('Vendor','nusoap',array('file'=>'nusoap/lib/nusoap.php'))...
my problem was that one of the library files was returning the error "cannot
find the  file " (something similar) when it has this line:

require_once('../lib/nusoap.php')
changing the "../lib/nusoap.php" to "APP\vendors\nusoap\lib\nusoap.php'
fixes this, however. So, will I have to change all of the references to the
"incorrect" file references in all of the library files? Or, am I doing
something wrong?


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
Adam Royle  
檢視個人資料
 更多選項 9月8日, 下午9時01分
寄件者: Adam Royle <a...@sleekgeek.com.au>
日期: Mon, 8 Sep 2008 06:01:58 -0700 (PDT)
當地時間: 2008年9月8日(星期一) 下午9時01分
主旨: Re: vendor integration question
Oh sorry, I misread your initial post. From what I can see you're
trying to include client1.php (just a sample script), when really you
should just include the library directly...

You've got the correct code
(App::import('Vendor','nusoap',array('file'=>'nusoap/lib/nusoap.php'))
so just use the class within cakephp.

Adam

On Sep 8, 8:39 pm, . <lun...@gmail.com> wrote:


    回覆作者    轉寄  
您必須先登入才能張貼訊息。
若要張貼訊息,您必須先加入此群組
請在留言之前更新您訂閱設定網頁上的暱稱。
您沒有留言所需的權限。
主題尾端
« 返回討論主題 « 較新的主題     較舊的主題 »

建立群組 - Google 網上論壇 - Google 首頁 - 服務條款 - 隱私權政策
©2008 Google