Re: Cakephp + TCPDF

2012-07-29 Thread Elisio Leonardo
You should really try to use Cakepdf Plugin. https://github.com/ceeram/CakePdf On Thursday, July 26, 2012 12:04:32 AM UTC+2, gloop wrote: > > Hello, > > i would like to create a pdf. Now i found this: > > > http://bakery.cakephp.org/articles/kalileo/2010/06/08/creating-pdf-files-with-cakephp-and-

Re: CakePHP REST service does not recognize POST

2012-07-29 Thread Dr. Tarique Sani
Create a form and post it to the URL and work forwards from there. - could be something wrong with the extension. The ->isPost() method is very simple and just uses $_SERVER['REQUEST_METHOD'] to check the method HTH Tarique On Fri, Jul 27, 2012 at 1:59 AM, frederikjacques wrote: > Hi all, > >

Re: Cakephp + TCPDF

2012-07-29 Thread Daniel Baird
I'm not familiar with PDF generation, but surprising HTML headers are sometimes an "early output" problem. So check for stray spaces and newlines in your php files. Depending on config, if your app emits any output, even whitespace, PHP sends the headers as it knows them at the time -- if your wh

Re: [2.1] Problem with webservices

2012-07-29 Thread Mariano C.
It's working now, but I followed the name convention as written on cake site. Il giorno domenica 29 luglio 2012 22:48:52 UTC+2, WyriHaximus ha scritto: > > Why would do you that when you can make the JsonView take care of that: > > $this->set(array( > 'people' => $people, >

Re: Linking Models Together

2012-07-29 Thread Tilen Majerle
it always search for primary key, set $primaryKey variable in model to your column -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/7/29 newt_e > Hi, > > I've have two tables: > authors, has a column called id (amongst others) > books, has columns called id and authorid (amongst others) >

Re: [2.1] Problem with webservices

2012-07-29 Thread WyriHaximus
Why would do you that when you can make the JsonView take care of that: $this->set(array( 'people' => $people, '_serialize' => array('people') )); On Sunday, July 29, 2012 9:41:24 PM UTC+2, Walter Raponi wrote: > > $this->set(array( > '

Linking Models Together

2012-07-29 Thread newt_e
Hi, I've have two tables: authors, has a column called id (amongst others) books, has columns called id and authorid (amongst others) Obviously a book has an author, so any value of authorid must exist in the authors table. When I retrieve an authors row, I also want to return the correspondin

Registering With the Bakery on the CakePHP website

2012-07-29 Thread newt_e
Has anyone else had problems registering on the CakePHP website? The verification email contains a link that doesn't work so I can't do the verification part - is it just me? N. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Ques

Re: [2.1] Problem with webservices

2012-07-29 Thread Walter Raponi
$this->set(array( 'people' => $people, '_serialize' => array('person') )); Do we need serialize?? Just try $this->set('person', $people); And in view Echo json_encode($person); = Walter Raponi Din S.r.l. Via Donato Meni

Re: CakeEmail Connection Refused on Live Server

2012-07-29 Thread Fahad Khalid Bhatti
Any success?? On Sunday, November 27, 2011 8:59:26 AM UTC+5, andrewperk wrote: > > Hello, > > I'm using CakeEmail to send emails using Gmail and their SMTP. On my > local environment it sends emails just fine with no errors. I'm not > sure why it would work locally and note remotely. But when I up

Re: [2.1] Problem with webservices

2012-07-29 Thread Mariano C.
Yes I've read that message, but I don't understand what it means. Why I get that error only in json and xml output and not in a normal view? Il giorno domenica 29 luglio 2012 18:35:37 UTC+2, rchavik ha scritto: > > > > On Sunday, July 29, 2012 10:35:23 PM UTC+7, Mariano C. wrote: >> >> Nothing

Re: [2.1] Problem with webservices

2012-07-29 Thread Mariano C.
Yes. I've read. But what cause that errror? What that error really means? Il giorno domenica 29 luglio 2012 18:35:37 UTC+2, rchavik ha scritto: > > > > On Sunday, July 29, 2012 10:35:23 PM UTC+7, Mariano C. wrote: >> >> Nothing change, I got the same error. :( >> >> > Read the error message: > > N

Cakephp 2.X image and gallery plugin?

2012-07-29 Thread bs28723
Before I build it myself, I am looking for a plugin or something I can start from that will upload images, create galleries or albums to manage a collection of images. I have done a number of search and there are plugins to do multiple uploads, or attach images to a model. There are jquery plugins

Re: [2.1] Problem with webservices

2012-07-29 Thread rchavik
On Sunday, July 29, 2012 10:35:23 PM UTC+7, Mariano C. wrote: > > Nothing change, I got the same error. :( > > Read the error message: Notice (8): Undefined index: person [CORE\Cake\View\JsonView.php, line 89 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.or

Re: Cake PHP User Management Plugin Eagle

2012-07-29 Thread Steve Found
On 28/07/12 19:24, euromark wrote: can somebody pleeaase stop this spam nonsense? +1 to this ! Am Donnerstag, 26. Juli 2012 20:32:19 UTC+2 schrieb Ivan Suzen: Hi Guys... I have purchased User Management Plugin from http://umpremium.ektasoftwares.com/

CakePHP hasAndBelongsToMany relationships demystified

2012-07-29 Thread Ralf Rottmann
Hi everybody, After days of trial-and-error and almost giving up, I've managed to get some basic and – as I believe – very common scenarios solved in CakePHP. I was wondering, why the documentation is not clear on these aspects, so I described my findings in a somewhat lengthy blog post. You m

Re: [2.1] Problem with webservices

2012-07-29 Thread Mariano C.
Nothing change, I got the same error. :( Il giorno domenica 29 luglio 2012 16:49:36 UTC+2, Mariano C. ha scritto: > > I'm try to develop a simple webservices in CakePHP 2.1. So, i first > created a DB table: > > CREATE TABLE IF NOT EXISTS `people` ( >> `id` char(36) COLLATE utf8_bin NOT

Re: [2.1] Problem with webservices

2012-07-29 Thread Walter Raponi
Missing view under View/People/json/index.ctp Just echo json_encode($people); there and you should get yout json data = Walter Raponi Din S.r.l. Via Donato Menichella 304 00156 Roma - Italy Tel 0641227662 Fax 0641227664 w.rap...@ritoll.it Il giorno 29/lug/2012, all

[2.1] Problem with webservices

2012-07-29 Thread Mariano C.
I'm try to develop a simple webservices in CakePHP 2.1. So, i first created a DB table: CREATE TABLE IF NOT EXISTS `people` ( > `id` char(36) COLLATE utf8_bin NOT NULL, > `first_name` varchar(100) COLLATE utf8_bin DEFAULT NULL, > `last_name` varchar(100) COLLATE utf8_bin NOT

Re: Numbers cutting off after comma

2012-07-29 Thread euromark
http://book.cakephp.org/2.0/en/core-libraries/helpers/number.html Am Sonntag, 29. Juli 2012 04:17:24 UTC+2 schrieb Steven Scaffidi: > > Ok nevermind I changed the fields to INT and now they work fine. One more > question is there a way to change the defaults on the number helper. For > example

cakephp Auth by get params

2012-07-29 Thread cosinusweb
Hi, I'd like to authenticate my users by only a key string. like /blog/user/login/key => blog/user/login/DTR5656tfygs I have a table users : username key email role I' do it's not secure but It is the way it has to be done for my app. Client require it. I don' t know how I can achieve that