Code Monkey home page Code Monkey logo

ninja's People

Contributors

sybarite avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ninja's Issues

Reverse routing capabilities

Reverse Routing allows you to create links to named routes. When creating links just use the route's name and Ninja will automatically insert the correct URI. This allows you to change your routes at a later time and Ninja will update all of the relevant links site-wide.

Looking for good references of such an implementation.. CI, Laravel, Kohana?

Create an install.php on the lines of Kohana

Kohana has a file called install.php that exists in the root of the website and performs Environment Tests + Optional Tests. This is a completely independent file that helps check if a server is compatible with Ninja or not. We need this too as it will ensure that the developer is working & deploying on a fully compatible platform. See it here: http://kohanaframework.org/3.2/guide/kohana/install#installation

Refer to: https://github.com/kohana/kohana/blob/3.2/master/index.php for the simplistic code & layout they use. We will adapt the same and later on re-touch the design.

There might be some requirements we don't need to check while there would be some requirements which should add in addition to what Kohana does. Suggest such additions / deletions.

Allow placing abstract classes under controller directories

Presently, all controllers can be accessed publicly as long as they have an action which maps to the requested URL. This should not be the case if the controller is 'Abstract'. This way AbstractControllers can be placed which are inherited by other controllers without the risk of being exposed to public access.

We can do this by prefixing all Abstract controller classnames with the word 'Abstract'. This retains general naming convention found in libraries like Doctrine, etc too.

<?php
namespace Controller;

abstract class AbstractFoo extends \Ninja\Controller
{
    public function hello()
    {
        echo "yaa";
    }
}

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.