# |
Oct 13th 2017, 14:45 |
neon1024 |
Guess I’ll make a fork and see what happens |
# |
Oct 13th 2017, 14:44 |
neon1024 |
If I refactor some shell code out so that I can use it in a component as well, is there a way to know the calling context? Like will `php_sapi_name() == "cli"` work? |
# |
Oct 13th 2017, 14:14 |
admad |
a registry is necessary only when you want to use the same instance everywhere |
# |
Oct 13th 2017, 14:10 |
neon1024 |
Right? |
# |
Oct 13th 2017, 14:10 |
neon1024 |
I mean that’s not criminal or anything, https://pastebin.com/2GfyJxck |
# |
Oct 13th 2017, 14:09 |
neon1024 |
Plus I like this `$this->set('rules', new RuleCollection());` |
# |
Oct 13th 2017, 14:08 |
hmic |
:D |
# |
Oct 13th 2017, 14:07 |
neon1024 |
Frankly, I don’t think past me was right, as present me wonders if future me will need a registry |
# |
Oct 13th 2017, 14:07 |
neon1024 |
I created myself a ticket to refactor some custom collections into registries, but failed to explain to myself why |
# |
Oct 13th 2017, 14:06 |
neon1024 |
Well it would be easy to implement at least, https://github.com/cakephp/cakephp/blob/master/src/Core/ObjectRegistry.php#L43-L48 |
# |
Oct 13th 2017, 14:06 |
slackebot |
!tell saeid about TIAS |
# |
Oct 13th 2017, 14:06 |
slackebot |
Command sent from Slack by saeideng: |
# |
Oct 13th 2017, 14:05 |
neon1024 |
Woo, AD7six has a commit in the ObjectRegistry. I wonder what he’s up to now. Don’t see him much in the community any more. Was nice to meet him at Cakefest in Madrid |
# |
Oct 13th 2017, 14:05 |
hmic |
:P |
# |
Oct 13th 2017, 14:05 |
hmic |
!tell neon1024 abot TIAS |
# |
Oct 13th 2017, 14:04 |
neon1024 |
Does the registry class allow for toArray ? |
# |
Oct 13th 2017, 13:44 |
willem |
@admad nice! it works thank1 |
# |
Oct 13th 2017, 13:43 |
dereuromark |
are you talking about the cipher behavior? https://github.com/FriendsOfCake/awesome-cakephp#security |
# |
Oct 13th 2017, 13:43 |
sonu_nk |
article also has a Github link with open source php script. |
# |
Oct 13th 2017, 13:42 |
sonu_nk |
guys, i forget a one article link.. can you help me to find it.. it was related to store password in your database and hide from your dba . like we are saving our password of gmail in mysql database |
# |
Oct 13th 2017, 13:42 |
admad |
@willem ->contain(['Foo' => function ($q) { return $q->find('custom'); }]) |
# |
Oct 13th 2017, 13:38 |
saeideng |
y |
# |
Oct 13th 2017, 13:38 |
willem |
is it possible to use a custom finder for a model in contain ? |
# |
Oct 13th 2017, 11:31 |
xvifr |
thanks |
# |
Oct 13th 2017, 11:27 |
hmic |
!tell xvifr about awesome |
# |
Oct 13th 2017, 11:27 |
admad |
xvifr check dereuromark's plugin |
# |
Oct 13th 2017, 11:16 |
xvifr |
Hi! Anyone knows how to use the geoip2 composer package inside cakephp 3? |
# |
Oct 13th 2017, 09:30 |
hmic |
maybe you still think about a decent host and ask somebody who knows about cake to take care of your problems |
# |
Oct 13th 2017, 09:29 |
garciamarinel012 |
I'm sorry for my basic queries . Im not familiar with this cake PHP . Though I need to fix this part of the site that are not on wordpress |
# |
Oct 13th 2017, 09:26 |
hmic |
check all the things you did since it has been working |
# |
Oct 13th 2017, 09:26 |
garciamarinel012 |
ok i will try this thanks :slightly_smiling_face: |
# |
Oct 13th 2017, 09:25 |
hmic |
additionally, delete the log file and try to login to get a clean one, not logs from many failed attempts |
# |
Oct 13th 2017, 09:24 |
hmic |
this is all wrong, rewrite is not working and so your urls are bad |
# |
Oct 13th 2017, 09:24 |
sonu_nk |
why it cant return ? |
# |
Oct 13th 2017, 09:24 |
sonu_nk |
hi.. i have two method in cakephp controller, i was using return array($myvar) in another method to return it to one method; but it is giving me error |
# |
Oct 13th 2017, 09:23 |
garciamarinel012 |
https://gist.github.com/anonymous/46203f72c2e8f9ab03dba656935fb0b7 |
# |
Oct 13th 2017, 09:21 |
hmic |
!tell garciamarinel012 about gist |
# |
Oct 13th 2017, 09:21 |
garciamarinel012 |
thats the error log as I've check |
# |
Oct 13th 2017, 09:21 |
garciamarinel012 |
File uploaded https://cakesf.slack.com/files/U7J6X3T7H/F7HQCMEJW/-.txt / https://slack-files.com/T053DPNCM-F7HQCMEJW-9463be5b1d |
# |
Oct 13th 2017, 09:21 |
hmic |
additionally make sure the problem is not yours, but a generic problem, this is: use another browser/computer to verify the issue |
# |
Oct 13th 2017, 09:20 |
hmic |
there is not mauch to do in this sh*** environment you are running the app on, besides checking the logs, basically |