Re: Security Component: blackhole with no, erm, whitehole?

2012-01-05 Thread DragonFlyEye
Thanks, Jeremy. I think I'm going to opt for roughly the same thing. Use my pushSSL() function - analogous to your __unforceSSL() - on all controllers that don't require SSL, then use the switching style for those that do require SSL. It just seems weird to me that they have a function in Secur

Re: Security Component: blackhole with no, erm, whitehole?

2012-01-04 Thread DragonFlyEye
Can anyone help me out, here? -- 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-php+unsub

Re: Cutom Routes

2012-01-04 Thread DragonFlyEye
Ah, well, then I'm out of my element, Donnie. (Sorry for the Big Lebowski reference). -- 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

Re: Cutom Routes

2012-01-04 Thread DragonFlyEye
Considering that this is the way CakePHP handles errors, yes, it is certainly the most efficient option on its face. Others may dispute that. I wouldn't really consider using Routes, because the routes are determined *before* the existence of any Controllers or Actions is confirmed. I do, howev

Re: Cutom Routes

2012-01-04 Thread DragonFlyEye
Waterschaats, Have a look at the Error Controller: http://book.cakephp.org/1.3/view/1188/Error-Handling For more information on the types of pre-existing errors - including the missingController error, have a look at the API: http://api.cakephp.org/class/error-handler#method-ErrorHandlermissingC

Security Component: blackhole with no, erm, whitehole?

2012-01-04 Thread DragonFlyEye
Here's what I don't get about the Security Component: if there's an option to use the blackholeCallback for requireSecure, why is there no option to provide a callback for anything else? I'm using this system as outlined in the book to force SSL on certain actions. But I'd like to force people

Re: html->link() and html tags

2011-07-22 Thread DragonFlyEye
Thanks for 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 cake-php+unsubscr...@google

Redirect and Routing? SSL Question

2011-07-19 Thread DragonFlyEye
Ok, many tutorials and bits of code for CakePHP have pointed to using the following code to redirect traffic from HTTP to HTTPS: // Only allow HTTPS connections for Admin routes: if(isset($this->params['admin'])) : $this->Security->blackHoleCallback = 'forceSSL';

Html Helper Tables :: Pure Curiosity

2011-07-15 Thread DragonFlyEye
Does anybody know a reason that the Html Helper contains a method to output table cells and headers, but not a method to output tables? Like, at least tableStart and tableEnd? It just looks sloppy to echo '' when everything else is done via the helper. -- Our newest site for the community: Ca

Re: Security form validation: is there a log somewhere?

2011-07-13 Thread DragonFlyEye
Thank you for this information. Basically, I should just not count on CSRF protection in AJAX, which I get. I'm assuming I must be making some change to the form in question via AJAX, I guess I'll have to turn off the validation. -- Our newest site for the community: CakePHP Video Tutorials h

Security form validation: is there a log somewhere?

2011-07-12 Thread DragonFlyEye
I've finally figure out that CakePHP's Security Component will validate form fields, dumping the user out on a 404 if anything is wrong. Great, but now the question is: what is wrong? According to the documentation, the form should be setup via the Form Helper. It is. But other than that, no gu

Re: Debug >= 2 changes the response context type

2011-06-16 Thread DragonFlyEye
Can anyone tell me *why* this would be? And more to the point, why I wouldn't want to be able to specify a character set that works in all modes? Here's the thing: because Apache wants to default to charset=iso-8859-1, that basically means any non-iso characters get mangled in the process. Beca

Re: Security Blackholing actions I didn't specify

2011-04-29 Thread DragonFlyEye
Bump. Anybody? Anybody? -- 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-php+unsubscr...

Security Blackholing actions I didn't specify

2011-04-28 Thread DragonFlyEye
Ok, in the app_controller, I've included my Security component and also added this little snippet of code for admin pages: if(isset($this->params['admin'])) : $this->Security->blackHoleCallback = 'forceSSL'; $this->Security->requireSecure(); endif; That one's strai

