FastAdmin-T

fixed Admin

The frame can only load Home (the domain name plus index.php can also visit other pages), the server adds pseudo-static, content under the same

Index.php when the domain name resolved to remove PHP
add .htaccess files in the entrance
<IfModule mod_rewrite.c>
Options + FollowSymlinks -Multiviews
RewriteEngine the On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>

 

fixed Admin

Adding PHP system environment variables

Adding to install the software execution path environment variable to the system will automatically identify the executable file, may be used anywhere in the command php Once added

 

 

fixed Admin

Tip switch "not updated any rows" are added to the respective controller

protected $multiFields = 'status,switch';

Or added in the base class switch

/ ** 
* method the Multi bulk edit field 
* / 
protected MultiFields $ = 'Status, Switch';

The cover is still useless in the respective controller

/ ** 
* Batch operation
* @param String $ IDS
* /
public function multi($ids = "")
{
$params = $this->request->request('params');
parse_str($params, $paramsArr);
if (isset($paramsArr)) {
$field = \app\admin\model\Test3::get($ids);
$field->save($paramsArr);
$this->success('操作成功');
}
return parent::multi($ids);
}
 

 

 

 

the _id
_ids in use
for an acknowledgment control input corresponding attribute corresponding data-source, obtaining the default name field, the available data-field field information set to be read

data-field="id" data-source="test/index"

The sentence is as follows:

<input id="c-test_id" data-rule="required" data-source="test/index" class="form-control selectpage" name="row[test_id]" type="text" value="">

 

enum type and generate a corresponding set of annotation fields
created to fill the corresponding value fields
option to add annotations corresponding values in the fields, the following
radio dropdown: 1 = Radio Radio 2,3 = 1,2 = 3,4 = Radio radio radio 5 = 4,5

 

Guess you like

Origin www.cnblogs.com/xuanjiange/p/11766119.html