Re: Model find() to return object; instead of array (?)

2008-04-04 Thread R. Rajesh Jeba Anbiah
On Apr 3, 10:40 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On Thu, Apr 3, 2008 at 1:13 PM, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote: Cake's default way of dumping array in controller and iterating in view file, works only for the small data. But, on a typical project that

Re: Model find() to return object; instead of array (?)

2008-04-04 Thread R. Rajesh Jeba Anbiah
On Apr 3, 11:12 pm, Christian Winther [EMAIL PROTECTED] wrote: I use cake way for documents and sql data way above 100 megabytes in size My guess would be your setup is wrongly configured - rather than pointing to php or cake as the problem. Obviously, you're overlooking the problem.

Re: Newbie Regarding Prototype Validation

2008-04-04 Thread Joel
1) You should include the prototype/scriptaculous libraries _before_ any additional scripts that require these libraries. 2)I believe the class is required and not required1. 3)Also, what is in the formCallback() javascript method? -Joel. On Apr 4, 1:20 am, meAgain [EMAIL PROTECTED] wrote: Hi

Notice (8): Undefined index: in cakephp 1.2

2008-04-04 Thread bhushan A
Hi all, I am upgrading my cakephp 1.1 application to cakephp 1.2 . But i am getting error Notice (8): Undefined index:xyz in app/controllers/ abc_controller.php Notice (8): Undefined variable:xyz in app/controllers/ abc_controller.php Can anybody tell me which changes i have to do and

Amazon AWS SimpleDB

2008-04-04 Thread Howard Lince
Hello all, This is my first post in google groups, I was curious if anyone has attempted an amazon web services SimpleDB database model which could be incorporated into. I have been accepted into the beta and the service itself is decently priced, I was hoping to use it with cakePHP but have not

Re: Yet another HABTM problem with self-referencing model (var useTable)

2008-04-04 Thread dizz
I was just having the same problem, used your method and it's working fine now. On Mar 30, 9:36 pm, ste.ve [EMAIL PROTECTED] wrote: To visualize it better, these are my example Model definitions WORKS: class Tag extends AppModel {         var $hasAndBelongsToMany = array(                

Re: Yet another HABTM problem with self-referencing model (var useTable)

2008-04-04 Thread grigri
You just need to change the alias : class Tag extends AppModel { var $hasAndBelongsToMany = array( 'RelatedTag' = array('className' = 'Tag') ); } In your resultset the `Tag` key will now refer to the main tag and the `RelatedTag` will contain the related tags. Of course you can change

Re: InPlaceEditor

2008-04-04 Thread [EMAIL PROTECTED]
Thank you a lot every one for your fast and accurate answer. It works perfectly with $this-params['form']['value'] I will certainly have a look a jQuery, because I see that lots of people using cake prefer it over scriptaculous. I've installed Firebug and it will certainly help me. Great to

Determine insert or update in beforeSave()

