Giter VIP home page Giter VIP logo

framework's Introduction

Typecho Blogging Platform

Typecho is a PHP-based blog software and is designed to be the most powerful blog engine in the world. Typecho is released under the GNU General Public License 2.0.

Main Features

  • Multiple databases support (MySQL, SQLite, PostgreSQL)
  • Markdown Support
  • Plugin Support
  • Theme Support
  • Custom Fields
  • Custom Pages

Requirements

  • PHP 7.2.0 or higher
  • Database (MySQL, SQLite, PostgreSQL)
    • MySQL 5.5.3 or higher
    • SQLite 3.7.11 or higher
    • PostgreSQL 9.1 or higher

Screenshots

Typecho

Contributing

Please see CONTRIBUTING for details.

framework's People

Contributors

imicky avatar joyqi avatar visamz 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  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  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

framework's Issues

错误的路径如何引导进 action ?

即不在路由表里的错误路径如何引导进指定 action 呢?
其实我觉得 这个问题 应该是问 如何写没有指定的任意访问请求的路由?
比如,我指定了以下路由:

return array(
    '/' => 'Quotation\Action\Index',
    '/brand' => 'Quotation\Action\Brand'
);

那没有指定的或者说 其它任意请求应该如何写路由~~

希望统一目录后的斜杠问题

希望统一目录后带斜杠或不带斜杠

Autoloader::registerNamespace(SYS, 'TE');

如上,这里的 SYS 必须不带斜杠,而下面的:

return array(
    'template'  =>  array(
        'interceptor' => 'TE\Mvc\Action\Interceptor\Template',
        'params' => array(
            'path' => TPE .'/default/'
        )
    )
);

这里的 path 又必须带斜杠,这让人挺纠结的,希望直接统一目录后带斜杠,这样也不需要重复加斜杠了。

关于缓存模块

正在更新的 70 大大,我看到你正在更新缓存模块,能否增加 memcached 缓存 和 file 缓存呢?

塞入 Data 对象的是空数组时报警告

塞入 Data 对象的是空数组时报警告:

Notice: Undefined offset: 0 in E:\xampp\htdocs\quotation\system\Mvc\Data\AbstractData.php on line 160

Warning: array_key_exists() expects parameter 2 to be array, null given in E:\xampp\htdocs\quotation\system\Mvc\Data\AbstractData.php on line 160

这个似乎只能在模板中使用前先判断对象是否空了吧?

render json 是空的

在 action 里 render json 是空的

if ($this->request->isAjax()){
                return array('Json', $searchQuo);
            }

Request::getArgs() can't get data from STDIN

Request::getArgs() can't get data from STDIN when client post JSON / XML to Server.
for example:
post JSON via angularjs

$http({
    url: '/api/task/create',
    method: "POST",
    data: JSON.stringify(newTask)
    }).success(function(data) {
            console.log(data);
    })
})

in Action:

$this->request->getArgs(); // got nothing

建议路由器加个反射路由取得 url 的功能

现在的路由必须是这样配置的:

return array(
    '/'                => 'Quotation\Action\Index',
    '/s'               => 'Quotation\Action\Search',
    '/brand'           => 'Quotation\Action\Brand',
    '/brand/:cateId'   => 'Quotation\Action\Brand',
    '/car'             => 'Quotation\Action\Car',
    '/car/:quoId'      => 'Quotation\Action\Car'
);

但是无法通过路由反射成获取 url,感觉不便。
比如可以这样,对路由取个别名:

return array(
    'index'  => array('/'                  => 'Quotation\Action\Index'),
    'search' => array('/s'                 => 'Quotation\Action\Search'),
    'brands' => array('/brands'            => 'Quotation\Action\Brands'),
    'brand'  => array('/brand/:cateId'     => 'Quotation\Action\Brand'),
    'cars'   => array('/cars/:cateId'      => 'Quotation\Action\Cars'),
    'car'    => array('/car/:quoId'        => 'Quotation\Action\Car')
);

没有文档

作为一个这么好的框架,居然没有文档。问了好多人 ,都说看别人开发的插件源码,问题插件也没按源码去开发都是各自hack,这不是作死的节奏吗?

注入的对象只能在 action 里 execute 方法里使用?

注入的对象只能在 action 里 execute 方法里使用?
这不科学啊。。。
我写在其它方法里直接报错。。

Fatal error: Call to a member function get() on a non-object in E:\xampp\htdocs\quotation\admin\AdmInit.php on line 42

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.