Questions tagged [slim-2]

10 questions
1
vote
1 answer

Fatal error: Class 'medoo' not found

I am using slim framework 2 with medoo via composer, i am making singleton for medoo but when i call the medoo class to configure my db info, so it gives me the fatal error like below Fatal error: Class 'medoo' not found in…
lazyCoder
  • 2,544
  • 3
  • 22
  • 41
0
votes
1 answer

How to add middileware to slim 2

Thanks for reading my problem, I am trying to add middleware to slim framework but it encounter with an error Uncaught InvalidArgumentException: All Route middleware must be callable $authenticateForRole = function ( $user_Id, $tokenKey…
0
votes
0 answers

How to ignore directory of index.php in urlFor() link?

I'm using gcloud's app engine with my index.php file in in a directory called '/public'. I set the app.yaml file's entry point to start there, so it treats that folder like the root directory in the url. When I manually code the links on my site…
JohnDNoone
  • 11
  • 2
0
votes
2 answers

How I can override Slim's version 2 default error handling function

How can I override Slim's version 2 default error handling? I don't want my application to crash everytime I get a warning message. Basically I want to override function handleErrors() from \Slim\Slim class. I looked into how I might override this…
0
votes
1 answer

How to encrypt id using eloquent orm and slim

Can anyone explain how to encrypt id using eloquent.Present i am using thirdparty library to encrypt and decrypt id.I want know how to encrypt and decrypt ids using eloquent orm in slim.
Lll ll
  • 41
  • 11
0
votes
0 answers

How to send emails using Eloquent and Slim2

I have a doubt that how to send emails using Eloquent and slim2 framework.Can anyone help me to get out of this doubt please...
Lll ll
  • 41
  • 11
0
votes
1 answer

How to hash password on saving using slim2 and eloquent

I am doing registration for user in that i want password to be stored in hash format using eloquent and slim but i am getting hash not found error This is the error image In config.php $database = [ 'driver' => 'mysql', 'host' =>…
Lll ll
  • 41
  • 11
0
votes
0 answers

Slim 2 redirect is not working

Redirect is not working in slim 2 & it returns below error for this line $application->redirect($application->urlFor('details', array( 'slug' => $slug, ))); Is there any settings in .conf file ?. Please help me to fix this. Thanks in advance.…
kiran
  • 444
  • 3
  • 15
0
votes
1 answer

Slim Framework 2 - Not getting HTTP 304 code with etag()

I am using slim framework 2 etag() to fetch cache data, all working fine i am getting the cache data with the postman or any rest client but i am getting HTTP 200 OK response all time in the rest client but as it should be HTTP 304 when the data…
lazyCoder
  • 2,544
  • 3
  • 22
  • 41
0
votes
1 answer

Slim 2 Render Direct HTML

I have an old project I'm working on using Slim version 2. I can not upgrade to 3. I'm trying to integrate twig into slim 2 while also keeping the old default slim2 renderer. Currently I have this. class TwigView extends \Slim\View { public…
Joseph Astrahan
  • 8,659
  • 12
  • 83
  • 154