Show DevBest Codetana Framework [PHP OOP]

Status
Not open for further replies.

Jian

Resident Weeb
Contributor
Sep 2, 2011
687
437
CTwQF6pl7eLz.png

What is Codetana?
Codetana is a base framework that allows you to easily develop your project on top of it. Codetana is easy to use and understand as it is well-commented and simple.

Codetana offers developers...
A simple-to-use templating system, MySQLi class, so-called "view" controller, PermGET from ribbonCMS and a form helper class.

Helping tips!
The variable $CT will be used as a call variable for calling out functions for each class.
Available calls:
  • $CT->form
  • $CT->mysqli
  • $CT->permget
  • $CT->template
Before you can do those, you need to initialise those classes. Example:
PHP:
//Initialising classes
$CT->init('permget');//Initialising PermGET
$CT->init('mysqli', array('db_stuff'));//Initialising MySQLi
$CT->init('form');;//Initialising the form helper.
You do not need to initialise the template class as it has been initialised in index.php.

And you can do this (Example):
PHP:
//Example
$CT->permget->PermGET('id');
//Or
$CT->template->addParam('parameter', 'value');
//Awesome chainings

You can easily extend the template class as well:
PHP:
class tpl_extent extends CT_Template {//Starting an extended class
 
  public function __construct() {//Construct
 
    parent::addParam('parameter', 'value');//Calling a function.
    //Or adding contents to the output.
    parent::$output .= 'Something.';
 
  }
 
}

Download (V1.1.0) ribbonCMS Standard....
[ ]

Who's using Codetana?
BlahHosting (Main Site) [ ]
ribbonCMS 3.0
 

Jian

Resident Weeb
Contributor
Sep 2, 2011
687
437
One example that I used Codetana to code is this script for ScreenSnapr and other screen snaping program.
 
Status
Not open for further replies.

Users who are viewing this thread

Top