Skip to content
This repository has been archived by the owner. It is now read-only.
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Kohana Python Module

Usage:

Run Server

 python server.py start

Loading module

 Kohana::register_modules(array(
     'python' => MODPATH.'python'
 ));

Write Python Class:

 import sys

 class Model_Logic_Sample:
     def __init__(self, name):
         self.name = name;
     def test (self):
         return self.name;
     def test2 (self):
         return 'test';

Use it in your Controller like Normal PHP Class

 class Controller_My extends Controller{
     public function action_foo(){
         $obj = new Model_Logic_Sample("john");
         echo $obj->test();
         exit;
     }
 }

About

This module let python classes work with kohana framework

Resources

Releases

No releases published

Packages

No packages published
You can’t perform that action at this time.