I have figured some very minor things out:
1) How to load in Controller:
App::import('Vendor', 'KoolControls/KoolGrid/koolgrid');
$Koolgrid = new koolgrid($_il6n);
2) Copy KoolControls folder to the Vendor folder
3) How to use SQL commands directly in CakePHP:
$this->Post->query("select id,user_id,title,body from posts");
Post = Model name
Posts = Table name
But haven't been able to get any further than this.
KoolPHP documentation for the KoolGrid shows using this but it doesn't work:
$grid = new KoolGrid("grid");
$grid->scriptFolder = "Vendor/KoolControls/KoolGrid";
$grid->styleFolder="default";
$grid->DataSource = $ds;
$grid->Width = "655px";
$grid->RowAlternative = true;
$grid->AutoGenerateColumns = true;
$grid->MasterTable->Pager = new GridPrevNextAndNumericPager();
$grid->Process();
?>
<form id="form1" method="post">
<?php $grid->Render();?>
</form>
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
No comments:
Post a Comment