Download the PHP package phundament/gii-template-collection without Composer

On this page you can find all versions of the php package phundament/gii-template-collection. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package gii-template-collection

gii-template-collection

Code templates for Yii 1.1 Framework

Fork on github

The gii-template-collection (gtc) contains templates for the Yii Framework Gii module.

For a Yii 2 port of this project, please visit giiant.

Features

Templates

FullModule

FullModel

default

Model Classes in two files BaseModel, Model

singlefile

Standard Model Class Model

FullCrud

Note: Relation widgets moved to https://github.com/schmunk42/yii-relation

slim

Bootstrap UI with relations

hybrid

Bootstrap UI with relations and grids

slim_editable

Screenshots:

legacy

Original gtc CRUDs

Requirements

Notes

Installation

Get it via composer:

composer.phar require phundament/gii-template-collection

or

Download latest release To use it, simply extract the content of the archive into your application extensions/ directory.

Setup

  1. Configure the templates in the generatorPaths section of the gii configuration inside your application configuration:

    After that, the new generators of gtc should be available in your Gii index page.

  2. The last step is to add some gtc components to your import path so they can be found by the application:

  3. For Debugging Information plz add the log under yours config console

    ` Usage

Full Module

Full Model

Full CRUD

Note: Generated templates require clevertech/yiibooster >=1.1.1 Note: slim_editable require vitalets/x-editable-yii dev

  • open Gii
  • select FullCrud
  • enter model class
  • click preview
  • click generate

AuthItems

Controller actions and UI buttons follow these checkAccess rules:

From 0.13.0 on the a Controller.SimpleUi item was added by default, which hides UI elements, when this item is assigned to the current user.

Note: An admin (superuser) always sees the full UI.

Template slim

Requirements: https://github.com/clevertech/yiibooster, schmunk42/yii-relation

Template slim editable

Requirements:

Template hybrid

An enhanced hybrid between the default/slim templates and the bootstrap crud generator.

Requires x-editable-yii dev and echosen.

Development

Code Providers

The FullCrudCode is able to access providers from a provider-queue to render fields, labels, etc. You can call a provider from your template with, eg.:

$this->provider()->generateColumn($this->modelClass, $column)

FullCrudCode will walk the provider queue until it finds a provider which has the requested method AND which returns not null. This is on of the major differences compared to a behavior.

Example

Render a populated dropdown, if the model contains and optsColumnName() method.

public function generateActiveField($model, $column)
{
    $func = "opts".str_replace("_","",$column->name);
    if (method_exists($model, $func)) {
        return "echo \$form->dropDownList(\$model,'{$column->name}',{$model}::{$func}());";
    }
}

Coding Standards

GTC is using <?=""?> Bobsled Coding Style.

Examples

tbd

Known Problems and Limitations

Resources

Links

History

This project has been originally created by thyseus back in 2010.

To quote from the original project page:

Please enjoy this extension and let us collect as many Templates as possible for other people to enjoy. (haml, smarty, dwoo, twig, ...)

In 2011 schmunk create the currently active fork of the project from revision 186 of the Google Code repository.

While there has been much, much, much, … code added over the time. At the end of July 2013 gtc was completely refurbished.

Contributors

Active maintainers are written in bold.

Contact

Of course, any templates are appreciated and just leave a comment or mail: [email protected].


All versions of gii-template-collection with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package phundament/gii-template-collection contains the following files

Loading the files please wait ....