fat-free-framework

    1热度

    1回答

    我想包括字符串列表不含脂肪框架PHP SQL语句在使用“在”表达一个SQL语句,例如: select * from poop where id in ('asd','sas','ser') 我想通过来自变量的参数。引用真的让我感到困扰。我应该通过这个作为一个字符串,我一直通过使逗号分隔字符串看起来像这样的努力都无济于事: 282366381A,240506808A,244154247A,491

    1热度

    1回答

    我尝试指定Fatfree图像处理的品质因子。根据文档(https://fatfreeframework.com/image#dump)转储方法可能需要一个整数值,以指定的质量: $img->dump($fileType, 75) // $filetype is 'jpeg' ,但我得到了以下错误: imagejpeg(): Invalid 2nd parameter, it must [sic

    0热度

    1回答

    我有一个项目需要PHPExcel库(https://github.com/PHPOffice/PHPExcel)与我正在移植到无脂框架的应用程序一起使用。 我将如何使用/引用此包。谢谢 !

    0热度

    1回答

    我尝试插入多个记录无PK台 for ($x = 0; $x < count($arr); $x++) { $name=$arr[$x]; $user=new DB\SQL\Mapper($f3->get('DB'),'User'); $user->name=$name; $user->save(); } 最后,只有一条记录插入到数据库 我也试过rese

    -1热度

    2回答

    自定义路线不正确,总是路线工作user.htm 的index.php $routes = [ "/" => "index.htm", "/user/[email protected]" => "user.htm","/user/@id" => "user.htm", ]; foreach ($routes as $path => $file) { $f3->ro

    0热度

    2回答

    有没有办法将MySQL的HAVING子句与Fat Free Framework's SQL Mapper object's方法中的任何一个一起使用?假设我有以下数据表: +----+-------+--------+ | id | score | weight | +----+-------+--------+ | 2 | 1 | 1 | | 2 | 2 | 3 | | 2 |

    0热度

    2回答

    我的路由代码: F3::route('GET @root: /', "\\Controller\\_App\\App_navigation->get_delegator"); F3::route('GET @modul: /@module', "\\Controller\\@module->get_index"); F3::route('POST @modul', "\\Controll

    0热度

    1回答

    我的项目工作得很好,直到我决定实施名称空间。从那以后我一直有一些问题。我熟悉this post有类似的问题,但没有运气。我也读了the documentation about namespaces,但它也没有帮助。 我的文件结构如下: -fatfree -index.php -app -config.ini -routes.ini -control

    0热度

    1回答

    这是我的代码。 $param = array('email'); $this->getMapper()->copyfrom('POST',function($val) { return array_intersect_key($val, array_flip($param)); }); 我也得到了错误的标题array_flip() expects parameter 1 t

    0热度

    1回答

    大家好我目前正在处理包含相关表中的行并处理表单的表单挑战:在F3中,处理可能导致相关表中的行被添加,修改或删除的表单的最佳方法是什么? DB模式 practitioner ------------------------------ id | int(10) first_name | varchar(255) last_name | varchar(255) abn | char(