草庐IT

the-iframe-element

全部标签

php - 错误 : You must use the "set" method to update an entry fix?

我使用codeigniter作为我的PHP框架,当我提交我的fromtopost到我的数据库时,我总是收到这个错误。Youmustusethe"set"methodtoupdateanentry我不太确定这是什么意思,从我看过的其他帖子来看,每个人都说数据映射器需要为对象分配一个值。由于我是新手,有人可以给我更好的解释吗。这是我的代码,它说我有错误:classAdd_bookextendsCI_Model{publicfunctionadd_book($data){$this->db->insert('ST_ITM',$data);}}?>谢谢。 最佳答案

javascript - 如何将 facebook 组(不是常规页面)嵌入到 wordpress 的 iframe 中?

好的,这里有关于嵌入facebook页面的类似问题,这可以通过使用facebook'sofficialplugin轻松完成。但是,当您输入组的URL而不是页面时,它会出现一个错误,指出它是一个无效的URL。我基本上想做与此插件相同的事情,但我希望能够在我的网站上共享群组,也可能共享事件,而不是页面。希望facebook将此功能添加到他们的插件中,但在那之前我需要你们的帮助:)我相信这一定是可能的 最佳答案 为此有几个很棒的插件。一个叫做“FeedThemSocial”,它可以满足您的所有要求。有免费和付费版本,它们支持FB群组。您可

php - Yii2错误: The view file does not exist

我已经使用Yii2几个星期了,并且掌握了它的窍门。然而,今天,由于我不知道的原因,Yii将我路由到错误的页面,导致错误,因为没有找到网页:URL:http://localhost/web/index.php?r=site/indexError:InvalidParameter–yii\base\InvalidParamExceptionTheviewfiledoesnotexist:C:\xampp\htdocs\views\site\index.php但是,自从我开始使用Yii2以来,我已经能够使用http://localhost/web/index.php?r=paramA/par

php - 从 iframe 内部发布时的 Laravel TokenMismatchExpection

我在http://some.example.com/myiframes/default.aspx上运行了一个页面。此页面有一个iframe。iframe源/包含Laravel5.2基础应用程序。我的Laravel页面URL“这是iframe的来源”是https://laravel.example.com.https://laravel.example.com有一个带有提交按钮的表单。当用户点击它时,他/她会点击同一域中的另一条路线,即https://laravel.example.com/disply/survey但每次我提交表单时都会出现以下异常TokenMismatchExcept

javascript - 无法使用 php、javascript 在 IE 上打印 iframe,而是打印当前页面,其中有打印按钮

无法使用php、javascript在IE上打印iframe,而是打印当前页面,其中有打印按钮以及,当我们点击打印按钮时,它会出现在index.php页面上,而不是它应该停留在存在打印按钮的当前页面上。我的代码如下。Print我也试过其他方法,但没用functionprintie(){try{iframe=document.getElementById('frame1');iframe.contentWindow.document.execCommand('print',false,null);}catch(e){window.print();}}Print除IE外,其他一切都适用于c

php - 正则表达式(php 中的 preg_match): last groups in the output array don't work correctly

使用这种模式:(howis\s)?(the\s)?(weather)\s?((on)\s)?(today|tomorrow|sunday|monday|tuesday|wednesday|thursday|friday|saturday|sunday|thisweek)?(\s(in)\s(.*)\s?(on)?\s?(today|tomorrow|sunday|monday|tuesday|wednesday|thursday|friday|saturday|sunday|thisweek)?)?这就是我要捕捉的东西输入:维也纳星期二的天气怎么样输出:array(100=>howis

php - 创建资源 : [message] fopen(): Unable to find the wrapper "https" on Ubuntu using Symfony 时出错

我正在尝试在Ubuntu17.04机器上安装Symfony3,但出现错误:[GuzzleHttp\Ring\Exception\RingException]Errorcreatingresource:[message]fopen():Unabletofindthewrapper"https"-didyouforgettoenableitwhenyouconfiguredPHP?[file]phar:///usr/local/bin/symfony/vendor/guzzlehttp/ringphp/src/Client/StreamHandler.php[line]406[messag

php - 如何以编程方式设置 SVN 存储库 "on the fly"?

我正在建立一个系统(基于PHP),让用户立即提供一个SVN环境以供使用。这是一个内部项目,因此用户主要是内部用户。我什至不知道从哪里开始。是否有用于PHP的SVN绑定(bind),或者我是否必须使用svn控制台命令? 最佳答案 这是一种可能性。您将在这里执行几个步骤。首先,您需要在PHP操作脚本中创建svn存储库,可能类似于:$name=$_REQUEST['name'];//gonnaneedsomesanitycheckingon$namehere.no'..',no'/'s,etc$cmd='svnadmincreate'.e

php - Zend 框架中的 Zend_form_element_select onchange

我有一个名为createDevice.php的表单:classAdmin_Form_CreateDeviceextendsZend_Form{publicfunctioninit(){$this->setName('CreateDeviceAccess');$sort=newZend_Form_Element_Select('employee_name');$sort->setLabel('EmployeeName:');$this->addElements(array($sort));/*FormElements&OtherDefinitionsHere...*/}}现在在名为vie

php - 如果...否则发出 : removing the matched variable

我是编码新手,无法建立简单逻辑的想法..好的,我写了一个代码先看看:$mnaTotalCharectars:$c_mna";}$go[0]="January";$go[1]="February";$go[2]="March";$go[3]="April";$go[4]="May";$go[5]="June";$go[6]="July";$go[7]="August";$go[8]="September";$go[9]="October";$go[10]="November";$go[11]="December";$fo="October";$i=0;for($i=0;$i我想做的是删除