nette / examples Goto Github PK
View Code? Open in Web Editor NEW๐ Examples demonstrating the Nette Framework.
Home Page: https://nette.org
๐ Examples demonstrating the Nette Framework.
Home Page: https://nette.org
When downloading zip package from here and trying out examples it spits out this warning. This can be easily solved by not using NetteLoader at all and use composer autoload instead as in web-project and sandbox. It's not a problem since you have to do composer update even with the original approach.
Issue can be easily solved by substituting
// Load Nette Framework
if (@!include __DIR__ . '/../../../Nette/loader.php') {
die('Install Nette using `composer update`');
}
with
require __DIR__ . '/../vendor/autoload.php';
Issue is easily reproducable by doing these steps:
wget https://github.com/nette/nette/releases/download/v2.4.0/Nette-2.4-20170829.zip -O nette.zip
unzip nette.zip
cd Nette-2.4-20170829/examples/CD-collection/
composer update
php -S localhost:8000
and opening browser at http://localhost:800/www/index.php
I feel like it may have some side effects or break some intended behaviour, thus would not open PR but issue where we can have some discussion about this. Let me know if i should make PR.
When insert on selection is readonly https://github.com/nette/examples/blob/master/CD-collection/app/model/AlbumRepository.php#L33
Sorry, my mistake: http://blog.daiverse.com/2011/11/01/php-sqlite-general-error-14-unable-to-open-database-file/
In these two examples
https://github.com/nette/examples/blob/master/CD-collection/app/bootstrap.php#L31
https://github.com/nette/examples/blob/master/Modules-Usage/app/bootstrap.php#L32
function apache_get_modules
is used to detect mod_rewrite, but this is not reliable way, because this works only when PHP is installed as an Apache module. So it doesn't work with fastCGI, FPM or nginx configurations.
I've just cloned Micro-blog, run composer update and start php server (php -s localhost:8888 -t www), and it throws me some errors with "Ambiguous class". Can you patch it, please? :-)
Nette\InvalidStateException
Ambiguous class Presenter1 resolution;
defined in
... Micro-blog\www\data\vendor\nette\application\tests\Bridges.DI\files\MyPresenter.php
and in
... Micro-blog\www\data\vendor\nette\application\tests\UI\one\Presenter1.php.
When i click on Cancel in empty Add Form, NetteForms generate Error Message.
/**
* Edit form factory.
* @return Form
*/
protected function createComponentAlbumForm()
{
$form = new Form;
$form->addText('artist', 'Artist:');
$form->addText('title', 'Title:');
$form->addSubmit('save', 'Save')
->setAttribute('class', 'default')
->onClick[] = $this->albumFormSucceeded;
$form->addSubmit('cancel', 'Cancel')
->setValidationScope(NULL)
->onClick[] = $this->formCancelled;
$form["artist"]->addConditionOn($form['save'], Form::SUBMITTED, TRUE)
->setRequired('Please enter an artist.');
$form["title"]->addConditionOn($form['save'], Form::SUBMITTED, TRUE)
->setRequired('Please enter a title.');
$form->addProtection();
return $form;
}
Missing item 'appDir'
Nette Framework 2.0-beta (revision a58b0f7 released on 2011-11-29)
edit: je to vyvojova verze, nevim proc ladenka vypsala beta
Fatal Error after submit: Class 'Dumper' not found. Probably missing "use" for this class.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.