Coder Social home page Coder Social logo

unionofrad / framework Goto Github PK

View Code? Open in Web Editor NEW
198.0 198.0 71.0 9.75 MB

The li₃ fullstack distribution, including overarching directory layout, starting application, and a copy of the framework.

Home Page: http://li3.me

License: BSD 3-Clause "New" or "Revised" License

PHP 100.00%
app-skeleton framework fullstack php

framework's People

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

framework's Issues

Test's aren't passing == Bad Install?

Again - apologies if this is the wrong place to post this.

I've just tried running all the tests for my lithium install I'm there are a couple of fatal errors and I'm just wondering how much of that is a bad environment vs it's a beta release and tests aren't there yet?

Fatal error: Uncaught Error: Cannot use object of type lithium\storage\session\adapter\Cookie as array in /<Site Directory>/server/libraries/lithium/storage/session/adapter/Cookie.php:163 Stack trace: #0 /<Site Directory>/server/libraries/lithium/tests/cases/storage/session/adapter/CookieTest.php(268): lithium\storage\session\adapter\Cookie->lithium\storage\session\adapter\{closure}(Object(lithium\storage\session\adapter\Cookie), Array, NULL) #1 /<Site Directory>/server/libraries/lithium/tests/cases/storage/session/adapter/CookieTest.php(268): Closure->__invoke(Object(lithium\storage\session\adapter\Cookie), Array, NULL) #2 /<Site Directory>/server/libraries/lithium/test/Unit.php(1613): lithium\tests\cases\storage\session\adapter\CookieTest->testNameWithDotCookie() #3 /<Site Directory>/server/libraries/lithium/aop/Filters.php(231): lithium\test\Unit->lithium\test\{closure}(Array) #4 /<Site Directory>/server/libraries/lithium/test/Unit.php(1617): lithium\aop\Filters::run(Object(lithium\tests\cases\storage\session\adapter\CookieTest), in /<Site Directory>/server/libraries/lithium/storage/session/adapter/Cookie.php on line 163

Problem code is:

$result = $cookie->write($key, $value)->__invoke($cookie, compact('key', 'value'), null);
$this->assertCookie(compact('key', 'value'));

lithium\data\Collection::to() Fatal error

I'm using this code:

$categories = SocialCategory::find('all', [
            'with' => ['Telegram','Instagram'],
            'conditions' => $search
]);

When i want to use $categories->to('array') I get following error for categories with category_id 3 and 4:

Fatal error: Uncaught RuntimeException: Associated records hydrated out of order: array ( 0 => array ( 0 => '3', ), 1 => array ( 0 => '4', ), 2 => array ( 0 => '2', ), ) in /home/xprogrammer/www/telegraminsta.dev/libraries/lithium/data/collection/RecordSet.php:141 Stack trace: #0 /home/xprogrammer/www/telegraminsta.dev/libraries/lithium/data/collection/RecordSet.php(95): lithium\data\collection\RecordSet->_mapRecord(Array) #1 /home/xprogrammer/www/telegraminsta.dev/libraries/lithium/data/Collection.php(249): lithium\data\collection\RecordSet->_populate() #2 /home/xprogrammer/www/telegraminsta.dev/libraries/lithium/data/Collection.php(562): lithium\data\Collection->offsetGet(NULL) #3 /home/xprogrammer/www/telegraminsta.dev/app/controllers/PagesController.php(79): lithium\data\Collection->to('array') #4 /home/xprogrammer/www/telegraminsta.dev/libraries/lithium/core/Object.php(138): app\controllers\PagesController->index() #5 /home/xprogrammer/www/telegraminsta.dev/libraries/lithium/action/Co in /home/xprogrammer/www/telegraminsta.dev/libraries/lithium/data/collection/RecordSet.php on line 141

Typo in libraries.php

// foreach (glob($pattern, GLOB_BRACE | GLOB_ONYLDIR) as $path) {
//  Libraries::add(basename($path), array('path' => $path));
// }

I think GLOB_ONYLDIR must be GLOB_ONLYDIR? :)

Error in Default Page

Apologies if this is the wrong place to post this.

I'm trying to use Lithium with PHP-FPM 7.0 and everything is working but I do get this warning on the default home page of the recommend default project:

Deprecated: The XCache cache adapter has been deprecated as xcache is not compatible with the often by default enabled opcache extension. in /<Site Path>/libraries/lithium/storage/cache/adapter/XCache.php on line 16

Not sure if it's something bad or not, under cache support it says XCache isn't supported, so mayb logging from a support check is leaking through?

Proposal: Flattening Hierarchy

In all of my lithium projects, I never found any use for placing the framework app template in an app folder, and the lithium library outside the app/libraries folder.

If I have a shared lithium library, it is usually at the same level as the app (everything's a library) and anyway I can just symlink it into app/libraries/. Most of the time though, my apps are segregated.

So, I place app/'s contents at the top level and remove the old structure's remnants -- I find it simple and clean. I can't really see any purpose in the existing default hierarchy (and associated bits).

I also think this proposed default better illustrates that lithium itself is really a lightweight, enlightened library rather than a stuffed framework. Thoughts on this @DavidPersson @nateabele ?

I can make a PR, just want to confirm whether or not your thoughts on this are identical beforehand.

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.