PHPackages                             joeytrapp/partials - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. joeytrapp/partials

ActiveCakephp-plugin[Utility &amp; Helpers](/categories/utility)

joeytrapp/partials
==================

A CakePHP Partial Helper

8971PHP

Since Oct 17Pushed 12y ago1 watchersCompare

[ Source](https://github.com/joeytrapp/partials)[ Packagist](https://packagist.org/packages/joeytrapp/partials)[ RSS](/packages/joeytrapp-partials/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (1)

Partial Helper
==============

[](#partial-helper)

Installation
------------

[](#installation)

Download the repository into the the Plugin directory

```
cd Plugin
git clone git://github.com:joeytrapp/partials.git Partials

```

Add the `CakePlugin::load()` in the application `bootstrap.php`.

```
echo "CakePlugin::load("Partials");" >> Config/bootstrap.php

```

Load the helper so it will be available in views

```
public $helpers = array("Html", "Form", "Partials.Partial");

```

Methods
-------

[](#methods)

### PartialHelper::render(string $name, array $data, array $options)

[](#partialhelperrenderstring-name-array-data-array-options)

Renders an element relative to the View::viewPath instead of View/Elements. Assumes the element file begins with an underscore.

```

```

Will look for \_form.ctp in the View::viewPath (for /posts/add it would be View/Posts/\_form.ctp).

The $data and $options params are passed on to `View::element()` method. An additional option is "collection". If "collection" is an array, then the `View::element()` will be called for each iteration of the "collection" array. The value of the current iteration is merged in the data array under the element name (without the underscore) key.

```

```

This will render the `_post.ctp` element for each value in $posts, and set a the value in $posts for this iteration to the "post" key in the data array.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 60% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/724b36c6308d281993e94a1c31ccb97a522a8276ce0eb35d7d819b0bd2e20628?d=identicon)[real34](/maintainers/real34)

---

Top Contributors

[![joeytrapp](https://avatars.githubusercontent.com/u/283946?v=4)](https://github.com/joeytrapp "joeytrapp (3 commits)")[![real34](https://avatars.githubusercontent.com/u/75968?v=4)](https://github.com/real34 "real34 (2 commits)")

### Embed Badge

![Health badge](/badges/joeytrapp-partials/health.svg)

```
[![Health](https://phpackages.com/badges/joeytrapp-partials/health.svg)](https://phpackages.com/packages/joeytrapp-partials)
```

PHPackages © 2026

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