Re: Bake and model associations

2014-04-17 Thread Tom Glare
OK - just realised what the problem was. I restructured a legacy database in accordance with Cake conventions, but when I added the "child" columns, I simply appended "_id" to the parent table name, instead of "singularising" it, e.g. using "part_id" to reference parts.id. All now fine! -- View

Re: MustacheCake - A Mustache implementation for CakePHP.

2014-01-08 Thread Tom
Really nice work, I got it working today. The feature of gradually moving from .ctp to .mustache files is great! The limitations are a little bit annoying as you mentioned... to create a 'helper' .php file just to get default functions working correctly (methods css, script etc.). *Is there a

PLUGIN WHICH MODIFIED FILE

2013-12-04 Thread TOM HQ
Hello, I just wondering how can a plugin modified some files. Here is the case. Let's say I have menu.ctp and have a form (form A). Then I build a plugin. How can I make this plugin insert new menus to the current file (menu.ctp)? Then, how can I make this plugin to add some additional fields t

Image Merging in CakePHP

2013-09-28 Thread Tom Nash
I have a layered image on my webpage, made up of small images layered onto a larger one. Is it possible to merge/flatten the images so that I am just left with one that can be downloaded? If so, how would I go about it? Thanks, Tom -- Like Us on FaceBook https://www.facebook.com/CakePHP

Defining root directory for shared hosting

2013-09-10 Thread Tom
Hi, I just installed Cakephp on a shared host at a2hosting. How do I set the root directory in app/index.php ?? /** * Get Cake's root directory */ define('APP_DIR', 'app'); define('DS', DIRECTORY_SEPARATOR); define('ROOT', dirname(__FILE__)); define('WEBROOT_DIR', 'webroot'); define('WWW_ROO

Cake is NOT able to connect to the database. Non standard port. Tried unix_socket, didnt work.

2013-04-18 Thread Tom Berchenbriter
Ive added unix_socket to my database.php 'unix_socket' => '8973', but Im still getting Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created. SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '8973' (2) any other

Cake wont load properly from remote amazon server

2013-04-18 Thread Tom Berchenbriter
Cake is NOT able to connect to the database. Database connection "Mysql" is missing, or could not be created. SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '' (2) I have a cake instance up on heroku that uses the amazon servers, and so I refected the server in da

Re: Is there a way to override CakeRequest.php (and for that matter any other Lib file) at the App level?

2012-07-04 Thread Tom Cowle
Thanks Stork - looks good to me - will give it a try - thanks very much. Tom On Tuesday, 3 July 2012 17:26:25 UTC+1, stork wrote: > > Just change last line of APP/webroot/index.php and call dispatcher with > your custom request class. > > #APP/Lib/Network/AppRequest.php > App:

Re: Is there a way to override CakeRequest.php (and for that matter any other Lib file) at the App level?

2012-07-04 Thread Tom Cowle
hanges there? I > think I remeber doing something like this with the Dispatcher and cake > automagically used the one from the app. The problem I had back then was > that I had to copy the whole class instead of just putting an extended > class there. > > On 07/03/2012 03:01 PM,

Is there a way to override CakeRequest.php (and for that matter any other Lib file) at the App level?

2012-07-03 Thread Tom Cowle
ake/Network/CakeRequest.php - however, I know it is bad practice to modify files in Lib as changes will be overridden if CakePHP is upgraded. Is there a way to override CakeRequest (and for that matter any other Lib file) at the App level? Thanks, Tom -- Our newest site for the commun

Load single plugin with App::build()

2012-03-24 Thread tom
rs when using a path to the specific plugin directory). (P.s. This is cake version 2.1) Tom -- 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

Wrap view in layout from separate plugin

2012-01-06 Thread tom
quot; and "admin_add". Is it possible to set the layout for the respective views to one from my admin plugin? For example, Plugin 1 -> admin_add action uses the default layout from my "admin" plugin and renders the admin_add view inside it. Tom -- Our newest site for t

CakePHP 1.3, 2.0 and SqlServer views

