Have you ever used CodeIgniter in conjunction with KoolPHPSuite ?

Posted on 2013-06-07
Last Modified: 2013-06-07
Hi Experts!

Have you ever used CodeIgniter in conjunction with KoolPHPSuite ?

Some unexpected behaviors comes, example bellow:
Maybe due some intrinsic CodeIgniter constructor treatment...

Do you know what could solve this?

      $KoolControlsFolder = "/../../../KoolPHPSuite/KoolControls"; //Relative path to "KoolPHPSuite/KoolControls" folder
    $koolajax->scriptFolder = $KoolControlsFolder . "/KoolAjax";
    require $KoolControlsFolder . "/KoolCalendar/koolcalendar.php";
    require $KoolControlsFolder . "/KoolForm/koolform.php";
    require $KoolControlsFolder . "/KoolAjax/koolajax.php";
    require $KoolControlsFolder . "/KoolComboBox/koolcombobox.php";   

    $myform_manager = new KoolForm("myform");
    $myform_manager->scriptFolder = $KoolControlsFolder . "/KoolForm";
    $myform_manager->DecorationEnabled = true;
    $myform_manager->styleFolder = "sunset";

    $myform_manager->Validate = true; //Validate form before post
    $myform_manager->RenderWithExistingMarkup = true; //Use existing page layout
    $myform_manager->StatePersistent = false; //Don't keep state persistent after postback.

    $datepicker = $myform_manager->AddControl(new KoolDatePicker("datepicker"));//Create calendar object
    $datepicker->scriptFolder = $KoolControlsFolder . "/KoolCalendar"; //Set scriptFolder
    $datepicker->styleFolder = "default";
    $datepicker->DateFormat = "d/m/Y";
    $datepicker->Date = date("dmY");

    $datepicker1 = $myform_manager->AddControl(new KoolDatePicker("datepicker1")); //Create calendar object
    $datepicker1->scriptFolder = $KoolControlsFolder . "/KoolCalendar"; //Set scriptFolder
    $datepicker1->styleFolder = "default";
    $datepicker1->DateFormat = "d/m/Y";
    $datepicker1->Date = date("dmY");


    $con = mysql_connect(db_host, db_user, db_word);
    mysql_select_db(db_name, $con);


<form id="form2" method="post"  action="Teste_Kool_Pesq_Lanc_01.php" method="POST">
    <br />
    <br />
    Data Inicial:
    echo $datepicker->Render();
Data Final:
    echo $datepicker1->Render();
    if ($datepicker->Value != null)
        echo "<b>Data Inicial:</b> " . $datepicker->Value;
    if ($datepicker1->Value != null)
        echo "<b>Data Final:</b> " . $datepicker1->Value;

<br />
<br />

Open in new window

Thanks in advance!
Question by:Eduardo Fuerte
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 2
LVL 31

Expert Comment

by:Marco Gasi
ID: 39229217
Is the code you posted the controller code? It doesn't seem to be... See here a first suggestion about how to use KoolPhp with CI:
LVL 31

Expert Comment

by:Marco Gasi
ID: 39229239
You find the same code in the KoolPhp forum here:
Another example here:

Hope this helps


Author Comment

by:Eduardo Fuerte
ID: 39229342

Thanks for the reply!
I was a little afraid about compatibilities.
Do you have any personal experience in using this in conjunction? if possible could you share it?
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 31

Accepted Solution

Marco Gasi earned 500 total points
ID: 39229401
I have no direct experience about, but if KoolPhp forum says it is possible, I don't see why you have to fear for compatibility problems. You can see the first piece of code has been defined helpful by the user asked for a help (

What I can explain is that you have to put in the controller the code which sets up the KoolPhp component and then call simply render function in the view page.


Author Closing Comment

by:Eduardo Fuerte
ID: 39230595
Thank you for the assistance.
I'm finding the way, unfortunatelly KoolPHPSuite does not give to much examples....
LVL 31

Expert Comment

by:Marco Gasi
ID: 39230619
Thanks for points and good luck with your project.


Featured Post

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Developers of all skill levels should learn to use current best practices when developing websites. However many developers, new and old, fall into the trap of using deprecated features because this is what so many tutorials and books tell them to u…
This article discusses how to create an extensible mechanism for linked drop downs.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question