Preferred way to retrieve data with cake 3.0

2015-05-01 Thread Aaron Bird
s', 'Authors']) ->limit(10); Is one "better" than the other? Another quick question is how do I quickly identify if the above queries did not retrieve any data? I used to check for an empty array on the returned results. Many Thanks! Aaron -- Like Us on F

Re: Detecting SSL from behind a proxy

2013-01-15 Thread Aaron Pollock
he rest of the application. Thanks again, Aaron On Monday, January 14, 2013 10:21:58 PM UTC, ibejohn818 wrote: > > My assumption is that you wish to terminate SSL requests on your load > balancer. > > In my setup, I use HAPROXY as my LB, and use NGINX to terminate my ssl > reque

Re: Detecting SSL from behind a proxy

2013-01-14 Thread Aaron Pollock
rving > the site directly. I guess it would depend on how the SCRIPT_URI is passed > from the LB to the Apache app servers. > > Curious to know what you find out. > > > On Sunday, January 13, 2013 10:08:31 AM UTC-5, Aaron Pollock wrote: >> >> CakePHP (all vers

Detecting SSL from behind a proxy

2013-01-13 Thread Aaron Pollock
CakePHP (all versions that I've seen) check against $_SERVER['HTTPS'] to see whether a request has been made over HTTPS instead of plain HTTP. I'm using nginx as a load balancer, behind which are the Apache application servers. Since the SSL connection terminates at the load balancer, $_SERVER[

Errors from cakephp command line testing tool

2012-08-15 Thread Aaron Smyth
I have a couple of tests that are expecting a controller's accompanying view to be available (they're checking for specific strings/regex patterns in the view) and all my tests are passing in the browser-based test.php. The tests that expect $this->view are failing when i'm running the test sui

Checking cookie values in controller test

2012-08-15 Thread Aaron Smyth
I'm setting up tests for my controllers, and I'm trying to make sure that during its execution, a method is actually setting a cookie. I can't seem to validate this in the test I'm writing. Does anyone have any thoughts on how I might check Cookie values from within a test case? -- You receive

Are child contain rules duplicated across parents? Unexpected results.

2012-01-27 Thread aaron
This is a Cake 2 project. Also posted issue here: http://bin.cakephp.org/view/285982918 Post belongsTo User User hasMany AvatarSet (alias of Asset with model=>User, name=avatar, polymorphic) Comment belongsTo User User hasMany AvatarSet (alias of Asset with model=>User, name=ava

Re: cakephp revisionable behavior

2011-12-07 Thread Aaron Collins
tions as well as. The behavior works for me in a simple cms to be able to see the previous versions and roll them back. -Aaron On Tue, Dec 6, 2011 at 2:30 AM, euromark wrote: > From a glance I see only 2 code flaws: > "private" declarations shouldnt be used inside a framework witho

Categorized Tags & Posts

2011-07-26 Thread Aaron Palmer
I am beginning to rebuild a CMS I've built using CakePHP so that I can cut down my development and deployment time. CakePHP is my first Framework and is the first time I've worked with the MVC Model. I need help translating my current methodology to CakePHP's format. Right now everything is orga

Re: i18n broken in 1.3.2?

2010-06-08 Thread Aaron Shafovaloff
I discovered the problem was calls to __(...) etc, so it's definitely a problem with i18n On Jun 8, 1:04 pm, Aaron Shafovaloff wrote: > If I set core.php to have > > Configure::write('debug', 1); > > Trouble is, I need this set to 0 for a number of reasons.

Re: i18n broken in 1.3.2?

2010-06-08 Thread Aaron Shafovaloff
If I set core.php to have Configure::write('debug', 1); Trouble is, I need this set to 0 for a number of reasons. On Jun 8, 12:26 pm, Aaron Shafovaloff wrote: > I get this when I run my shells in 1.3.2: > > "Call to undefined method App::path() in /var/www/cake/lib

i18n broken in 1.3.2?

2010-06-08 Thread Aaron Shafovaloff
I get this when I run my shells in 1.3.2: "Call to undefined method App::path() in /var/www/cake/libs/i18n.php on line 264" The 1.2 to 1.3 migration guide says: "Configure::read('modelPaths') replaced by App::path('models')" ... but i18n.php is a core file. Any ideas? Check out the new CakePHP

Re: Help with ACL/Authentication Tutorial

2009-10-23 Thread aaron
Don't worry about itI moved it from my Mac to a Linux box and it worked. On Oct 22, 7:06 pm, jacmoe wrote: > You either need to downgrade your PHP to 5.2, or upgrade your Cake to > 1.3. :) > > On Oct 22, 10:07 pm, aaron wrote: > > > Versions: MySQL 5, PHP

Re: Help with ACL/Authentication Tutorial

2009-10-23 Thread aaron
ct 22, 10:07 pm, aaron wrote: > > > Versions: MySQL 5, PHP 5.3, Apache2 (Snow Leopard) > > > I am going > > through:http://book.cakephp.org/view/642/Preparing-our-Application > > > The pages says to "use cake bake, call 'cake bake all'... (in the >

Help with ACL/Authentication Tutorial

2009-10-22 Thread aaron
ning the return value of new by reference is deprecated in /Users/aaron/Sites/phptut/cake/libs/file.php on line 106 PHP Deprecated: Assigning the return value of new by reference is deprecated in /Users/aaron/Sites/phptut/cake/libs/cache.php on line 78 Has anyone else run that command and had issues?

Re: secure link using hmtl->link helper..

2009-09-15 Thread Aaron
Ahh, I figured it out from reading the code. The variable that I need is 'bare', not 'base'. So this works. $html->link('my account', array('bare' => 'https://', 'controller' => 'users')); On Sep 15, 5:40 pm, Aaron

Re: secure link using hmtl->link helper..

2009-09-15 Thread Aaron
That doesn't seem to be working. What am I doing wrong here? This is what I have in the code. $html->link('my account', array('base' => 'https://', 'controller' => 'users')); And this is what is showing up. my account Seems like I'm missing something basic here, just can't figure out what. On

secure link using hmtl->link helper..

2009-09-15 Thread Aaron
What's the best way to extend the html->link function so that I can tell it to output a secure(https) link? Right now, I've added my own secure_link function that's basically a copy of the link function but adding a https to the beginning. But it seems like there should be a better way of overridi

Re: Heads up: UUID pimary field can now be stored as binary instead of char

2009-05-21 Thread Aaron Shafovaloff
7;t a performance increase. But CakePHP requires the length of 36 with a binary type. Any thoughts? On May 21, 5:09 pm, Aaron Shafovaloff wrote: > Just a heads up: CakePHP, as of about 2 months ago I think, supports > UUIDs as a binary primary field type instead of just char. > &g

Heads up: UUID pimary field can now be stored as binary instead of char

2009-05-21 Thread Aaron Shafovaloff
not-to-uuid/ I think I gather that using the binary field type brings it down to 16 bytes instead of 36 bytes (even though the field length is left at 36?). Take care, Aaron --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Gro

Re: XML rendering

2009-05-11 Thread Aaron Torres
Ahh, I finally figured it out. I was using a TidyFilter Helper for another view and it was changing the results of the output! I guess the lesson learned is keep track of your helpers... On May 10, 7:48 pm, Aaron Torres wrote: > Ah, that file path was actually a typo: > >

Re: XML rendering

2009-05-10 Thread Aaron Torres
e going on? On May 10, 9:17 am, Smelly Eddie wrote: > AAron: > > I am not sure what your adding to app/xml/data.ctp for.  This should > be handled like any other view. > > You need; > > The parse xml extensions config (which you have) > A controller action (your'

XML rendering

2009-05-09 Thread Aaron Torres
First off, sorry if this is a duplicate, I submitted a post an hour ago and it still hasn't shown up so I thought I'd try one more time. I'm having extreme difficulty getting cakephp to render xml for me. I've looked through the google groups, the docs, and blog posts via google and as far as I c

XML using RequestHandler outputting html

2009-05-09 Thread Aaron Torres
I'm really stumped about this problem, I hope someone can be of assistance. I'm trying to out put a view as xml and have read through the documentation and tutorials, but I must be missing something. In my routes file I have: Router::parseExtensions("xml"); In my controller file: var $component

XML using RequestHandler outputting html

2009-05-09 Thread Aaron Torres
I'm really stumped about this problem, I hope someone can be of assistance. I'm trying to out put a view as xml and have read through the documentation and tutorials, but I must be missing something. In my routes file I have: Router::parseExtensions("xml"); In my controller file: var $component

setDataSource bug?

2009-04-15 Thread Aaron Geier
In the cake/libs/model/model.php in the function setDataSource(), it would appear that there is not always a return value. According to the last if statement in that function, the function will only return a value if $db is empty, null, or is not an object. This last if statement isn't always gu

Re: Master / Slave Support

2009-01-19 Thread Aaron Shafovaloff
Thanks much. I didn't realize the old (and easy) method of doing this was deprecated. On Jan 19, 10:04 am, Andreas Hofmann wrote: > Hi all, > > we have discovered a way how to realize master/slave support with cake > (also with multiple slaves). > This old post is completely > depricated:http:/

Re: saving to multiple models in a habtm relationship

2009-01-02 Thread aaron
A) thanks for the responses. B) looking back I have a very poorly written post. What I meant to say is that I want to save a new measure and a new article all at once. So on the measure add page I also have all the fields for adding both a new Measure and a new Article, which I want to be assoc

Re: How to access one model from other model

2009-01-01 Thread aaron
I'm not quite sure if I understand your problem. It sounds like you want a link on the entries index view that will take you to your users edit view. If this is the case, then all you need is a link on the entries index view - something like: link(__('Edit User', true), array ('controller'=>'Use

saving to multiple models in a habtm relationship

2009-01-01 Thread aaron
I have two models, Measure and Article, with an habtm relationship. I want to add a measure and a related article at the same time. I've tried using this algorithm from another post (http://groups.google.com/ group/cake-php/browse_thread/thread/863c403df2a2de6/3137f612e3ffdf68? lnk=gst&q=saving+

help with bindModel()

2008-12-30 Thread aaron
the last code snippet from the cookbook section on habtm it looks like it is associating to two models, "PostsTag" & "FilterTag". Where did "FilterTag" come from? Is it another join table that was not mentioned earlier or is it something else? Thanks in advance, Aaron

Re: Question about database.php

2008-11-11 Thread Aaron Shafovaloff
onnections > > 2008/11/11 Aaron Shafovaloff <[EMAIL PROTECTED]> > > > > > ? :-) > > > On Nov 10, 5:55 pm, Aaron  Shafovaloff <[EMAIL PROTECTED]> wrote: > > > Any reason why database.php doesn't follow the Con

Re: Question about database.php

2008-11-11 Thread Aaron Shafovaloff
? :-) On Nov 10, 5:55 pm, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote: > Any reason why database.php doesn't follow the Configure:write() > format, i.e. why it isn't something Configure::read can read? --~--~-~--~~~---~--~~ You received th

Question about database.php

2008-11-10 Thread Aaron Shafovaloff
Any reason why database.php doesn't follow the Configure:write() format, i.e. why it isn't something Configure::read can read? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, se

Re: Paginator links and Custom routes

2008-11-05 Thread Aaron Gustafson
always contain > "http://www.mywebsite.com/annonces/listing/"; instead of > "http://www.mywebsite.com/petites-annonces"; I'm interested in this as well, so I'm bumping it back up the list. Cheers, Aaron Gustafson Easy! Designs, LLC --~--~-~--~~

Re: CakePHP not recommenable for busy websites?

2008-09-21 Thread Aaron Shafovaloff
Yeah, get to know the containable behavior. On Sep 21, 12:35 am, toby78 <[EMAIL PROTECTED]> wrote: > I am currently evaluating different frameworks and also looking at > cakePHP. > > My first thought was that it seems not very efficient... > > If you have an object, e.g. "User" that has other rel

Re: How do I, from a controller, count the number of queries made?

2008-09-04 Thread Aaron Shafovaloff
Any ideas? On Sep 3, 2:18 pm, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote: > How do I, from a controller, count the number of queries made? I would > like to log the count of queries without using the table that debug=2 > prints out. --~--~-~--~~~-

How do I, from a controller, count the number of queries made?

2008-09-03 Thread Aaron Shafovaloff
How do I, from a controller, count the number of queries made? I would like to log the count of queries without using the table that debug=2 prints out. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group.

How do, from a controller, I count the number of queries made?

2008-09-03 Thread Aaron Shafovaloff
How do I, from a controller, count the number of queries made? I would like to log the count of queries without using the table that debug=2 prints out. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group.

Removing page execution time from bottom of page

2008-08-23 Thread Aaron
At the bottom of every rendered page is an execution time (i.e. ) I have views that return json and this breaks the parsing. How do I remove this? -Aaron --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Ca

Re: Simple Auth not working when models are defined

2008-06-17 Thread Aaron
Ugh. Looks like that was it. Thanks a bunch. I'll be more careful in the future. -Aaron On Jun 17, 5:42 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > Check that you have not leading or trading > spaces.http://bin.cakephp.org/saved/33005 > > On Tue

Re: Simple Auth not working when models are defined

2008-06-17 Thread Aaron
nt's $this->user() comes back null. $sessionKey isn't found in the session. The session appears to get corrupted or isn't set properly. _loggedIn is also blank. -Aaron On Jun 17, 9:18 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Tue, Jun 17, 2

Simple Auth not working when models are defined

2008-06-17 Thread Aaron
ion I navigate to: Warning (2): Cannot modify header information - headers already sent by (output started at /home/aaron/workspaces/CakePHP/cake/libs/ controller/components/auth.php:226) [CORE/cake/libs/controller/ controller.php, line 576] Code | Context $status = "Location: http://share

Re: Is migrations support planned for Cake?

2008-05-20 Thread Aaron Shafovaloff
It'd be great if schema arrays could include an "old_name" field, so that CakePHP could not only create fields and create tables, but rename them. In other words, something like: class BlogSchema extends CakeSchema { public $posts = array( 'id' => array('type' => 'integer', 'null' =>

Re: Trying to update record, not insert!

2008-05-13 Thread Aaron Shafovaloff
Shouldn't it be... $this->User->id = $data['User']['id']; ? On May 13, 10:27 am, theandystratton <[EMAIL PROTECTED]> wrote: > To preface, I've seen this a few places before but the solutions given > aren't getting me anywhere. > > I've got a basic User model extending AppModel, I'm finding a re

Re: Cookbook overhaul proposal

2008-05-13 Thread Aaron Shafovaloff
but FlaggedRevs seems to be a great solution to the problems you were having before. Anyways, you guys have voiced your rejection of the wiki+FlaggedRevs idea vehemently and clearly. No need to send any hounds or unholster your guns. :-) On May 13, 9:27 am, nate <[EMAIL PROTECTED]> wrote: >

Re: Cookbook overhaul proposal

2008-05-13 Thread Aaron Shafovaloff
iple concerns. If you think it is audacious and brash to put forth such a proposal, then... oh well, it was still worth trying. I still appreciate the CakePHP team and all the work they do. Keep up the good work. Take care, Aaron --~--~-~--~~~---~--~~ You received

Cookbook overhaul proposal

2008-05-12 Thread Aaron Shafovaloff
I propose that the Cake team use MediaWiki with the FlaggedRevs extension (http://www.mediawiki.org/wiki/Extension:FlaggedRevs) instead of their homegrown wiki, which currently has a closed review process. This extension, which will be integrated into Wikipedia in the coming months, allows for peo

Re: 1.2 Documentation has made amazing progress

2008-05-08 Thread Aaron Shafovaloff
It's been sporadically unresponsive today. Perhaps they're not caching? On May 8, 11:04 am, "Sliv (Tim MacAleese)" <[EMAIL PROTECTED]> wrote: > Yes, indeed, I use it a lot too - maybe at some point there will be a > way to mirror it to contributed servers so it doesn't get too slow due > to the s

Re: 1.2 Documentation has made amazing progress

2008-05-08 Thread Aaron Shafovaloff
I might disagree on the way the book is structured, but I'd have to agree that it has come a long way. I use it a lot now. Good job, guys. On May 8, 10:33 am, keymaster <[EMAIL PROTECTED]> wrote: > I think it's time to change the initial knee-jerk reaction when > speaking about cake's documentati

Re: ARGHH - why is geneateList deprecated

2008-05-07 Thread Aaron Shafovaloff
Whoaa Chill out dude. At the end of the day, these guys have built a great framework and they're volunteering their time to help on groups like this. Try out the IRC channel sometime, perhaps you'd feel more comfortable there. On May 7, 4:52 pm, MikeK <[EMAIL PROTECTED]> wrote: > Thanks

Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Aaron Shafovaloff
The URL is now: http://www.unauthorizedcakeguide.com/ On May 6, 11:16 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On Wed, May 7, 2008 at 8:14 AM, Aaron Shafovaloff <[EMAIL PROTECTED]> > wrote: > > > > > My meager, scanty effort has begun h

Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Aaron Shafovaloff
My meager, scanty effort has begun here: http://www.cakedocs.org/ On May 6, 12:20 pm, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote: > Well, the book does harness collective intelligence and collaboration, > but I personally think wikis do that best. In summary, I like the >

Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Aaron Shafovaloff
s disorienting. Maybe I'm just dense. I probably don't have a solid philosophical presentation for my preference of a wiki. It's really just that, a preference. On May 6, 11:44 am, AD7six <[EMAIL PROTECTED]> wrote: > On May 6, 7:38 pm, Aaron Shafovaloff <[EMAIL PROTECTED]

Re: Is the documentation at book.cakephp.org open source?

2008-05-06 Thread Aaron Shafovaloff
> The answer seems to be because some people believe that a wiki is the > solution to all of mankind's problems. You are correct. :-) I think wikis best harness the power of collective intelligence and collaboration for projects like documentation. Also, it it makes sense that CakePHP documentat

Re: Is the documentation at book.cakephp.org open source?

2008-05-05 Thread Aaron Shafovaloff
Thanks for the clarification. I'll just start from scratch. On May 5, 8:56 pm, Gwoo <[EMAIL PROTECTED]> wrote: > The book is open. Anyone is free to contribute. > > The content is owned by the Cake Software Foundation and contributed > by loyal members of the CakePHP community who value collabora

Re: Is the documentation at book.cakephp.org open source?

2008-05-05 Thread Aaron Shafovaloff
pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On Mon, May 5, 2008 at 10:00 PM, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote: > > > Is the documentation at book.cakephp.org open source? > > Why do you ask? > > -- > Chris Hartjes > Internet Loud

Is the documentation at book.cakephp.org open source?

2008-05-05 Thread Aaron Shafovaloff
Is the documentation at book.cakephp.org open source? --~--~-~--~~~---~--~~ 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 from this group, sen

Re: Twitter Component

2008-04-26 Thread Aaron Shafovaloff
Specifically, I'm having the same problem as Matt when I use status_update to send a direct message. direct_messages_new just simply isn't working. On Apr 16, 10:48 am, mmayes <[EMAIL PROTECTED]> wrote: > Hi all, > > I've been trying to get theTwittercomponent working under Cake 1.2 > beta. Whene

Re: Twitter Component

2008-04-26 Thread Aaron Shafovaloff
I'm having the same problem as mmayes: Notice (1024): XML cannot be read [CORE\cake\libs\xml.php, line 748] This happens after a status_update (which seems successful). On Apr 16, 11:33 am, strangy <[EMAIL PROTECTED]> wrote: > Hello, > I wrote thetwittercomponent and I tested most of the functi

Re: Possible Bug Identified - Re: belongsTo relationship killing my app

2008-04-23 Thread aaron bauman
I'm using cake 1.2 and i have many 2 or 3 word models with abundant belongsTo relationships and I haven't run into this problem. jump on the bandwagon /a On Apr 22, 8:27 pm, Langdon Stevenson <[EMAIL PROTECTED]> wrote: > I have finally nailed down the issue and am pleased to find that I am > n

Re: Cake Session Id

2008-04-21 Thread aaron bauman
if you can't find a method in CakeSession, why not write a simple sql query like "SELECT COUNT(*) FROM cake_session"? On Apr 21, 4:55 pm, jwerd <[EMAIL PROTECTED]> wrote: > Hello there, I'm using the Cake Session's DB and I need to get the > last inserted id. Basically something like $this->Ses

Re: CakePHP & jQuery Issues

2008-04-21 Thread aaron bauman
try FireBug - it has a javascript debugger that will let you set breakpoints and see which values are wrong / undefined. also, try the jQuery list. On Apr 21, 11:44 am, wizardElite <[EMAIL PROTECTED]> wrote: > As a relative noob to the realm of jQuery and Ajax. I've been beating > my head into

Re: Struggling with Associations in 1.2.0.6311

2008-04-21 Thread aaron bauman
Your HABTM relation is backwards. Course belongsTo Accreditation, and Accreditation hasMany Course. The rule of thumb is that if a SQL table contains a foreignKey (as in this case the courses table contains accreditation_id), then it should implement a belongsTo relationship with the other table

Re: model relationship for optional details

2008-04-21 Thread aaron bauman
in your 'options' to Form::input, you can pass a special option 'empty'. this creates an option element will have no value attribute and sets the innerText to the array value. for example array('options' => array('empty' => ' - None - ')) will generate html like ... - None - ... you can simply se

Re: saveAll and HABTM?

2008-04-08 Thread aaron bauman
I have noticed this behavior as well. It's because in Model::saveAll, the call to Model::save uses this- >data[$this->alias] instead of $this->data. therefore if you have a data array that looks like array( 'Model1' => array(data) 'Model2' => array(data) ) and you call Model1->saveAll, guess

Re: .po files not being read suddenly

2008-03-28 Thread Aaron Shafovaloff
For some reason my app will read and use for translation: locale/eng/eng.po but not locale/eng/LC_MESSAGES/default.po Any ideas? On Mar 26, 8:29 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Solved! When I added the Auth stuff yesterday, I included some > settings in AppController::bef

Importing vendor files

2008-03-07 Thread Aaron Shafovaloff
I'm trying to use App::import('Vendor','phpthumb' . DS . 'phpthumb.class'); ... but the "." throws it off. Apparently CakePHP wants to see the "." as a directory separator? How does one import vendor files that are named like phpthumb.class.php? --~--~-~--~~~---~--~-

"Fatal error: Allowed memory size of..."

2008-03-06 Thread Aaron Shafovaloff
I lately am getting this: Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to allocate 2873212 bytes) in C:\Users\Aaron\workspace\cake\libs\cache \file.php on line 138 Is this a bug in Cake? I haven't been getting this before. Any ideas on how to prevent it? I would

Re: Is JQuery replacing Prototype in cake?

2008-02-17 Thread Aaron Shafovaloff
Both jQuery and Prototype are wonderful frameworks. I'd hope arrangements would be made for developers who use either. On Feb 17, 1:52 pm, MattC <[EMAIL PROTECTED]> wrote: > To make sure I wasn't misrepresenting what was said I re-listened to > the podcast.  I'm not sure who is talking (Mariano s

Does the Cake schema tool allow one to define the type of a table (innodb, etc)?

2008-02-15 Thread Aaron Shafovaloff
Does the Cake schema tool allow one to define the type of a table (innodb, etc)? --~--~-~--~~~---~--~~ 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 unsu

Re: UUID as primary key

2008-02-13 Thread Aaron Shafovaloff
; wrote: > So, what's your question? > > On Feb 12, 2008 4:41 PM, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote: > > > > > On this page (http://bakery.cakephp.org/articles/view/uuid-behavior) I > > saw the following: > > > "Last cake 1.2 build su

UUID as primary key

2008-02-12 Thread Aaron Shafovaloff
On this page (http://bakery.cakephp.org/articles/view/uuid-behavior) I saw the following: "Last cake 1.2 build support uuid for your primary key column. You just need have field ID with type varchar(36)" Does anyone have any more information on this? --~--~-~--~~~---~

Re: Problem using controller redirect method inside of custom component

2008-02-12 Thread Aaron
Aha! http://groups.google.com/group/cake-php/browse_thread/thread/5617060b25ac6ee2/f895d8db8077367e?lnk=gst&q=component+startup#f895d8db8077367e Scaffolding is the problem. That is all. On Feb 12, 1:31 pm, Aaron <[EMAIL PROTECTED]> wrote: > I've written a small authenticat

Re: Problem using controller redirect method inside of custom component

2008-02-12 Thread Aaron
Apparently, my root problem is that the startup() method of the component is not running before checkAuth(). Anyone know why that might be? Thanks, Aaron On Feb 12, 1:31 pm, Aaron <[EMAIL PROTECTED]> wrote: > I've written a small authentication widget and I'm having trouble

Problem using controller redirect method inside of custom component

2008-02-12 Thread Aaron
I've written a small authentication widget and I'm having trouble with it. Inside the component I would like to use the calling controller's redirect() method, but I get the following error: Fatal error: Call to a member function redirect() on a non-object in {file} on {line}. The error occurs

Re: Fatal error: Call to a member function schema() on a non-object

2008-02-07 Thread aaron bauman
fixed! - this may have been overkill, but i added defined var $uses = array(...) where "..." included all of the associated model classnames. On Feb 7, 10:42 am, aaron bauman <[EMAIL PROTECTED]> wrote: > I am hitting the same snag with a class called "Filter&quo

Re: Fatal error: Call to a member function schema() on a non-object

2008-02-07 Thread aaron bauman
I am hitting the same snag with a class called "Filter" with belongsTo and habtm assoc's. Is filter also a class already? On Feb 2, 4:17 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Feb 2, 4:22 pm, "Doug @ Straw Dogs" <[EMAIL PROTECTED]> wrote: > > > I'm having loads of problems using bake in 1.2

Re: 'required' field in form view

2008-02-01 Thread aaron bauman
is there a way to do this through the Model or Controller instead of through the View? ie. with the "validates" property of the Model? it seems very unmaintainable and unwieldy to have to set the class for every form field in every view... On Jan 23, 5:32 pm, francky06l <[EMAIL PROTECTED]> wr

How does one use $this->render in plugins in the latest SVN build?

2007-12-13 Thread Aaron Shafovaloff
I'm getting "Missing View" and it's looking for the view file in the main app. This wasn't so about a week ago. Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send

Re: Latest additions to 1.2

2007-12-07 Thread Aaron Shafovaloff
I figured everything out. I'm an idiot :-) On Dec 7, 10:24 am, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote: > Using latest SVN I get: > > Fatal error: Call to undefined method ClassRegistry::init() > > On Dec 7, 6:00 am, francky06l <[EMAIL PROTECTED]>

Re: Latest additions to 1.2

2007-12-07 Thread Aaron Shafovaloff
basics.php, line 1036] And on the other machine it works fine. On Dec 7, 10:24 am, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote: > Using latest SVN I get: > > Fatal error: Call to undefined method ClassRegistry::init() > > On Dec 7, 6:00 am, francky06l <[EMAIL PROTECTE

Re: Latest additions to 1.2

2007-12-07 Thread Aaron Shafovaloff
Using latest SVN I get: Fatal error: Call to undefined method ClassRegistry::init() On Dec 7, 6:00 am, francky06l <[EMAIL PROTECTED]> wrote: > ClassRegistry::init('plugin.modelname'); should work. > > On Dec 6, 10:49 pm, Aaron Shafovaloff <[EMAIL PROTECTED]> wr

Re: Latest additions to 1.2

2007-12-06 Thread Aaron Shafovaloff
Ahhh specifically it works when you manually do an import, but you can't yet use dot notation with "uses" at the top of your controller. On Nov 17, 9:17 pm, Gwoo <[EMAIL PROTECTED]> wrote: > Several people voiced opinions about plugins and in an effort to make > them more flexible we added the fu

Re: Latest additions to 1.2

2007-12-06 Thread Aaron Shafovaloff
Unfortunately, in the latest SVN revision it dot notation doesn't seem to be working. And the error page is telling me to create a class name with a dot in it. On Nov 17, 9:17 pm, Gwoo <[EMAIL PROTECTED]> wrote: > Several people voiced opinions about plugins and in an effort to make > them more f

Re: 1.2 Routing question..

2007-11-30 Thread Aaron Shafovaloff
Router::connectNamed(array('project_name')); Router::connect('/project/:project_name/*'); That's a start On Nov 30, 1:27 pm, chad <[EMAIL PROTECTED]> wrote: > How could I achieve routing like so: /project/{project_name}/{action}/ > * without any hacks in the controller? I have it working with s

Re: Latest additions to 1.2

2007-11-30 Thread Aaron Shafovaloff
Excellent!!! On Nov 17, 9:17 pm, Gwoo <[EMAIL PROTECTED]> wrote: > Several people voiced opinions aboutpluginsand in an effort to make > them more flexible we added the functionality to access models > acrosspluginsand the main application in the current 1.2 branch. Use the > dot notation "Plugi

Re: Using models with plugins in CakePHP 1.2

2007-11-17 Thread Aaron Shafovaloff
I'd have to agree with some folks here---it'd be great if plugins could "plugin" into the existing application and have access to the main app's models, etc. Perhaps plugins could be split into two types? One of the reasons Wordpress is so popular is its plugin system (which tap into the larger a

Re: get/put/delete/post HTTP requests in CakePHP 1.2

2007-11-11 Thread Aaron Shafovaloff
HOD'] = $params['form']['_method']; } else { $_ENV['REQUEST_METHOD'] = $params['form']['_method']; } unset($params['form']

get/put/delete/post HTTP requests in CakePHP 1.2

2007-11-11 Thread Aaron Shafovaloff
I saw the following at http://www.xml.com/pub/a/2007/01/24/whats-new-in-prototype-15.html --- The standard XMLHttpRequest object at the heart of Ajax functionality only allows HTTP GET and POST methods, but RESTfully-designed web applications often call for the lesser-used methods, like PUT and

Re: Using models with plugins in CakePHP 1.2

2007-11-08 Thread Aaron Shafovaloff
I guess it makes sense for me that plugins could inherit models. Plugins plug into the existing applications, i.e. have connection to beyond the simple routing. On Nov 8, 11:21 am, Gwoo <[EMAIL PROTECTED]> wrote: > Plugins should not access models from application. If you think about > "plugin" f

Re: Using models with plugins in CakePHP 1.2

2007-11-08 Thread Aaron Shafovaloff
Thanks, but what if it's part of the main app? That's my particular problem. On Nov 7, 11:59 pm, rtconner <[EMAIL PROTECTED]> wrote: > I think you have to do.. > > $uses = array('Pluginname.Modelname'); > > On Nov 7, 10:54 pm, Aaron Shafovaloff <[EM

Using models with plugins in CakePHP 1.2

2007-11-07 Thread Aaron Shafovaloff
I have a plugin which has two models of its own. I've followed the directions to creating a plugin to the T. In the plugin's own app_controller file I have the following: class PluginNameAppController extends AppController ... This creates a problem. The main AppController file "uses" some mode

Re: Stable vs Development

2007-10-16 Thread Aaron Shafovaloff
Same here. On Oct 16, 11:23 am, "Wayne Fay" <[EMAIL PROTECTED]> wrote: > I'm using 1.2 on a production server with no issues to speak of. > > Wayne > > On 10/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > > > > hey guy, > > > I got a question for those of you using version 1.2 alpha. > >

Re: CakePHP Live Broadcast: Be There Or Be Square

2007-09-19 Thread Aaron Shafovaloff
I agree. This is great! On Sep 19, 7:18 am, tracyfloyd <[EMAIL PROTECTED]> wrote: > Awesome! I was thinking just the other day how great a CakePHP podcast > would be... heading over to subscribe now! > > On Sep 19, 1:51 am, John David Anderson <[EMAIL PROTECTED]> > wrote: > > > On Sep 18, 2007, a

I can no longer directly access the index method?

2007-09-13 Thread Aaron Shafovaloff
"You are seeing this error because the private class method index should not be accessed directly." Apparently this is part of the latest SVN update of 1.2. Ideas? Thoughts? Explanation? Thanks, Aaron --~--~-~--~~~---~--~~ You received this message b

Help with Google Checkout Integration

2007-09-11 Thread Aaron Roberson
Hey, I'm using Google Checkout for a current project. I'm wondering if anyone has already done this in a CakePHP app and if they created a component for it already? I downloaded and unzipped the library from Google Checkout ( http://code.google.com/p/google-checkout-php-sample-code/) into a folde

Re: New Router usage as of 5535 $Route->connectNamed()

2007-09-11 Thread Aaron Shafovaloff
Wow... connectNamed... huge help! Didn't know about this! On Sep 10, 4:40 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Originally I thought this was an optional new feature, but for those > who were passing arrays with arbitrary named values to Router::url() > and its friends HtmlHelper::

Preventing 1.2's form helper from rendering a fieldset with radio buttons

2007-08-31 Thread Aaron Shafovaloff
I'm using the latest SVN update of 1.2 Why all the sudden are all my radio buttons surrounded by fieldsets? Can I disable this part? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this

Re: Trouble with the translate function "__()"

2007-08-18 Thread Aaron Shafovaloff
Would that mean I'd have to use the .po language files in an unusual way... putting ALL of my language data into one file? That'd be a drag! On Aug 18, 2:08 am, "jitka (poLK)" <[EMAIL PROTECTED]> wrote: > It is not cake issue, it is Zend problem with debug_backtrace() used > so deep. > > Try > ec

  1   2   >