Re: Acl->allow() Troubles

2011-04-08 Thread DragonFlyEye
Wait. Dang. I just figured it out. Thanks for listening, people. -- 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

Acl->allow() Troubles

2011-04-08 Thread DragonFlyEye
I'm getting the error, "DbAcl::allow() - Invalid node" when attempting to allow node access. The parameters are: $aro= "1"$aco = "controllers/Pages/delete"$actions = "*"$value = 1$perms = false$permKeys = array( "_create", "_read",

Re: $form->radio Broken?

2011-03-25 Thread DragonFlyEye
Well, there you go. It was my jQuery function that was supposed to clear my form. Was removing the values on the radios instead of removing 'checked' attributes. Thanks again, Cricket! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakeP

Re: $form->radio Broken?

2011-03-24 Thread DragonFlyEye
Hey, Cricket! Its mostly AJAX-y stuff, so the form->create is simply: echo $form->create(false, array('default'=> false, 'id'=> 'nodeMeta')); The Model in question is called NavigationNode and so the named field generally look like 'data[NavigationNode][redirects_to]' and so on. -- Ou

$form->radio Broken?

2011-03-24 Thread DragonFlyEye
$form->radio('acts_as', array('PRI' => 'Primary', 'LINK' => 'Link to', '' => 'Not Set')) When the above code renders, I get no values for any of the radios that are created. The radios are created, but no values: Primary Link to Not Set I am basing my code off of what is in the Book here: h

Re: New Project: Politi

2011-01-18 Thread DragonFlyEye
Initially, my thought was to have a central website, and much like WordPress.com and .org, I suppose there will certainly be a central demonstration of how it works. But as OSS goes, of course, it should be downloadable to be implemented anywhere that fits. Someone wants to run a local show for

Re: New Project: Politi

2011-01-18 Thread DragonFlyEye
Initially, my thought was to have a central website, and much like WordPress.com and .org, I suppose there will certainly be a central demonstration of how it works. But as OSS goes, of course, it should be downloadable to be implemented anywhere that fits. Someone wants to run a local show for

Re: New Project: Politi

2011-01-18 Thread DragonFlyEye
Fair question. But my thinking is: build the tool and let the politicians decide. I actually don't think this is a question of politicians: it's a question of the administrators and the managers that actually run the government and free the politicians to bloviate! Check out the new CakePHP Que

New Project: Politi

2011-01-18 Thread DragonFlyEye
Hey! Don't want to pollute the group with extraneous crap, but I thought maybe some of you CakePHPers would take an interest in a new OSS project I'm trying to get off the ground, based on CakePHP: http://code.google.com/p/cakephp-politi/ Check out the new CakePHP Questions site http://cakeqs.o

Re: redirect loop has me stumped

2011-01-18 Thread DragonFlyEye
I'm guessing there is more to the problem than the code you're presenting. Like, where is $id coming from? 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

Re: Changing /webroot and /views directories

2011-01-18 Thread DragonFlyEye
Ah! Thank you, Mr. Loboto! Hmm... Really seems like that information should belong somewhere else besides the "Migrating from 1.2 to 1.3" section, doesn't it? No wonder I never found it. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related quest

Re: CakePHP ACL [Failed ARO/ACO node lookup in permissions check]

2011-01-17 Thread DragonFlyEye
You actually want to reference the model then the aco in question. For example, if you have a Users model and you want to identify a user with an id of 1, you would actually write: User.1 Not simply "1." That's very confusing and ambiguous in the documentation. Took me a while to figure it out.

Changing /webroot and /views directories

2011-01-17 Thread DragonFlyEye
Because I am setting up a core web engine that will drive a number of different sites for my company, it makes sense to me to change the location of the /webroot and /views directories. That way I can keep those under separate version control and develop the front-end distinctly from the back-e

Re: header information in outlook

