Codeigniter

CodeIgniter Template class

This library was realized by williamsconcepts.

This class is and interface to CI’s View class. It aims to improve the  interaction between controllers and views.

The class  is based on two files:

  1. configuration file: config-template.php
  2. library file: library-Template.php

 

Installation:
  1. extract the content of download file;
  2. copy config-template.php into application/config/ and rename in template.php;
  3. copy library-Template.php into application/library/ and rename in Template.php.

 

To configure the template:
  • add the library in config/autoload.php configuration file;
  • define the template and the regions in config/template.php configuration file.
  • write the “master template” view (ex.: template.php);

 

documentation-> http://williamsconcepts.com/ci/codeigniter/libraries/template/reference.html


DOWNLOAD:  CodeIgniter template class


Now you can write your view into template_view…

  1. calling $this->template->write(‘content’,'home’)
  2. followed by $this->teamplate->render()

You can find an example in this download: CodeIgniter example using Template Class


Lingua italiana in CodeIgniter

Sto implementando la lingua italiana in CodeIgniter partendo da quella predefinita (inglese) presente nella directory system/language/english

Al momento i file tradotti sono:

  • calendar_lang.php
  • date_lang.php
  • form_validation_lang.php
  • upload_lang.php



Nel download sono comunque compresi anche i file non tradotti:

  1. Scompattare il download in /system/language/italian;
  2. modificare nel file config.php il parametro $config['language'] = ‘italian’;




DOWNLOAD Lingua italiana in CodeIgniter

 

Ogni vostra collaborazione è ben accetta ;-)


Programma Didattico Codeigniter

Programma didattico per lo sviluppo di applicazione in Codeigniter:

Download Programma didattico Codeigniter


CodeIgniter User Guide

Guida Utente CodeIgniter 2.1.2

CodeIgniter is an Application Development Framework – a toolkit – for people who build web sites using PHP. Its goal is to enable you to develop projects much faster than you could if you were writing code from scratch, by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries. CodeIgniter lets you creatively focus on your project by minimizing the amount of code needed for a given task.

 

Download CodeIgniter 2.1.2 User Guide (pdf)

Native Auto-load class

One of the most Fastidious limits in Code Igniter is the fact you can’t use the multiple extension on CI_Controller. This cause artificious solutions in the creation of sites with public and admin contoller.

Thanks to Phil Sturgeon, adding this patch at the end of application/config.php you can easily resolve the problem:

/*
| -------------------------------------------------------------------
|  Native Auto-load
| -------------------------------------------------------------------
|
| Nothing to do with cnfig/autoload.php, this allows PHP autoload to work
| for base controllers and some third-party libraries: Pubblic Controller,
| Admin Controller and so on.
|
| Credits to: Phil Sturgeon
|
*/

function __autoload($class)
{
 if(strpos($class, 'CI_') !== 0)
 {
  include_once( APPPATH . 'core/'. $class . EXT );
 }
}

  • Esempio

  • Copyright © 1996-2010 WeTutoriaL. All rights reserved.
    iDream theme by Templates Next | Powered by WordPress