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

cacading hooks in pytest
SpecRun hooks and testThreadCount > 1 not work properly
phpldapadmin user creation hook
Codeigniter Hooks helper and library
Prestashop hookActionProductUpdate Update not working in 1.7
Hooking all the active procs
What is the difference between ctx.end() and next()?
role assign after order complete in ubercart in drupal 8
In Pyramid, is there any kind of “hook” that occurs just before a view is called?
vBulletin: Variable in Threadbits not working
Sequelize 'afterValidate' hook does not change values
Function Hooking with C++
What is the difference between AspectJ And ASM?
Make a hook to be executed only on “onClick” button
How to use WHMCS hook to collect custom field and pass it to WHMCS bundle order pages?
Kubernetes postStart hook seems that blocks all the containers startup. Is that possible?

Categories

HOME
log4j
client
osgi
bluetooth
ngrx
syntax
dot
octobercms
spagobi
getelementsbytagname
microservices
frameworks
umd
yum
fancybox
add
numeral.js
quicklook
handsontable
windows-azure-storage
dtrace
quartz-scheduler
lombok
fatal-error
swingx
chromium-embedded
kudan
hammerspoon
autosys
entitlements
social-media
opentype
bpel
bluestacks
exuberant-ctags
accelerate-framework
amazon-kinesis-kpl
mapbox-gl
environment-modules
scaffold
leading-zero
reportingservices-2005
elmah
mime
outlook-api
http-redirect
scorm
theming
dandelion
pg-dump
cubes
jquery-filter
grails-tomcat-plugin
dstu2-fhir
xml-attribute
player
persist
bgp
yaws
tform
wapiti
cloudbees
execute
intellij-14
retina
computer-algebra-systems
cakephp-3.1
tableau-online
graph-drawing
sonarqube5.1.2
clipperlib
nsmutabledictionary
gadt
preferences
poller
kgdb
android-2.2-froyo
openlaszlo
ril
buster.js
delphi-6
unc
propertyeditor
subscript
adk
actionview
xfbml
dmx512
nsviewanimation
windows-live-messenger
document-conversion

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App