如何添加新页面并显示简单的文本,我还需要在 oragehrm 的 pim 部分中添加菜单中的链接?这可能吗?我尝试像这样添加新页面。
Path : symfony/plugins/orangehrmPimPlugin/modules/pim/actions
viewtestDetailsAction.class.php
class viewMyDetails extends basePimAction {
private $userService;
/**
* @param sfForm $form
* @return
*/
public function setForm(sfForm $form) {
if (is_null($this->form)) {
$this->form = $form;
}
}
/**
* Get ConfigService
* @return ConfigService
*/
public function getConfigService() {
if (is_null($this->configService)) {
$this->configService = new ConfigService();
}
return $this->configService;
}
public function execute($request) {
}
protected function viewMyDetails() {
$this->redirect('pim/viewtestDetails');
}
}
symfony/plugins/orangehrmPimPlugin/modules/pim/templates
viewtestDetails.php
<?php
echo "teset";
?>
我做错了吗?或者如何逐步在 pim 部分添加简单页面