更改Seagull概述如何添加PEAR包?为了在自己的模块中使用,你可以添加PEAR包. 很明显,所有的PEAR类都放在PEAR目录中(/lib/pear/).你可以使用PEAR包管理(更多手册:PHPkitchen),也可以自己拷贝文件. 如果要使用PEAR包管理,必须设置安装目录: pear config-set php_dir <your_path_to_seagull>/lib/pear/ 然后使用以下的命令轻松地安装PEAR包 pear install <package> 安装完后,别忘了重新安排php_dir的设置哦. 我想卸载一些模块目前,你可以在”管理模块”页面上隐藏模块或真正手动卸载模块,不久以后,它将作为一个函数来使用 彻底删除
隐藏
看看这两个seagull-general threads Front Controller如何支持来解决GET窗体?我们使用一些不同的方法,来合并FC到forms中,它基本上分解成这些分类:
至于如<form action=””>,我们将执行下列的: <form id="foo" name="foo" action="{makeUrl(#results#,#search#,#bar#)}" method="get" flexy:ignore>
当提交时,将产生如下的url: //http://example.com/index.php/bar/search/action/results/?term=baz// 这些是FC中比较杂乱的混合部分和传统的风格,但是通过##$_GET##传递给##?foo=bar##格式的数据都变得有效,因而对脚本是可用的. 第二种方法,适合于选项onChange事件,我们使用的资料,如: <select name="groupBy" onchange="document.location.href='{makeUrl()}frmOrgId/{page.orgId}/blockIndex/{blockIndex}/groupBy/'+ getSelectedValue(self.document.actionBarBottomForm{blockIndex}.groupBy);"> 数组放在表单中会怎么样?> 同样,我认为我只找到了一个问题... > 数据的参数没有被正确操作. > 例如,使用url的action链接: > http://.../module/action/myaction/sth[]/5 > 被认为是无效的(将数组修改成一个字符串:"sth=5"代替"sth[]=5"). > > 有人可以确定吗? 我们有数组解析运行的基本标准.使用FC,PHP的GET/POST数组解析不再是有用,它模仿##SGL_Url::dirify()##和##getVarNames()##,表单元素如: <select name="array[foo]"> <select name="array[bar]"> 一旦建立,一个大的URL将产生,如下: http://example.com/index.php/max/report/action/reportBuilder/reportData[report_id]/2/reportData[report_id]/2/reportData[organisation_id]/5/reportData[period]/today/reportData[format]/1/submitted/1/reportData[report_id]/2/reportData[organisation_id]/5/reportData[period]/today/reportData[format]/1/submitted/1/ url编码成: http://example.com/index.php/max/report/action/reportBuilder/reportData%5Breport_id%5D/2/reportData%5Breport_id%5D/2/reportData%5Borganisation_id%5D/5/reportData%5Bperiod%5D/today/reportData%5Bformat%5D/1/submitted/1/reportData%5Breport_id%5D/2/reportData%5Borganisation_id%5D/5/reportData%5Bperiod%5D/today/reportData%5Bformat%5D/1/submitted/1/// 正确地支持这种格式,让reportData[]/5运作将是一个很小的工作. 当我们涉及url解析时,我认为google做得最好.他创建form伪对象,这个对象更容易处理服务器方面: <code html> <input type=“hidden” name=“creative.destUrl.protocol” value=“http”> </code> |