docs.slymvc.com
Input Library | slyMVC
http://www.docs.slymvc.com/user-guide/input
To prevent unauthorized XSS (cross site scripting) issues, and to save space in the database, removing white space and superfluous characters is one of the easiest ways to begin securing an application. In line with this, we provide some simple Input validation methods to help keep your input clean and sanitized. The Input library contains the following input and sanitizing methods:. This- input- clean input( $input. This- input- sanitize( $input. This- input- get( $name. This- input- post( $name. This m...
docs.slymvc.com
Init Library | slyMVC
http://www.docs.slymvc.com/user-guide/init
The init library gives you a class consisting of simple ini configuration file operations. The INI file format is an informal standard for configuration files for your software. INI files are simple text files with a basic structure composed of sections, properties, and values. These make application configuration operations simple and easy for more intensive applications. The default directory that stores the ini files is:. This library has the following operations to make ini file generation easy:.
docs.slymvc.com
Encryption Library | slyMVC
http://www.docs.slymvc.com/user-guide/encryption
The encryption library makes some useful functions available to improve the security of your application by giving you the ability to encrypt and encode password and strings. The following functions are included:. This method encodes a string using base64 encoding:. This- encrypt- simple encode( $string. This method is a bit more secure than the simple encoding method and encodes a string using AES encryption:. This- encrypt- encode( $string. This- encrypt- simple decode( $string. We are always looking t...
docs.slymvc.com
Libraries | slyMVC
http://www.docs.slymvc.com/user-guide/libraries
Libraries are one of the things in any framework that really give developers the opportunity to develop applications rapidly, by providing a set of built in methods for common tasks from project to project. slyMVC is no exception, as it has a solid and ever growing list of built in Libraries for some of the most common development tasks, with the ability for developers to create there own libraries to further extend the framework's functionality. By default, all core libraries are located in. By default,...
docs.slymvc.com
Base Library | slyMVC
http://www.docs.slymvc.com/user-guide/base
The base library contains common useful functions and will be expanding over time based on user requests and feedback throughout the development process and beyond. At the moment, we have included the following functions:. Generate Random Alpha String. This is a useful function for generating a random string of alphabetical characters, for example, a random password generator, session id, and more. Implementing it in a controller is as simple as calling the library and method like so:. We are always look...
docs.slymvc.com
Reserved Names | slyMVC
http://docs.slymvc.com/user-guide/reserved_names
SlyMVC utilizes PHP namespaces to prevent conflicts with your code. With that said, there are a few reserved namespaces that are used by the core and vendor files within slyMVC that you will want to avoid. These are as follows:. These are the variable names to avoid to prevent conflicts with the slyMVC core.
docs.slymvc.com
License Agreement | slyMVC
http://docs.slymvc.com/user-guide/license
docs.slymvc.com
Server Requirements | slyMVC
http://docs.slymvc.com/user-guide/server
PHP short open tag enabled (php ini overridden in slyMVC in the. Apache2 mod rewrite enabled. MCrypt Extension enabled (for use with the encryption library). Though not required for basic development purposes, the following databases are supported with slyMVC. SAP Sybase SQL Anywhere.
docs.slymvc.com
Installation | slyMVC
http://docs.slymvc.com/user-guide/installation
SlyMVC is installed in a few easy steps:. Upload the slyMVC folders and files to your server. Normally the index.php file will be at your root. If you are intending to run the application from a subdirectory:. Open the .htaccess file with a text editor and set your RewriteBase with a preceding and trailing slash. File with a text editor and set your $config['site url']. In a terminal, change directory to system and run a composer install to install the required vendor packages and dependancies:. You can ...
docs.slymvc.com
Settings Configuration | slyMVC
http://www.docs.slymvc.com/user-guide/configuration
All basic configurations are located in. The most important basic configuration settings that you will need to fill in are the site name and site url. You can also change the default view template that gets rendered. For more information on Templates, see the documentation for Views. Site Page Config $config['site title'] = 'slyMVC'; / Base title of application $config['site title sep'] = ' '; / Separator for your title $config['site url'] = 'slyMVC.com'; / Leave blank if not a sub-directory.