Git Product home page Git Product logo

kohanut's People

Contributors

bluehawk avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

kohanut's Issues

submodule init

Initialized empty Git repository in /tmp/kohanut/modules/sprig/.git/
fatal: remote error:
Could not find Repository shadowhand/sprig
Clone of 'git://github.com/shadowhand/sprig.git' into submodule path 'modules/sprig' failed

Admin should use i18n

All text in admin views should use the i18n functions, so it's easy to translate the admin to a different language.

Having to rename install directory is messy

... and doesn't work if you're using one kohana/kohanut install for a number of sites.

Solution : add the following to the top of the action_index() function in classes/controller/kohanut/install/install.php :
if(count(Database::instance()->list_tables('kohanut_layouts'))>0) {
$this->request->response = new View('kohanut/install-success');
return;
}

and change views/kohanut/install-success.php to remove the instruction to rename the file...

Hope this helps.
Martin
:-)

Install to directory

Links generated by Markdown will not work if you installed your Kohanut into a subdirectory (subdirectory is missing from the generated anchor).

Profiling not working as expected

In application/bootstrap.php, the following :
'profiling' => ! IN_PRODUCTION,

should be :
'profile' => ! IN_PRODUCTION,

(per the documentation above)...

All the Best
Martin
:-)

Request for ACL

I'd like to see applying ACL so that you can limit access to some users.

Redirects are missing

Redirects are not handled this time. To fix this, edit 'action_view' in 'kohanut\modules\kohanut\classes\controller\kohanut.php'

Modify the catch to this:

$redir = Sprig::factory('kohanut_redirect' , array('url' => $url))->load();

if ( $redir->count() > 0 ) {
    // set status
    Kohanut::status( $redir->type );

    // redirect
    $path = $redir->newurl;
    Request::instance()->redirect( $path );

} else {

    // Find the error page
    $error = Sprig::factory('kohanut_page',array('url'=>'error'))->load();

    // If i couldn't find the error page, just give a generic message
    if ( ! $error->loaded())
    {
            Kohanut::status(404);
            $this->request->response = View::factory('kohanut/generic404');
            return;
    }

    // Set the response
    $out = $error->render();
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.