Re: CakePHP 2: Where to place exception code?

2011-10-12 Thread Elte Hupkes
I personally put my exceptions in ([plugin-if-any])/Lib/Error/ Exception/NameOfTheException.php and use App::uses('NameOfTheException', 'Error/Exception') where they're needed. Seemed like a Cake'ish way to do it, and they're not included unless one is actually thrown. Another approach would be

Re: Model Data on the home.ctp

2011-09-26 Thread Elte Hupkes
Your problem is that /pages/* is routed to pages/display/*, so your home() action is never called. So you should add an extra route that connect /pages/home (or simply the default '/' which I suppose you're using). That being said, the desired action is probably not pages/home, since what it does

Re: 2.0 is pretty awesome

2011-09-05 Thread Elte Hupkes
I agree, it rocks (yay, now it's a feelgood topic ^^). Every time I find myself frustrated because I'm trying to do something that used to work in 1.3 and doesn't anymore in 2.0, I realize it's because 2.0 has a way better solution for it. Also I found response times cut significantly, not only

Re: Is cakephp 2 beta ready for small web development?

2011-08-29 Thread Elte Hupkes
If you think you're comfortable with Cake, I'd say go for it. I've been checking out 2.0 since the dev-release, and am currently in the process of porting a fairly large webapplication to it. Everything is running stable and smooth (it's noticeably faster than 1.3, actually). You're going to run

Re: Is this URL secure enough

2011-05-07 Thread Elte Hupkes
registration). Please tell me what is the best solution for this? On May 7, 4:14 am, Elte Hupkes ell...@gmail.com wrote: Yes, URLs are encrypted over SSL (incidentally the reason you used to be unable to host multiple domains under the same certificate - the server couldn't make out

Re: Is this possible a big issue

2011-05-07 Thread Elte Hupkes
Also make sure you use the same timezone on all servers.. I usually use date_default_timezone_set('UTC') and the UTC_ MySQL functions to that end. On a different note, why use strtotime('now') instead of time()? On May 6, 8:09 pm, datgs giangson...@gmail.com wrote: Thanks, I think NTP is a good

Re: Is this URL secure enough

2011-05-06 Thread Elte Hupkes
Yes, URLs are encrypted over SSL (incidentally the reason you used to be unable to host multiple domains under the same certificate - the server couldn't make out which domain to serve). However, I would consider sending private data in a URL a bad idea regardless of whether it's encrypted or not;

Re: Containable make query data already retrieved

2011-05-05 Thread Elte Hupkes
I've recently had the same problems with Containable, it will execute tons of queries for models that are directly related and could be joined. Not only does this result in a query overhead; you also (in some cases) lose the ability to apply conditions to the joined models, very inconvenient. I

Containable does not create joins for belongsTo relations through HABTM

2011-04-08 Thread Elte Hupkes
To lay this out real quick; I have model called Export which is HABTM related with a model called Receipt, the receipt in turn belongs to a User (there's a lot of other stuff going on as well, but these are the most important). Now I want to fetch an Export and all it's Receipts, and I want User

Using separate queries instead of joins

2011-03-17 Thread Elte Hupkes
Is it possible to specify an option in Cake that will make it use only separate queries rather than joins? For example, in a has many association, fetch the parent record with a separate query rather than left-join it? Someone I'm developing for is running MySQL in a cluster; and apparently the

Re: Using separate queries instead of joins

2011-03-17 Thread Elte Hupkes
can optomize the indexes on your tables. then aggressively cache the returned data to reduce the amount of hits to the database...especially on queries which are known to be slow, or on highly trafficked but not often updated pages. On Thu, Mar 17, 2011 at 11:25 PM, Elte Hupkes ell...@gmail.com

Re: Release: CakePHP 1.3.1

2010-05-30 Thread Elte Hupkes
I get the exact same unserialize errors on a project previously running fine on Cake 1.3 after updating to 1.3.1. Disabling cache makes the error go away, but that's not really desirable of course.. On 30 mei, 02:48, Sergei yatse...@gmail.com wrote: Hi, just tried 1.3.1 with one of my project

Re: Javascript libraries with images/css inside Cake Plugins

2010-01-31 Thread Elte Hupkes
the same way they are when downloaded, move them around. I added Markitup to me plugin, so I customized the Markitup architecture to work with my plugin, not the other around. Take a gander:http://github.com/milesj/forum/tree/master/vendors/ On Jan 30, 2:55 am, Elte Hupkes ell

Re: Javascript libraries with images/css inside Cake Plugins

2010-01-30 Thread Elte Hupkes
That URL no longer works, I believe it's located here now: http://cakephp.lighthouseapp.com/projects/42648/13-new-features-plugin-assets Awesome news nontheless! Can't wait for a stable 1.3 release! On Dec 3 2009, 4:12 pm, Larry E. Masters aka PhpNut php...@gmail.com wrote:

Re: Javascript libraries with images/css inside Cake Plugins

2009-11-21 Thread Elte Hupkes
Nope, no solution yet.. For now I'm just putting all my image/flash dependent libraries in /webroot/js where they can be reached, a bit of a chore in truth.. Let's just hope some cake-dev out there hears our cries ;-). On Nov 17, 6:10 pm, haimke haim.schind...@gmail.com wrote: Hi, did you find

Re: Javascript libraries with images/css inside Cake Plugins

2009-10-03 Thread Elte Hupkes
('/plugin_name/css/css_filename'); On Tue, Sep 29, 2009 at 6:32 PM, Elte Hupkes ell...@gmail.com wrote: I'm trying to develop a small backend cms-plugin, which contains some Javascript libraries like jQuery, jQuery-ui and TinyMCE. Doing this I stumbled upon a problem I cannot seem to solve

Javascript libraries with images/css inside Cake Plugins

2009-09-30 Thread Elte Hupkes
I'm trying to develop a small backend cms-plugin, which contains some Javascript libraries like jQuery, jQuery-ui and TinyMCE. Doing this I stumbled upon a problem I cannot seem to solve in a good way. jQuery-ui and TinyMCE come bundled with themes, consisting of images and css files. CakePHP