Re: using requestHandler to return jpg blob reuest headers

2011-12-15 Thread paulinthought
Well, I finally got a result. I gave up on the requestHandler and instead set the headers output in the controller using Controller::header('Content-type:'.$contentType); and sending the data content to the view in the normal way. Hope it helps someone else. On Dec 13, 11:47 pm, pau

using requestHandler to return jpg blob reuest headers

2011-12-13 Thread paulinthought
Hi, I'm using cake1.2 and I've got a blob stored in my database. I'm trying to display it using $html->image(array('controller'=>'image_files','action'=>'show', 10)); I'm trying to get the requestHandler to set the correct header-type for the request but every time I load the page I get the raw ima

Re: Auth logs user out when clicking new link before page load

2010-09-26 Thread paulinthought
Thats great. I will look into that. Thanks Jonathan for the help. Regards, Paul On Sep 26, 3:10 pm, Jonathan wrote: > On 25 Sep., 23:39, paulinthought wrote: > > > If I click a link to load a page and then click another link for a > > different page on a different model then b

Auth logs user out when clicking new link before page load

2010-09-25 Thread paulinthought
This is a strange behaviour and I'm not sure if it's my application or a bug in cake. If I click a link to load a page and then click another link for a different page on a different model then before the page has changed to the initially requested page the application instead redirects me to the l

Re: autocomplete with id and value

2009-12-12 Thread paulinthought
access it. > > I made a lot of this to replace huge select boxes, but if you ask me, > I'd advise otherwise, because on production with a lousy network, the > autocomplete is so slow and unresponsive. Users actually asked for the > select boxes back! > > Dfcp > >

autocomplete with id and value

2009-12-11 Thread paulinthought
Hi, I have autocomplete working fine, it passes the value of the selected field back to the controller once I post it but I can't guarantee the values in my list will be unique so I need to identify each with an id and pas that back to the controller also. I've found some samples which involve put

could nested elements cause recursion in the ajax component?

2009-10-29 Thread paulinthought
I have an element right.ctp with the code echo ""; echo $this->element('pplcollection'); echo "".$ajax->dropRemote('dropzone',null,array('url' => '/ casts/ remuser/','with'=>'{draggedid:element.id}'', 'update'=>'res')); The pplcollection.ctp element has the code below echo $this->requestAction('c

ajax recursion in nested elements

2009-10-28 Thread paulinthought
I have an element right.ctp with the code echo ""; echo $this->element('pplcollection'); echo "".$ajax->dropRemote('dropzone',null,array('url' => '/casts/ remuser/','with'=>'{draggedid:element.id}'', 'update'=>'res')); The pplcollection.ctp element has the code below echo $this->requestAction('ca

Auth in app_controller breaking routes

2009-10-27 Thread paulinthought
I have my app_controller in the cake folder with the function function beforeFilter() { $this->Auth->userScope = array('User.active' => 'y'); $this->Auth->fields = array('username' => 'email', 'password' => 'password'); $this->Auth->autoRedirect = false; $this->Aut

ajax timeouts

2009-10-26 Thread paulinthought
Hi, I'm using an ajax drag and drop script to add information to my database and update a div. The problem is that every time I drop an item after 30secs I get an error message relating to timeouts in my updating div. The database is saving the new information but each time the message appears its

Re: cake start problem

2009-06-03 Thread paulinthought
Unless you have some special reason to change the directory structure Id say the best thing to begin with is to just extract cake and put the cake folder into your root folder. Then change the name of the cake folder to the name of your site and now your application should be accessible at localho

Re: Accessing variable in pass array, routing

2009-06-03 Thread paulinthought
Hi, If I understand you properly, the url http://localhost/PBSRG/cake_1_2/risks/add/1 does not correctly pass $project_id into the controllereven though it appears in the url. Try link(__('Add New Risk', true), array ('controller'=> 'risks', 'action'=>'add', $project ['Project']['id'])); ?> i.e

Routes not finding .xml extension

2009-05-22 Thread paulinthought
Hi, I'm trying to create an xml sitemap as described in the article http://bakery.cakephp.org/articles/view/automatically-generate-dynamic-sitemaps I have followed the instructions there and I can now access my xml file in the browser at the address http://localhost/project/sitemap My problem is

css parsing stripping background-image tags from css

2008-10-05 Thread paulinthought
Hi, I've been playing with cakephp for a litle bit and its taken me a while to figure this out. cake seems to be stripping out tags from my css files. My mod_rewrite is working and my paths are correct. I'm running on winxp and assumed it was some kind of permissions problem. I've been stumped