# |
Feb 5th 2018, 21:25 |
WyriHaximus |
https://github.com/WyriHaximus/php-simple-twig |
# |
Feb 5th 2018, 21:25 |
inoas |
hm which package? |
# |
Feb 5th 2018, 21:25 |
WyriHaximus |
inoas: did you also see the package I linked you the other day? |
# |
Feb 5th 2018, 21:24 |
inoas |
anyway I will try to use real TwigView soon (instead of my hacked SimpleTwigView that just loads your extensions) |
# |
Feb 5th 2018, 21:24 |
WyriHaximus |
Depends on how you look at it, 5.6 is going to supported by Zend Server untill december 2020: http://www.zend.com/en/support-center/support/php-long-term-support |
# |
Feb 5th 2018, 21:23 |
inoas |
grml |
# |
Feb 5th 2018, 21:23 |
inoas |
http://php.net/supported-versions.php |
# |
Feb 5th 2018, 21:23 |
inoas |
or well it is EOL now, and extended security will only run until end of 2018 |
# |
Feb 5th 2018, 21:23 |
inoas |
5.6 will be EOL in 11 month |
# |
Feb 5th 2018, 21:22 |
inoas |
:( |
# |
Feb 5th 2018, 21:22 |
inoas |
imho |
# |
Feb 5th 2018, 21:22 |
inoas |
the real issue is just cakephp supporting php 5.6 for too long. |
# |
Feb 5th 2018, 21:21 |
WyriHaximus |
inoas: Contemplating going 1.x and 2.x with 5.0 if they are compatible and just dropping most of the non-essential extensions |
# |
Feb 5th 2018, 21:21 |
inoas |
just support 4.x longer? |
# |
Feb 5th 2018, 21:21 |
inoas |
so 5.0 won't drop 1.x support? |
# |
Feb 5th 2018, 21:20 |
WyriHaximus |
inoas: the thread from the other day got my doubting about the course to take with 5.0 |
# |
Feb 5th 2018, 21:20 |
inoas |
or is 4.0 Twig 2.x and my brain is damaged? probably |
# |
Feb 5th 2018, 21:20 |
inoas |
I think TwigView 5.0? |
# |
Feb 5th 2018, 21:20 |
inoas |
WyriHaximus: any idea when you will tag up a Twig 2.x release? |
# |
Feb 5th 2018, 20:58 |
maneken |
ok. I'll try that. Thanks again! |
# |
Feb 5th 2018, 20:58 |
WanderingJon |
@maneken I can relate to what you're doing, but it's easier to just make the table and move on. Especially if you need to check login status later. |
# |
Feb 5th 2018, 20:54 |
maneken |
maybe my approach is wrong. Would you suggest to create a db table users, add just one user with it's hashed pass, and go with the standard cake authentication? |
# |
Feb 5th 2018, 20:49 |
maneken |
WanderingJon: thanks for the reply. I don't have a problem to use a Model. I'm trying to avoid using a db table for just one record |
# |
Feb 5th 2018, 20:46 |
WanderingJon |
Have you checked https://book.cakephp.org/3.0/en/core-libraries/form.html ? |
# |
Feb 5th 2018, 20:45 |
WanderingJon |
It would be simpler to just set up the model and add 1 admin user to check against. |
# |
Feb 5th 2018, 20:44 |
WanderingJon |
maneken, may I ask why you're doing it that way? I imagine that would make things more complicated later on. |
# |
Feb 5th 2018, 20:35 |
maneken |
Do I have to create a model, even if I won't use the database for the authontication? |
# |
Feb 5th 2018, 20:35 |
maneken |
I created a User controller (I haven't created a Model), and I want to write a login function that checks the hash of $this->request->data['password'] against a hardcoded hash |
# |
Feb 5th 2018, 20:34 |
maneken |
Hello. I have a simple app and I want a very simple login page, asking only for an admin password, which authenticates the password with a hardcoded hashed password. I don't need other users, or a change password functionality. I just want something slightly more sophisticated that apache htaccess. |
# |
Feb 5th 2018, 20:21 |
WanderingJon |
@nimasageng99 do you mean create an api with cakephp or working with another api using cakephp? |
# |
Feb 5th 2018, 20:18 |
nimasageng99 |
how to work with API on cake php? |
# |
Feb 5th 2018, 19:38 |
WanderingJon |
I'd rather not have to rewrite the api for cakephp. My initial thought was to create an endpoint in cake just for the login stuff and have my Slim api access it/check that way, but that seems insecure. |
# |
Feb 5th 2018, 19:36 |
WanderingJon |
I have a cakephp 3 app and an API written with Slim for a mobile app. I now have to add some features to the app that display information from the CakePHP side, is there some documented way to check username/passwords for Cakephp in another application? |
# |
Feb 5th 2018, 19:24 |
learningcake |
but if I move the application to public_html/cake it works. Kindly note that I am using a subdomain. |
# |
Feb 5th 2018, 19:19 |
learningcake |
heello Guys. I don't know why my application is giving me error 500. My application is in a folder->subfolder (public_html/cake/app) and I point my document_root to webroot that is inside the app folder. Do you know why I am having such error? |
# |
Feb 5th 2018, 19:11 |
maymeow |
can i put plugins controllers etc n subfolders? like `./pluginx/ee/<plugin--name>` ??? |
# |
Feb 5th 2018, 13:58 |
saeideng |
bye |
# |
Feb 5th 2018, 13:58 |
saeideng |
if I uderstand your problem |
# |
Feb 5th 2018, 13:57 |
saeideng |
call it by `$this->element('nav')` from layout |
# |
Feb 5th 2018, 13:57 |
saeideng |
and |
# |
Feb 5th 2018, 13:57 |
saeideng |
you can cut top nav into an element |