Disable cache in listSources

2006-10-24 Thread Anton B.
I use dinamically creating tables and that's why I always need actual information. Is there a possibility to disable cache in DboMysql::listSources() or in DboSource::listSources()? Or simply clear cache? Thanks a lot. --~--~-~--~~~---~--~~ You received this mess

Re: SMF + CakePHP

2006-10-24 Thread Marcus
All of my CakePHP projects are integrated into vBulletin and simply use the board's cookies. When a user is logged in onto the board, he gets at least two cookies: one with the user id and one with a password hash. I can check the id and the password hash against the vBulletin user table and can

Re: Simple Site Structure - newbie question

2006-10-24 Thread Walker Hamilton
Search this group for "pages_controller" --~--~-~--~~~---~--~~ 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

Simple Site Structure - newbie question

2006-10-24 Thread Matt
I am working on a simple web site and I am trying to achieve this structure domain.com/contact -> static page domain.com/about-> static page domain.com/tutorials -> static page domain.com/tutorials/4 -> dynamic page For the static pages I don't

Re: This Mailing List Isn't on Google For No Reason

2006-10-24 Thread Walker Hamilton
Mikee Freedom wrote: > I have found great assistance in: > > 1. the manual > 2. the wiki (and now the bakery) > 3. the various blogs around (thanks fellas) > 4. searching google groups > 5. the source code > 6. the api > 7. asking questions in here > > roughly in that order. I think this list is

Re: new to cake, and mvc in general

2006-10-24 Thread Walker Hamilton
[EMAIL PROTECTED] wrote: > > Yeah, set DEBUG to 0 in /app/config/core.php (production mode). > > > > -- John > > > So turning off debug also stops these calls to the database? Or does it > just not log that it's doing them anymore? DESC is what cake is running to figure out your DB. Once you go

Re: Some questions about PKs and FKs

2006-10-24 Thread Marcelo de Moraes Serpa
About the cheatsheet, is there a cut-down version available on for screen display? (I assume this one was created for printing, I would like to have one that I could see on the screen, this one renders too slow!).Thanks, Marcelo.On 10/23/06, Marcelo de Moraes Serpa <[EMAIL PROTECTED]> wrote: Oh yea

Re: Beyond Simple Authentication

2006-10-24 Thread AD7six
On Oct 25, 12:00 am, "mike091" <[EMAIL PROTECTED]> wrote: > Hi, > > Thanks very much for the reply. I do understand what you're saying but > if it's not too much trouble, some code examples would be very welcome. > > Thanks, > Bill Hi Mike091, An example of how to use your authentication is he

Re: Problems connecting to the database using MAMP on Mac OS X

