CodeIgniter wrapper for YUI - CIwY 0.0.03 Beta


Welcome to CIwY - CodeIgniter wrapper for YUI (YAHOO! User Interface)

CIwY (CodeIgniter wrapper for YUI) is a YUI (YAHOO! User Interface) wrapper, based on CodeIgniter Framework thats simplify the integration with YUI itself.
The aim is to let to no-javascript developer to use YUI in CodeIgniter application, providing a simple class called ciwy that within few rows permit to use, almost, the YUI base functionality.
You need just 5 rows: 2 in your controller

  1. Load the CIwY library in CI application.
  2. $this->load->library('ciwy');
  3. Load the desidered YUI widget (eg. Calendar widget)
  4. $instance = $this->ciwy->loadComponent('calendar');
And 3 rows in your view
  1. Get the HTML tags needed to embed YUI in the HTML page
  2. echo $this->ciwy->yuiTags();
  3. Get the container (HTML tag) used to display the widget in the HTML page
  4. echo $this->ciwy->container('calendar');
  5. Get the appropriate JavaScript code to generate the YUI widgets
  6. echo $this->ciwy->generate();

Who is CIwY For?

CIwY is right for you if: