PHP 클래스 Menu_Light, atk4
It's not that simply always, sometimes there are sub-pages also. This class solves the problem.
Lets build a structure which adds asterik next to page. First we need to specify that the object to be
coppied around is an asterik. (in your case it might be a class name)
*
Next put self closing tags in form "current_" + page exactly where you want the current to appear
services
consulting
mentoring
products
about
If you go to page servcies, the asterisk will be placed next to "services". If you are on the page
services/mentoring then asterik will appear next to services AND consulting lines.
Line with "about" will have asterik if you are either on 'about' or 'contact' page. That's all you
need to know to use this.
To add this to your application use $this->add('Menu_Light',null,'Menu');
파일 보기
프로젝트 열기: atk4/atk4
공개 프로퍼티들
공개 메소드들
메소드 상세
프로퍼티 상세
public App_Web $app |
리턴 |
App_Web |
|
public View $owner |
리턴 |
View |
|