SlaxWeb Framework
  • Overview
    • Requirements
    • Installation
      • Preparing the environment
      • Install with composer
      • Install from prepared packages
    • First glance at the framework
      • Root directory
      • Main Application directory
      • Bootstrap directory
      • Documentation directory
      • Public directory
      • Composer Files
        • Autoloader
      • URLs
      • Templating
        • Template directory
        • View directory
    • Model-View-Controller
      • Models
      • Views
      • Controllers
    • Software Architecture
      • Services and Properties
      • Providers
  • Getting Started
    • Setting up a WebServer
      • Nginx + PHP-FPM
      • Apache + mod_php
        • Hiding index.php in the URL
      • Built-in PHP server
      • SlaxWeb App Server
      • Getting started with Docker
    • Prepare the Framework
      • What are components?
        • What we will need
      • Installing the components
    • Routes
      • Route collection file
        • Load the collection file
      • Adding a route
    • Home Page
      • Template file
        • Breaking up the template
      • Preparing the view classes
      • Rendering the view
    • News page
      • Preparing the database
      • Setting up the route
      • Template file
        • View class
      • Model class
      • Bringing it all together
    • Single news page
      • Creating the controller
      • Create the template
      • The Route
    • Add news article
      • Setting up the route
      • Template and View
      • Saving the article
    • Edit news article
      • Setting up the route
      • Preparing the View
      • Preparing the controller
        • Saving updated news article
  • General Topics
    • Application object
      • Using the Application object
        • Writing to Application
        • Reading from Application
      • Services
      • Service Providers
        • Registering the Service Provider
    • Routing and URLs
      • Defining Routes
        • Example
      • Matching the URIs
        • Default Route
        • Exact matching URI
        • URL contains URI
        • Multiple URIs
        • Regular Expressions
      • Handling HTTP Methods
      • Route Action
        • Request
        • Response
      • Route specific hooks
      • Segment-based URI matching
        • Parameters
        • Examples
    • Configuration
      • Configuration file structure
      • Loading configuration items
      • Reading configuration
    • Components
      • Sub-components
      • Component configuration file
        • Type
        • Providers
        • Configuration files
        • Sub-components
        • Scripts
    • Slaxer
      • Component manipulation
        • Install
        • Upgrade
        • Remove
        • Reconfigure
        • List
      • Custom Commands
    • Controllers
      • Loader
      • Using the Controller
    • Views & Templates
      • The View
        • Loading the View
        • Setting the template
        • View data
        • Rendering the template
      • Templating
        • Sub-Views
        • Layouts
    • Handling responses
      • Response object extensions
        • addContent
        • redirect
      • Output component
        • Configuration
        • Output handlers
        • View handler
        • JSON handler
    • Models
      • Base Model
      • Writing a Model
      • Loader
    • Logger
      • Using the logger
      • Configuring the logger
        • defaultLogger
        • logFilePath
        • loggerSettings
      • Reserved loggers
    • Hooks
      • Writing hook points
      • Writing Hook Definitions
        • Register Hook Definitons
        • Multiple Hook Definitions
      • Framework hooks points
    • Cache
      • Configuration
        • handler
        • location
        • maxAge
      • Using the cache
      • Write and read
        • write
        • read
        • remove
    • Libraries
      • Registering libraries
  • Databases
    • Installation
    • Configuration
      • Connecting to a Database
        • Driver
        • Hostname
        • Port
        • Database
        • Username & Password
      • Base Model Settings
        • Table name guessing
    • Base Model
      • Using the Base Model
      • Using the loader
      • Setting the table name
      • Accessing the Database
        • Executing queries
      • Callback hooks
        • Custom model name
    • Query Caching
      • Using the model
      • Custom cache name
        • Automatic removal on update
      • Skipping cache
    • Executing Queries
      • Run custom query
      • Error handling
      • Query parameters
        • Sequential parameter binding
        • Named parameter binding
      • Fetching data
        • Reading results
      • PDO
    • Query builder
      • Creating data
      • Updating existing data
      • Deleting data
        • Soft deletes
      • Data retrieval
      • Where statements
        • where
        • orWhere
        • groupWhere
        • orGroupWhere
        • nestedWhere
        • orNestedWhere
      • Joins
        • join
        • joinModel
        • joinCond
        • orJoinCond
        • joinCols
      • Grouping
      • Ordering
      • Limit
      • Timestamps
        • enabled
        • createdColumn
        • updatedColumn
        • function
      • SQL functions
  • Components
    • Bootstrap Component
      • Application
        • Hooks
      • Registering Additional Providers
      • Class reference
    • Config Component
      • Handler
        • Prepending configuration item names
        • Specific Handlers
        • Custom Handlers
    • Router Component
      • Route
        • URI
        • Method
        • Action
      • Container
      • Dispatcher
        • Hooks
      • Request
      • Response
      • Route Collections
        • Adding a route
      • Services
      • Class reference
  • Class Map
SlaxWeb Framework
  • Docs »


© Copyright 2017, SlaxWeb Dev Team.

Built with Sphinx using a theme provided by Read the Docs.