Wednesday, November 14, 2012

Re: How to use KoolPHP with CakePHP

Thanks for your quick reply.  I will definitely check out jqGrid.  Another CakePHP developer also pointed out jQueryUI and really likes it but I haven't had a chance to really dig into it yet either.

I will checkout using an array in Koolgrid too.  I only looked at Query because the Koolgrid examples all show using SQL for the datasource.  Koolgrid says it supports the CakePHP framework (as well as Zend, Yii and Joomla) but I haven't found any useful documentation or examples for using it with CakePHP. I am hoping their support/development team will come through with all the details but so far they have not.  I have the test form in a very stripped down View .  It isn't a "real" one I was just trying to get the minimum information just to get it to work.  

I have the Controller working well I think and the files in the Vendor folder.  My only task now is to finally get it to work in a View and then I think all the rest will fall into place.

On Tuesday, November 13, 2012 4:16:37 PM UTC-6, Russell Brown wrote:
Anyone have good documentation or examples about how to use the KoolPHP controls with CakePHP 2.X?

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: