prefixes on cake identifiers to avoid naming collisions

2007-11-13 Thread keymaster
Anyone know if there is a particular reason cake does not use identifier prefixes to distinguish cake identifiers from application defined identifiers ? I noticed zend does this, at least for their class names. Haven't used zend in any detail so I don't know how deep their naming conventions go.

Re: ajax multiple div update

2007-11-13 Thread Dennis Nikiforov
But is there a way without modifying cake? The development is progressing quite quickly, so I like to keep up to date and updating a modified version is suiside. Dennis schneimi wrote: I needed this too but for a remoteTimer, but the code like yours didn't work and I also didn't find any

Re: searching in multiple related Models (tables)

2007-11-13 Thread R. Rajesh Jeba Anbiah
On Nov 12, 1:08 pm, senser <[EMAIL PROTECTED]> wrote: > @R. Rajesh Jeba Anbiah - thanks for this direction. It;s very useful, > nut I still can't figure out my wonder. > > Let's say we have two tables (models) - "A" & "B" with associations: > "A" hasMany "B" > "B" belongsTo "A" > And we are search

Re: To error404 or not?

2007-11-13 Thread Grant Cox
I guess it depends on the bots - whether they are smart enough to understand a "permanently moved" redirect (301). If they are, then you should be able to keep your redirect (nice for real users). If not then a 404 would be appropriate, hopefully they respect that. What should a normal user see

Re: String concatenation not working

2007-11-13 Thread Baz
What we have here is a failure to communicate. A. Here's your scheduling: http://www.remote-cron.com/ B. Here's your Backup AND email: http://www.dagondesign.com/articles/automatic-mysql-backup-script/ You use A to launch B. And be done with it. What's so hard about that? There is no coding or

Re: String concatenation not working

2007-11-13 Thread technicaltitch
You are absolutely right - this is a better solution than mine - thanks very much Baz! It does require learning how to send attachments (not very well supported within native PHP) and doesn't provide scheduling though, so rather than integrate two new modules I've stuck with my substandard approa

Re: To error404 or not?