2012-01-04 Thread Mark Tom Sawyer
://github.com/cakephp/cakephp/commit/3f984b68facd9ba3c1eaa49d87d2bd115a87ce61 Thanks Mark Tom Sawyer m...@tomsawyer.com.br -- 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 questio

Re: ClassRegistry::init and Model function availability problem

2011-10-14 Thread Tom Belknap
Ok, interesting: the problem appears to be related to the types of joins I have. There are three tables: FacetedItem, Facet and FacetedItemsFacet. You can obviously see that this is a HABTM situation, however, because the nexus of Facets and Items is where the value lies, I have to access the

Re: ClassRegistry::init and Model function availability problem

2011-10-14 Thread Tom Belknap
Thanks for your reply. I had an inkling it was something like that, but the Model's already in use elsewhere. So I'm not sure why it wouldn't be able to find it. Do you suppose the fact that the Model is sitting in a subdirectory of the /models directory is causing an issue? Anyway, including i

Re: ClassRegistry::init and Model function availability problem

2011-10-13 Thread Tom Belknap
Ok, here's what I've done. I've used PHPs get_class_methods() function to list out the methods available. Here's what's strange: I get two different results from two different contexts. When I use my Component in a standard HTTP call, I get a list that includes my functions: [0] => getItem

Re: ClassRegistry::init and Model function availability problem

2011-10-13 Thread Tom Belknap
Can someone help me out with this? This seems to be a scoping issue, somehow. For example, when I had these two values echoed out, I get true for the function I created, but false for the AppModel subquery function: $subquery= method_exists($this->fi, 'subquery'); $userdefined

Ideas for better full-text search support

2011-09-28 Thread Tom Wright
ive functionality to warrant a special helper like paginate. I suppose it would extend paginate. Additionally searches are, I suspect, one of the areas in which DBs differ significantly from one another. I might try to implement these additions, but I wanted to get feedback first to make sure: a)

Re: fopen(.../app/tmp/cache/persistent/cake_core_default_en-us) [function.fopen]: failed to open stream: No such file or directory

2011-09-13 Thread Tom Belknap
Here's the thing: these files and folders are supposed to be managed by Cake. I'm not required to *create* the directories, other than making sure that the app/tmp/cache directory is created. All of the basic caching directories are there and they're all set to 777. The directories that come pr

Re: fopen(.../app/tmp/cache/persistent/cake_core_default_en-us) [function.fopen]: failed to open stream: No such file or directory

2011-09-13 Thread Tom Belknap
And yes, by the way: I've attempted to clear those files. Actually, the error seems to be indicating that the CakePHP system was unable to create the folders (they do not, in fact, exist). Seems like, beyond my problem, a patch should be developed to work around this problem: if there is a prob

Re: "The page isn't redirecting properly" error. on Simple Acl controlled Applicaiton

2011-09-12 Thread Tom Belknap
This isn't enough information to gaurantee a correct response. However, offhand, I'd say that you've got your ACLs blocking both the action that is the initial request AND the login function. Hence, with $this->redirect($this->referrer()), you end up ping-ponging back and forth until the server

Re: ClassRegistry::init and Model function availability problem

2011-09-12 Thread Tom Belknap
Bumpty-bump. Anybody got any guesses? -- 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, send email to cake-p

Re: fopen(.../app/tmp/cache/persistent/cake_core_default_en-us) [function.fopen]: failed to open stream: No such file or directory

2011-09-12 Thread Tom Belknap
Yeah, I actually wrote a script to open a random file and output the results elsewhere on the server, just to be sure this wasn't the case. It worked fine. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.c

Re: fopen(.../app/tmp/cache/persistent/cake_core_default_en-us) [function.fopen]: failed to open stream: No such file or directory

2011-09-12 Thread Tom Belknap
Apache/2.2.8 (Ubuntu) DAV/2 PHP/5.2.4-2ubuntu5.17 with Suhosin-Patch Cake 1.3.11 -- 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 unsubs

Re: fopen(.../app/tmp/cache/persistent/cake_core_default_en-us) [function.fopen]: failed to open stream: No such file or directory

2011-09-12 Thread Tom Belknap
Sorry, no. That's just me editing out the entire full path to the dir for the sake of security. -- 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 quest

Re: fopen(.../app/tmp/cache/persistent/cake_core_default_en-us) [function.fopen]: failed to open stream: No such file or directory

2011-09-11 Thread Tom Belknap
Hmm... No luck, any other ideas? I've been using CakePHP for over a year and never had this problem. I upgraded to the latest version of CakePHP, maybe that's the problem, somehow? But I don't have a similar problem on my dev server, so that's strange. -- Our newest site for the community: Cak

Re: fopen(.../app/tmp/cache/persistent/cake_core_default_en-us) [function.fopen]: failed to open stream: No such file or directory

2011-09-11 Thread Tom Belknap
Thank you for your reply. I'm going to see how that works. -- 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,

Re: fopen(.../app/tmp/cache/persistent/cake_core_default_en-us) [function.fopen]: failed to open stream: No such file or directory

2011-09-11 Thread Tom Belknap
I guess I'm a bit confused as to why a flamer's rant against CakePHP seems more important to the community here than answering a question? Where have all the admins gone? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions si

fopen(.../app/tmp/cache/persistent/cake_core_default_en-us) [function.fopen]: failed to open stream: No such file or directory

2011-09-10 Thread Tom Belknap
Ok, I have two separate Cake applications, both experiencing this error. And in the one case, its a brand-new installation. I quite literally just uploaded the files and setup permissions on the tmp directory. I'm running an Ubuntu Linux server. The other installation has been running without i

Re: ClassRegistry::init and Model function availability problem

2011-09-10 Thread Tom Belknap
Bumps. Can anybody help me out with this? -- 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, send email to ca

ClassRegistry::init and Model function availability problem

2011-09-08 Thread Tom Belknap
I am calling a Model inside of a Component to use as a faceted search Component. However, in two different contexts, I'm getting widely different results. The function seems to work fine when I'm loading a page, however, when using the AJAX call, I'm getting the "You have an error in your SQL s

ClassRegistry usage: "You have an error in your SQL syntax"

2011-09-08 Thread Tom Belknap
I'm a bit confused, of course... I'm trying to use a Model in a Component, so I'm registering it like this: /* // __facetConditions: Assembles subqueries for each facet/value pair // @var arr $facets: Array of facet/value pair arrays // @data arr $conditions: Model-usable array of subqueries. */ p

Re: Model function error

2011-03-02 Thread Tom van den Berk
php > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > > On 2 Mar 2011, at 17:10, Tom van den Berk wrote: > > > This is the file: invoiceline.php > > > On 2 mrt, 18:07, Jeremy Burns | Class Outfit > >

Re: Model function error

2011-03-02 Thread Tom van den Berk
This is the file: invoiceline.php On 2 mrt, 18:07, Jeremy Burns | Class Outfit wrote: > What is the name of the model file? > > Jeremy Burns > Class Outfit > > jeremybu...@classoutfit.comhttp://www.classoutfit.com > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakeph

Re: Model function error

