# |
Nov 22nd 2017, 17:42 |
sdevore |
all I can say is it will be worth it. https://github.com/dereuromark/cakephp-shim can help ease the transition and the update tools get you part way there, the model/orm part will be the hardest IMHO but well worth it if you are going to support this project long term |
# |
Nov 22nd 2017, 17:38 |
charking |
Will it be hard to migrate from 2.2.2 to 3.5? |
# |
Nov 22nd 2017, 17:37 |
charking |
sdevore: thanks, I think I'll use the "IUS Community Project" PHP 7 packages for CentOS so I can use CakePHP 3.5. IUS looks like a good project. |
# |
Nov 22nd 2017, 16:58 |
saeideng |
but in cell |
# |
Nov 22nd 2017, 16:57 |
saeideng |
I want something like `$this->layout = false;` |
# |
Nov 22nd 2017, 16:56 |
saeideng |
>how I can stop to rendering in cell ? `die()` :) |
# |
Nov 22nd 2017, 16:52 |
sdevore |
@charkling CakePHP 3.5 and greater requires PHP 5.6 http://php.net/supported-versions.php CakePHP should work on 5.3 and up I think |
# |
Nov 22nd 2017, 16:51 |
saeideng |
how I can stop t rendering in cell ? |
# |
Nov 22nd 2017, 16:48 |
charking |
svedore: The server is CentOS 7 (latest) and PHP 5.4.16 is the latest PHP from the package repositories. Maybe a newer PHP version is supported by CentOS, will check. |
# |
Nov 22nd 2017, 16:44 |
neon1024 |
No, sorry, unclezoot nothing about that makes any sense. |
# |
Nov 22nd 2017, 16:43 |
sdevore |
a server running php 5.4 would make me more nervous :O |
# |
Nov 22nd 2017, 16:42 |
sdevore |
https://github.com/cakephp/cakephp/releases 2.10.5 released 2 days ago ;) |
# |
Nov 22nd 2017, 16:42 |
charking |
sdevore: Thanks! Is 2.x still supported? (Does it get security fixes?) |
# |
Nov 22nd 2017, 16:41 |
sdevore |
I think you are stuck on 2.x until you can get the server on a supported php version ;) |
# |
Nov 22nd 2017, 16:41 |
charking |
The server has PHP 5.4.16. |
# |
Nov 22nd 2017, 16:40 |
charking |
(I know nothing about CakePHP.) |
# |
Nov 22nd 2017, 16:39 |
charking |
hello. Someone built a site using CakePHP 2.2.2 years ago, and I'm trying to get it up to date. Should I upgrade to 3.5? Or is there a still-supported 2.x branch? |
# |
Nov 22nd 2017, 16:15 |
unclezoot |
using my own functions i would probably add a myfunction(..., and$msg = array()) to enable me to build up a diagnostic array so i have something to read when i inevitably return false - does that make any sense? |
# |
Nov 22nd 2017, 16:15 |
unclezoot |
i want to refactor a lot of logic tests from my controller into my model and pass back human readable messages to the developer as there is a lot of variation on how this plugin can be used, alongside other plugins which may or not exist, which affects the overall logic. the controller is already getting quite large so im trying to move code into beforeMarshall/beforeSave/afterSave, and i dont want to use custom validation. if i were |
# |
Nov 22nd 2017, 16:12 |
neon1024 |
Perhaps you’re looking for Log::debug() ? |
# |
Nov 22nd 2017, 16:09 |
slackebot2 |
!xy |
# |
Nov 22nd 2017, 16:09 |
slackebot2 |
Command sent from Slack by neon1024: |
# |
Nov 22nd 2017, 16:09 |
neon1024 |
What are you trying to see? |
# |
Nov 22nd 2017, 16:08 |
unclezoot |
how would you pass diagnostic messages from Table::afterSave() into your controller (to pass into debugkit) ? am i missing something obvious here? |
# |
Nov 22nd 2017, 16:04 |
neon1024 |
Why can’t you use DebugKIt? |
# |
Nov 22nd 2017, 15:58 |
unclezoot |
correction, developer friendly session messages which wont be shown once debug is turned off |
# |
Nov 22nd 2017, 15:57 |
unclezoot |
user friendly session messages basically |
# |
Nov 22nd 2017, 15:50 |
neon1024 |
To diagnose what exactly? |
# |
Nov 22nd 2017, 15:45 |
unclezoot |
hi, is there a way of passing diagnostics messages back from beforeSave or beforeMarshall to the controller? |
# |
Nov 22nd 2017, 15:11 |
neon1024 |
Ahh, I can create a new response and assign the json as the body :slightly_smiling_face: |
# |
Nov 22nd 2017, 15:09 |
neon1024 |
Returning the response directly upsets Cake with `Controller actions can only return Cake\\Http\\Response or null.` |
# |
Nov 22nd 2017, 15:08 |
neon1024 |
If I use `_serialize` Cake tries to json encode my json |
# |
Nov 22nd 2017, 15:08 |
neon1024 |
`echo $response->body()` is getting me the string, but as `text/html` |
# |
Nov 22nd 2017, 15:07 |
neon1024 |
I am proxying an api call inside my application, how do I return the response body json as json? |
# |
Nov 22nd 2017, 13:52 |
rudy1976s |
I have set up Asset timestamp to force on cake app.php |
# |
Nov 22nd 2017, 13:52 |
neon1024 |
Or if you have a vhost on a server, perhaps the parent config has it setup |
# |
Nov 22nd 2017, 13:52 |
neon1024 |
Perhaps your browser is adding it |
# |
Nov 22nd 2017, 13:51 |
rudy1976s |
while using html helper there is always a cache expiration of 24 hours |
# |
Nov 22nd 2017, 13:51 |
rudy1976s |
I have just make a test call of the same asset using curl and there is any cache settings |
# |
Nov 22nd 2017, 13:51 |
neon1024 |
As you should be serving static assets directly from the file system and not via php |
# |
Nov 22nd 2017, 13:50 |
neon1024 |
Server config |