Skip to content

adibalcan/air-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

air-php

One file MVC framework for PHP

The main file is index.php the syntax is similar to CodeIgniter. config.php contains different routes.

Sample

Load and use a model in controller

$this->load->model('categories');
$data['categories'] = $this->categories->getAllActive();

Load a view

$this->load->view('general', $data);

Put a view in another view

$general['main'] 		= $this->load->view('browsing/category', $data, true); 
$this->load->view('general', $general);

About

One file MVC framework for PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages