Re: CakePHP 2.1 pagination routing (Help)

2012-03-07 Thread mikeottinger
Just came across this issue myself. Is this a bug? Without the beforeFilter change, my pagination links would never change, they'd always stay at 1. Thanks for the very helpful reply.. On Thursday, March 1, 2012 3:07:11 PM UTC-8, Salines wrote: > > You save my life :) Thank You. > -- Our newe

using $this->Model->validationErrors across associations

2012-01-02 Thread mikeottinger
Hi all, just a quick question. I have a simple model association between a Work and Image model with a one-to-many association between the two. When I call saveAll on the Work model it'll save the associated images as well. But when validation errors occur on the Work and images, it seems that

Re: schema shell for cakephp 2 - migrate new tables?

2011-12-20 Thread mikeottinger
Excellent, I'd come across this but didn't notice a port to cakephp 2.0 had been done. This is exactly what I'm looking for. Thanks! -- 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 othe

schema shell for cakephp 2 - migrate new tables?

2011-12-17 Thread mikeottinger
After playing around with the schema shell functionality in cakephp 2, I can't see how new tables are migrated as part of snapshots. Entire schemas can be created (wiping out data) with the 'cake schema create' command. But I can't see how I'd be able to add a model and a corresponding table in

Re: js/css compression helpers for cakephp 2.0

2011-11-30 Thread mikeottinger
Thanks guys, I'll give Mark Story's plugin a try (https://github.com/markstory/asset_compress/tree/2.0). This supports YUI Compression which I was particularly looking for. Thanks for the info. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the n

js/css compression helpers for cakephp 2.0

2011-11-29 Thread mikeottinger
Hi All, I've been looking at cakephp 2.0 and wondered if any of the existing plugins written previously for js/css compression worked with cakephp 2.0. Does anyone have any plugins or techniques in general they can share on this? Thanks! -- Our newest site for the community: CakePHP Video Tut

Re: Corrupted app/tmp/cache/views/ Files

2011-08-30 Thread mikeottinger
Thanks so much for looking into these. The reason I only included the persistent cache files was because I noticed that when I moved these files out, refreshed the page, I could see a properly rendered site. If I put these files back into the persistent folder, and refreshed the page again, I'd

Re: Corrupted app/tmp/cache/views/ Files

2011-08-30 Thread mikeottinger
I've just had this happen again, actually on a dev site which allowed me a little more time to collect files before clearing the files. I hopped up on the server and tar'd up the persistent folder under apps/tmp/cache which I determined was the culprit. I've gone through each of the files in thi

Re: schema generate only works with force flag

2011-08-27 Thread mikeottinger
wow... okay, I got to the bottom of this. After taking on an old school "echo ..." debugging session into the bowels of cakephp I discovered that a call to get_class_vars for my model was not returning any properties. This caused the generate function to skip my model. What solved it... using th

schema generate only works with force flag

2011-08-27 Thread mikeottinger
Hi All, I'm running 1.3.6 and I'm getting myself familiar with the schema generate feature. I have a simple controller and model created that works fine. I attempt to run cake schema generate and I get the following output: Generating Schema... Schema file: schema.php generated When I open the

Re: Corrupted app/tmp/cache/views/ Files

2011-06-01 Thread mikeottinger
I've been experiencing this issue on two sites I have in production. They'll randomly cause only white pages to appear, I'm running version 1.2.7 in both sites, and they're both running on debian. This issue seems to come out of the blue, and a simple deleting of the cache files solves it. I'd love

Re: Logging levels in cake 1.2x

2010-12-27 Thread mikeottinger
', 2); > > On 12/27/10, mikeottinger wrote: > > > > > Hi All, playing with logging levels in my cake 1.2.7 app, I notice > > that even if I set this: > > > Configure::write('debug', 0); > > > I still get debug statements written to the deb

Logging levels in cake 1.2x

2010-12-26 Thread mikeottinger
Hi All, playing with logging levels in my cake 1.2.7 app, I notice that even if I set this: Configure::write('debug', 0); I still get debug statements written to the debug.log. Is there really no way to turn these off? My concern is that for areas of my app where I want to apply a lot of debug lo

Re: Timestamp values not returning the time

2010-12-21 Thread mikeottinger
Ah yep, I had an afterFind function buried in that model that I'd forgotten about that was messing with the created field. Sorry, ID 10 T error. On Dec 21, 12:14 pm, cricket wrote: > On Tue, Dec 21, 2010 at 3:01 PM, mikeottinger wrote: > > > I'm seeing this value using

Re: Timestamp values not returning the time

2010-12-21 Thread mikeottinger
I'm seeing this value using a line like $this->log($created); I'm pretty certain it's more than just formatting because the output of the sorting looked wrong. Thanks! On Dec 21, 11:23 am, cricket wrote: > On Tue, Dec 21, 2010 at 10:03 AM, mikeottinger wrote: > &

Timestamp values not returning the time

2010-12-21 Thread mikeottinger
Hi Guys, I really haven't seen any posts that describe my simple problem. I have some rows in the database with the standard created and modified "magi-columns". I need to retrieve a grouping of these rows and sort them by their created date. A lot of these rows are created within minutes of each

Using the same validation method for create and update modes

2010-10-29 Thread mikeottinger
Hello, I thought I was being clever by defining a custom validation method called validateUploadedFileExtensions which accepts a couple or parameters. In my Image model's validation I would then reuse this method for two rules for a model's field, like this: 'image' => array( 'imageExtension' =

Using schema shell to add a new table

2010-05-31 Thread mikeottinger
Hi Folks, I've seen similar posts to this, but I'm still not having any luck. I'm playing with the schema shell feature for the first time on an existing app written in cakephp 1.2.7. I've generated a schema.php file with an accurate depiction of my mysql database schema using cake schema generate.

Re: ideas for handling user added images

2010-05-21 Thread mikeottinger
pe out the user added images. Thanks again! On May 21, 11:15 am, John Andersen wrote: > You can place them outside the application folder, just use Apache > Alias to map them in under the webroot. > > Alias /usr_img "file path to the user image folder" > > Enjoy, >  

ideas for handling user added images

2010-05-20 Thread mikeottinger
Hi All, I have a site that allows the user, through an admin section, the ability to upload his own images to the site, a very poor man's CMS if you will. This has all worked pretty well but for one annoying aspect that I finally want to address. Currently all uploaded images are placed in app/w

Re: fresh install of cakephp 1.3, Fatal Error: Call to a member function cd()

2010-05-06 Thread mikeottinger
ore.php on line 242, set a default time zone. PHP >= > > 5.3 produce a warning if this is not set, which appears to be tripping > > cake up. > > > On May 6, 9:27 am, mikeottinger wrote: > > > Great, thanks Graham, I'll follow this bug. > > > > On May

Re: fresh install of cakephp 1.3, Fatal Error: Call to a member function cd()

2010-05-06 Thread mikeottinger
> Cheers, > Graham Weldonhttp://grahamweldon.com > e. gra...@grahamweldon.com > p. (+61) 0407 017 293 > > > > On Thu, May 6, 2010 at 4:24 PM, mikeottinger wrote: > > So I downgraded php to 5.2.13 and cakephp 1.3 seems to be happy with > > this. This leads

Re: fresh install of cakephp 1.3, Fatal Error: Call to a member function cd()

2010-05-05 Thread mikeottinger
So I downgraded php to 5.2.13 and cakephp 1.3 seems to be happy with this. This leads me to my next question, is there some sort of cakephp- to-php compatibility matrix out there? Something like this doesn't seem readily available anywhere. Thanks! On May 3, 7:14 am, mikeottinger wrote

Re: fresh install of cakephp 1.3, Fatal Error: Call to a member function cd()

2010-05-03 Thread mikeottinger
I should mention I'm on apache2, php 5.3.2 as well. On May 2, 11:16 pm, mikeottinger wrote: > Hi Guys, > > I saw one post on this that seemed to peter out...  I've a fresh > install of 1.3, I'm running this in my own installations of apache, > php and mysql on mac

fresh install of cakephp 1.3, Fatal Error: Call to a member function cd()

2010-05-02 Thread mikeottinger
Hi Guys, I saw one post on this that seemed to peter out... I've a fresh install of 1.3, I'm running this in my own installations of apache, php and mysql on mac osx snow leopard. All of which run fine aside from cakephp. Yet, when I bring up the install in my browser I'm confronted with: Fatal

Re: return data from ajax controller without using an element

2009-09-27 Thread mikeottinger
very cool Miles, I'll definitely give this a spin. On Sep 27, 11:29 am, Miles J wrote: > http://www.milesj.me/resources/script/ajax-handler-component > > On Sep 27, 10:21 am, mikeottinger wrote: > > > Excellent, works like a charm, Thanks! > > > On Sep 27,

Re: return data from ajax controller without using an element

2009-09-27 Thread mikeottinger
Excellent, works like a charm, Thanks! On Sep 27, 9:51 am, brian wrote: > I believe you can do: > > $this->autoRender = $this->layout = false; > echo $new_order; > exit; > > On Sun, Sep 27, 2009 at 3:14 AM, mikeottinger wrote: > > > Hi All, > > &

return data from ajax controller without using an element

2009-09-27 Thread mikeottinger
Hi All, Very simple question, I have a controller called by an ajax call that will return a single number for its response. I couldn't find a way to return just that value without going through the process of creating an element for it and doing something like this: $this->set('value', $new_orde

insert elements using javascript

2009-09-20 Thread mikeottinger
Hi All, This is sort of an open question, I have a need to insert a section of a form into a page using javascript. I'd like to leverage elements for this. Basically, refer to the element from my javascript and have the ability to replace variables in it. This is something Rails supports throug

Re: Validation Help

2009-09-15 Thread mikeottinger
Hi Dave, you might check your spelling real quick: minLenght should be minLength. That's probably why your length validation is always passing. On Sep 15, 8:30 am, "Dave Maharaj :: WidePixels.com" wrote: > I am finally getting around to implementing the validation rules but seem to > be not quit

Re: how to handle general form errors?

2009-09-15 Thread mikeottinger
')); ?> error('password', array('wrap' => 'p', 'class' => 'error')); ?> label('password2', 'Confirm Password', array('style'

Re: how to handle general form errors?

2009-09-14 Thread mikeottinger
> > 'password' => array( >         'isMatch' => array( >                 'rule' => array('isMatch', 'confirmPassword'), >                 'message' => 'Your confirmed password does not match' >

how to handle general form errors?

2009-09-14 Thread mikeottinger
Hi All, My apologies if this has been discussed before, giving a search of the forum didn't reveal anything. I'd think this would be easy. I'm attempting the classic validation of two password fields to ensure they're identical. I could get this to work by associating a custom validation method

Re: CakePHP 1.2 Missing Database Table

2009-09-05 Thread mikeottinger
r models that work? > > On Sep 5, 1:55 am, mikeottinger wrote: > > > Hi All, > > >   I just deployed the beginnings of a new site onto a little > > development space up on my host server. Everything works great in my > > local environment. But upon deploy, I see

CakePHP 1.2 Missing Database Table

2009-09-04 Thread mikeottinger
Hi All, I just deployed the beginnings of a new site onto a little development space up on my host server. Everything works great in my local environment. But upon deploy, I see this: Missing Database Table Error: Database table works for model Work was not found. I've searched google, and a

Re: textmate snippets not working

2009-09-02 Thread mikeottinger
g if there are compatibility issues with this and version of the CakePHP bundle available through the svn url above. Sort of a shot in the dark in terms of explanation, but I'm at a loss as to why I couldn't get it working before. Hopefully this is helpful to others. Thanks. On Sep 2, 7

Re: textmate snippets not working

2009-09-02 Thread mikeottinger
or example. > > I have a vague memory of some bundle causing me problems because of > file permissions. Try chmodding your bundle (which is one of these > Apple faux-directories) to make sure Textmate can do it's thing. If > you check it out using subversion they should be ok but

textmate snippets not working

2009-09-02 Thread mikeottinger
Hi All, I've scoured the web and had no luck, I've installed the bundles for cakephp, I've set the file type for my php file to HTML (PHP Cake), yet none of the snippets work for me. For instance, I try typing dat then hitting tab and nothing happens. Is there something else I'm missing perhaps? I