Regarding the Plates framework, the render() method of rendering templates
蓦然回首
蓦然回首 2019-03-05 14:17:38
0
0
733

//Original code
public function edit($id='')
{

$row = (new User())->get('user',[' id','name','dept','art','email'],['id'=>$id]);

return $this->view->render( 'admin::index/edit', [
'title' => 'Edit record',
'url' => '/admin/index/save',
'row' => ; $row,
]);
}


This paragraph render('admin::index/edit',...

admin I understand it is the alias defined before, but what does this double colon mean? Why is it not a slash '/'

蓦然回首
蓦然回首

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!