mmeyer724 / frameworkless Goto Github PK
View Code? Open in Web Editor NEWLicense: The Unlicense
License: The Unlicense
Hello, and many thanks for the effort :)
I'm implementing this framework for some practising, and I have the following problem:
When I perform the Database connection, following the steps described in the readme file:
$cfg->addConnection('mysql', 'mysql://user:password@localhost/database_name');
An error prompts saying 'An exception occured in driver: could not find driver'
This is because there are not mysql driver added for php (I checked that in phpinfo())
Could I access somehow to the locally installed ubuntu server created by vagrant, in order to add some driver?
Currently, if I try ti acces it, it shows:
vagrant-ubuntu-trusty-64 login:
but I don't have the login data.
Thank you in advance, and thanks again for the work!
I am still learning the ropes in PHP. Now I'm trying to run this app via WAMP server. I know I need to use .htaccess and mod_rewrite. But I can't seem to figure out just what rule will enable me access both the home page and todos. I have settled on
RewriteEngine on RewriteRule .* public/index.php
but I keep getting 404 Not Found
error. Any help will be appreciated.
Hi there! I wanted to run frameworkless without docker or vagrant, by using good ol' MAMP and looks like I succeeded. Here is what I had to do, maybe someone will find it useful.
Edit base.html.twig to look for CSS in the right place:
<link rel="stylesheet" href="../public/assets/css/style.css">
Create a .htaccess in root directory and add:
Options +FollowSymLinks -MultiViews
RewriteEngine On
RewriteBase /public/
RewriteCond %{REQUEST_URI} !/public [NC]
RewriteRule ^(.*)$ index.php/$1 [L]
Oops, not working. Looks like .htaccess overrides are disabled.
In /Applications/MAMP/conf/apache/httpd.conf find this:
<Directory />
Options Indexes FollowSymLinks
AllowOverride None
</Directory>
...and replace with
<Directory />
Options Indexes FollowSymLinks
AllowOverride All
</Directory>
Now, I'm wondering if there is a simpler way of doing this and is it possible that somewhere down the road this might interfere with router somehow?
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.