Sorry for inconvinient :D
actually your question should be answered by our tutorial and documentation, but those haven't done yet..
but the process will by like this :
1. in client pc klorofil platform must be installed first
you could bundle klorofil installer with your application, it's only 3MB now, and we approx it will be around 6MB when get mature. Small enough if you compare to java or .Net
2. You could distibute your app in raw file, its mean you distribute the
- app.kfe ---> the klorofil executeable file
- file of classes that your application use (your classes, not klorofil)
- other file, like images, db and so on..
you should distribute in directory structure like this :
</p> <p> Application Folder</p> <p> |</p> <p> - app.kfe</p> <p> |</p> <p> - klorofil (folder)</p> <p> |</p> <p> - classes</p> <p> |</p> <p> - your classes file</p> <p> |</p> <p> - other files or directory</p> <p>
classes structure is depend on your class name
if your class name is sample_test_form then your classes directory structure will be like this :
</p> <p> - classes</p> <p> |</p> <p> - sample</p> <p> |</p> <p> - test</p> <p> |</p> <p> - form.php ---> your class file</p> <p>
3. Or you distribute in one file --> you should use extention .kfa (klorofil application)
acctualy to create a .kfa file, just zip your application directory and change the extention to .kfa
before you zip please add a file named app.info in app root directory
app.info contains line like this :
</p> <p><?php</p> <p> $appName = "[your app name here]";</p> <p> $appVer = "[your app version here]";</p> <p>?></p> <p>
to hide your code, you can use byte compile. For this moment, we just provice command line version of byte compiler, currently byte compiler with GUI is under development stage.
to try to compile your code please use command prompt
</p> <p>c:\>cd "c:\program files\klorofil"</p> <p>prompt:\>klorofil "c:\program files\klorofil\tools\ByteCompiler.kfe" [source dir] [dest dir]</p> <p>
[source dir] is your code directory, byte compiler will search for .php files in all sub directory and compile it to become .phb (php binary). the output file will be placed to [dest dir]. For other extention, byte compiler just copy to [dest dir]
[dest dir] must be exist, but for output sub directory will be auto created byte compiler
i hope this explanation can show you how distribution works, please be patient for the documentation :D
Recent comments
2 weeks 6 days ago
2 weeks 6 days ago
8 weeks 1 day ago
23 weeks 3 days ago
36 weeks 15 hours ago
41 weeks 4 days ago
1 year 7 weeks ago
1 year 13 weeks ago
1 year 15 weeks ago
1 year 17 weeks ago