hook


How to use hook in WHMCS only on specific page?


If I want to display sidemenu only on affiliates page (affiliates.php) than I'm enclosing code in:
if (App::getCurrentFilename() == 'affiliates'){
}
But how to do same for page index.php?m=somepage ?
You can use the php builtin variables to get the URI, however if you want to use the application object to fetch a specific argument you could do something like:
$whmcs = App::self();
$module = $whmcs->get_req_var('m');

Related Links

How to determine unique application from a HWND or PID?
Prestashop custom hooks
tml_new_user_activated hook not working
Prestashop : Showing back-office custom tab content in product.tpl in front-office
gitolite post-receive hook not triggering
Using hooks to trigger a process
hooks to run different setup and clean for each test case in mocha
Is it possible to add a message in the listing of items in Prestashop?
Does Karma have an initialization hook?
Make hook local in emacs
SpecFlow - Retry failed tests
Gitolite hooks un responsive
WordPress Visual Editor Filter for Visual View
API hooking fails using JMP instruction
Selecting output lines in chunk output by modifying the default output hook
How to detect Windows suspend message?

Categories

HOME
arduino-uno
log4j
hive
hook
webpack
urbancode
deezer
mockito
layout
google-docs
cvs
swagger-ui
portia
webrequest
contact
add
windows-10-universal
orchardcms
decomposition
decimal
carthage
workload-scheduler
jsdoc
shared-hosting
object-detection
abi
tokenize
vlsi
buildbot
fish
underflow
fifo
publish
replaceall
compatibility
libssl
bpel
fabric8
data-manipulation
google-sites-2016
force-layout
wixsharp
overlap
az-application-insights
ssjs
leading-zero
azure-ml
g-code
core-plot
jvm-languages
fakeiteasy
arena-simulation
keydown
outlook-api
total-commander
s
wptoolkit
galleria
auto-update
atomicity
blogengine.net
colorama
windows-mobile-6.5
python-cryptography
cudafy.net
gcsfuse
lync-client-sdk
minimization
word-vba-mac
heidisql
ctest
lua-5.1
make-install
nessus
system.management
netmq
srand
marching-cubes
tmuxinator
citrus-pay
0xdbe
generic-programming
dundas
apache-commons-net
gui-test-framework
qcodo
code-access-security
google-reader
uitouch
jquery-layout
wp-query
htmlcleaner
undefined-reference
message-driven-bean
centos5
tidy
web2py-modules
batterylevel
plasma
lcs
jquery-knob
unc
first-responder
appconkit
amazon-appstore
subscript
coercion
self-extracting
radcombobox
visitor-statistic
digest-authentication
nsviewanimation
asp.net-profiles
user-friendly

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App