2008-04-04 Thread Tomka
Hello, is there a better way to see whether model-beforeSave() is invoked for an update or insert than to use if (empty($this-id) empty($this-data[$this-alias]['id'])){ // insert } else { // update } ? Thanks for answers. Tomka --~--~-~--~~~---~--~~ You

Old Model layout accessed

2008-04-04 Thread Tomka
Hello. For development I use a local Xampp-installation on WinXP. My app (cakePHP 1.2) is deployed on a linux webserver. The following problem only exists on my development machine: From time to time cake seems to access an old model-layout - I dont know where to cache it. I changed the

Re: Newbie theming question

2008-04-04 Thread grigri
Have you read this tutorial? http://www.sanisoft.com/blog/2007/12/29/theming-your-cakephp-apps-v12/ On Apr 4, 12:31 am, baal32 [EMAIL PROTECTED] wrote: I'm very new to Cake and I've been trying to go through the documentation on theming. The external tutorials I've read indicate that the

gmail StartTLS problem

2008-04-04 Thread bob
I am running cake 1.2 on XAMPP on Windows XP. I am trying to test SwiftMailer integration with Cake using Gmail Here is my code $this-SwiftMailer-connection = 'smtp'; // default and thus you don't have to specify it $this-SwiftMailer-smtp_host = 'smtp.gmail.com'; $this-SwiftMailer-smtp_type =

Re: Old Model layout accessed

2008-04-04 Thread grigri
the model schemas are cached in app/tmp/cache/models - empty that folder when you make changes to the schema. The cache is only read in production mode, in debug mode it's refreshed every time, so it's not a problem for development. On Apr 4, 11:02 am, Tomka [EMAIL PROTECTED] wrote: Hello.

Re: Old Model layout accessed

2008-04-04 Thread Tomka
Hello. The cache is only read in production mode, in debug mode it's refreshed every time, so it's not a problem for development. Thanks for your answer. I found this cache-directory and my models are cached there although I set Configure::write('debug', 2); in config/core.php Is there

Re: `useTable = false` and validation

2008-04-04 Thread jamdown
The form comes up OK for me, but my fields seem to be always valid even when they shouldn't be. Did you have to do anything else to get the field to validate? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP

Re: tableless model validation

2008-04-04 Thread jamdown
i'm having the same problem, sis you manage to solve this? --~--~-~--~~~---~--~~ 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

What to do if HABTM a relation is too heavy?

2008-04-04 Thread yitzc
Hi, I am trying to make a relation between a purchase and a currency - that is, each purchase is a certain amount and is paid in a certain currency (dollars or pounds). I am doing this so that I will be able to add other currencies later. What I want to do is for the customer to be able to choose

Re: Newbie Regarding Prototype Validation

2008-04-04 Thread meAgain
Can any one tell me the steps i should follow to run prototype validation. using: http://tetlaw.id.au/view/javascript/really-easy-field-validation Thank you On Apr 4, 9:26 am, Joel [EMAIL PROTECTED] wrote: 1) You should include the prototype/scriptaculous libraries _before_ any additional

input password into mysql under md5 form

2008-04-04 Thread gaynhomgaynhach
hi all, are you help me the ways input password into mysql under md5 form. --~--~-~--~~~---~--~~ 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

Re: How to submit a form in a selecttag

2008-04-04 Thread bibi
I have the solution : use directily prototype Ajax obcjet. $javascriptchange = new Ajax.Updater('colpanier','/photoweb//basket/ view/35', {asynchronous:true, evalScripts:true, parameters:Form.serialize(Event.element(event).form), requestHeaders: ['X-Update', 'colbasket']}) ;

Re: Newbie Regarding Prototype Validation

2008-04-04 Thread meAgain
First Thank You Joel For answering, i am using required1 because i have renamed the class since there is a similar class in generic.css of cakephp. as for the formCallback() i have copied paste it from the demo they are using on the website. Should i include in the form onsubmitreturn something

subdomain = client config

2008-04-04 Thread CakeHopeFull
Hello, I am a noob with cake, and have read the turorials, manual, blog tutorial, and am excited about starting. One question I have is this: I have a site with the following DB (this is dummied down): {Table}clients- id name sitecolor created modified {Data} clients

Re: input password into mysql under md5 form

2008-04-04 Thread [EMAIL PROTECTED]
You could always do beforeSave() on your model to apply md5() to the password field in the data member. However, if you're using the Cake Auth component it will do it for you. The default is to produce sha1 hashes (actually a salted hash, based on the Security.salt in the app/config/core.php).

Re: What to do if HABTM a relation is too heavy?

2008-04-04 Thread [EMAIL PROTECTED]
What you're after is a belongsTo relationship. Purchase: $belongsTo = array('Currency'=array('className'='currency',foreignKey = 'currency_id')); Simon http://www.simonellistonball.com/ On Apr 4, 7:57 am, yitzc [EMAIL PROTECTED] wrote: Hi, I am trying to make a relation between a purchase

SQL-log showing when layout does not have $cakeDebug; defined?

2008-04-04 Thread aka
Hi! I'm using the latest stable release (1.1.19.6305). I don't know if this is intended or not, nut when I make a following layout: html head /head body ?php echo $content_for_layout; ? /body /html The SQL-debug still shows on my page like i would have placed ?php echo $cakeDebug; ? inside my

Re: Model find() to return object; instead of array (?)

2008-04-04 Thread AD7six
On Apr 4, 4:08 am, Grant Cox [EMAIL PROTECTED] wrote: We have some large reports for our application - often involving ~250K rows from 8 different tables. The problem is, if your reporting needs to do any kind of collating or comparison, as ours does, you really can't avoid having all the

Re: Old Model layout accessed

2008-04-04 Thread Tomka
Argh! I found my problem: In my development folder (the location where I edit my files) the tmp-directory was not empty but contained a very old model-cache! Tomka. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: SQL-log showing when layout does not have $cakeDebug; defined?

2008-04-04 Thread grigri
The SQL log is generated and output independently of the $cakeDebug variable, which contains the controller dump for debug level 3. To get rid of the dump you need to be in debug level 0 or 1. There might be another switch to turn it off specifically, but I don't know it (especially not for 1.1)

Re: Model find() to return object; instead of array (?)

2008-04-04 Thread [EMAIL PROTECTED]
I suspect what you're looking for is the extremely un-Cake DboSource::rawQuery, which will return you a resource depending on your database connection type. $conn = ConnectionManager::getDataSource('default'); $res = $conn-rawQuery($sql); Or if you want a bit more help from cake,

Re: SQL-log showing when layout does not have $cakeDebug; defined?

2008-04-04 Thread [EMAIL PROTECTED]
Wouldn't it be lovely if we could control where it gets dumped? In a little hover over popup bug or something for eaxmple. It would also be nice to be able to edit the 'view' used to display this debug table, and allow us to do things like display it as a JSON object. That would be particularly

Re: subdomain = client config

2008-04-04 Thread [EMAIL PROTECTED]
Currently, you can't really do it properly there was a post the other day about this, and fool hardy me suggested I might spend some time building a patch for the Router to enable you to use SERVER variables in custom routes, which would let you do this by passing url info into controller-params.

Re: Amazon AWS SimpleDB

2008-04-04 Thread Chris Hartjes
On Fri, Apr 4, 2008 at 4:04 AM, Howard Lince [EMAIL PROTECTED] wrote: Hello all, This is my first post in google groups, I was curious if anyone has attempted an amazon web services SimpleDB database model which could be incorporated into. I have been accepted into the beta and the

Re: SQL-log showing when layout does not have $cakeDebug; defined?

2008-04-04 Thread grigri
I override this my extending the datasource. I'm usually happy with where it's displayed, but I like to syntax-hilight the SQL with geshi. I also sometimes dump the SQL to a text log as well, which is handy if there are lots of redirects or something. http://openpaste.org/en/5941/ I'm sure you

Re: Model find() to return object; instead of array (?)

2008-04-04 Thread R. Rajesh Jeba Anbiah
On Apr 4, 4:51 pm, AD7six [EMAIL PROTECTED] wrote: On Apr 4, 4:08 am, Grant Cox [EMAIL PROTECTED] wrote: We have some large reports for our application - often involving ~250K rows from 8 different tables. The problem is, if your reporting needs to do any kind of collating or comparison,

Re: Model find() to return object; instead of array (?)

2008-04-04 Thread AD7six
On Apr 4, 2:41 pm, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote: On Apr 4, 4:51 pm, AD7six [EMAIL PROTECTED] wrote: On Apr 4, 4:08 am, Grant Cox [EMAIL PROTECTED] wrote: We have some large reports for our application - often involving ~250K rows from 8 different tables. The

Re: DarkAuth and HABTM Relationship

2008-04-04 Thread ModByChris
The DarkAuth component just calls your User-find() method, I would suggest you double check your User model to ensure that your associations are set correctly there. ie. from the SQL I would say your User model has a single group association rather than habtm. ModByChris On Apr 3, 3:36 am,

Re: DarkAuth in home.ctp

2008-04-04 Thread ModByChris
The controller that your home.ctp view uses is the PagesController The error is showing that your User model doesn't exist within your Pages controller. Did you set up your AppController to automatically include the Users model to all controllers? e.g. in your AppContoller definition you should

Re

2008-04-04 Thread Howard Lince
Thanks for the info.. I was hoping for a scalable solution for my website, maybe Microsoft's competing product SSDS (headed to beta) may give us more options.. http://www.microsoft.com/sql/dataservices/default.mspx I have seen many articles claim it's already in beta however..

Re: Check Unique in a model

2008-04-04 Thread Steve Verlinden
In fact, it seems that this built-in rule doesn't work! Why is this not yet fixed? We allways need to check unicity of a field in all of our applications... On 3 avr, 16:07, jonknee [EMAIL PROTECTED] wrote: I'm trying to make a correct validation for my model. You can also just use the

Re: Amazon AWS SimpleDB

2008-04-04 Thread Howard Lince
Thanks for the info.. I was hoping for a scalable solution for my website, maybe Microsoft's competing product SSDS (headed to beta) may give us more options.. http://www.microsoft.com/sql/dataservices/default.mspx I have seen many articles claim it's already in beta however.. I can't seem to

Re: Notice (8): Undefined index: in cakephp 1.2

2008-04-04 Thread Samuel DeVore
not with that amount of information, perhaps some time spent actually putting some useful information in your question you could get some better help. Like what array is is working on, what are some relevant code lines around that error. On Thu, Apr 3, 2008 at 11:50 PM, bhushan A [EMAIL

Is it possible to create a true REST application yet?

2008-04-04 Thread gentleJuggernaut
I am currently rewriting an old application for a travel agency. The old application uses php and is a mess of spaghetti string programming. I am moving it to cakephp for obvious reasons (cake rocks!) I really would like to create a REST compliant server side that would allow a number of

Re: Is it possible to create a true REST application yet?

2008-04-04 Thread jonknee
Are there really any truly REST compliant applications yet?  or am I missing something major here?  Any help/opinions would be greatly appreciated. Yes, but not web browsers. There are tons of applications that tie in with REST APIs and use all four verbs. It would be really nice if web

Re: Custom html helper

2008-04-04 Thread grigri
There should be an official solution sometime involving aliased helpers. In the meantime, check out my hack here: http://groups.google.com/group/cake-php/browse_thread/thread/1c1c370160cb467f On Apr 4, 3:02 pm, Greg Baker [EMAIL PROTECTED] wrote: I want to create a custom HTML helper that

Re: Custom html helper

2008-04-04 Thread Greg Baker
Very interesting fixexactly what I was looking for. Thanks On Apr 4, 12:26 pm, grigri [EMAIL PROTECTED] wrote: There should be an official solution sometime involving aliased helpers. In the meantime, check out my hack here:

Re: Check Unique in a model

2008-04-04 Thread jonknee
In fact, it seems that this built-in rule doesn't work! Why is this not yet fixed? We allways need to check unicity of a field in all of our applications... What's not working for you? It seems to be working for me. I had a custom method until I was told about isUnique working through

Custom html helper

2008-04-04 Thread Greg Baker
I want to create a custom HTML helper that extends htmlhelper.. However because of the code I have already that I don't want to change, I want to name this helper so that I can use $html-... in my views. Any way I can do this? Normally if this was a new project I'd just create a new class and

Re: Notice (8): Undefined index: in cakephp 1.2

2008-04-04 Thread jonknee
What's not clear about the error message? You have a high error reporting level (which is why you are seeing notices) and there are two problems in abc_controller.php. One is you're trying to access an array with an invalid key. The other is you're trying to access a variable that doesn't exist.

Re: Model find() to return object; instead of array (?)

2008-04-04 Thread jonknee
Either that or you'll have to run queries using LIMIT and OFFSET to grab what you need one chunk at a time.  I don't know any scripting language that handles sucking in 600,000 records via a web page.       Think about phpMyAdmin? PHPMyAdmin makes the DB do all the work. When you upload

CakePHP Workflows

2008-04-04 Thread Femi Taiwo
Hello all, Please has anyone succeeded in integrating a workflow engine with CakePHP? I'm currently looking at the open source ezComponents (http://ezcomponents.org) and the WorkFlow engine they have. Can't seem to be able to make head or tail of where to begin, even after going through the

Amazon s3 + CakePHP

2008-04-04 Thread John R
The next step of my uber fun app is getting Amazon s3 to play nice with CakePHP. Sure, I can add the class to Vendors and do everything manually - but what is the cooler way? Are there any components/ helpers built to orchestrate this? --~--~-~--~~~---~--~~ You

External Link in Excel Doesn't Load Session

2008-04-04 Thread Spectacularium
I'm having a problem with a link to CakePHP from an Excel spreadsheet. I log in to the web site. then click on the link in excel. When the browser opens it presents me with the login page again. Once I log in I'm redirected to the root instead of the page I requested. If I paste the link in or

Re: Model find() to return object; instead of array (?)

2008-04-04 Thread Chris Hartjes
On Fri, Apr 4, 2008 at 10:44 AM, jonknee [EMAIL PROTECTED] wrote: Either that or you'll have to run queries using LIMIT and OFFSET to grab what you need one chunk at a time. I don't know any scripting language that handles sucking in 600,000 records via a web page. Think

CakePHP WorkFlows

2008-04-04 Thread dft
Hello all, Please has anyone succeeded in integrating a workflow engine with CakePHP? I'm currently looking at the open source ezComponents (http://ezcomponents.org) and the WorkFlow engine they have. Can't seem to be able to make head or tail of where to begin, even after going through the

Sending two emails in one function

2008-04-04 Thread Kyle Decot
I have created a contact form that sends out both an email to me, and a confirmation email to the person who filled out the form. The problem that is when the confirmation email gets sent out, it contains the information from the first email. How can I prevent this? Thank you as always for any

Re: Sending two emails in one function

2008-04-04 Thread Samuel DeVore
On Fri, Apr 4, 2008 at 8:04 AM, Kyle Decot [EMAIL PROTECTED] wrote: I have created a contact form that sends out both an email to me, and a confirmation email to the person who filled out the form. The problem that is when the confirmation email gets sent out, it contains the information

Re: JS and CSS selectors - WAS: How can I user jQuery insted of prototype?

2008-04-04 Thread b logica
Behaviour has similar functionality to jQuery. I'm not sure there'd be any point in using them together. On Thu, Apr 3, 2008 at 10:23 PM, Langdon Stevenson [EMAIL PROTECTED] wrote: Hi Martin I do not use any helper for jquery, myself. Since all my javascript, including ajax, is

Re: Determine insert or update in beforeSave()

2008-04-04 Thread b logica
Well, you could query the DB for an existing record but, aside from adding an unnecessary DB call, you'd need to have the ID in order to do so. What's wrong with checking for the ID in order to ascertain whether it's an insert or an update? That seems like the most obvious action to me. On Fri,

Re: Model find() to return object; instead of array (?)

2008-04-04 Thread b logica
On Fri, Apr 4, 2008 at 10:49 AM, Chris Hartjes [EMAIL PROTECTED] wrote: On Fri, Apr 4, 2008 at 10:44 AM, jonknee [EMAIL PROTECTED] wrote: Either that or you'll have to run queries using LIMIT and OFFSET to grab what you need one chunk at a time. I don't know any scripting

Re: Sending two emails in one function

2008-04-04 Thread Kyle Decot
Thanks for the help. Worked like a charm. --~--~-~--~~~---~--~~ 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

Re: Newbie theming question

2008-04-04 Thread baal32
Yeah actually - I read the sanisoft one, the pseudocoder one, and the manual page on views (the layouts section) The sansoft and pseudocoder tutorials don't address how to create a theme nor do they give an example. The layouts page in the cake manual only has very minimal instructions. If I

Re: Model find() to return object; instead of array (?)

2008-04-04 Thread R. Rajesh Jeba Anbiah
On Apr 4, 6:04 pm, AD7six [EMAIL PROTECTED] wrote: On Apr 4, 2:41 pm, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote: On Apr 4, 4:51 pm, AD7six [EMAIL PROTECTED] wrote: On Apr 4, 4:08 am, Grant Cox [EMAIL PROTECTED] wrote: We have some large reports for our application - often

Re: Model find() to return object; instead of array (?)

2008-04-04 Thread Chris Hartjes
On Fri, Apr 4, 2008 at 12:02 PM, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote: I'm talking about handling exporting module with CakePHP. It's relevant when you develop a project/application for clients. I understand, I just think that CakePHP is probably not suited to do that sort

Re: Model find() to return object; instead of array (?)

2008-04-04 Thread R. Rajesh Jeba Anbiah
On Apr 4, 7:49 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On Fri, Apr 4, 2008 at 10:44 AM, jonknee [EMAIL PROTECTED] wrote: Either that or you'll have to run queries using LIMIT and OFFSET to grab what you need one chunk at a time. I don't know any scripting language that

Re: Custom html helper

2008-04-04 Thread Matias Lespiau
I'm not sure but I think you can provide an alias to the helper this way: $helpers = array('CustomHtml' = 'Html'); On Fri, Apr 4, 2008 at 11:32 AM, Greg Baker [EMAIL PROTECTED] wrote: Very interesting fixexactly what I was looking for. Thanks On Apr 4, 12:26 pm, grigri [EMAIL

Newbie trying to get through the CakePHP 'IBM' tutorial

2008-04-04 Thread Scott Ackerman
I am trying to get through the Cook up Web sites fast with CakePHP tutorial at IBM's website. I have created the initial database, the model, the view and the controller. I am at the part where I am testing it for the first time. I have the CakePHP install installed in a directory called cake in

Re: Custom html helper

2008-04-04 Thread grigri
Looks like you're right! https://trac.cakephp.org/changeset/6453 Nate sneaked it in without mentioning it. I'm going to play around with this now... On Apr 4, 5:37 pm, Matias Lespiau [EMAIL PROTECTED] wrote: I'm not sure but I think you can provide an alias to the helper this way: $helpers

Re: Is it possible to create a true REST application yet?

2008-04-04 Thread gentleJuggernaut
Looking forward to seeing that... Could not get the time off work, sorry to have missed it. On Apr 4, 1:01 pm, Gwoo [EMAIL PROTECTED] wrote: Nate did a REST talk at CakeFest. We just need to get the slides and video --~--~-~--~~~---~--~~ You received this

Re: Is it possible to create a true REST application yet?

2008-04-04 Thread gentleJuggernaut
Looking forward to seeing that... Could not get the time off work, sorry to have missed it. On Apr 4, 1:01 pm, Gwoo [EMAIL PROTECTED] wrote: Nate did a REST talk at CakeFest. We just need to get the slides and video --~--~-~--~~~---~--~~ You received this

Re: Is it possible to create a true REST application yet?

2008-04-04 Thread gentleJuggernaut
Looking forward to seeing that... Could not get the time off work, sorry to have missed it. On Apr 4, 1:01 pm, Gwoo [EMAIL PROTECTED] wrote: Nate did a REST talk at CakeFest. We just need to get the slides and video --~--~-~--~~~---~--~~ You received this

Auth component not hashing all passwords.

2008-04-04 Thread dw
I have a User model, which has an admin_add function. The user's password is being hashed just fine. I also have an admin_pw function, with which an admin can change a user's password, and a change_pw function, which lets the user change their own password. The Auth component is not hashing

Re: Reliable Shared Host under $10?

2008-04-04 Thread Sliv
I have to take back my recommendation for Steadfast - I've been wrestling for a couple days now with mod_rewrite and open_basedir not working right - Tickets are ongoing back and forth - I have to include generic simple tests to convince them otherwise they assume it's my code or cake's problem.

Re: Model find() to return object; instead of array (?)

2008-04-04 Thread Baz
Just throwing in my two cents, but I've had frequent problems with phpMyAdmin exceeding timeout limits (and once even memory limits) on a shared hosts... So, trying to compare phpMyAdmin with what you're trying to do isn't really fair. All it does are imports and exports (in terms of large

Re: `useTable = false` and validation

2008-04-04 Thread Baz
You need to override the schema() function for the model. nice example in here... https://trac.cakephp.org/browser/branches/1.2.x.x/cake/tests/cases/libs/view/helpers/form.test.php?rev=6629 On Fri, Apr 4, 2008 at 1:24 AM, jamdown [EMAIL PROTECTED] wrote: The form comes up OK for me, but my

Re: Auth component not hashing all passwords.

2008-04-04 Thread dw
Do you mean in the controllers? I do call parent::beforeFilter() in each of their beforeFilter(). On Apr 4, 11:32 am, Baz [EMAIL PROTECTED] wrote: In your other models, are you calling parent::beforeFilter() in beforeFilter? On Fri, Apr 4, 2008 at 1:07 PM, dw [EMAIL PROTECTED] wrote: I

Re: Cache in 1.2 (Cake and App dirs outside of webroot)

2008-04-04 Thread Adam Friedman
Hi folks. I just upgraded to 1.2 and found the same problem. I've discovered that it is, in fact, a bug of some kind, probably related to a method in one of Cake's core configuration files. What I did was trace this Cache::config() entry (found at the end of [your_app]/config/core.php) and saw

Re: Newbie trying to get through the CakePHP 'IBM' tutorial

2008-04-04 Thread Rusty
I believe that it is in your site setup that you would change it so that the root of your website was at /localhost/cake. I have mine on a shared hosting account, so setting the home page of the site to be the /cake_install/app/webroot worked for me. Hope that helps. Rusty On Apr 4, 9:57 am,

Re: Auth component not hashing all passwords.

2008-04-04 Thread Baz
Yes, that's what I meanthmmmph...well Do some code dumps in bin.cakephp.org I guess On Fri, Apr 4, 2008 at 1:53 PM, dw [EMAIL PROTECTED] wrote: Do you mean in the controllers? I do call parent::beforeFilter() in each of their beforeFilter(). On Apr 4, 11:32 am, Baz [EMAIL PROTECTED]

Add new user form contains username of current user

2008-04-04 Thread Tomka
Hello. I have a model User which I use with the Auth-component for Login to the admin-area. I also hava an UserController with a admin_add-method for adding new users. My problem: In the form of the add-view the field username is always preset with the username of the current user. setting the

Re: Cache in 1.2 (Cake and App dirs outside of webroot)

2008-04-04 Thread Sliv
I was puzzled until I got to this line: ...the path information for Windows Then I wasn't puzzled anymore ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this group, send email to

Re: Newbie theming question

2008-04-04 Thread Sam Sherlock
app_controller var $view = null; var $theme = null; beforeRender // also add a check for Auth.User later if(in_array('admin', $this-params)){ $this-view = 'Theme'; $this-theme = 'admin'; } then I have

Re: Auth component not hashing all passwords.

2008-04-04 Thread aranworld
Have you tried this out using a different name for the column holding the password? I call my password field passwd, because I believe 'password' is a reserved keyword in MySQL. At any rate, I found that in order to perform data validation on the submitted password, I had to manually hash the

PHP easter eggs/ undocumented feature.

2008-04-04 Thread fr3nch13
hey cake guys, long time no talkie for me. there is an undocumented feature in php that exposes itself. i tested it on an install of cakephp and it showed itself. ** This is no direct effect from cakephp code, but of just php *** Though you guys might want to know about it. This doesn't have

New Tree item parent_id is given 0 rather than NULL

2008-04-04 Thread acoustic_overdrive
I noticed that when I insert a new item into a tree using the TreeBehaviour, if I leave the parent_id blank, the resulting insert query sets parent_id to '' (an empty string). This causes MySQL to set the field to 0 even if NULL is the default. So all newly created items that don't have parents

Re: Newbie trying to get through the CakePHP 'IBM' tutorial

2008-04-04 Thread Scott Ackerman
I can change the document root on my web server to serve directly out of the cake directory, but I don't want to as I have other apps that run on my server. What seems strange is that I went through the initial setup as described in the manual and connected with the database just fine. But when I

Re: Model find() to return object; instead of array (?)

2008-04-04 Thread francky06l
My two cents as well, for 600 000+ records (even less) mysqldump is best ... Concerning phpmyAdmin, the frequent problems I have is on importing ..so again mysql in shell solves this .. On Apr 4, 8:41 pm, Baz [EMAIL PROTECTED] wrote: Just throwing in my two cents, but I've had frequent

Re: How to manage different site instances...

2008-04-04 Thread francky06l
As I understood the state is for the complete site, such as having vote state (for every visitor) for 2 weeks, then another stage for a definite period and so on ...So, for me, does not relate of the visitor but more on when the visit occurs Correct me if I am wrong On Apr 4, 5:28 pm, b

Re: External Link in Excel Doesn't Load Session

2008-04-04 Thread francky06l
What happen when you invoke this outside of Excel (browser) ? Does it work as expected ? On Apr 4, 4:49 pm, Spectacularium [EMAIL PROTECTED] wrote: I'm having a problem with a link to CakePHP from an Excel spreadsheet. I log in to the web site. then click on the link in excel. When the

Re: Auth component not hashing all passwords.

2008-04-04 Thread Baz
The name of the filed isn't an issue. Although for a true implementation he'll have to user fields such as new_password, he shouldn't have to for his implementation. He said that all the vies have the same $form-password('User.password', array('size' = '30','label'=false)) I'm assuming all of

Re: Auth component not hashing all passwords.

2008-04-04 Thread dw
thanks for the replies. i've been picking through auth.php for some glimmer of what might be going on, but no dice. the thing which baffles me is that it works for one method but not the other. here is some code (i included the model, controller, and the two views):

Re: Auth component not hashing all passwords.

2008-04-04 Thread Chris Hartjes
On Fri, Apr 4, 2008 at 7:43 PM, dw [EMAIL PROTECTED] wrote: thanks for the replies. i've been picking through auth.php for some glimmer of what might be going on, but no dice. the thing which baffles me is that it works for one method but not the other. here is some code (i included the

Re: New Tree item parent_id is given 0 rather than NULL

2008-04-04 Thread Adam Royle
I had noticed this too, however I just added this to my model. Cheers, Adam function beforeSave(){ if (isset($this-data[$this-alias]['parent_id']) empty($this- data[$this-alias]['parent_id'])){ $this-data[$this-alias]['parent_id'] = null;

Re: Amazon AWS SimpleDB

2008-04-04 Thread Dr. Tarique Sani
The microsoft product is a bit more powerful but still not useful for anything beyond simple lists. HTH Tarique On Fri, Apr 4, 2008 at 6:54 PM, Howard Lince [EMAIL PROTECTED] wrote: Thanks for the info.. I was hoping for a scalable solution for my website, maybe Microsoft's competing product

Re: Amazon s3 + CakePHP

2008-04-04 Thread Adam Royle
I used this class to do the heavy lifting: http://undesigned.org.za/2007/10/22/amazon-s3-php-class Then I created an S3 behaviour which reads the bucket login information from app/config/s3.php much like database confs. I'll probably share it later on down the track when I've cleaned it up a

Re: Amazon s3 + CakePHP

2008-04-04 Thread Jon Bennett
Hi Adam, I used this class to do the heavy lifting: http://undesigned.org.za/2007/10/22/amazon-s3-php-class Then I created an S3 behaviour which reads the bucket login information from app/config/s3.php much like database confs. I'll probably share it later on down the track when I've

Re: Amazon s3 + CakePHP

2008-04-04 Thread Adam Royle
Ok fine, here it is, warts and all. http://bin.cakephp.org/view/517863202 A few things to be aware of... It requires two fields to be in your database table.. path s3_url Path is a relative path to your file from the videos folder. So if you have /files/videos/myvideo.flv The path would

Re: Newbie theming question

2008-04-04 Thread Dr. Tarique Sani
On Fri, Apr 4, 2008 at 9:27 PM, baal32 [EMAIL PROTECTED] wrote: Yeah actually - I read the sanisoft one, the pseudocoder one, and the manual page on views (the layouts section) The sansoft and pseudocoder tutorials don't address how to create a theme nor do they give an example. There is