# |
Jul 12th 2017, 20:27 |
nicolas.r |
view, edit, delete etc.. |
# |
Jul 12th 2017, 20:27 |
nicolas.r |
Like all the function in the controller |
# |
Jul 12th 2017, 20:27 |
nicolas.r |
tell me, maybe you know, do you know how to not allow a page to a user? |
# |
Jul 12th 2017, 20:26 |
nicolas.r |
:slightly_smiling_face: |
# |
Jul 12th 2017, 20:26 |
devito |
ill give that a shot |
# |
Jul 12th 2017, 20:26 |
devito |
=D |
# |
Jul 12th 2017, 20:26 |
nicolas.r |
yup :) |
# |
Jul 12th 2017, 20:26 |
devito |
and then get a list of files |
# |
Jul 12th 2017, 20:26 |
nicolas.r |
so you can maybe, query on this table et show the last |
# |
Jul 12th 2017, 20:26 |
devito |
oooo |
# |
Jul 12th 2017, 20:26 |
devito |
right |
# |
Jul 12th 2017, 20:25 |
nicolas.r |
In your database, you can know the last migration right ? |
# |
Jul 12th 2017, 20:25 |
nicolas.r |
No I know what you can do ! |
# |
Jul 12th 2017, 20:25 |
cleptric |
Just look how it was implemented in the shell and port that logic into another class? |
# |
Jul 12th 2017, 20:25 |
nicolas.r |
Yes I understand ^^ |
# |
Jul 12th 2017, 20:24 |
devito |
but that can lead down a rabit hole i really dont wana go down.. |
# |
Jul 12th 2017, 20:24 |
devito |
was thinking about doing exec and the the above |
# |
Jul 12th 2017, 20:23 |
devito |
hehe no worries |
# |
Jul 12th 2017, 20:23 |
nicolas.r |
really i dont know sorry haha |
# |
Jul 12th 2017, 20:23 |
nicolas.r |
and "parse" it maybe |
# |
Jul 12th 2017, 20:23 |
nicolas.r |
I think you need to lauch a php script to launch this cmd no ? |
# |
Jul 12th 2017, 20:23 |
nicolas.r |
In a view |
# |
Jul 12th 2017, 20:23 |
nicolas.r |
@devito bin/cake migrations status ? |
# |
Jul 12th 2017, 20:22 |
devito |
is there a way to access pending migrations in a view? I want to display to my admins fi there are pending migrations that need to be run |
# |
Jul 12th 2017, 20:18 |
nicolas.r |
Hi guys, i saw the function $this->Auth->allow(['add', 'logout']); But there is any function to not allow ? For example all a controller (unless admin) Do I need to add a function in all function of my controller to check authorization ? |
# |
Jul 12th 2017, 20:04 |
saeideng |
:loudspeaker: |
# |
Jul 12th 2017, 19:59 |
saeideng |
now |
# |
Jul 12th 2017, 19:59 |
saeideng |
in past i used locally `phpunit` but i can not use it |
# |
Jul 12th 2017, 19:58 |
saeideng |
how you test your core tests? |
# |
Jul 12th 2017, 19:58 |
saeideng |
i install it `phpunit` locally |
# |
Jul 12th 2017, 19:57 |
saeideng |
why |
# |
Jul 12th 2017, 19:57 |
saeideng |
but `phpunit` no |
# |
Jul 12th 2017, 19:57 |
saeideng |
works for me |
# |
Jul 12th 2017, 19:57 |
saeideng |
`vendor/bin/phpunit` |
# |
Jul 12th 2017, 19:50 |
saeideng |
i need test core tests |
# |
Jul 12th 2017, 19:50 |
saeideng |
i think mentioned PR is for user tests? |
# |
Jul 12th 2017, 19:48 |
sturm |
I guess I’m wondering how an average developer knows to use a certain property or method before even looking at the API for its syntax. Maybe it’s just familiarity with all of CakePHP’s classes, which is something I guess I’ll need to spend a lot of time on. |
# |
Jul 12th 2017, 19:45 |
saeideng |
:upside_down_face: |
# |
Jul 12th 2017, 19:44 |
saeideng |
thanks man |
# |
Jul 12th 2017, 19:44 |
saeideng |
dont worry |
# |
Jul 12th 2017, 19:43 |
cleptric |
Sorry saeideng, I haven’t looked into this issue at all :S |