# |
May 27th 2016, 04:02 |
voycey |
daun: you can just use saveAll for it |
# |
May 27th 2016, 03:30 |
justinatack |
New Relic is my Hero! hahah |
# |
May 27th 2016, 03:20 |
daun |
voycey, i tried to use saveassociated: https://gist.github.com/anonymous/a3f87cb27a0a22d736e55d0b37324603 but how can i identify the book id? |
# |
May 27th 2016, 03:11 |
voycey |
As long as Loan and Book are associated then you can do that :) |
# |
May 27th 2016, 03:11 |
voycey |
$this->Loan->Book->save |
# |
May 27th 2016, 03:06 |
daun |
anybody could give me some idea to solve this? |
# |
May 27th 2016, 03:06 |
daun |
hello, im using cake2. how can i save data to another controller based on ID? example, i've 3 tables, 1)users 2)books 3)loans. all of them have id. in table loans, i've id, user_id, book_id and status. when i create a new loan, i can select user and book id then save without any problem. but how can i save the status from when create new loan to table book? to identify the book is on loan |
# |
May 27th 2016, 02:30 |
justinatack |
Can anybody recommend a good Error Logging Cloud solution for a CakePHP App hosted on Heroku? |
# |
May 27th 2016, 00:20 |
ionas |
eh Joeycake |
# |
May 27th 2016, 00:20 |
ionas |
royalty: Iâ??d create a flashless layout |
# |
May 27th 2016, 00:14 |
fly2279 |
Joeycake: I find it useful to check if the user is logged in from beforeFilter in the AppController. If not I set a different message to override the flash set by auth so that the user only sees the not authorized flash if they truly arenâ??t authorized and not just if they arenâ??t logged in. |
# |
May 26th 2016, 23:52 |
royalty |
Joeycake, but really an auth message isa flash stored in session so you can probs empty the session flash |
# |
May 26th 2016, 23:48 |
royalty |
Joeycake, you probablt have to find out what view the user isn't authed for and give user permission |
# |
May 26th 2016, 23:41 |
Joeycake |
I have a cake app that requires logging in, and it redirects to the login page, but it also shows the "not authorized" message. |
# |
May 26th 2016, 23:34 |
Joeycake |
Is there a way to turn off the auth message for a specific view? |
# |
May 26th 2016, 22:02 |
phpcoder |
is it possible to change the paginator count query? i need to count using the "distinct", like COUNT(distinct Agents.id) |
# |
May 26th 2016, 21:38 |
ionas |
anyway cant figure why the test cases dont succeed |
# |
May 26th 2016, 21:38 |
ionas |
ah right |
# |
May 26th 2016, 21:28 |
bravo-kernel |
`phpunit` |
# |
May 26th 2016, 21:28 |
bravo-kernel |
`composer install` |
# |
May 26th 2016, 21:21 |
ionas |
and need to run tests |
# |
May 26th 2016, 21:21 |
ionas |
now I am in [/var/www/app/vendor/cakephp/cakephp]-[git fixExistsIn] |
# |
May 26th 2016, 21:11 |
ionas |
ah now |
# |
May 26th 2016, 21:11 |
ionas |
git pull upstream master |
# |
May 26th 2016, 21:11 |
ionas |
eh |
# |
May 26th 2016, 21:11 |
ionas |
somehow I cannot use git@github.com:cakephp/cakephp.git for git pull origin upstream |
# |
May 26th 2016, 21:11 |
ionas |
but its also different vagrant boxes |
# |
May 26th 2016, 21:11 |
ionas |
why not |
# |
May 26th 2016, 21:11 |
ionas |
copyingâ?¦ good idea actually |
# |
May 26th 2016, 21:09 |
nrother |
or maybe you should just set up it all the may the want and copy that folder every time you want to try something? |
# |
May 26th 2016, 21:08 |
nrother |
theres also the app template containing a lot of demo configuration |
# |
May 26th 2016, 21:08 |
nrother |
you can install phpunit and phpcs globally, so you don't have to have them in every project |
# |
May 26th 2016, 21:07 |
ionas |
upstream, own repo etc |
# |
May 26th 2016, 21:07 |
ionas |
I have to setup vendor/cakephp/cakephp git clone, phpunit, phpcs etc |
# |
May 26th 2016, 21:07 |
ionas |
but what I meant is after setting up fresh projects |
# |
May 26th 2016, 21:07 |
ionas |
no, I know that one its for running the tests speedy ;p |
# |
May 26th 2016, 21:06 |
nrother |
maybe you are looking for the --filter option of phpunit? |
# |
May 26th 2016, 21:06 |
ionas |
quickest best practise to run tests? |
# |
May 26th 2016, 21:05 |
ionas |
before creating PRs and possibly unit tests |
# |
May 26th 2016, 21:05 |
ionas |
I am often testing â??bugsâ? and â??featuresâ? in cake core against my live application |
# |
May 26th 2016, 21:05 |
ionas |
to make sure that you can always run unit tests |