2006-10-24 Thread stoni
nate wrote: > This my have nothing to do with it, but try this syntax instead: > > var $default = array( 'driver' => 'mysql', > > 'connect' => 'mysql_connect', > 'host' > => 'localhost', >

Re: This Mailing List Isn't on Google For No Reason

2006-10-24 Thread francky06l
This group is very useful, I found lot of answers in it, I have also ask some beginners questions a while ago bothering nate, ADS7X and other very eminent people here. I am also answering some of them, but I admit (being modo on other groups) that's is really a lot of work. That's also the "price

Re: Beyond Simple Authentication

2006-10-24 Thread mike091
Hi, Thanks very much for the reply. I do understand what you're saying but if it's not too much trouble, some code examples would be very welcome. Thanks, Bill --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: need help with specifying a complex query

2006-10-24 Thread bingo
Hi Christoph, Thanks for the query. I got it working. About your question...It is not necessary to fetch all the data at onceactually I was expecting a multistep procedure...the way it will be going to work is that the user clicks on button (title "Show singers") and then in the view a list

Re: This Mailing List Isn't on Google For No Reason

2006-10-24 Thread Trevor Burton
as a distinctly average php user and a newcomer to cake i'll add my thoughts here for what it's worth. The fact that Cake is (or can be) such a powerful framework is a double-edged sword - serious developers use it to solve common problems quickly and speed up development of complex apps but 'ne

Re: need help with specifying a complex query

2006-10-24 Thread Preloader
Hello again :-) Ok, I think I understand, misinterpreted your question. I am not sure, if this is the best solutioin (honestly I don't think so), but you could do a custom query ... in the UsersController: _ $query = <<< SQL select Users.id as use

Re: Assocciation

2006-10-24 Thread Ziad
Mike; thanks alot, thats excatly what im trying to do. im used to hard code my php from ground up suddenly this cake is so easy but i keep thinking and expecting complex. i was trying to build custom sql functions inside models and cotrollers for that matter but thanks to you Ziad On Oct

Re: This Mailing List Isn't on Google For No Reason

2006-10-24 Thread Mikee Freedom
morning all, just thought i would chime in with my 2. i agree, there are a lot of beginners about the place. at one stage being a Cake newbie myself, it has only been through serious time dedicated have I managed to come out with what I think to be a pretty good application utilising *some* of

Re: MD5 Function

2006-10-24 Thread kiper
Samuel DeVore wrote: > Ok I am an epically bad typer with a sleeping baby in arms should read... That would be a sight for sore eyes... PHP.net is the first stop if you want to learn more about the basics. Buying a good book on PHP and MySQL might help as well. Or you could just google it...

Re: This Mailing List Isn't on Google For No Reason

2006-10-24 Thread Felix Geisendörfer
As far as an FAQ goes, according to gwoo the Bakery will get one soon (?). People will be able to ask and answer questions, but the public FAQ itself will be moderated / maintained by the core developers / contributors. Best Regards, Felix Geisendörfer aka the_undefined --

Re: This Mailing List Isn't on Google For No Reason

2006-10-24 Thread kiper
> Praise the powers that be, the wiki is dead. I suppose I could start > a page on the manual that only features FAQs. Anyone want to help on > that? I'll gladly help you with that, John, if you're interested! Still feel like a blueberry but I've been around since July :) I think that the manual

Re: Beyond Simple Authentication

2006-10-24 Thread Mikee Freedom
Hey Bill, I've not used the simple user auth method, i'm a fan of the othAuth version - thanks Oth! either way, in the function that checks the login details (U and P), if they validate, Oth stores information about that user in the session as a way of a) checking a user is logged in and b) bein

Re: View: link problem

2006-10-24 Thread Mikee Freedom
hey Roby, Is your app installed in the subdirectory cake on your local server? if so, you might be able to solve your problem with routes: /app/config/routes.php and .htaccess, but basically you're trying to point at the root when the application is installed in a subdirectory. i may be well o

Re: Model Association (again)

2006-10-24 Thread Ismael S. Kafeltz
Maybe this can help you: http://wiki.cakephp.org/docs:understanding_associations --~--~-~--~~~---~--~~ 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 u

Re: Assocciation

2006-10-24 Thread Mikee Freedom
morning Z, For the actual dynamic menu you've got as many options as the Internet can throw at you. I quite like the pure CSS version by StylePhreak but everyone has their own opinion. Would welcome suggestions if anyone had a pearler. As for pulling your data from the DB in a way that would ea

Re: THTML files not working

2006-10-24 Thread scott lewis
On 24-Oct-2006, at 05:16, barry_normal wrote: > Hello Ryan, > > Sorry if this turns up twice. It doesn't seem to work first time > though.. > > Anyway. If I do as you suggest, I get a 404 but then, add .thtml to > the > end of the url and hey presto I get a page full of code. > > No idea what's

Re: MAMP and mod_rewrite with cake

2006-10-24 Thread Andre
funkyfresh wrote: > Ive had a similar problem when I add the final / > > try removing the final slash, and see if it works, eg /posts > > havent had time thus far to investigate this further, anyone know why > the additional / causes problems? Actually, even removing the final slash I still get

Model Association (again)

2006-10-24 Thread roby
Hi all. I'm going to track down the user's educations so I can make portfolio-like page for my application. The portfolio-like page will be per user, each has the information about the user's educations. I made the tables' relations in my database like these: 1). users: (PK)user_id + email + pas

Model Association

2006-10-24 Thread roby
Hi all. Help me how to define the association between these: 1). User has many messages 2). User has many relations If only those, it's simply just add the User model the hasMany variable and in Message model and Relation model just add the belongsTo variable. But I've been thinking to make such

RE: Planning on CakePHP future versions

2006-10-24 Thread Mariano Iglesias
Sure, sometimes you even have classes being moved between packages so you need a little refactoring. But then again Java is a programming language, not a framework. Anyway, bottom line is we did agree on our remarks regarding cake php versioning. -MI -Original Message- From: cake-php@go

Re: This Mailing List Isn't on Google For No Reason

