revuls / slimmvc Goto Github PK
View Code? Open in Web Editor NEWMVC Schema for Slim Framework applications
MVC Schema for Slim Framework applications
Good Day,
as excelent resource to work with slim, i made one change, in lib\core for using pdo
[code]
try {
$dbh = new PDO($dsn, $user, $password);
$dbh->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
catch(PDOException $e)
{
echo $e->getMessage();
}
[/code]
then i change config data and try to work with my own database, so i´ve error trying using stuff with getAllStuff function on
[code]
$stmt = $this->core->dbh->prepare($sql);
[/code]
the function "prepare" is not accesible from this instance, also i think is a little bug in the __construct function when make lib\core accesible in the $this->core var to get pdo options. But thanks, this is a great an amazing project
Fatal error: Class 'lib\Config' not found in /var/www/devdomain.dev/config.php on line 6
Hi i'm getting this error. Why do you think it's the problem?
Thanks.
edit: never mind I needed to update my composer because I implemented your code to mine.
hello
is it me or is there no SQL file?
rgds Martin
Hello is this based on Slim 2?
I would like to install Slim with Composer. But this is manually installed. How would it change?
SlimMVC/lib/Core.php
For example if I want to use PHPMailler same way as PDO where should I add it? in core.php file or do I need to create another file and use same cade with different names? or is it a good idea to use like PDO?
Thanks.
Do i need to have Slim installed to use SlimMVC or is slim bundled with SlimMVC?
Hi
I used your Slim skeleton to build part of a bachelor thesis: https://github.com/davidhuser/openMEDIS-REST-API
cheers
Hi man!
Is it possible to add user autentication??
thank you for your wonderful work!
Getting this error " Call to undefined method PDOStatement::excute()" while invoking this " $stmt = $this->core->dbh->prepare($sql);" in Models:user.php.
Hi!
I'm not an expert in PHP but I like how this is very similar to what I use with express.js.
I am having trouble running this by doing the following in bash:
EDIT: I updated this to what my actual problem was, not after retrying without using composer to install the deps...
git clone https://github.com/revuls/SlimMVC.git .
composer install
php -S localhost:8000
If I open my browser to http://localhost:8000/public/index.php I get
::1:53704 [500]: /public/index.php - Call to undefined method Slim\Views\Twig::all() in /var/www/app/vendor/slim/views/Slim/Views/Twig.php on line 88
Any ideas?
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.