literal basic question |
7/9/2011 3:51:11 AM |
PHPRunner General questions | |
B
bluepoint author
I am trying to add the following code as a literal in the AfterAppInit function...can't get it check: unexpected '}' in line 1 |
|
C
|
cgphp 7/9/2011 |
Take a look at the manual page of the AfterAppInit: http://xlinesoft.com/phprunner/docs/after_application_initialized.htm |
B
|
bluepoint author 7/9/2011 |
Take a look at the manual page of the AfterAppInit: http://xlinesoft.com/phprunner/docs/after_application_initialized.htm Instead, place the code in the header section. {literal} is not necessary.
|
C
|
cgphp 7/9/2011 |
Yes, but in the header you can check the current page with the following code: $current_page = basename($_SERVER['REQUEST_URI']);
|
B
|
bluepoint author 7/9/2011 |
Yes, but in the header you can check the current page with the following code: $current_page = basename($_SERVER['REQUEST_URI']);
|
C
|
cgphp 7/10/2011 |
I'm not resisting your original question...I see what you mean, but AfterAppInit event accepts only PHP code and its primary function is to override any global variables or to initialize custom variables or to include php files. |
![]() |
Sergey Kornilov admin 7/11/2011 |
Try to paste this code (without {literal} and {/literal}) right to HTML code template. You can do that in Visual Editor in HTML mode. |