2011-01-06 Thread DragonFlyEye
Hmmm.. What version of Outlook and what OS? I'd like to know why that isn't working through CakePHP... 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 "Cak

Re: Creating XML for SOAP requests

2010-12-03 Thread DragonFlyEye
#x27;license', 'rating')); $xml = $this->render(null, 'blank', '/xml/ups'); $this->output = ''; return $xml; } The gist here is that we render the output of a template file into a variable and then pass it back to wherever its needed. On D

Re: Creating XML for SOAP requests

2010-12-03 Thread DragonFlyEye
try not to go outside that framework too much to bring other stuff in. On Dec 3, 11:39 am, ryandesign wrote: > PHP has several ways to generate XML already SimpleXML for > example. Wouldn't using one of those methods be sufficient? > > On Dec 3, 9:34 am, DragonFlyEye wrote

Creating XML for SOAP requests

2010-12-03 Thread DragonFlyEye
Ok, I'm sure I'm just missing something remarkably obvious, so feel free to hit me over the head. I'll thank you. I need to send SOAP requests to UPS for shipping info. As such, I need to create an XML "file" that can be sent to them, the results of which being obviously the thing my audience care

Re: Form Helper Automatically Inserting the ID of the Node?

2010-09-28 Thread DragonFlyEye
I've submitted a patch to Lighthouse. Hopefully they adopt it into the core. Meanwhile, I'm using my own patched version http://cakephp.lighthouseapp.com/projects/42648/tickets/1155 On Sep 28, 1:16 pm, DragonFlyEye wrote: > Ok, no one seems interested in biting on this, so

Re: Form Helper Automatically Inserting the ID of the Node?

2010-09-28 Thread DragonFlyEye
herefore numerically indexed) value in it will not work once the Helper has inserted its own value. This is a pretty clear bug in the code, which sucks because as of this moment, I have no idea what to do to fix the issue apart from putting in a bug report. Which I guess I shall do now... On Sep

Form Helper Automatically Inserting the ID of the Node?

2010-09-28 Thread DragonFlyEye
Ok, I don't understand this. I'm creating a form which for reasons I won't go into displays on a page with human-friendly URLs. So, I don't want to have to use a URL that includes a numeric ID for the database node I'm working on. I've run into two problems I find exceptionally odd: 1. When creati

Re: Router::connect() not behaving as expected in 1.3?

2010-08-31 Thread DragonFlyEye
It's not so much wrong as incomplete. Any URL *beginning* with '/ cooks/' will be handled in the above-quoted fashion. But if it begins *and ends* with '/cooks', without another routing statement, you'll get the error you're talking about. Have a look at the pre-defined routing for pages that's alr

Re: delete() clears record, does not delete?

2010-08-30 Thread DragonFlyEye
Doh! Never mind. AJAX snafu caused my problem. Guess I didn't think you could save to a MySQL database id field if it was auto-increment. On Aug 26, 12:23 pm, cricket wrote: > On Wed, Aug 25, 2010 at 1:40 PM, DragonFlyEye > wrote: > > Here's an interesting one. I

Re: delete() clears record, does not delete?

2010-08-30 Thread DragonFlyEye
wrote: > On Wed, Aug 25, 2010 at 1:40 PM, DragonFlyEye > wrote: > > Here's an interesting one. I don't know if this has something to do > > with using the Tree model behavior or not.  What is happening is that, > > when I go todeletearecord, the system clears all val

Re: Router::connect() not behaving as expected in 1.3?

2010-08-30 Thread DragonFlyEye
r' error; doesn't work for any request > starting with /blog/ > > Router::connect('/blog/*', array('controller'=>'news_articles')); > = /blog/ -> shows index (working) > = /blog/view/1/ -> shows index; should show view() > > Rout

Re: Router::connect() not behaving as expected in 1.3?

