Discussion:
[PacketFence-devel] Utilize pf::web::custom to customize PacketFence
jair barbosa
2015-07-24 14:36:35 UTC
Permalink
Good morning all,
I'm using pf::web:custom to do some customizations on captive-portal
i read in httpd.portal that it is calling,
PerlPostConfigRequire /usr/local/pf/lib/pf/web/
captiveportal_modperl_require.pl
and it is working fine.
Now i want to do the same on pfappserver, i want to make a hook on
node_register (bulkRegister), but in httpd.admin
there isn't a PerlPostConfigRequire backend_modperl_require.pl, i think
that is because PacketFence uses Catalyst, i know i can simply put my code
on a root controller, but there is a better way to customize pfappserver?,
as in captive-portal.
--
Jair dos Santos
James Rouzier
2015-07-24 16:15:14 UTC
Permalink
Jair,

In the since the 4.7 version of PacketFence we allow pfappserver to be
customized by modify the catalyst controllers in

html/pfappserver/lib/pfappserver/Controller/

However to give you a better answer I would need to know what are you
trying to do?




James Rouzier
***@inverse.ca :: +1.514.447.4918 (x115) :: http://www.inverse.ca
Inverse inc. :: Leaders behind SOGo (http://www.sogo.nu) and PacketFence (http://www.packetfence.org)
Post by jair barbosa
Good morning all,
I'm using pf::web:custom to do some customizations on captive-portal
i read in httpd.portal that it is calling,
PerlPostConfigRequire
/usr/local/pf/lib/pf/web/captiveportal_modperl_require.pl
<http://captiveportal_modperl_require.pl>
and it is working fine.
Now i want to do the same on pfappserver, i want to make a hook on
node_register (bulkRegister), but in httpd.admin
there isn't a PerlPostConfigRequire backend_modperl_require.pl
<http://backend_modperl_require.pl>, i think that is because
PacketFence uses Catalyst, i know i can simply put my code on a root
controller, but there is a better way to customize pfappserver?, as in
captive-portal.
--
Jair dos Santos
------------------------------------------------------------------------------
_______________________________________________
PacketFence-devel mailing list
https://lists.sourceforge.net/lists/listinfo/packetfence-devel
Loading...