2006-10-24 Thread John David Anderson (_psychic_)
On Oct 24, 2006, at 11:00 AM, MJ Ray wrote: > > nate <[EMAIL PROTECTED]> wrote: >> What's not great is that people are continuing to ask questions >> without >> bothering to search for an answer beforehand. [...] > > google is a search engine, but a terrible catalogue. A cataloging of proble

Re: AppController's beforeFilter question

2006-10-24 Thread fr3nch13
i knew this, i just thought cake may have done it differently considering it was the AppController and beforeFilter was a 'special' method. nate wrote: > See here: > > http://www.php.net/manual/en/keyword.parent.php --~--~-~--~~~---~--~~ You received this messag

Re: AppController's beforeFilter question

2006-10-24 Thread Brian French
Touché... I had the below code code. class AppController extends Controller {     function beforeFilter()     {         echo "AppController::BeforeFilter";     } } class ReviselogsController extends AppController {     function beforeFilter()     {         echo "ReviselogsController::BeforeF

Re: AppController's beforeFilter question

2006-10-24 Thread nate
See here: http://www.php.net/manual/en/keyword.parent.php --~--~-~--~~~---~--~~ 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 gr

Re: Problem with case sensitive

2006-10-24 Thread Ismael S. Kafeltz
I'm sorry for this stupid topic You are right, the problem was because my confustion with portuguese and english varibale names... var $nome = 'Cidade'; instead of var $name = 'Cidade'; really really sorry about that, anyway you helped me to find this mistake... Thank you very much --~--~---

Re: AppController's beforeFilter question

2006-10-24 Thread Samuel DeVore
you should try a test, and let us know On 10/24/06, Brian French <[EMAIL PROTECTED]> wrote: > > When i have an AppController set with the method beforeFilter as well as > another normal controller (TasksController). > > Does the beforeFilter in the TasksController: > a. overwrite the AppController

Re: Problem with case sensitive

2006-10-24 Thread nate
You're probably deploying to PHP4. Add the following to your Cidade model: var $name = "Cidade"; --~--~-~--~~~---~--~~ 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@goog

Re: This Mailing List Isn't on Google For No Reason

2006-10-24 Thread MJ Ray
nate <[EMAIL PROTECTED]> wrote: > What's not great is that people are continuing to ask questions without > bothering to search for an answer beforehand. [...] google is a search engine, but a terrible catalogue. Does cake need a FAQ? (Does it have a FAQ? I thought it did, but couldn't find i

AppController's beforeFilter question

2006-10-24 Thread Brian French
When i have an AppController set with the method beforeFilter as well as another normal controller (TasksController). Does the beforeFilter in the TasksController: a. overwrite the AppController's beforeFilter b. run before the AppController's beforeFilter c. run after the AppController's before

Re: Re: This Mailing List Isn't on Google For No Reason

2006-10-24 Thread Samuel DeVore
btw here is a great newbie tip, add 'nate' to the end of search queries on the cakephp group to get better result sets. On 10/24/06, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > On 10/24/06, Ismael S. Kafeltz <[EMAIL PROTECTED]> wrote: > > > > I do search a lot before any question, but i found t

Re: Planning on CakePHP future versions

2006-10-24 Thread nate
What I'm saying about Java is that it's usually a bit more complex than a quick S&R. --~--~-~--~~~---~--~~ 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 T

Re: Template of the cakeerror

2006-10-24 Thread nate
The Cake error pages are great, because they always tell you exactly what you need to do, not only to fix them, but to replace them with custom pages. The first line of every error page, right below the title, says something like this: Notice: this error is being rendered by the app/views/errors

RE: Planning on CakePHP future versions

2006-10-24 Thread Mariano Iglesias
Well but you're saying the same: that uses non deprecated methods. In the moment that you have to do a search & replace you are following what I was saying: sometimes even with java YOU DO NEED to do S&R. -MI -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On

Re: Re: Re: MD5 Function

2006-10-24 Thread Samuel DeVore
Ok I am an epically bad typer with a sleeping baby in arms should read Then http://php.net/ should be your bedtime reading, the manual is Really Really good (and some of the comments are great places to learn good tricks, ok and some bad ones) Sam D On 10/24/06, Samuel DeVore <[EMAIL PROTECTED]

Re: Planning on CakePHP future versions

2006-10-24 Thread nate
The Java argument also doesn't really hold up, because in most cases, methods are simply renamed, or moved to a different object. Which means that updating an app to the current release is usually a simple matter of a search-and-replace. It also doesn't hurt to be an efficient coder, and have au

Re: Re: MD5 Function

2006-10-24 Thread Samuel DeVore
then php.nt should be yu bed time reading the manual is REALLY REALLY good On 10/24/06, roby <[EMAIL PROTECTED]> wrote: > > Thanks Samuel. Just FYI, I really new to PHP too and I'm really sorry > to take your time. > > > > > -- == S. DeVore (the old fart) the advice is free, the lack of crank

Re: This Mailing List Isn't on Google For No Reason

2006-10-24 Thread Chris Hartjes
On 10/24/06, Ismael S. Kafeltz <[EMAIL PROTECTED]> wrote: > > I do search a lot before any question, but i found too many topics > without solution. > Maybe nobody reads... > Nate's email can be thusly summarized: 1) every beginner's question specifically about Cake has been answered on this ema

Re: This Mailing List Isn't on Google For No Reason

2006-10-24 Thread Ismael S. Kafeltz
I do search a lot before any question, but i found too many topics without solution. Maybe nobody reads... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-

Re: MD5 Function

2006-10-24 Thread roby
Thanks Samuel. Just FYI, I really new to PHP too and I'm really sorry to take your time. --~--~-~--~~~---~--~~ 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.c

Re: need help with specifying a complex query

2006-10-24 Thread bingo
Hi Christoph, Thanks for the reply. But I am trying to extract "unique singers" based on the songs in the library of the user. In the above result, I will get duplicate values for singers and I will need check for duplication at PHP level. Isn't there any way to specify a query that determines th

This Mailing List Isn't on Google For No Reason

2006-10-24 Thread nate
Hey, happy Tuesday, how's everybody doing? I just wanted to take a moment out of my afternoon to remind everyone about the awesome search technology this mailing list is built on. It's called Google, and it can help you quickly and efficiently find answers to questions that you might have. Norm

Re: beforeSave()

2006-10-24 Thread Ismael S. Kafeltz
only Models has beforeSave() callback function, not the Controllers. --~--~-~--~~~---~--~~ 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 fr

Re: find method

2006-10-24 Thread roby
@Samuel: I run on PHP 5.1.6 with Apache 2.2.3 and MySQL 5.24a (I use XAMPP 1.5.4 for simplicity) but thanks anyway for your reply @Steniskis: thanks a lot. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP"

Re: SMF + CakePHP

2006-10-24 Thread [EMAIL PROTECTED]
Anyone ? :( --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more o

Problem with case sensitive

2006-10-24 Thread Ismael S. Kafeltz
I don't know why, but in release server where i do upload my files i found this problem with debug = 2. SELECT `cidade`.`estado_id` FROM `sis_cidade` AS `cidade` WHERE `Cidade`.`id` = '5' LIMIT 1 1109: Unknown table 'Cidade' in where clause In my local server the sql statement is different: SELE

beforeSave()

2006-10-24 Thread carlosrg
Hi, I want to register the user who creates or edits the data of the web. For this I want to use the beforeSave() function. I take the username from the Session. But nothing occurs, i have try to put the beforeSave() in the AppController and in the 'Object'_controller. I have implemented the be

RE: Planning on CakePHP future versions

2006-10-24 Thread Mariano Iglesias
I think that at some point you may find the necessity to remove deprecated methods. Java will remove deprecated methods on future versions (i.e: post tigris) and will also remove certain APIs from their SE distributions. Why? A simple reason that can also be applied for cake: avoiding the constant

Re: having empty entry in selecttag selected

2006-10-24 Thread Sonic Baker
Hi Spamfunk,The following gives me a select box with the vlank item selected by default. $html->selectTag('Customer/county_id', $countyArray, $html->tagValue( 'Customer/county_id'), array('id' => 'customer_county_id'));HTH,Sonic --~--~-~--~~~---~--~~ You rece

ajax and scroll up and lading

2006-10-24 Thread [EMAIL PROTECTED]
1) When ajax refresh div than scroll in browswer going to top why ? I want to stay scrool ! 2)i want to add loading layer for progress ajax i find in manual $options['loading'] // JS code to be executed when the remote document // is being loaded with data by the browse

Re: Planning on CakePHP future versions

2006-10-24 Thread gwoo
We do not remove deprecated until there is a major version change. Nate was referring to methods that have been deprecated since 0.10, which came out over a year ago. Otherwise, trigger_error is used to send a warning. The most important thing here is that we need communication from the commu

Re: MAMP and mod_rewrite with cake

2006-10-24 Thread funkyfresh
Ive had a similar problem when I add the final / try removing the final slash, and see if it works, eg /posts havent had time thus far to investigate this further, anyone know why the additional / causes problems? --~--~-~--~~~---~--~~ You received this message

Re: having empty entry in selecttag selected

2006-10-24 Thread [EMAIL PROTECTED]
Hi Sonic! I understood everything Nate posted. I use the automated insertion of the blank list item. My problem was, that this blank list item is not selected by default. Cheers Felix --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Trees vs. Tables

2006-10-24 Thread Syl
Good Day All ! I haven't really had any experience with Trees. And, I've got a problem that I see can be tackled in either one of two ways - using Trees or Tables in the DB. Here's the problem: I've got a threaded list, but it can only go two deep. Here's what it looks like : --> AD 1 --

Re: Custom ID attributes for form tags

2006-10-24 Thread nate
> but i've changed a few things I'm going to guess that the problem lies there, since I'm fairly certain that 1.1.5 didn't ship with that issue. If you think a change should be made to the Cake core, I'd suggest opening a ticket, since we don't support modified versions of Cake here. --~--~---

Re: Planning on CakePHP future versions

2006-10-24 Thread funkyfresh
Guys, my own opinion on this. For the future stability and wider acceptance of CakePHP, you should never remove any deprecated methods. Anything that introduces instability into the product, reduces its acceptance into the wider developer community. At the least, you end up stuck on older relea

Re: $this->redirect() after an ajax update

2006-10-24 Thread Brian French
Thanks alot!! that is exactly what i was looking for... maybe this should be proposed to go into the core? AD7six wrote: > Hi Brian, > > Have a look at how the redirect method is defined (overriden) in the > app controller here: http://www.noswad.me.uk/MiBlog/ACLPart1 > > When you do a redirect

Re: basic Ajax file uploading

2006-10-24 Thread Brian French
Thanks alot nate! Is there any example of this anywhere? nate wrote: how do i get it to properly upload the file? You don't. Because of the way the XHR transport layer works, you can't use it to send actual file data. What you *can* do is have the upload form POST to an if

Re: Fwd: Check out the one that suits ur degree!!!

2006-10-24 Thread Trevor Burton
Cunt cunt cunt - you are a cuntOn 10/24/06, Jitender Kumar Nauni <[EMAIL PROTECTED]> wrote: Hi frnds,       Here is one site of substance, related to careers. Any one can check the relevancy of his/her skill along with the information given in the site. Also one can check out t

Re: find method

2006-10-24 Thread Steniskis
Hi Roby, Don't you have to camelCase the method name findByUserName ? Yes it is a magic method. Go and fetch it in http://manual.cakephp.org/chapter/models Lastly you can create a method in your model and include a query inside, calling it from your controller. Cheers Sten --~--~-~--~---

Fwd:Fwd: Check out the one that suits ur degree!!!

2006-10-24 Thread Jitender Kumar Nauni
Hi frnds,       Here is one site of substance, related to careers. Any one can check the relevancy of his/her skill along with the information given in the site. Also one can check out the various sponserd links given by the different organistaion. Also forward it to all your friend

Beyond Simple Authentication

2006-10-24 Thread mike091
Hi All, Just wonder if you give give me some advise on this. Based on the example Auth. system at http://manual.cakephp.org/appendix/simple_user_auth in the Manual, I'm wondering what is the best way to display the current username once logged in and run queries based on that username? Thanks, Bi

Re: Cake associations question (foreign keys)

2006-10-24 Thread Gil Vidals
Unfortunately, cakephp doesn't support compound primary keys. You will need to declare a primary key in cake in order for the save and insert to work properly. A work around is to add an auto_increment field to every table, which implies that the compound key must be removed since Mysql only allow

cache problems witch opera

2006-10-24 Thread [EMAIL PROTECTED]
So if I deleted for ex. post id=1 > flash message about deleted > and back I still view that post, in Firefox evertything is ok, post disappears after delete. What's going one ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goog

Re: A different way to create ACL database

2006-10-24 Thread x0rster
Hi, I'm still getting the same thing with the -Q parameter : php -q cake/scripts/acl.php help I've tried whith the passtruh command, this is the output : php -q cake/scripts/acl.php help X-Powered-By: PHP/4.4.4 Content-type: text/html Warning: passthru() [function.passthru]: Cannot execute a

Re: THTML files not working

2006-10-24 Thread Chris Hartjes
On 10/24/06, barry_normal <[EMAIL PROTECTED]> wrote: > > > No idea what's going on here. Any help would be great. > > BN (cranky programmer wakes up to find thread, prepares to answer) First of all, I don't see anywhere in the blog tutorial where you are supposed to be viewing the thtml files.

RE: Planning on CakePHP future versions

2006-10-24 Thread Mariano Iglesias
That would be interesting, considering that otherwise you would have to go through the API to look for deprecated methods. A proper procedure for version upgrading on sites that are in production with Cake will definitely make Cake stand amongst the rest. I also agree with Nate that bakers should

Re: find method

2006-10-24 Thread Samuel DeVore
if you are on php4 you might need to use findByUser_name On 10/24/06, roby <[EMAIL PROTECTED]> wrote: > > Hi all. > > Based on the CakePHP manual tutorial (appendix B), I've found that if I > changed the table structure for users become like this: > > CREATE TABLE users > ( > user_id INT AUTO_I

Re: MD5 Function

2006-10-24 Thread Samuel DeVore
$cryptPass = md5($plaintextPass); // this and other fun facts at http://php.net/md5 I would like to say something cranky like "did you look up md5 at php.net" or "perhaps some time spent in a nice comfortable desk chair with a girl named Google" or some other snide, sarcastic comment. But then

RE: Cake associations question (foreign keys)

2006-10-24 Thread Erich C. Beyrent
> Defining your schema and having the database engine enforce key > integrity has its advantages and disadvantages. You'll probably want > to continue to learn about the issues regarding telling mySQL about > foreign keys. What about us poor schmucks who are trying to develop applications u

ajax observefield how to get $params in the controller ?

2006-10-24 Thread Steniskis
Hi all, I am stuck because my $params are undefined in the controller. May be you have an idea or an experience that would help me and others. I reload a select with an observe field my element is : ==ELEMENT Véhicule observeField('vehicu

find method

2006-10-24 Thread roby
Hi all. Based on the CakePHP manual tutorial (appendix B), I've found that if I changed the table structure for users become like this: CREATE TABLE users ( user_id INT AUTO_INCREMENT NOT NULL, user_name VARCHAR(255) NOT NULL, user_password VARCHAR(32) NOT NULL, first_name VARCHAR(255) N

About find

2006-10-24 Thread roby
Hi all. Based on the CakePHP manual tutorial (appendix B), I've found that if I changed the table structure for users become like this: CREATE TABLE users ( user_id INT AUTO_INCREMENT NOT NULL, user_name VARCHAR(255) NOT NULL, user_password VARCHAR(32) NOT NULL, first_name VARCHAR(255) N

Re: THTML files not working

2006-10-24 Thread barry_normal
Hello Ryan, Sorry if this turns up twice. It doesn't seem to work first time though.. Anyway. If I do as you suggest, I get a 404 but then, add .thtml to the end of the url and hey presto I get a page full of code. No idea what's going on here. Any help would be great. BN --~--~-~--~

Template of the cakeerror

2006-10-24 Thread Paolo
Hi i want change the template of the error page when i invoke cakeerror... how can i do? There are an infos abount cakeerror and can i manager that? Tnx --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" gro

View: link problem

2006-10-24 Thread roby
Hi all. I've made the Blog Tutorial in CakePHP manual and I've added simple authentication using the one in CakePHP manual also (appendix B). So far, I understand the logic mechanism but I have 1 question about link. I made the system like this: 1). User must login through login page 2). After a