2010-08-25 Thread DragonFlyEye
That all looks correct, and it would be the same in 1.2. You might write the following, though: Router::connect('/blog*', array('controller' => 'news_articles')); That would push all requests for the /blog directory to the right controller, then you can create the actions you want and they'll get

delete() clears record, does not delete?

2010-08-25 Thread DragonFlyEye
Here's an interesting one. I don't know if this has something to do with using the Tree model behavior or not. What is happening is that, when I go to delete a record, the system clears all values except for the ID and leaves the record where it was. The delete() function seems pretty straight fo

Re: Plugin Admin Routing?

2010-08-23 Thread DragonFlyEye
question! I want to know the answer too :P > > 2010/8/19 DragonFlyEye : > > > Is it possible to configure admin routing that will handle plugins? Or > > is it better to create an "AdminController" that will handle > > administration of my site? Or is there another op

Plugin Admin Routing?

2010-08-19 Thread DragonFlyEye
Is it possible to configure admin routing that will handle plugins? Or is it better to create an "AdminController" that will handle administration of my site? Or is there another option entirely? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related

Re: How to appreciate cakePHP - try the Zend Framework quickstart

2010-07-30 Thread DragonFlyEye
Yeah, I tried it because I was concerned with some of the performance comparisons I'd seen between CakePHP and other PHP frameworks. Didn't spend a whole lot of time on it, but really was not impressed at all. What is the point of a framework that seems to require MORE coding than just doing thing

Re: Problems with GD i Cake

2010-07-30 Thread DragonFlyEye
You should include some code so we know what you're talking about. Either way, probably not an issue with CakePHP. On Jul 30, 4:37 am, Petter Andreas Strøm wrote: > Hi, > > I have some problems with using GD in Cakephp. Output from i.e. the > imagejpeg() function reports just wrongly encoded dat

Character encoding for trademarks

2010-07-30 Thread DragonFlyEye
More in my continuing saga of trying to fix the horrible data mess my company has... The company's original SQL Server databases are riddled with trademark symbols, copyright symbols and registered trademark symbols entered directly into the data. These symbols present a fairly significant challen

Re: session is not working between different actions on different controllers

2010-07-30 Thread DragonFlyEye
point. what do you mean by make sure the > addresses are really the way content is being served? > > > 2. Cookie settings in Configure::write(): make sure they're set for > > the exact same location, not /checkout and /wp > > i am just confused about this suggestion. &g

Re: Trouble with using a condition on a related model

2010-07-30 Thread DragonFlyEye
First, have a look at the output query - if you have the element('sql_dump'); ?> set in your layout, it should be at the bottom. That should give you some clues as to why it's not working. But you might want to post your $hasMany association to this group so we can help better. Are you actually sp

Re: Behavior afterFind not filtering data?

2010-07-30 Thread DragonFlyEye
s at least as unsuccessful so far as doing it the CakePHP way and for a variety of reasons, I'd prefer to go CakePHP. Thanks to anyone who can help. On Jul 22, 3:15 pm, DragonFlyEye wrote: > Not really. We're talking about thousands of products for a start. And > I expect to

Re: session is not working between different actions on different controllers

2010-07-30 Thread DragonFlyEye
Why two separate applications for this? Is one not CakePHP? Offhand, here's a few things: 1. Localhost can often be a tricky thing for cookies and sessions. Make sure those addresses are really the way content is being served up to the browser. 2. Cookie settings in Configure::write(): make sure t

Re: session is not working between different actions on different controllers

2010-07-30 Thread DragonFlyEye
Why do you have a completely separate application for the checkout aspect of whatever it is you're doing? Seems like if they're both built in CakePHP, you should probably use the same application. A couple ideas: On Jul 30, 10:48 am, Kei Simone wrote: > Hi all, > > i have 2 cake apps. localhost

Re: Behavior afterFind not filtering data?

2010-07-22 Thread DragonFlyEye
: > > $results = Sanitize::clean($results); > > But, wouldn't it be simpler to just write a script that cleans up the > DB once and forget about it? > > On Thu, Jul 22, 2010 at 2:06 PM, DragonFlyEye > wrote: > > I'm sure I'm missing something silly, bu

