Log message #3883089

# At Username Text
# May 30th 2016, 09:59 spriz does anyone have had success with CakePdf (DomPDF) in terms of â??page number / total page numbersâ? like page "1 of 3"
# May 30th 2016, 09:58 ionas however Iâ??d be careful and possibly rather use components and stuff
# May 30th 2016, 09:58 ionas conehead you should be able to by namespaces and stuff to overwrite a core controller from a plugin
# May 30th 2016, 09:51 frzrr is there any way to set saveStrategy @ runtime ?
# May 30th 2016, 09:46 birdy247 so in this case, null = "do more checks, no hard or fast yes or no"
# May 30th 2016, 09:45 JohnWayne @birdy247 you can exclude that line (we use this in our project cos we are working with API/REST and cakephp queries together
# May 30th 2016, 09:45 birdy247 is it ok to return null from a function
# May 30th 2016, 09:43 frzrr having some issues when trying to add multiple rows with same ids in the pivot table. sometimes i do want to add records with duplicate ids, but different references as extra joindata. It fails and i always get the last patched entity in the jointable. Whats the option that lets you add multiple records with same ids?
# May 30th 2016, 09:42 birdy247 calling parent at the end is too late in this case
# May 30th 2016, 09:42 birdy247 $this->loadComponent('Paginator'); why is this in the isAuthorized?
# May 30th 2016, 09:42 birdy247 JohnWayne
# May 30th 2016, 09:41 JohnWayne @birdy247 http://pastebin.com/0ghicF4v
# May 30th 2016, 09:40 JohnWayne AppController::_getUserType($this->Auth->user('id'))
# May 30th 2016, 09:40 birdy247 perhaps I should return something other than true or false from the parent?
# May 30th 2016, 09:39 birdy247 so putting return parent::... at the top of the isAuthorized in my controller could be wrong?
# May 30th 2016, 09:39 birdy247 so a user might be an ORGANISER, but I still want to perform more checks to see if they are authorized
# May 30th 2016, 09:37 birdy247 parent::isAuthorized($user)
# May 30th 2016, 09:37 birdy247 the only bit I cant get my head around, is how should I then call this in the controller
# May 30th 2016, 09:36 unorthodox Thats correct @birdy247
# May 30th 2016, 09:36 JohnWayne Me too
# May 30th 2016, 09:35 birdy247 I though about doing it in the AppController isAuthorized function
# May 30th 2016, 09:35 JohnWayne always use Cakephp Conventions (code is more readable than)
# May 30th 2016, 09:35 birdy247 is there any easy way to prevent users without a given role to view any of a given prefix
# May 30th 2016, 09:35 birdy247 if using prefixed routes
# May 30th 2016, 09:35 JohnWayne http://pastebin.com/F0jFmusa
# May 30th 2016, 09:32 JohnWayne use find('all'), delete select()
# May 30th 2016, 09:22 Sonu_nk hi, when i am adding where with contain , i am getting this issue " Unknowun coloum : FaqHeaders.header in where clause" . here is my code.: pastebin.com/ZiNTyGSk
# May 30th 2016, 09:21 cakephp595 hi, when i am adding where with contain , i am getting this issue " Unknowun coloum : FaqHeaders.header in where clause" . here is my code.: pastebin.com/ZiNTyGSk
# May 30th 2016, 09:18 conehead Hey guys. Was wondering overall, if it is possible to override / extend single controllers with plugins. I got a project which several people use and some might need extra functions for specific controllers. Is there an easy way?
# May 30th 2016, 09:10 ionas if any of you still wants to grab a bite I am leaving my appartement soon @ amsterdam
# May 30th 2016, 09:09 ionas all the best to you guys
# May 30th 2016, 09:09 ionas client javascript based - application password_hash based - then on the fly salts for the database but still based on password_hash :)
# May 30th 2016, 09:09 ionas you could - I think - still use password hash two times ;)
# May 30th 2016, 09:08 hmic as i said, there might be cases you might think and might want to do better - feel free to.
# May 30th 2016, 09:07 ionas yeah but security may assume bad code ;p
# May 30th 2016, 09:07 hmic *if* thats the case, you have serious problems anyways
# May 30th 2016, 09:07 ionas client salt+hash, application salt + hash, db field salt + hash ;)
# May 30th 2016, 09:07 hmic that helps only if an attacker can overwrite passwords of other users by known (hashed) values
# May 30th 2016, 09:06 hmic ionas, its just not neccessary
# May 30th 2016, 09:06 ionas hmic: the only thing that I kinda miss is double salting
# May 30th 2016, 09:06 hmic you can still provide a custom password hasher to the auth component and use it in your UserEntity to set the password hash too.