2011-03-02 Thread Tom van den Berk
This is the function call: $this -> InvoiceLine -> saveValue($invoiceId, $key, $value); This is the MODEL: array ( 'className' => 'Invoice', 'foreignKey' => 'invoice_id' ) ); public function saveValue($invoiceI

Re: Model function error

2011-03-02 Thread Tom van den Berk
If you would have read the question properly, you would have known the function is of no consequence. The fact that the function name is passed as SQL is. The function is never even reached because a die(); in the first line has no effect. If something is not clear, please ask me in a normally, or

Model function error

2011-03-02 Thread Tom van den Berk
Hello Everybody, I am having a problem with CakePHP models. I have several in use but only one gives me an error when i add a function and call it from a controller. I have a model called Invoice with a saveValue function which works like a charm. I also have model with the same function but this

Re: Configuration

2011-01-30 Thread tom
Create a database table with the correct fields, perhaps called 'Settings'. You can then create (or bake) a model and controller to go with the table. The controller only needs an edit action. The action should get the id for the model from the applications configuration, rather than a variable p

Re: Controller->save() fails

2010-12-30 Thread TOm W
>   If Controller->save($this->data) fails, how can I determine what happened? I meant Model->save() fails... Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Group

Controller->save() fails

2010-12-30 Thread TOm W
I am still new to CakePHP and I am now debugging an app I created a while ago. If Controller->save($this->data) fails, how can I determine what happened? Is there an error code I can get to somehow? I suspect data is missing that is required not null in the database... Check out the new CakePHP

Re: Static Pages not working for me

2010-10-25 Thread Tom
Thanks for the help everyone. The problem was of course really simple. Totally forgot to add this to my layout... I was thinking the issue was bigger than it actually was. How embarrassing! On Oct 24, 4:13 pm, Tom wrote: > Day 3 on using CakePhp and I like it. But I am running into

Static Pages not working for me

2010-10-25 Thread Tom
Day 3 on using CakePhp and I like it. But I am running into the problem with generating static pages. I have an about page represented by about.ctp The page will render and will execute this php code: set("title_for_layout", "My Title"); ?> But If I add any other html in this file nothing shows

Ajax observefield input text update problem

2010-10-14 Thread Tom
Please help! I want to update vatnumber after selecting client but don't work ... tests_controler.php --- function update_input() { $xvalue = '123'; $this->set('xvalue', $xvalue); $this->render('/tests/ajax_value','ajax'); } ... /tests/form_test.ctp -

Observefield multiple divs update

2010-09-12 Thread Tom
Please help, I want to observefield and update multipe divs update but don't now how! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To po

CakePHP 1.3 error in command: this->Html->link( $this->Html->image("cal.png") ... ,

2010-08-17 Thread Tom
I got error in this code (cakePHP 1.3): $options = $this->Html->link( $this->Html->image("cal.png"), 'cal.png', array('onClick'=>"return showCalendar('". $htmlAttributes['id']."', '".$this->format."'); return false;"), array('escape'=>false));

How to update field value in view

2010-06-29 Thread Tom
view h4> label('category_id', __('Category', true).':*');?> input('category_id', array('label' => false, 'options' => $categories, 'empty' => '--' ));? >

Notify admin via email when an error happens

2010-02-08 Thread Tom
Hi, I'm looking for a way to send a notification to my address when a fatal error occurs during execution. Is there an established way to do it with CakePHP? It is very useful to get notified automatically if the database goes down or there is a serious error somewhere in the code (a certain cond

ajax, can't find bug!

2009-12-18 Thread Tom
I can't find bug in this source code? Help! /Nothing happens when I select a client/ Thanks. --- /views/elements/activity_filter.ctp --- Select Activities create('Activity', array('type' => 'get', 'action' => 'select')); ?> input('

visibility/change varijable within controller

2009-12-15 Thread Tom
I wrote something like this code: class ActivitiesController extends AppController { var $name = 'Activities'; function index(){ $year = 2009; $month = 12; $day = 15; } function add(){ } } how ca

how to pass value index -> edit -> index ->edit

2009-12-15 Thread Tom
I don't know how to pass value index -> edit -> index ->edit Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send e

global varijable

2009-12-13 Thread Tom
How to set (where?), read and change global variable in controllers? Pleas help! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post

releted select

2009-12-01 Thread Tom
Hi, I need help. How to view and select only projects for selected client? CREATE TABLE IF NOT EXISTS `projects` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(200) NOT NULL, `client_id` int(11) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8 ; CREATE TABLE IF N

Auth in CakePHP RC4

2008-12-22 Thread Tom Chapin
to CakePHP 1.2 RC2 or something and try the same code again and see what happens... Tom Chapin --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php

Position of label on checkbox inputs

2008-10-31 Thread Tom Singer
the checkbox but i don't want to do this if $out is at the end by design and this will break something. I have had no issues so far but this may break somethign i have not come across yet. I am using version 1.2.0.7296 RC2 Thanks, Tom [EMAIL PROTECTED]:~/jobzone$ git diff cake/libs/view/helpers/

Read from aroaco table

2008-10-29 Thread tom
How can i read from the aroaco table values associated with an aro(aco)? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe

Re: CakePHP Auth - Basic Template User System

2008-09-30 Thread Tom Chapin
e, but for some reason, none of them had any files available to download. Strange. -Tom Chapin On Sep 30, 6:17 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > Try Neutrino CMS its fantasic; that uses auth. I downloaded some time ago; I > have not used it on any projects though;

CakePHP Auth - Basic Template User System

2008-09-30 Thread Tom Chapin
se or improve on, I think it would be so useful. I have a number of projects that I've dreamed up and have half- built, and if I could just plug in a working user registration/login/ management piece, I could practically launch 3 different web apps right now. Any ideas? Thanks, Tom

Re: Array in PHP to JSON

2008-04-03 Thread Tom
Sure that's not the problem here. I don't know how to get back my array in my JQuery function (in my JS file). Something that might looklike this : {name:'!', width:120, editable: true, edittype: "select", editoptions: {value:$Array}} I don't know the syntaxis --~--~-~--~~

Re: Array in PHP to JSON

2008-04-03 Thread Tom
Thanx, but i would like to use it with Jquery. I have a filled array in php, and in a js file i've got : jQuery(document).ready( function() { var lastsel; jQuery("#list2").jqGrid( { url:'/comms/grid', datatype: "json", colNames:['!'

Array in PHP to JSON

2008-04-03 Thread Tom
Hi, i would like to know how to transfer an array in PHP to JSON ? and see it with JSON --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com

Routes with additional data.

2008-03-10 Thread Tom Holder
meter in the Routes.connect? My regexp are pretty good so not too worried about that. Cheers Tom --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send em

login and register on same page

2008-02-13 Thread tom
use setSource to point to the user table and use it with the useModel of the AuthComponent ? Thanks, /Tom --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send emai

Re: form error detection (1.2)

2008-02-07 Thread tom
The problem is more cosmetic where I have a line box around the errors. I need to be able to detect errors before I use form->error() otherwise I have a visible box with no content. I am hoping I missed something in API doc that behave like the old HtmlHelper::validateErrors. --~--~-~--~--

form error detection (1.2)

2008-02-07 Thread tom
tly exist. Can anyone suggest a clean way of doing this ? i.e if(form has errors) { if($form->isFieldError(...) echo $form->error(...) .. } Thanks, Tom --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ca

Broken base url

2008-02-05 Thread tom
.APP_DIR.'/'.$webrootDirName.'/'; The question is what else this will break and if there is no workaround without hacking the core - this must be a common problem ? Thanks for any help, Tom --~--~-~--~~~---~--~~ You received this message becaus

View this page "Cake Apps/Sites In The Wild"

2007-08-04 Thread tom-c
Two new sites added: Property rental - ownersapartments.co.uk - cakephp 1.1 Alloy wheels - swtyres.co.uk - cakephp 1.2 Click on http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~

Re: A new music thing with CakePHP

2007-01-25 Thread tom
her services to get a more complete picture, but it just took some time to figure out what was causing javascript problems. On Jan 25, 4:05 am, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > Hi Tom, > > That good work indeed very expansive too. > > Seems to not be worki

Re: A new music thing with CakePHP

2007-01-24 Thread tom
Yep. Trying to get help from the jQuery folks, it's mostly a JS problem. Should try to get this done before my classes wind up. On Jan 22, 4:21 am, "Eric C Blount" <[EMAIL PROTECTED]> wrote: > It blew up. > > 1) Not typing anything in the search box and submitting yields several > error messages

A new music thing with CakePHP

2007-01-18 Thread tom
ckbox... MusicBrainz... Amazon, iTunes, etc. Check it out. It might blow up, tell me if it does. Tom --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@g

Runners? Beta Testers?

2006-12-30 Thread tom
ng is totally stable & flaw-free, I'd like to start working with export, more advanced features, badges, etc. Tom http://www.workingidea.com/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP&q

Re: Generating & displaying images doesn't quite work, ever.

2006-10-12 Thread tom
Wait - maybe? Ob_clean in the controller seems to do the trick. Thanks! On Oct 12, 12:29 pm, "tom" <[EMAIL PROTECTED]> wrote: > Ugh, I don't know about this. I've tried ob_clean() at the start of the > template, and disabling all helpers, components, and models

Re: Generating & displaying images doesn't quite work, ever.

2006-10-12 Thread tom
a extra line feed > somewhere, but tracking it down might be very difficult. They are > somewhere, I wonder if someone has any tricks to find them? some > awk/sed magician in the house perhaps > > On 10/12/06, tom <[EMAIL PROTECTED]> wrote: > > > > > > >

Re: Generating & displaying images doesn't quite work, ever.

2006-10-12 Thread tom
Tried both - no errors being reported, and deleting the contents of TMP makes no difference. Still two lines of whitespace. On Oct 12, 11:26 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 10/12/06, tom <[EMAIL PROTECTED]> wrote: > > > > > Hmm.. no whi

Re: Generating & displaying images doesn't quite work, ever.

2006-10-12 Thread tom
Not sure what you mean? On Oct 12, 11:20 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > clear the buffer first? > > On 10/12/06, tom <[EMAIL PROTECTED]> wrote: > > > > > > > Hmm.. no whitespace in any of the default helpers or components, o

Re: Generating & displaying images doesn't quite work, ever.

2006-10-12 Thread tom
11:01 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > Right but it could be in a helper, a component, a config file, a > > you might also try using output control > buffershttp://us2.php.net/manual/en/ref.outcontrol.php > > On 10/12/06, tom <[EMAIL PROTE

Re: Generating & displaying images doesn't quite work, ever.

2006-10-12 Thread tom
Anywhere else whitespace is already present? Where's this ajax layout anyway? On Oct 12, 4:30 am, "meek" <[EMAIL PROTECTED]> wrote: > Looking at the image source, I'm pretty sure there's some extra > whitespace in there. - two newlines before the 'PNG' is outputted. > Maybe you have some newlines

Re: Generating & displaying images doesn't quite work, ever.

2006-10-12 Thread tom
I had noticed that before and checked: no newlines before On Oct 12, 4:30 am, "meek" <[EMAIL PROTECTED]> wrote: > Looking at the image source, I'm pretty sure there's some extra > whitespace in there. - two newlines before the 'PNG' is outputted. > Maybe you have some newlines outwith the tags?

Re: Generating & displaying images doesn't quite work, ever.

2006-10-12 Thread tom
The tutorial is at http://wiki.cakephp.org/tutorials:dynamic-image On Oct 12, 3:10 am, "BlenderStyle" <[EMAIL PROTECTED]> wrote: > Can you post the link to the dynamic images URL please? --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: Generating & displaying images doesn't quite work, ever.

2006-10-11 Thread tom
Good catch, but I just set DEBUG to 0, so no comment now, and there's still no image. On Oct 12, 2:21 am, "AD7six" <[EMAIL PROTECTED]> wrote: > look at the page source: there is a html comment for the render time > which makes it an invalid png. > > That comment is only present if you are debuggi

Generating & displaying images doesn't quite work, ever.

2006-10-11 Thread tom
I'm trying to display a png image - a sparkline, in this case, and it just doesn't work. I've tried following the dynamic images tutorial word-for-word, with no luck either. The result is here: http://dev.we-run.com/runs/graph . Any ideas? I can't quite figure out what's going on. Thanks. --~-

Re: Anyone a runner here? (and a beta tester...)

2006-07-11 Thread tom
Also, calculation of pace, distance, and duration are now actually correct! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubsc

Re: Anyone a runner here? (and a beta tester...)

2006-07-11 Thread tom
I added a day of 'slack' so that shouldn't happen again (although I haven't been able to replicate it exactly) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to c

Re: Anyone a runner here? (and a beta tester...)

2006-07-10 Thread tom
Hmm... perhaps something with the timezone (runs made in the future are automatically called "Plans." I'll probably change this behavior) I'll try to get that sorted out tommorrow. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Anyone a runner here? (and a beta tester...)

2006-07-10 Thread tom
This now has a friendly confirmation message & a link to log in. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from t

Re: Anyone a runner here? (and a beta tester...)

2006-07-09 Thread tom
#1 is fixed... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For mor

Re: Anyone a runner here? (and a beta tester...)

2006-07-09 Thread tom
Hah, yeah, a bit of debugging still left in there. And you know that all the menu options are still available after you log in... it just doesn't have a friendly "Account Confirmed" message right now. Thanks for testing! --~--~-~--~~~---~--~~ You received this me

Anyone a runner here? (and a beta tester...)

2006-07-09 Thread tom
er in this thread or through the form on the website. I really, really appreciate any comments, bug reports, and anything. Thanks, Tom --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. T

Re: Doesn't save, but no errors

2006-06-24 Thread tom
I've also updated to the latest stable just to see that wasn't the problem. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubsc

Re: Doesn't save, but no errors

2006-06-24 Thread tom
dumping $this->data at the last possible step (beforeSave()) gives this array: Array ( [User] => Array ( [first_name] => Jonny [last_name] => Greenwood [location] => London [email] => [EMAIL PROTECTED] [password] => 10f507e71

Doesn't save, but no errors

2006-06-23 Thread tom
Okay, so I'm running at debug level 2, and dumping $this with every pageload, and validating the data before calling User->save(), but it still isn't working. Any wisdom here? if($this->User->validates($this->data)) { echo "validates!"; //print

CakePHP + Sparklines Recipe

2006-05-30 Thread tom
Hi, Over at the good ol' weblog I've posted the quick instructions for getting Sparklines and CakePHP to work together: http://notes.we-run.com/sparklines-in-cakephp . If anyone has knowledge as far as caching, that might be useful (will it handle images)? Otherwise, check it out. --~--~--

Re: Google Maps + CakePHP Recipe

2006-05-29 Thread tom
Yeah, I was going to post it on my in-progress blog ( http://notes.we-run.com ) but TXP was messing up, and then as a snippet, and the registration process was taking a while. I'll post it elsewhere soon. --~--~-~--~~~---~--~~ You received this message because you

Re: Google Maps + CakePHP Recipe

2006-05-29 Thread tom
It's not public yet. I'm writing an online running log, which will take a month or more to get production-read. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to

Google Maps + CakePHP Recipe

2006-05-25 Thread tom
Quite a few of the things I expected to be very difficult with CakePHP have actually been "a breeze." Well, not a breeze, but doable. Anyway, no fanfare. Here's how to integrate mapping with your application. Add the data fields I'd recommend fields called "latitude" and "longitude," of the type

Outputting Images

2006-05-20 Thread tom
Sat, 20 May 2006 19:05:03 -0700 (PDT) X-Google-Token: Q-qongwAAADg7nf6g5qoBqWWWNwSJmzr Received: from 71.1.171.195 by g10g2000cwb.googlegroups.com with HTTP; Sun, 21 May 2006 02:05:03 + (UTC) From: "tom" <[EMAIL PROTECTED]> To: "Cake PHP" Subject: Outputting Im

Re: hasOne relationship kills findAll()

2006-05-14 Thread tom
Is there a way to debug SQL queries anywhere? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send ema

hasOne relationship kills findAll()

2006-05-14 Thread tom
'dependent'=> false, 'foreignKey' => 'place_id' ) ); $this->set('places', $this->Run->Place->generateList()); $this->set(&#x

Re: Populate select options with rows from another model?

2006-05-12 Thread tom
Wait, so do you call generateList() on the model that you're using, or the model which it is associated with? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to ca

Quick One: Associated form fields like the scaffolding.

2006-05-12 Thread tom
Hi, I'm working on making a nice input field for a certain Model, and it has a hasOne association to another type of data (and vice versa, that data has a belongsTo relationship). Is there a quick way to make that nice dropdown menu that the scaffolding provides? Like, where the values of the asso

Re: rdAuth? Users? ACL?

2006-05-11 Thread tom
Also, urls on the Manual page are changing... they should probably be static. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsub

  1   2   >