Behavior afterFind not filtering data?

2010-07-22 Thread DragonFlyEye
I'm sure I'm missing something silly, but I cannot get this Behavior to work. I've got data with a bunch of nasty characters in the database that I need to avoid or escape before presenting to the browser. Also, it's got a lot of white space at the end of much of the data because someone erroneousl

Re: Find with no records in associated model

2010-07-19 Thread DragonFlyEye
count = 0 > > Cheers, > Graham / Predominant > > On Sun, Jul 18, 2010 at 9:34 PM, DragonFlyEye > wrote: > > If I have a relationship where RatingEvent hasMany Ratings, how would > > I go about retrieving all records where there are no Ratings > > associated with

Find with no records in associated model

2010-07-18 Thread DragonFlyEye
If I have a relationship where RatingEvent hasMany Ratings, how would I go about retrieving all records where there are no Ratings associated with a RatingEvent? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this mes

Re: Tree Reorder: What Does it Do?

2010-07-16 Thread DragonFlyEye
Ok, for those who happen upon this thread looking for a method of ordering their Tree children, I did a bit of digging into the actual code and discovered that there are in fact more arguments to the children() function than are documented in the Book. I've made corrections to the Book which will h

Re: Tree Reorder: What Does it Do?

2010-07-08 Thread DragonFlyEye
53 am, Shaz wrote: > Nope sorry - I haven't any points during which I'd need to reorder a > tree, and I'm struggling to think of where I'd need do it. > > On Jul 8, 1:02 pm, DragonFlyEye wrote: > > > Bump. Does anyone out there have any experience with this

Re: Tree Reorder: What Does it Do?

2010-07-08 Thread DragonFlyEye
Bump. Does anyone out there have any experience with this? On Jul 7, 9:04 am, DragonFlyEye wrote: > Better formatting for my function: > public function admin_save() { >     $this->layout                = 'ajax'; >     $this->autoLayout    = false; >     $this->

Re: Tree Reorder: What Does it Do?

2010-07-07 Thread DragonFlyEye
('field' => 'line', 'order' => 'DESC')); endif; endif; $this->header('Content-Type: application/json'); echo json_encode($response); return; } On Jul 7, 8:08 am, DragonFlyEye wrote: > The CakePHP documentation has zero

Tree Reorder: What Does it Do?

2010-07-07 Thread DragonFlyEye
The CakePHP documentation has zero information on this function. The API has very little more. I've looked at the code, but am not sure I fully understand what it's supposed to be doing. I was under the impression that I could pass reorder() a field out of the table and it would alter the lft and

Re: Association not by primary key

2010-06-30 Thread DragonFlyEye
What I need, in other words, is a method to say, "this result set will have a value that should be matched in this result set." No idea how to do that or if it's even possible. On Jun 30, 3:30 pm, DragonFlyEye wrote: > Ok, so what seems to be the case is that the conditi

Re: Association not by primary key

2010-06-30 Thread DragonFlyEye
rimary key. The SubgroupPage table uses subgroup as it's primary key but contains the value pageid, whereas the PageSettings table has pageid for the primary key. On Jun 30, 3:21 pm, DragonFlyEye wrote: > Hello, again, cricket! > > Thanks for the help, but I'm still ge

Re: Association not by primary key

2010-06-30 Thread DragonFlyEye
Hello, again, cricket! Thanks for the help, but I'm still getting the WHERE [PageSettings]. [pageid] = 'SubgroupPage.pageid' thing. I've never seen CakePHP react to a query in this manner before! On Jun 30, 2:30 pm, cricket wrote: > On Wed, Jun 30, 2010 at 10:15 AM,

Association not by primary key

