Re: Problem with Miles J. Uploader plugin and image name

2012-05-03 Thread Miles J
Are you trying to overwrite the original image with the resized one? Try adding overwrite = true to the resize transformation. On Thursday, May 3, 2012 9:49:21 AM UTC-7, Xoubaman wrote: > > This is my behavior setup: > > public $actsAs = array( > 'Uploader.Attachment' => array( >

Re: who can tell me what the Make is.

2012-05-03 Thread Vitor Pacheco
Make is used to build the documentation... https://github.com/cakephp/docs#building-the-documentation 2012/5/4 香柱元 > now I want to translate cakephp doc hosted in github( > https://github.com/cakephp/docs). > but and they say in the > README.mdown

who can tell me what the Make is.

2012-05-03 Thread 香柱元
now I want to translate cakephp doc hosted in github(https://github.com/cakephp/docs). but and they say in the README.mdownfile, I at first should install some tools for build the document. - Make - Python - Sphinx - PhpDomai

CakePHP Containable on Associated Model

2012-05-03 Thread Rob
I have a setup where there are Books Users and Logs. Each Log has a Book and a User and I am trying to retrieve a list of all the books regardless of the user, but then also retrieve the Logs associated with that book (recursive is set to 1), but then only retrieving the logs of the current logged

retrieving-your-data.html: DboSource::fetchAll()

2012-05-03 Thread John Sutton
At the end of http://book.cakephp.org/2.0/en/models/retrieving-your-data.html are some examples of the use of DboSource::fetchAll() : $db = $this->getDataSource(); $db->fetchAll( 'SELECT * from users where username = ? AND password = ?', array('jhon', '12345')); $db->fetchAll( 'SEL

HABTM Save format?

2012-05-03 Thread Michael Gaiser
I am using Cake 2.1 and have a two models, Domain & Location which use the DomainsLocation join table. In the DomainController, I have a function called AddLocation() which I want to add a record to the DomainsLocation table so that the domain knowns which locations belong to it. So here is my ques

Re: Object name collisions

2012-05-03 Thread Matt
Cool, sounds a bit like Tcl. On Thursday, May 3, 2012 12:44:55 PM UTC-5, stork wrote: > > The answer is CakePHP 3.0 (namespaces) > http://cakephp.lighthouseapp.com/projects/42648/development-roadmap -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out

Re: Get helper to work only if rsponse type is text/html

2012-05-03 Thread stork
in your helper: debug($this->_View->response->type()); -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, se

Re: Object name collisions

2012-05-03 Thread stork
The answer is CakePHP 3.0 (namespaces) http://cakephp.lighthouseapp.com/projects/42648/development-roadmap -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP rel

Object name collisions

2012-05-03 Thread Matt
Hi, I thought about posting this as a ticket at Lighthouse as a future "wish" item, but I'll post here instead. One of the things that has bothered me about Cake has been that some of the built-in object names take names that would be very common for the user to want to use, for example "Model

Problem with Miles J. Uploader plugin and image name

2012-05-03 Thread Xoubaman
This is my behavior setup: public $actsAs = array( 'Uploader.Attachment' => array( 'image_upload' => array( 'name'=> 'formatFileName', 'baseDir'=> IMAGES, 'uploadDir'=> 'writers', 'dbColumn'=>

Get helper to work only if rsponse type is text/html

2012-05-03 Thread Ernesto
Hi all i have a simple helper wich does some html cleaning. All works ok except for PDF views where this helper corrupts the document. is there any way to get this helper to work only if the response in text/html? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakeph

Re: Get the first link of a post ?

2012-05-03 Thread JonStark
Yes, I guess it would be $post[Post]['body'] Le vendredi 27 avril 2012 09:45:27 UTC+2, Mike Griffin a écrit : > > On Thu, Apr 26, 2012 at 17:53, JonStark wrote: > > I'm currently trying to get the first link of a post for a specific post > > format, but preg_match needs two parameters and I can

Re: how to get id before saving

2012-05-03 Thread Michael Gaiser
I think you could also set it up as a Virtual Field since its calculated off the id and that wont change. It would also keep your table a bit smaller and not run the risk of data duplication. ~Michael -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check ou

Re: how to get id before saving

2012-05-03 Thread euromark
the id is unknown on add. therefore you should have a afterSave() hook for this public function afterSave($created) { if (!$created) return; $this->saveField('personalno', $this->id + 100); } or sth like that should work Am Donnerstag, 3. Mai 2012 12:02:00 UTC+2 schrieb alexkd: > > I am

how to get id before saving

2012-05-03 Thread alexkd
I am using cake1.3 I have a table patient with id(primary key),personalno fields. I have to set personalno=id+100. That is before saving, personalno have to id+100. How can i get the id value beforesaving or aftersaving. If aftersaving then how can i edit table with single or more code. thanks -