2007-11-13 Thread MikeK
oops, wrong key - as I was saying... function action($id = null) { if (!$id) { flash an error msg redirect etc } Should those type of requests be rejected with a 404? I have numerous bots generating bad requests for links that were up for mere moments during debugging, and am now into bigtime pa

To error404 or not?

2007-11-13 Thread MikeK
In all the cake sample code I see things like: function action($id = null) { --~--~-~--~~~---~--~~ 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 unsub

Re: String concatenation not working

2007-11-13 Thread technicaltitch
Apologies Baz - I did try that link and it didn't work. Just tried again and it has this time - very interesting! Thanks and sorry for not trying those links again... On Nov 13, 9:51 pm, Baz <[EMAIL PROTECTED]> wrote: > I guess you missed my previous message. Read these: > > http://www.webdevelo

Re: String concatenation not working

2007-11-13 Thread technicaltitch
The problem was the setFlash function I'm using to debug! I've just given the method a view of its own rather than setFlash to a redirect, and the string outputs fine That never entered my mind...! So the final function: function backup() { $this->redirect('/articles

Re: Session problems

2007-11-13 Thread francky06l
Seems first_name is not in your session but $this->Session- >read('User.username') must be in. On Nov 13, 11:28 pm, Brian <[EMAIL PROTECTED]> wrote: > From within my controller if I print the entire session: > $this->Session->read() > It returns: > Array ( [Config] => Array ( [userAgent] => > c

Re: ajax multiple div update

2007-11-13 Thread schneimi
I needed this too but for a remoteTimer, but the code like yours didn't work and I also didn't find any support for that intention inside the cakePHP code. Because of that, I decided to hack a little bit into the code to get this working, it may not be the best idea to do that, but it helped me t

Re: Session problems

2007-11-13 Thread Brian
From within my controller if I print the entire session: $this->Session->read() It returns: Array ( [Config] => Array ( [userAgent] => cbc2e74d1e45abcccfdc85ca016f6426 [time] => 1194988565 [rand] => 1309992527 ) [User] => Array ( [id] => 1 [username] => brehg [password] => DEB8ABLE [email] => [E

Re: Session problems

2007-11-13 Thread Brian
Tried: print_r($this->Session->read('User.first_name')); and returns nothing On Nov 13, 4:06 pm, "Christopher E. Franklin, Sr." <[EMAIL PROTECTED]> wrote: > Whoops! I was wrong, you can access it via > $this->Session->read('User.first_name'); because the read function uses > Set::extra

Re: amperstand in the URL arguments

2007-11-13 Thread Chris Hartjes
On Nov 9, 2007 7:23 AM, Mazgalici <[EMAIL PROTECTED]> wrote: > > Hi folks, > > I the the following URL : test.com/eat%20&%20drinks/1/2 (tried also > test.com/eat&drinks/1/2) > > The CakePHP sees onlys the eat parameters istead of "eat & drinks" > > > Thanks in advance > Use the urlencode function

Re: Session problems

2007-11-13 Thread Christopher E. Franklin, Sr.
Whoops! I was wrong, you can access it via $this->Session- >read('User.first_name'); because the read function uses Set::extract to get the value out. On Nov 13, 1:05 pm, Brian <[EMAIL PROTECTED]> wrote: > >From within my controller if I print the entire session: > > $this->Session->read() > It r

Re: Session problems

2007-11-13 Thread Christopher E. Franklin, Sr.
>From the looks of it, looks like the while User array is in the Session. I don't know if you did this or not. If not, you have to actually write the key somewhere because, I don't think (I may be wrong) access it in it's current form. ex- $this->Session- >read('User.first_name'); I haven't actua

Re: what is wrong , how can I fix it ,thank you very much

2007-11-13 Thread hydra12
If you use debug() at all and have debugging on, you will get this error, too. On Nov 13, 1:42 pm, Gwoo <[EMAIL PROTECTED]> wrote: > your pagination component probably has some whitespace after the > closing tag ?>. --~--~-~--~~~---~--~~ You received this message

ajax multiple div update

2007-11-13 Thread wluigi
I try this old (nate's) code : // test.thtml link('Update 2 Div\'s', '/controller/test', array('update' => array('first', 'second'))); ?> div('first'); ?> This is the first div, it has the current time: divEnd('first'); ?> div('second'); ?> This is the second div, it s

Re: String concatenation not working

2007-11-13 Thread Baz
I guess you missed my previous message. Read these: http://www.webdevelopment2.com/automate-database-backup-webcron-cron-jobs-problem/ http://www.webdevelopment2.com/automate-mysql-database-backup-webcron-cron-jobs-problem-part-2/ First article tells you where to get FREE cron service... The next

Session problems

2007-11-13 Thread Brian
>From within my controller if I print the entire session: $this->Session->read() It returns: Array ( [Config] => Array ( [userAgent] => cbc2e74d1e45abcccfdc85ca016f6426 [time] => 1194988565 [rand] => 1309992527 ) [User] => Array ( [id] => 1 [username] => brehg [password] => DEB8ABLE [email] => [EM

Re: String concatenation not working

2007-11-13 Thread technicaltitch
Forgot to mention - I tried emailing the output of mysqldump, but shell_exec is disabled. What are these prewritten scripts/cron services? I can't find them... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: String concatenation not working

2007-11-13 Thread technicaltitch
Thanks hugely for all the great suggestions! The database is 400kb - if I var_dump the array I get each SQL line perfectly. I have looked at the vars seperately and each and every individual array entry works fine, a single insert stmnt works fine, I have managed to concatenate 2, but as soon as

Re: Validation question...

2007-11-13 Thread mbavio
thanks for your answer theman, but minLenght is not the solve to this problem... I´ve solved myself with the help of the IRC (tks kabturek!)... You cant put 'rule' => null and validate with 'required' and 'allowEmpty'. Proved. Thanks anyway. See u. Martin Bavio On Nov 13, 5:14 pm, theman <[EMA

Re: amperstand in the URL arguments

2007-11-13 Thread Mazgalici
Thanks for the reply.. I've tried with %26 but still is not working... On 9 Noi, 15:58, Marcin Jaworski <[EMAIL PROTECTED]> wrote: > Ampersand is a reserved char. You must url encode it to use it in URL. > Just replace & with %26 in the url. > > On 9 Lis, 13:23, Mazgalici <[EMAIL PROTECTED]> w

Re: Validation question...

2007-11-13 Thread theman
minLength is the key... see http://groups.google.ca/group/cake-php/browse_thread/thread/786da77a8cdfb124/ae2f6c903a367aa4?lnk=gst&q=minlength#ae2f6c903a367aa4 On Nov 13, 1:08 pm, mbavio <[EMAIL PROTECTED]> wrote: > Now I´ve been told in the IRC that using VALID_NOT_EMPTY is > deprecated, so I

Re: Validation question...

2007-11-13 Thread mbavio
Now I´ve been told in the IRC that using VALID_NOT_EMPTY is deprecated, so I have to use a validation array... The problem is that I cant make just a NOT_EMPTY rule, because it doesn´t exist! Or it does? My problem... 'login' => array( 'rule' => 'ruleName', 'required'

Re: blog tutorial not working with simple user authentification tutorial?

2007-11-13 Thread Gwoo
Try setting your Security.level to medium in core.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 group,

Re: what is wrong , how can I fix it ,thank you very much

2007-11-13 Thread Gwoo
your pagination component probably has some whitespace after the closing tag ?>. --~--~-~--~~~---~--~~ 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 un

Re: blog tutorial not working with simple user authentification tutorial?

2007-11-13 Thread [EMAIL PROTECTED]
I am having the same problem - i cant get the sesssions to work right, but i was just trying to add the user security to a little test app i am building. On Nov 12, 6:03 pm, L <[EMAIL PROTECTED]> wrote: > My CAKE_SECURITY is set to "medium", but I'm still redirected to the > login page. > So, my

what is wrong , how can I fix it ,thank you very much

2007-11-13 Thread linuxtyh
Warning (2): Cannot modify header information - headers already sent by (output started at /home/aidap5/public_html/tyh/chembay/app/ controllers/components/pagination.php:490) [CORE/cake/libs/controller/ controller.php, line 503] Context | Code $this = array("scaffold" => null, "name" =>

Re: Few cakephp projects on one website

2007-11-13 Thread jeffy
Thanks a lot. I will try this On Nov 13, 4:47 pm, "DJ Spark" <[EMAIL PROTECTED]> wrote: > You have both in the manual > http://manual.cakephp.org/chapter/installing > > put your webroot folder for each aplication in their apache folder, for > example > /home/youruser/website1.com > /home/your

Re: Newbie...really simple question

2007-11-13 Thread Chris Hartjes
On Nov 13, 2007 12:57 PM, butangphp <[EMAIL PROTECTED]> wrote: > > Well what I'm trying to do is forget about this table/database all > together...it was a simple example I was trying to do in order to > familiarize myself with cakephp, but I have since deleted all files > related to "Post" (the c

Re: Newbie...really simple question

2007-11-13 Thread Samuel DeVore
It's possible that there are somethings in your apps tmp folder that might be causing this make sure that tmp/caches/models tmp/caches/views and tmp/cache/persistent are empty and look to make sure that you don't have something in views/pages/ and you should be close to restarting. My guess i

Re: Newbie...really simple question

2007-11-13 Thread butangphp
Well what I'm trying to do is forget about this table/database all together...it was a simple example I was trying to do in order to familiarize myself with cakephp, but I have since deleted all files related to "Post" (the controller, model, views, sql table, etc.) However when I try and load loc

Re: Eclipse code completion in Views

2007-11-13 Thread schneimi
Hi Avairet, > - the "schneimi"'s method for models completion in controllers works > fine, but it's necessary to copy it in each controllers you create and > replace "model" by your model name... I've tried to put this in > AppController, but it doesn't work. Any ideas to add completion for > all

Re: Auth/ACL problem: "You are not authorized to access that location."

2007-11-13 Thread djiize
Thanks Ralph, but I knew that for CakePHP. I asked Jeff about its Acl plugin... Seb. On 13 nov, 17:58, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On the project page (http://cakeforge.org/projects/cakephp/) you can > click the little letter icon to Monitor that project. It'll email you > w

Auth and Cookies

2007-11-13 Thread Helio
Hello everyone, Anyone knows how to get the core Auth and Cookies (1.2) working together? How, for exemple, get a "remenber me" checkbox on the login form working... Thank you so much, Hélio --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Auth/ACL problem: "You are not authorized to access that location."

2007-11-13 Thread [EMAIL PROTECTED]
On the project page ( http://cakeforge.org/projects/cakephp/ ) you can click the little letter icon to Monitor that project. It'll email you when a new package is released. Watch your spam folder, I find my alerts sometimes end up in there. Ralph On Nov 13, 4:58 am, djiize <[EMAIL PROTECTED]>

Re: Eclipse code completion in Views

2007-11-13 Thread avairet
Hi everybody! Firstly, excuse me for my simple English... Then I tell you my own experience with PDT/Cake Code Completion. My config : Eclipse Europa 3.3 + PDT 1.0 + Cake 1.2 with advanced install/config("Cake core", "app dir" and "webroot dir" in three different paths) ) - the "voidstate" exam

Re: Newbie...really simple question

2007-11-13 Thread Samuel DeVore
and that you have permission to access that table with the db user you have set up in the database.php. Just because you can access a database doesn't always mean you have access to the tables. Sam D On 11/13/07, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > On Nov 13, 2007 11:17 AM, butangphp <

Re: Newbie...really simple question

2007-11-13 Thread Chris Hartjes
On Nov 13, 2007 11:17 AM, butangphp <[EMAIL PROTECTED]> wrote: > > I'm trying to create a new Cakephp application, however when I load up > "localhost/cake" it gives me the message > > "Missing Database Table > > No Database table for model Post (expected " posts"), create it > first." Posts is a

Newbie...really simple question

2007-11-13 Thread butangphp
I'm trying to create a new Cakephp application, however when I load up "localhost/cake" it gives me the message "Missing Database Table No Database table for model Post (expected " posts"), create it first." Posts is another application I previously made but deleted, and now I cannot get Cake t

Re: Disabling copy past function in a form

2007-11-13 Thread REY TUGADE
oh. sorry for my ingnorance though. thanks. ill try it then, :D On Nov 13, 2007 11:43 PM, Gonzalo Servat <[EMAIL PROTECTED]> wrote: > On Nov 13, 2007 11:19 AM, Rey Tugade <[EMAIL PROTECTED]> wrote: > > > > > Does anyone know how to disable the copy paste function? > > i mean to disable ctrl+v for

Re: Nightly builds?

2007-11-13 Thread Scronkey
Oh, I thought tempy may have meant 'temperamental' and was an indication of unstable code from the latest checkout. Not noticed it though as I only use svn --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP"

Re: Disabling copy past function in a form

2007-11-13 Thread Gonzalo Servat
On Nov 13, 2007 11:19 AM, Rey Tugade <[EMAIL PROTECTED]> wrote: > > Does anyone know how to disable the copy paste function? > i mean to disable ctrl+v for re-enter password in a sample > registration form. if possible that is. > > thank you. > > im quite fuzzy if this is possible. > This isn't r

Disabling copy past function in a form

2007-11-13 Thread Rey Tugade
Does anyone know how to disable the copy paste function? i mean to disable ctrl+v for re-enter password in a sample registration form. if possible that is. thank you. im quite fuzzy if this is possible. --~--~-~--~~~---~--~~ You received this message because you

Validation question...

2007-11-13 Thread mbavio
Hi, I´m reading the Cake´s Manual of 1.2 Version and I have a doubt... Are the followind ways of validate the same? 1)'login' => VALID_NOT_EMPTY, 2)'login' => array( 'rule' => 'ruleName', 'required' => true, 'allowEmpty' => false,

Re: Ajax submt not work if use in ajax-generated form

2007-11-13 Thread [EMAIL PROTECTED]
I have find another post with the same problem http://groups.google.com/group/cake-php/browse_thread/thread/968e732ce6ed8a03/f59a95e95fc8ca2c?lnk=gst&q=Ajax+submit+not+work#f59a95e95fc8ca2c On 13 Nov, 15:51, francky06l <[EMAIL PROTECTED]> wrote: > What you mean by "does not work" ? Do you see a

Re: Ajax submt not work if use in ajax-generated form

2007-11-13 Thread francky06l
What you mean by "does not work" ? Do you see a request or there not ajax request done ? Also what is the content of the "MyForm" after the first call ? On Nov 13, 12:17 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi > I have this problem ( I think that it is a cake bug ) > I have a div

Re: Few cakephp projects on one website

2007-11-13 Thread DJ Spark
You have both in the manual http://manual.cakephp.org/chapter/installing put your webroot folder for each aplication in their apache folder, for example /home/youruser/website1.com /home/youruser/website2.com suppose you create an application folder: /home/youruser/bin /home/youruser/bin/app

Re: Nightly builds?

2007-11-13 Thread Jon Bennett
> As in? how they are often 20 and 14 bytes respectively, eg, the archive is baulked! http://cakephp.org/downloads/index/nightly/1.2.x.x usually sorts itself out, and you can do an SVN update of the branch instead. jb -- jon bennett w: http://www.jben.net/ iChat (AIM): jbendotnet Skype: jo

Re: Nightly builds?

2007-11-13 Thread Scronkey
As in? On Nov 13, 10:28 pm, Mech7 <[EMAIL PROTECTED]> wrote: > Is it me or does anybody else get also tempy files with the nightly > builds lately ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group.

Re: Few cakephp projects on one website

2007-11-13 Thread [EMAIL PROTECTED]
Can ou make me an example about how is possible to keep main application in 'app' and other application in 'second_app'? Another thing if I have my system auth in main application and I would that only some users can use the second application? How can I do that? Many Thanks Marco On 13 Nov, 14:1

Re: Few cakephp projects on one website

2007-11-13 Thread jeffy
I know it's possible to keep main application in 'app' and other application in 'second_app', but what if they are written on different versions of cake? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" gr

Re: Newbie: how can I do this?

2007-11-13 Thread mbavio
Thanks for your answers guys... Baz, The solution you are giving to me is simply great! But I don´t understand one thing... Can I make this associations in Cake 1.2 if I don´t have the "Friends" model? Or sholud I use the plain SQL? Zen, What do you want to say with "Sometimes it's simply bett

Re: Schema generation

2007-11-13 Thread Gwoo
Enums will not be supported, and are not really supported in 1.2 anyway. We are also not going near YAML. Luckily, if you like that there are some other libraries available. You can generate snapshots of your database, which are like versions. But, if you are using svn you don't really need snaps

Nightly builds?

2007-11-13 Thread Mech7
Is it me or does anybody else get also tempy files with the nightly builds lately ? --~--~-~--~~~---~--~~ 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

Few cakephp projects on one website

2007-11-13 Thread jeffy
Hi Probably a stupid question, but I can't figure out an answer on it. It's interesting to me how to combine few additional cakephp projects. For example: there are helpdesk and newsletter scripts on cakephp. Installation of such projects to simple sites is pretty easy - just create database and

Re: Newbie: how can I do this?

2007-11-13 Thread Ricardo Valfreixo
Hello people. I agree with Baz. It's simply a question of Data Design. You should create a relationship table where you can map all relations. You could even add a new field and make diferent type os relationship (like buddies, family, coworkers, something like that). Sometimes it's simply better

Re: .htaccess problem

2007-11-13 Thread [EMAIL PROTECTED]
nops dear its not working and one more thing shop is my 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 fro

Newbie to AJAX and CakePHP - In Place Editors?

2007-11-13 Thread [EMAIL PROTECTED]
Hey guys, I've searched around but can only find very loosely described information on the Ajax helper (I'm using 1.2). I've been using CakePHP for about 2 weeks, and I'm not very good at it but see its potential! Basically, I currently have a site set up which is reading all its pages from a mys

Re: Missing database table trying to bake a model

2007-11-13 Thread Scronkey
I have found out why this was happening and with two very small adjustments in cake/console/libs/tasks/model.php I can successfully bake models in either the mysql or the firebird database. All the functionality is there and ready to go, it just appears it has yet to be 'turned on'. (using latest

Ajax submt not work if use in ajax-generated form

2007-11-13 Thread [EMAIL PROTECTED]
Hi I have this problem ( I think that it is a cake bug ) I have a div where I have a ajax form like this. submit('Modify', array( 'url' =>''/samecontroller/sameaction/",

Re: Auth/ACL problem: "You are not authorized to access that location."

2007-11-13 Thread djiize
Hi again I update my Cake install with the last SVN branch, and now it works like a charm. Thanks again for your work Is there any way to be warned when a new version is available? Seb. On Nov 13, 11:28 am, djiize <[EMAIL PROTECTED]> wrote: > Hi jeff > thanks for this plugin, it looks great on th

Re: Auth/ACL problem: "You are not authorized to access that location."

2007-11-13 Thread djiize
Hi jeff thanks for this plugin, it looks great on the demo but when I installed it in my app, it says Missing controller You are seeing this error because controller PagesController could not be found. It seems I should add some routes to redirect /admin/acl/aros to / plugins/acl/views/acl/adm

Re: Schema generation

2007-11-13 Thread Dr. Tarique Sani
Yes, Since the MySQL DBO driver does seem to handle enum - I would say it is the schema task script which needs to be tweaked. and not compare the entire enum(yes,no) but just enum Tarique On 11/13/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > This error was the reason for changing all e

Re: Routes and mod_rewrite

2007-11-13 Thread vlad
Ok, my question changed. I can do this with :param syntax. However, this doesn't seem to be working with dashes or anything else besides slashes. I think this is a known fact...was it addressed in 1.2? On Nov 13, 11:09 am, vlad <[EMAIL PROTECTED]> wrote: > Hello to all. > > I've read all that i

Re: Schema generation

2007-11-13 Thread [EMAIL PROTECTED]
This error was the reason for changing all enum to varchar in my project. The reason of error next: in DBO driver field searching based on string compare. And "enum('yes','no')" does not declare there. Really even enum does not declared as valid field. The same prblem with joelMoss migration util

Routes and mod_rewrite

2007-11-13 Thread vlad
Hello to all. I've read all that i could find on Cake Routes, but did not help me. Maybe someone here can, please :) I have to rewrite a website. I have some heavy links with a lot of words that need to be stripped out. e.g.: /Hotel__NAME-CITY,judetulDISTRICT.html needs to become /Hotel- NAME-CI

Re: String concatenation not working

2007-11-13 Thread maschoen
I know this might sound a little obvious, but what would you say the size of your database is in bytes of text? I only ask because if for example, your database had 100Gig, you certainly would not expect this to work, would you? It would seem that for a website that can be hosted for $11/month tha