2010-06-30 Thread DragonFlyEye
I'm trying to make an association between two models that do not use the primary key as the association. I'm not sure why I'm getting the results that I am from this: class SubgroupPage extends AppModel { var $name = 'SubgroupPage'; var $useTable = 'menu_subgroup_pag

Re: Global function in cakephp

2010-06-29 Thread DragonFlyEye
It depends a lot on what the function is and what you plan to do with it. However, as a general explanation: Since all Controllers extend the app_controller in the /cake folder, you can create your own app_controller and put it in the /app/ controllers folder and add your global function there. Th

Tree Behavior for Duplicate Entries?

2010-06-29 Thread DragonFlyEye
The company I work for has a very loosly-organized system of referencing pages which bears a modest resemblance to a Tree structure. Their "menu" table contains pairs of "pageid" and "levelid," with another element "line" to indicate the order in which they appear. Any pageid could potentially be a

Model Output as HTML

2010-06-24 Thread DragonFlyEye
I'll bet this is obvious, but my Model data actually contains some HTML markup (I know, but you work with what you have) and that markup is being converted to entities before being displayed on the page. Is this something that CakePHP is doing? Is it happening in the Model or the Controller? How ca

Re: CakePHP Ajax - Getting returned JSON code evaled and into variable

2010-06-24 Thread DragonFlyEye
This isn't really a CakePHP question. Have a look at javascript's eval() function: http://www.w3schools.com/jsref/jsref_eval.asp On Jun 24, 10:56 am, Joakim wrote: > Hello, > > I have a ajax link that returns a json datastructure(writes out the > json datastructure in the view) and i want to get

Re: Opinions, Please: Behavior for Single Model?

2010-06-22 Thread DragonFlyEye
r, you get stuck with the old mistakes. On Jun 22, 2:33 pm, cricket wrote: > On Tue, Jun 22, 2010 at 1:01 PM, DragonFlyEye > wrote: > > I'd just like to get an opinion from the group: > > > I've not used Behaviors before, but I have been looking into it a > > lit

Re: Mixing Sessions and Cookies?

2010-06-22 Thread DragonFlyEye
() function. > > http://php.net/manual/en/function.setcookie.php > > On Jun 21, 5:50 pm, DragonFlyEye wrote: > > > > > My cookie variables: > > >         function beforeFilter() { > >                 $this->Cookie->name = 'mag_sess_hst'

Opinions, Please: Behavior for Single Model?

2010-06-22 Thread DragonFlyEye
I'd just like to get an opinion from the group: I've not used Behaviors before, but I have been looking into it a little bit since the one table I'm working with on my current project is sort of a tree format. It's not an actual tree format and would not work with the Tree Behavior native to CakeP

Re: Mixing Sessions and Cookies?

2010-06-21 Thread DragonFlyEye
Cookie->domain = 'localhost'; $this->Cookie->secure = false; //i.e. only sent if using secure HTTPS $this->Cookie->key = '!lftmD5b!nry'; // Dirt Sleep } On Jun 21, 12:48 pm, DragonFlyEye wrote: > Ok, upon further diag

Re: Mixing Sessions and Cookies?

2010-06-21 Thread DragonFlyEye
Ok, upon further diagosis, I've discovered that one of my issues had to do with the fact that I'm developing locally: because the virtual machines I was browsing these pages on were using the IP address and I'm developing internally, there was some confusion as to what the proper cookie domain shou

Mixing Sessions and Cookies?

2010-06-21 Thread DragonFlyEye
I'm a bit lost at the moment. I'm trying to use both the Cookies and the Session components in the same setting and I'm not sure, but it doesn't appear to be working correctly. What I want to be able to do is this: I want to be able to set a Session cookie for a visitor to keep track of their curr

Re: Find('list') and setting option values

2010-06-05 Thread DragonFlyEye
By the way, I did a bit more experimenting with find('list') and automagic selects. Posted my findings here in case anyone else needed them: http://holisticnetworking.net/cake/2010/06/interesting-form-input-behavior-for-selects/ On May 24, 4:48 am, WebbedIT wrote: > Try the following: > $state