MAMP and mod_rewrite with cake

2006-10-24 Thread Andre
Somehow I managed to get cake to connect with my MySQL database, installed with MAMP. Now, it seems that I can't get to work the clean urls correctly, since when I type, say, http://localhost/posts/ i get this error: The requested URL /posts/ was not found on this server. What can I do? Does any

Re: need help with specifying a complex query

2006-10-24 Thread Preloader
Hello Bingo, tried the whole scenario: // in the UsersController ... ... $data = $this->User->findAll(); $this->set('data',$data); ... ... You should get a structure like this: _ Array ( [0] => Array ( [User] => Array (

Assocciation

2006-10-24 Thread Ziad
Hello everyone: i have been trying out cake for a week to decide wheather to use it for my app dev. so far so good but im having difficulity with complex queries and table assocciations. i built 2 simple tables as a try out; table categories: id name description table products; id name descr

MD5 Function

2006-10-24 Thread roby
Hi all. I have another simple question (or may be stupid question, poor me). If I want to use the md5 function for password checking in user authentication, the password must be encoded in md5 also or not? I mean, the password in the table in my database. If yes, can someone tell me how to use th

Re: THTML files not working

2006-10-24 Thread barry_normal
Thanks Ryan, If I do that though I just get a 404 page. Add .thtml to the file name and I get a window full of code... Does that make sense? Cheers BN --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP"

Re: need help with specifying a complex query

2006-10-24 Thread Preloader
Hmm, posted an answer ... but it does not appear?!?! --~--~-~--~~~---~--~~ 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, s

Re: AJAX TO-DO LIST ERROR

2006-10-24 Thread Eric
Javascript is undefined, which means you do not have the javascript helper var $helpers = array('Html', 'Javascript', 'Ajax'); In your App_controller or the controllers you have. Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: Custom ID attributes for form tags

2006-10-24 Thread Gonçalo Marrafa
Hi Nate, thanks for your reply. In the version of Cake i'm using (1.1.5 - i know i should have upgraded but i've changed a few things and haven't had the time to propagate those changes to a newer version) that doesn't happen. If i do what you suggest i get two ids: "UserPassword" and "ThePasswor

Re: Re: Planning on CakePHP future versions

2006-10-24 Thread Samuel DeVore
Nate is it possible to have deprecated methods through notices in debug mode but work in deployment for deprecated methods for a release or two before the scheduled removal. Given that there are more and more sites built on CakePHP that are in production? SD On 10/24/06, nate <[EMAIL PROTECTED]

Re: Custom ID attributes for form tags

2006-10-24 Thread nate
You just need to set the 'id' key of the $htmlAttributes array parameter. This will replace the ID that is generated by default, it does not make two. For example, if you do password('Contact/passwd', array('id' => 'ThePassword')); ?>, it will give you . --~--~-~--~~~--

