Nile::Module - Module base class for the Nile framework.
package Nile::Module::Home::Home; use Nile::Module; # automatically extends Nile::Module
# inside modules, return current modules config settings my $setting = $self->setting(); my %setting = $self->setting(); # inside modules, return specific modules config settings my $setting = $self->setting("payment"); my %setting = $self->setting("payment");
Returns module settings from configuration files loaded. Module settings in config files must be in inside the module tag. The module name must be lower case tag, so module Payment should be payment.
Payment
payment
Exampler settings for payment module below:
<module> <payment> <url>localhost</url> <user>merchant</user> <pass>1234</pass> </payment> </module>
This project is available on github at https://github.com/mewsoft/Nile.
Please visit the project's homepage at https://metacpan.org/release/Nile.
Source repository is at https://github.com/mewsoft/Nile.
See Nile for details about the complete framework.
Ahmed Amin Elsheshtawy, احمد امين الششتاوى <mewsoft@cpan.org> Website: http://www.mewsoft.com
Copyright (C) 2014-2015 by Dr. Ahmed Amin Elsheshtawy احمد امين الششتاوى mewsoft@cpan.org, support@mewsoft.com, https://github.com/mewsoft/Nile, http://www.mewsoft.com
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Nile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Nile
CPAN shell
perl -MCPAN -e shell install Nile
For more information on module installation, please visit the detailed CPAN module installation guide.