Re: Find('list') and setting option values

2010-06-05 Thread DragonFlyEye
Bingo! Thanks for the help. On May 24, 4:48 am, WebbedIT wrote: > Try the following: > $states = $this->Location->find('list', array( >   'fields' =>array('Location.state', 'Location.state'), >   'group' => array('Location.state') > )); > > Paul > > Check out the new CakePHP Questions sitehttp:/

Query Results, Empty Array

2010-06-04 Thread DragonFlyEye
I've searched the group a bit and haven't found anything that seems to exactly solve my problem. Let me begin with the basics: This is a website which I am transitioning from an old ASP site into CakePHP. The site is driven by an MS-SQL database and being served from a Macintosh XServer running Ap

Find('list') and setting option values

2010-05-23 Thread DragonFlyEye
By default it appears as though, if I set up a find('list') in the controller, CakePHP wants to use the ID field in the query regardless of what I specify (maybe there's an override I don't know about?). Then when I output that list into the form as a select, it wants to use the ID field for the va

Re: $useTable ignoring the alternate table name

2010-03-04 Thread DragonFlyEye
Ah! Thanks for the reply, Walther. Guess you solved it for both of us! On Mar 4, 1:43 am, Walther wrote: > Don't use 'require' ever! > > Make use of the tools that CakePHP gives you. In this case > App::import('Model', 'Order'); > > As for your problem, it has a very easy solution. Your filename

Re: useTable problem?

2010-03-04 Thread DragonFlyEye
> > On Mar 3, 1:42 pm, DragonFlyEye wrote: > > > Thanks Dr. Loboto. I'll try reordering the tables and see if that > > works. > > > I see this is a common problem: someone just posted a very similar > > problem this morning. Anyone else have any ideas

Re: CakeFest IV - America - Help us pick a location!

2010-03-03 Thread DragonFlyEye
Think outside the box! Rochester New York would be an awesome location. Or at least, someplace close enough to Rochester that I can drive to it. On Feb 24, 11:26 am, Michael Gaiser wrote: > +San Francisco Check out the new CakePHP Questions site http://cakeqs.org and help others with their

Re: $useTable ignoring the alternate table name

2010-03-03 Thread DragonFlyEye
I'm having a similar problem. You might want to follow that thread as well and see if we can resolve our issue! http://groups.google.com/group/cake-php/browse_thread/thread/7863737f43ef370d/bb09d84d36390086?hl=en#bb09d84d36390086 On Mar 3, 5:08 am, "rain...@gmail.com" wrote: > Hi > > I'm playing

Re: useTable problem?

2010-03-03 Thread DragonFlyEye
'OrderPayment', ..., > 'Order') - listed all linked models before the only one really needed. > Don't know will this help you too. > > On Mar 3, 1:12 am, DragonFlyEye wrote: > > > Ok, strange behavior which is probably just a misunderstanding of a

useTable problem?

2010-03-02 Thread DragonFlyEye
Ok, strange behavior which is probably just a misunderstanding of a n00b, but here goes: I have models for 'Order,' 'OrderPayment', 'OrderDetail', 'OrderShipment', 'OrderCredit', 'OrderCoupon'. All of these, because I'm trying to transition from an old system into a new system, have tables with di

Session does not contain User data?

2010-02-04 Thread DragonFlyEye
n00b playing around with authentication in CakePHP, here. I've got the authentication working fine. I can see this because pages which I've not allow()'ed aren't available if the user is not logged in. But based on what I've read, both in the documentation and on http://groups.google.com/group/cak

routes.php: Where do the errors go?

2009-07-24 Thread DragonFlyEye
OK, I'm trying to figure this out and getting wacky results as I test: I'm playing with custom-built routes in the following format: /:town-name/:action/:id The route works fine for correct URLs, but I'm confused as to what CakePHP does with URLs which don't conform to the regex included in the