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
- Load the CIwY library in CI application.
- Load the desidered YUI widget (eg. Calendar widget)
$this->load->library('ciwy');
$instance = $this->ciwy->loadComponent('calendar');
- Get the HTML tags needed to embed YUI in the HTML page
- Get the container (HTML tag) used to display the widget in the HTML page
- Get the appropriate JavaScript code to generate the YUI widgets
echo $this->ciwy->yuiTags();
echo $this->ciwy->container('calendar');
echo $this->ciwy->generate();
Who is CIwY For?
CIwY is right for you if:
- You want to use YUI quickly in your CI projects.
- You don't want to use JavaScript.
- You are not able to use JavaScript.
- You don't need to manage DOM's events with JavaScript.