[eluser]Late Night Again[/eluser]
This addition looks fantastic, although I am trying to create my own controller with YAML but receiving errors everywhere on the page like so
Code:
A PHP Error was encountered
Severity: Notice
Message: Uninitialized string offset: 0
Filename: libraries/jtabyadmin.php
Line Number: 40
Is this something I am doing wrong or am I missing a value somewhere my controller is as follows
Code:
<?php
include("jtabycontroller.php");
class Webinar extends jTabyController {
function Webinar() {
jTabyController::jTabyController();
$this->load->library('spyc');
$this->load->helper('inflector');
$config = array(
'db_table' => 'webinar',
'form_setup' => $this->spyc->YAMLLOAD('definitions/webinar_form.yml'),
'controller_name'=>'Webinar',
'list_header'=>'Webinar',
'list_text' => array('active','expire'),
);
$this->setConfig($config);
}
}
?>
Code:
created_by:
class:SessionData
params:
item:user_id
created_at:
class:Time
params:
-on_insert
updated_at:
class:Time
params:
-on_update
name:
class:TextBox
description:
class:TextArea
attributes:
cols:50
rows:50
activate:
class:Date
expire:
class:Date
active:
class:DropDown
params:
list:
Yes:Yes
No:No
value:Yes
obviously the database is there and so are the fields