Re: Planning on CakePHP future versions

2006-10-24 Thread nate
In what way did it break your apps? I'm curious because in the last release, we started removing deprecated methods, which will happen again in 1.2. The methods that were removed in the previous release had been deprecated for several release cycles, some even before 1.0 final. So, I guess the

Re: having empty entry in selecttag selected

2006-10-24 Thread Sonic Baker
You didn't have to extend the helper at all.Nate was saying that by default the select tag in the html helper will add a blank list item.I think you thought that he was trying to say that you needed an empty element in the data array which is not the case. Sonic --~--~-~--~~---

Custom ID attributes for form tags

2006-10-24 Thread Gonçalo Marrafa
Hi, bakers. The HTML helper automatically generates the id attributes for form related tags (inputs, radios, checkboxes, etc.). If i pass a value for id in the attributes array the generated tag will have two id attributes. Is there a way of overriding this behavior and providing a custom id att

Re: having empty entry in selecttag selected

2006-10-24 Thread [EMAIL PROTECTED]
Hi Davide, On Oct 24, 11:29 am, davide <[EMAIL PROTECTED]> wrote: > Why didn't you extend the HtmlHelper class directly and then reimplement > only the required method? So in all of your application, you have only > to include your helper and will have all the htmlHelper functionality That's a

Re: having empty entry in selecttag selected

2006-10-24 Thread davide
[EMAIL PROTECTED] wrote: > ... > Basically I copied the function selectTag and named it to myselectTag. > The only thing I had to do is to change the following line and mark it > as selected: > > if ($showEmpty == true) { >$select[] = sprintf($this->tags['selectempty'],'selected'); > } I've

Re: Planning on CakePHP future versions

2006-10-24 Thread Dr. Tarique Sani
On 10/23/06, gwoo <[EMAIL PROTECTED]> wrote: so for some time you should have no worries about dropping the cake core into any project and watchingit work. I would like to qualify the above with "watch it work most of the time" Last two minor versions of cake broke my Cheesecake app which was runn

Re: having empty entry in selecttag selected

2006-10-24 Thread [EMAIL PROTECTED]
Now it work's fine. That's what I did: I've created a helper in the app/views/helpers directory with the name myhtml.php. That file contains a class MyhtmlHelper which extends Helper. Basically I copied the function selectTag and named it to myselectTag. The only thing I had to do is to change t

  1   2   >