URL friendly image path constant

2007-10-05 Thread bitrace
Hi! Does anyone know if this there is a handy shortcut to return a URL friendly path to the image directory in webroot? In this case I'm rendering a JSON view with an object that contains a src attribute pointing to a image in the image directory, so the $html->image helper isn't any help. Any

Re: Ajax helper observeForm

2006-08-31 Thread bitrace
Hi! I was having similar problems to this and managed to fix it with the following snippet! First determine the name of the input field you wish to focus. Its name will be of the form YourModelNameSearch. Use view source for the avoidance of any doubt and then try adding echo $javascript->code

Re: Newbie to cake, running without mod_rewrite

2006-06-28 Thread bitrace
Hi! I'm pretty new here too but have also had some problems getting Cake working without mod_rewrite being available. So might be able to help. If you have uncommented define ('BASE_URL', env('SCRIPT_NAME')); from core.php you must all make sure the 3 .htaccess files are removed from from the

Re: Controller Redirect and Flash method problems

2006-06-27 Thread bitrace
OK following a bit more investigation I think this is a bug in core.php? The current BASE_URL is self referencing which seems to lead to the urls being malformed as new links are appended onto the existing script name. I managed to resolve this problem by patching app/config/core.php with the fo

Controller Redirect and Flash method problems

2006-06-27 Thread bitrace
Hi All! Great framework being baked here! I'd appreciate a bit of help with the following. I'm running the lastest version of Cake (1.1.5.3148) on an Apache webserver, where mod re-write is NOT available, so I've deleted the 3 .htaccess files and uncommented the BASE_URL line in core.php. Ever

FindAll HABTM query problem

2006-06-22 Thread bitrace
Hi! I've been having some problems querying two data models that are related by a HABTM association. Basically I have two models User and Feed linked by a HABTM association which use the following database tables. users feeds feeds_users (join table) The association seems to be working as when