【发布时间】:2012-11-19 15:55:10
【问题描述】:
我使用this plugin 允许将Dropbox 集成到joomla 中。 当用户登录 te 系统时,在您的 Dropbox 帐户中创建一个文件夹,一切正常。
我需要将此选项添加到用户创建页面。我尝试在控制器 com_users/controllers/user.php 中编辑保存功能
JModel::addIncludePath (JPATH_ROOT . DS . 'components' . DS . 'com_dropbox' . DS . 'models');
$dropbox =& JModel::getInstance('dropbox', 'dropboxModel');
我需要在这里向模型传递值:
/**
* Creates a new folder
*
* This method returns the information from the newly created directory
*
* @param string $path
* @return stdclass
*/
public function createFolder($path="") {
$path= &Jfolder::makeSafe($path);
if (trim($path)=="")
{
//OK lets try to create the chroot
// $path=$this->dropbox->chroot;
}
$result = $this->auth->fetch('fileops/create_folder', array('path' => $this->dropbox->folder . '/' . $path, 'root' => $this->root),'POST');
return json_decode($result);
}
各种尝试都没有结果......
请帮助我,谢谢...!
【问题讨论】:
标签: joomla2.5 dropbox dropbox-php