PHPackages                             uncaose/straight-ci-layout - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. uncaose/straight-ci-layout

ActiveLibrary

uncaose/straight-ci-layout
==========================

Straight CodeIgnight Layout

v2.4(7y ago)221proprietaryPHPPHP &gt;=5.3.7

Since May 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/uncaose/straight-ci-layout)[ Packagist](https://packagist.org/packages/uncaose/straight-ci-layout)[ RSS](/packages/uncaose-straight-ci-layout/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (5)Dependencies (2)Versions (9)Used By (0)

straight-ci-layout
==================

[](#straight-ci-layout)

- Using MY\_Controller.php

Apply CI version
----------------

[](#apply-ci-version)

- Codeigniter 2.2.6 : [CI2 straight-ci-layout](https://github.com/uncaose/straight-ci-layout/tree/CI2)
- Codeigniter 3.1.7
- Codeigniter 3.1.8

Method
------

[](#method)

```
$this->load->cache() // browser cache Default : $time=60, $Etag=NULL
$this->load->css('any.css'); // chainning
$this->load->js('any.js');  // chainning
$this->load->view('any', []);   // CI3 default
$this->load->view('any', [], TRUE);   // CI3 default, non chain
$this->load->cache()->css()->js()->view()->view()->css()->js()->view();    // usage
```

Config
------

[](#config)

```
$config['modules'] = ['layout'];
$config['asset_controller'] = 'asset';
$config['asset_hashkey'] = 'md5';
$config['asset_nocache_uri'] = TRUE;   // TRUE : /asset/css/style.css?_=abc...1234, FALSE : /asset/cas/style.css
$config['asset_combine'] = TRUE;    // TRUE|FALSE css, js combine, TRUE: use cache if possible or query
$config['asset_minify_js'] = TRUE;  // require composer minify lib
$config['asset_minify_css'] = TRUE; // require composer minify lib

$config['adapter'] =  ['adapter' => 'dummy', 'backup' => 'file'];  // CI cache lib, default dummy
$config['ttl'] = 2592000;	// 30 day

$config['view_skin'] = '_skin';
$config['view_layout'] = '_layout';
$config['view_minify'] = TRUE;
```

Ex Controller
-------------

[](#ex-controller)

```
Class Welcome extends MY_Controller
{
    public function index() {
        $this->load
            ->cache(5)
            ->css('https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css')
            ->js([
                ['src'=>'https://code.jquery.com/jquery-3.2.1.slim.min.js', 'integrity'=>'sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN','crossorigin'=>'anonymous'],
                'https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.3/umd/popper.min.js',
            ])->js([
                'src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" crossorigin="anonymous"'
            ])->view('welcome_head')
            ->view('welcome_message')
            ->view('welcome_foot');
    }
}
```

```
Class Someone extends MY_Controller
{
    public funtion _init() // Commonly used functions instead of __construct ()
    {
        // code...
    }

    public function index()
    {
        $this->load->view('someone');
    }
}
```

```
Class Someone extends MY_Controller
{
    public function __construct()
    {
        parent::__construct();
        $this->load->driver('straight');
    }

    public function index()
    {
        $this->load->view('someone');
    }
}
```

Ex Output
---------

[](#ex-output)

```

    ...

```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~8 days

Total

7

Last Release

2863d ago

Major Versions

v1.1 → v2.02018-05-23

### Community

Maintainers

![](https://www.gravatar.com/avatar/9ed15ecd9d41bba43302dd0f459911a90008ccc41fbd247603bd9a76ef2a1c17?d=identicon)[uncaose](/maintainers/uncaose)

---

Top Contributors

[![uncaose](https://avatars.githubusercontent.com/u/10113799?v=4)](https://github.com/uncaose "uncaose (145 commits)")

### Embed Badge

![Health badge](/badges/uncaose-straight-ci-layout/health.svg)

```
[![Health](https://phpackages.com/badges/uncaose-straight-ci-layout/health.svg)](https://phpackages.com/packages/uncaose-straight-ci-layout)
```

###  Alternatives

[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k4](/packages/elgg-elgg)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[appwrite/sdk-generator

Appwrite PHP library for generating API SDKs for multiple programming languages and platforms

309166.5k1](/packages/appwrite-sdk-generator)[sebastienheyd/boilerplate

Laravel Boilerplate based on AdminLTE 3 with blade components, user management, roles, permissions, logs viewer, ...

28618.2k3](/packages/sebastienheyd-boilerplate)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
