Re: Creating PDF with cakePHP and TCPDF

2014-09-26 Thread Sudhir Pandey
Hi , I have follow the same steps , PDF are downloaded but have one problem , it shows blank content i.e no content. On Thursday, 13 November 2008 17:24:03 UTC+5:30, draikin wrote: After 2 week of unsuccessful testing i hope to get some help here by the community. I tried the tutorial

Re: Applying New corner badge on any new folder or sub-folder each time

2014-09-26 Thread Stephen S
Hi What is it you're having difficulty with in particular? You should be able to just check the created date, if within a certain period, add a class etc to display the banner over the image. On 26 September 2014 07:59, kunal ghosh kunal171...@gmail.com wrote: hi, I am getting problem on a

Re: pass date as paramater in view

2014-09-26 Thread Stephen S
In the most simple example I can think of, for something like this: *http://www.mysite.com/lessons/dashboard4/2014-09-01 http://www.mysite.com/lessons/dashboard4/2014-09-01* $this-Html-link('title', array('controller' = 'lessons', 'action' = 'dashboard4', $date);

Making callbacks in associated models work

2014-09-26 Thread Mateusz 2131
Hi. When I delete a record, it's associated records are deleted as well and that works perfectly, but the callbacks (before/afterDelete) in those associated models are never called. Somehow, I managed to fix this behavior just by adding App::import('model', 'AssociatedModel'); in my parent

Increase application process speed

2014-09-26 Thread Marcus James
Hi, If we have a very large scale application, should we use model association in model itself or should we bind and unbind model on the fly in controller. Does it effect the overall speed of the application. Also does implementing Acl and Auth decreases application speed? -- Like Us on

Re: Multiple role Authorization not working (based on tutorial) Cake 2.5.4

2014-09-26 Thread euromark
Just in case you want to keep the controllers lean and all that authorize code out of it in a central file, you might be interested in taking a look at http://www.dereuromark.de/2011/12/18/tinyauth-the-fastest-and-easiest-authorization-for-cake2/ I always like to code DRY and with clear

Re: Increase application process speed

2014-09-26 Thread euromark
If you are talking about CakePHP2.x, use model associations as everything is lazy loaded and bind on the fly only creates more code overhead and is less DRY. If you use the core ACL it will for sure have some impact, as row level access is usually overkill. But then again its hard to say if it

Re: Making callbacks in associated models work

2014-09-26 Thread Radharadhya Dasa
It happens if the *dependent* key is set to true. * Otherwise it should not happen.rrd* 2014-09-26 10:57 GMT+02:00 Mateusz 2131 mateusz.gros...@fingoweb.com: Hi. When I delete a record, it's associated records are deleted as well and that works perfectly, but the callbacks

Re: Creating PDF with cakePHP and TCPDF

2014-09-26 Thread Dakota
I would highly recommend using the Cake PDF plugin from Friends of Cake. It makes PDF generation very easy. You can get It from https://github.com/friendsofcake/cakepdf -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this