Re: CakePHP help

2012-09-10 Thread jeet bajaj
Then what is the problem??? On Sun, Sep 9, 2012 at 7:15 PM, girl narehtaras...@gmail.com wrote: hmm I made such a small game: http://www.wordgame.armfree.ru/ I wrote it's code... now I need it with cake but I have some difficulties I can show usual php code.. it's not very big

Re: How to link to a non cake php page, and where to put it?

2012-09-10 Thread Mike Griffin
On Sun, Sep 9, 2012 at 11:50 PM, d6games mark.deib...@gmail.com wrote: I need to do this too. Sadly, this doesn't work in version 2.2. In my index.ctp view I have a standard hyperlink like... ?php echo a href='joingame.html'Join/a ? Which renders the correct link, but when I

Miles J Uploader

2012-09-10 Thread CrotchFrog
I'm using Miles J Uploader plugin and Cake 2.2.2. I've configured the plugin in my model as $actsAs = Uploader.attachment. What I'm having problems with is that I have a custom function in the bootstrap to save the file with a unique filename and that works ok but its saves the record in the

Re: Miles J Uploader

2012-09-10 Thread Johannes N
well, probably it's the 'name' = 'name' // Saves the file in database with actual name of uploaded file line. :) i would strip down the code to the only needed lines, so you would end with: 1. 'Uploader.Attachment' = array http://www.php.net/array( 2. 'fileName' = array

Re: Miles J Uploader

2012-09-10 Thread Ed Propsner
Thanks Johannes, When I try stripping down it saves the record in the database with name as empty. On Mon, Sep 10, 2012 at 8:12 AM, Johannes N johannes.n...@socialisten.atwrote: well, probably it's the 'name' = 'name' // Saves the file in database with actual name of uploaded file line.

Re: HABTM save Question

2012-09-10 Thread gloop
Hi, sorry for my late response. I tested some ways and now i can save/edit. public function edit($id = null){ if(empty($id)) $this-redirect('index'); if(!$this-request-is('get')){ $data = $this-request-data; $this-Translation-save($data['Translation']); $_data =

Re: How to link to a non cake php page, and where to put it?

2012-09-10 Thread d6games
I moved the non-cake PHP app into the cake webroot folder and now it seems to be working. The bit about .htaccess is interesting. I didn't think about that. On Monday, September 10, 2012 4:08:47 AM UTC-4, Mike Griffin wrote: On Sun, Sep 9, 2012 at 11:50 PM, d6games

CakePHP 1.1 and PostgreSQL 9.1.x

2012-09-10 Thread keogh
Hi everyone, I'm working on a legacy project that uses CakePHP 1.1, I know we should update it, but the client doesnt want that yet. Well it works perfectly in my local with PostgreSQL 8.4.13, but when I try to deploy it with PostgreSQL 9.1.5 I get the error: Missing Database Table. My

create a link to download file

2012-09-10 Thread Arie Yuniarto
Hi all, I wanna ask about create a link to download file. so in my view i add this code ?php echo $html-link('Download CSV',array( action = download)); ? and then i use Media View on the controller function download(){ $this-view = 'Media'; $params = array( 'id' = 'clipping.zip', 'name'

Re: Cakephp + TCPDF

2012-09-10 Thread schaenk
Got the same problem. But the solution is easy. Delete the header(Content-Type: application/pdf); line in your layout file. Just put this line into your controller action instead: $this-RequestHandler-respondAs(pdf); Works fine with CakePHP 2.x Cheers On Thursday, July 26, 2012 12:04:32 AM

Problem with paths to files

2012-09-10 Thread Petr Juráček
Hello, *(I apologize in advance for my bad English.)* my CakePHP incorrectly lists paths to files (css files, images, javascripts...). CakePHP always before the path adds */app/webroot/index.php/* For example: CakePHP makes link: */app/webroot/index.php/css/style.css *but* *correctly should be

Re: create a link to download file

2012-09-10 Thread Yasir Arafat Hasib
Hello Check the link i think this will help you http://arafats.info/cakephp-download-me goog_1838343105dia/ / On Tue, Sep 11, 2012 at 8:05 AM, Arie Yuniarto scs.arie...@gmail.comwrote: Hi all, I wanna ask about create a link to download file. so in my view i add this code ?php echo