Re: Infinite redirect when logout with AuthComponent

2008-06-16 Thread Marcelius
I see... I checked the api and there all build in components are extended from Object instead of Component. So changing the inheritence does make sence indeed. But why the existence of class Component I wonder? :-) On 15 jun, 22:46, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello I'm having

Re: How to change the argument separator for named params?

2008-06-16 Thread AD7six
On Jun 16, 1:57 am, Matt Huggins [EMAIL PROTECTED] wrote: For giggles, I also tried the following in my app_controller.php, and it didn't make a difference: Anything you try in the app controller is too late. Edit that:

paginate group members

2008-06-16 Thread doctor
I use acl aro to handle group and member. I want to paginate the group member. var $paginate = array( 'Aro' = array( 'fields' = array('Aro.model', 'Aro.foreign_key') 'limit' = 3, 'order' = 'Aro.foreign_key') ); I

Re: cant change document root on my hosting company

2008-06-16 Thread [EMAIL PROTECTED]
Shouldn't this be done in the .htaccess file? Check your settings and make sure apache has mod_rewrite enabled. Good luck Sean kroxelikrax wrote: Hi, Im new to cakePHP and i been constructing a page on my local computer, using MAMP. My site is working fine on my comp, but not on my

Upgrade Instructions ?

2008-06-16 Thread Andy232
Hi, my cakephp installation is about 3 years old. Now I want to install the latest cakephp version to be sure that there are no security holes. Are there any upgade instructions ? Do I have to change the db table structure ? I have no VERSION.TXT in my installation, but my basic.php file says:

Re: New server where strings get utf8 encoded before being saved to MySQL. Any hints for me?

2008-06-16 Thread [EMAIL PROTECTED]
Yeah, I got that the reason is linguistic in its origin. It is great when trying to search a mass of text. But when you try to do a matching search for an exact string it does complicate things a lot when you still think that = really means exactly equal. Doing WHERE username = 'myname' I (as a

Re: Custom url in paginate CakePHP 1.2

2008-06-16 Thread Petr Vytlačil
Super, thank you very much its what i looking for. But i want ask, how i can chache paginate separator. For example now i have this url: www.page.com/catalogue/seo_url_item/page:4 But i want url: www.page.com/catalogue/seo_url_item/4, www.domen.com/catalogue/seo_url_item/5, On 15

Re: Memcached in Cake 1.2

2008-06-16 Thread [EMAIL PROTECTED]
Is someone can help me? On 13 Giu, 16:17, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I would use memcached with Cake 1.2 In the manual I haven't found anything. I hope someone can help me. I have installed memcached (I can see it in phpinfo). In core.php I  have uncommented the line about

Re: How to change the argument separator for named params?

2008-06-16 Thread Matt Huggins
Okay, I've been going insane over this, and it turns out there's a bug in the core. I'm uploading a patch to trac now. On Jun 16, 1:26 am, AD7six [EMAIL PROTECTED] wrote: On Jun 16, 1:57 am, Matt Huggins [EMAIL PROTECTED] wrote: For giggles, I also tried the following in my

Using Html::addCrumb in a controller action

2008-06-16 Thread oleonav
I need to populate the breadcrumbs array from one or more controller actions. How can I do this? Any help? thanks, Olav Verhoef --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group,

Re: How to change the argument separator for named params?

2008-06-16 Thread Matt Huggins
And here's the ticket/fix: https://trac.cakephp.org/ticket/4923 I'm glad I'm not crazy, but now I lost like 3 days of work...now to make up for lost time! On Jun 16, 4:34 am, Matt Huggins [EMAIL PROTECTED] wrote: Okay, I've been going insane over this, and it turns out there's a bug in the

Re: Upgrade Instructions ?

2008-06-16 Thread Daniel Hofstetter
Hi Andy, my cakephp installation is about 3 years old. Now I want to install the latest cakephp version to be sure that there are no security holes. Are there any upgade instructions ? Do I have to change the db table structure ? I have no VERSION.TXT in my installation, but my basic.php

WARNING: Model del() doesn't consider conditions while deleting hasOne/hasMany associations

2008-06-16 Thread cakeFreak
Hey guys, I was working with the generic upload behavior, but any kind of polymorfic association is subject to the same threat. Basically I have the following in my, for example, news model:

Re: Custom url in paginate CakePHP 1.2

2008-06-16 Thread cakeFreak
Try to add a parameter in your router: Router::connect('/catalogue/*/:page', array('controller' = 'your_controller', 'action'='index')); or alternatively: Router::connect('/catalogue/(.+)/:page', array('controller' = 'your_controller', 'action'='index')); Dan

Re: Captcha reload problem, works in ff not in IE

2008-06-16 Thread cakeFreak
Do you load your captcha with ajax? IE7 catches ajax get requests!! Dan On 16 Giu, 00:48, bingo [EMAIL PROTECTED] wrote: Its difficult to say what the problem is without having access to code or webpage. However, I have compiled a list of issues that can cause IE7 to break but not firefox.

paginate problems RC1

2008-06-16 Thread leo
Call me a misery, but I seem to be having more problems with RC1 than I had with Beta. The following works as expected in Beta but invariably returns an empty set in RC1: $conditions = array(or=(array('edifici' = 'LIKE %'. $searchText.'%', 'adreca' = 'LIKE %'.$searchText.'%')));

Re: Ajax links having same random ID

2008-06-16 Thread dr. Hannibal Lecter
Actually, I ran into this problem too[1], after debugging with alerts inside prototype, I've discovered that the ajax helper is really generating the same IDs. I've ended up with my own IDs, but this seems like a ticket material, rand() should definitely be replaced with mt_rand() to solve the

Re: - Problem with Ajax and encoding

2008-06-16 Thread Webrickco
Thanks to Spark and AD7six for their kind help. I figured it out (big part of the problem was in my local httpd.conf file). Let me just make a summary so that everybody keep in mind when dealing with UTF-8 encoding: How to display Portuguese encoding or general UTF8 encoding in Cake or dynamic

Re: Looking for Cook up Web sites fast with CakePHP (PDF Version)

2008-06-16 Thread Marc MENDEZ
Sliv a écrit : try a search on scribd.com It was the first place I downloaded the old version I have. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Re: Captcha reload problem, works in ff not in IE

2008-06-16 Thread Ketan Shah
Well, My strongest (and I feel the correct) guess is that IE is caching the image. So a refresh request is not happening. You could try the following. 1) Set a 'back-dating' expires header for your captcha image. Also you could ask the browser not the cache by setting the appropriate header! OR

Re: WARNING: Model del() doesn't consider conditions while deleting hasOne/hasMany associations

2008-06-16 Thread cakeFreak
I just cheked out from the repos, and it seems that this issue has now been fixed in latest revision #7198 cheers guys Dan --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send

Seperate database for each customer

2008-06-16 Thread Mickiii
Hi, I am in the process of building and specific business administration system, where clients subscribe on the application. Initially I planned on giving each client their own database, and then by controlling on login, connecting each client to their individual database. This has worked fine

form tag disappear from html markup

2008-06-16 Thread kimu
I have this code which output the result of a search ?php $object_strings = array( 'articles' = 'articoli', 'pills' = 'pillole', 'previews' = 'anticipazioni', 'blogs' = 'post', 'videos' = 'video' ); $object_models = array( 'articles' = 'Article',

Re: Looking for Cook up Web sites fast with CakePHP (PDF Version)

2008-06-16 Thread leo
You could always google the title. That's how I found it. On Jun 16, 10:23 am, Marc MENDEZ [EMAIL PROTECTED] wrote: Sliv a écrit : try a search on scribd.com It was the first place I downloaded the old version I have. --~--~-~--~~~---~--~~ You received this

Paginator

2008-06-16 Thread teum
Hi, I have a page with a list of users and a form to apply a filter on that list. I want to paginate the list. The question is : is it possible to paginate an existing list which has already been filtered. I read a tutorial and it seems that you are forced to generate the list with the paginator

Re: Paginating Question

2008-06-16 Thread Kyle Decot
I can't seem to get it working. If you go to http://walksdemo.loraincounty.com/ and login with username: tester and password: tester and then go to the teams tab and then choose a team, and try and page through the comments, you'll see what I mean. I don't really know why it's doing this. I'm

Re: Looking for Cook up Web sites fast with CakePHP (PDF Version)

2008-06-16 Thread Marc MENDEZ
. and what did u think I did too before I asked for it in the forum , hummm ;) ? maybe the new release is too recent to be somewhere else than IBM website ? maybe everybody think there is no update and go on keeping the old one ? leo a écrit : You could always google the title. That's

How to extend CakePHP Debugger class

2008-06-16 Thread Rahul J
Hi, I am trying to extend Debugger class (cake/libs/debugger.php) in my app directory in similar way as AppModel/Controller. class AppDebugger extends Debugger I've even tried renaming the file debugger.php and app_debugger.php but without luck. Its not working! I guess its something to do

Ajax problem

2008-06-16 Thread kik
Hi, I have a problem with Ajax when I try to load new content. When I load new content into div using ajax and then I try to click on an ajax link placed into the same div I get an error Event.observe is not a function. I see that this is a common problem but still I was not able to find how to

Re: cant change document root on my hosting company

2008-06-16 Thread Esoteric
If you have mod_rewrite enabled and have uploaded app, cake, index.php, and .htaccess to your document root then it should just work, with this being said, since you are still having problems then you probably don't have mod_rewrite available to you. You will need to disable cake from thinking

Sharing tmp with other applications

2008-06-16 Thread acoustic_overdrive
I have three applications running in subfolders of a webserver and I now have to migrate to a new server. My server administrotor has told me that due to new security policies he wishes all the writable folders for all apps to be in one place so that he can give write access to that folder only

Re: paginate problems RC1

2008-06-16 Thread Mariano Iglesias
Please read the release notes regarding LIKE and other SQL operators. That should be: $conditions = array(or=(array( 'edifici LIKE %?%' = $searchText, 'adreca LIKE %?%' = $searchText ))); On Mon, 2008-06-16 at 03:07 -0700, leo wrote: Call me a misery, but I seem to be having

Re: paginate problems RC1

2008-06-16 Thread leo
Thanks, I'll try that. On Jun 16, 5:19 pm, Mariano Iglesias [EMAIL PROTECTED] wrote: Please read the release notes regarding LIKE and other SQL operators. That should be: $conditions = array(or=(array(         'edifici LIKE %?%' = $searchText,         'adreca LIKE %?%' = $searchText )));

Re: paginate problems RC1

2008-06-16 Thread leo
Where do I find the release notes? Daft question I know, but I can't find any for the current release. On Jun 16, 5:19 pm, Mariano Iglesias [EMAIL PROTECTED] wrote: Please read the release notes regarding LIKE and other SQL operators. That should be: $conditions = array(or=(array(        

Re: Sharing tmp with other applications

2008-06-16 Thread acoustic_overdrive
Actually I tried redefining it in bootstrap.php and webroot/index.php and it's already defined elsewhere by then so I can't change it in either of those. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group.

Re: Paginating Question

2008-06-16 Thread leo
works fine for me! On Jun 16, 4:21 pm, Kyle Decot [EMAIL PROTECTED] wrote: I can't seem to get it working. If you go tohttp://walksdemo.loraincounty.com/ and login with username: tester and password: tester and then go to the teams tab and then choose a team, and try and page through the

Re: Seperate database for each customer

2008-06-16 Thread francky06l
If you use a client_id in the tables you could maybe add this filter in beforeFind in app_model ... just a hint. On Jun 16, 2:33 pm, Mickiii [EMAIL PROTECTED] wrote: Hi, I am in the process of building and specific business administration system, where clients subscribe on the application.

Re: Sharing tmp with other applications

2008-06-16 Thread DaveMahon
Really? When I add if (!defined('TMP')) echo 'Not set!'; to webroot/index.php, the text appears. On Jun 16, 11:48 am, acoustic_overdrive [EMAIL PROTECTED] wrote: Actually I tried redefining it in bootstrap.php and webroot/index.php and it's already defined elsewhere by then so I can't change

Re: Paginating Question

2008-06-16 Thread Kyle Decot
When I go to the next set of notes, it updates the div and paginates the notes but I get another whole page inside my div. Here's a screenshot. Any ideas? http://www.flickr.com/photos/[EMAIL PROTECTED]/2583838485/ --~--~-~--~~~---~--~~ You received this message

Re: Sharing tmp with other applications

2008-06-16 Thread acoustic_overdrive
Hi Dave thanks for checking. I'm not using mod_rewrite, and I've just realised this means that it will actually get its folder structure set up by the index.php in the root of the installation, not the bootstrap or index.php in webroot. Which also means I think I've solved my problem because

Re: Paginating Question

2008-06-16 Thread leo
looks to me like you have a forward slash too many or too few in the controller spec in the link for the next page. On Jun 16, 6:50 pm, Kyle Decot [EMAIL PROTECTED] wrote: When I go to the next set of notes, it updates the div and paginates the notes but I get another whole page inside my

Re: ACL inherit access not working

2008-06-16 Thread elGEoRgE
RC1 nightly 14.06.2008. I also had this problem in RC1 HEAD revision. PHP 5 MySQL 5 SO: Ubuntu 8.04 On Jun 14, 6:42 pm, Christian Winther [EMAIL PROTECTED] wrote: RC1 / SVN HEAD of cake1.2 - and what dbo type? -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL

Re: How to extend CakePHP Debugger class

2008-06-16 Thread AD7six
On Jun 16, 4:06 pm, Rahul J [EMAIL PROTECTED] wrote: Hi, I am trying to extend Debugger class (cake/libs/debugger.php) in my app directory in similar way as AppModel/Controller. class AppDebugger extends Debugger I've even tried renaming the file debugger.php and app_debugger.php but

1.2 testing

2008-06-16 Thread Stupergenius
Hello, I am running a production environment setup, ie I have my webroot in one folder, libs in another, and my project in another. I am having trouble running tests through the localhost/test.php method. Browsing to this page brings me to the default congratulations, you've setup cakephp

Re: duplicate URL's Getting Indexed

2008-06-16 Thread Kyle Decot
I'm not sure what you mean. I didn't change anything in my core.php file except I changed debug to 0. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to

Using bootstrap to load app_controller

2008-06-16 Thread Corie
I'm using the bootstrap file to load up default controllers and other stuff. In app/config/bootstrap.php $modelPaths = array(CAKE_CORE_INCLUDE_PATH . DS . 'shares' . DS . 'models' . DS); $behaviorPaths = array(CAKE_CORE_INCLUDE_PATH . DS . 'shares' . DS . 'models' . DS . 'behaviors' . DS);

Re: Using bootstrap to load app_controller

2008-06-16 Thread Corie
BTW, if you're testing this, make sure to delete your tmp/cache/ persistent/ files. -Corie On Jun 16, 3:45 pm, Corie [EMAIL PROTECTED] wrote: I'm using the bootstrap file to load up default controllers and other stuff. In app/config/bootstrap.php $modelPaths = array(CAKE_CORE_INCLUDE_PATH

Re: Using bootstrap to load app_controller

2008-06-16 Thread Chris Hartjes
On Mon, Jun 16, 2008 at 3:45 PM, Corie [EMAIL PROTECTED] wrote: I'm using the bootstrap file to load up default controllers and other stuff. Why would you do it this way when none of the examples out there do anything remotely similar to this. -- Chris Hartjes Internet Loudmouth Motto for

Re: Using bootstrap to load app_controller

2008-06-16 Thread Corie
I've not found any examples. What would you recommend as a better way to share models, controllers, and views between multiple sites? -Corie On Jun 16, 3:59 pm, Chris Hartjes [EMAIL PROTECTED] wrote: On Mon, Jun 16, 2008 at 3:45 PM, Corie [EMAIL PROTECTED] wrote: I'm using the bootstrap

Re: Using bootstrap to load app_controller

2008-06-16 Thread Chris Hartjes
On Mon, Jun 16, 2008 at 4:11 PM, Corie [EMAIL PROTECTED] wrote: I've not found any examples. What would you recommend as a better way to share models, controllers, and views between multiple sites? -Corie Having never done that (i.e. sharing models, controllers and views between multiple

Re: Using bootstrap to load app_controller

2008-06-16 Thread Corie
I build a lot of small web sites and most of them use the same type of controllers so I'd like to be able to have one set of these to update instead of 20 to update every time I make a change. Maybe plugins would be another route to go, but that would require having to update all the sites for

Re: Using bootstrap to load app_controller

2008-06-16 Thread Chris Hartjes
On Mon, Jun 16, 2008 at 4:26 PM, Corie [EMAIL PROTECTED] wrote: I build a lot of small web sites and most of them use the same type of controllers so I'd like to be able to have one set of these to update instead of 20 to update every time I make a change. Maybe plugins would be another

Re: Using bootstrap to load app_controller

2008-06-16 Thread Samuel DeVore
ail.com wrote: I build a lot of small web sites and most of them use the same type of controllers so I'd like to be able to have one set of these to update instead of 20 to update every time I make a change. Maybe plugins would be another route to go, but that would require having to update

Re: Using bootstrap to load app_controller

2008-06-16 Thread Chris Hartjes
On Mon, Jun 16, 2008 at 4:45 PM, Samuel DeVore [EMAIL PROTECTED] wrote: It is documented in the manual http://manual.cakephp.org/view/32/installation#advanced-installation-35 Thanks for pointing that out, Sam. -- Chris Hartjes Internet Loudmouth Motto for 2008: Moving from herding elephants

Re: Using bootstrap to load app_controller

2008-06-16 Thread Corie
This is precisely what I've done. I just can't get the app_controller shared if I ever want to use a different local app_controller. Could I do something like: if( file_exists( APP_DIR . DS . 'app_controller.php') ) { use it } else { use the shared one } Would it just need to be

RE: Using bootstrap to load app_controller

2008-06-16 Thread Paul R. Zwiers
I use a repository kind of thingy :-) I have some local sites running on my development machine which are used to create standard components (components in this case being models/controllers/views which are basically standards for other [production] sites). These are never to be changed on

include model data in other views?

2008-06-16 Thread steve
I am brand new to Cake and am trying to figure out what probably is a very simple problem. I have a News and Events page which has a model and controller spitting out all the news from the database, but I also have a separate static page stored in the pages directory that has mostly static

Re: Using bootstrap to load app_controller

2008-06-16 Thread Samuel DeVore
On Mon, Jun 16, 2008 at 1:54 PM, Corie [EMAIL PROTECTED] wrote: This is precisely what I've done. I just can't get the app_controller shared if I ever want to use a different local app_controller. Could I do something like: if( file_exists( APP_DIR . DS . 'app_controller.php') ) { use

Re: ACL inherit access not working

2008-06-16 Thread aranworld
I don't see where you created the ACO node with the alias 'access'. You must create an aco node for every possible node that will be requested. A check on a non-existant node will return FALSE, and give you a result of not allowed. On Jun 16, 9:06 am, elGEoRgE [EMAIL PROTECTED] wrote: RC1

Re: 1.2 testing

2008-06-16 Thread Joel Perras
Might be an obvious question, but have you downloaded and installed SimpleTest into app/vendors ? -Joel. On Jun 16, 2:42 pm, Stupergenius [EMAIL PROTECTED] wrote: Hello, I am running a production environment setup, ie I have my webroot in one folder, libs in another, and my project in

Javascript Form Coding Needed

2008-06-16 Thread rpeterson
Hey all, We need someone to code 3 interactive forms, and a gallery using lightbox (already installed) on an existing CakePHP site we have created for a client. We simply need someone to code it using JQuery and HTML, CSS styling will be done in house. We wil privide design, form layout and any

Form validation - multiple forms and multiple tables used per model

2008-06-16 Thread koala kid
Hi, I am using one model to process and save the data for multiple forms. How do I run cake's validation methods on each form separately. At the moment you appear to define your rules in $validate outside of any functions/methods. How do I run it from within a method. In addition as my model

2 Models 1 Form Being Blackholed

2008-06-16 Thread kwentworth
Hello, I have a form for editing articles, which hasMany images. Everything works fine until I try to use a multi record approach to images (e.g. Image.0.id, Image.1.id, Image.$id.src). Once I put in the Model. $id.fields using the form helper and try to submit I get blackholed. Why might this

Bug in core? ContainableBehavior causing excessive SELECT's

2008-06-16 Thread Matt Huggins
I'm developing a site in which users create profiles (Profile model). These profiles have a significant number of 'belongsTo' bindings. When I create a standard find('first') call on the model, it performs a single SELECT statement to retrieve the model data and each associated belongsTo model

Custom Model Association Problems

2008-06-16 Thread benjam
I have the following tables with the following fields territories - id zip_start zip_end offices - id zipcode and I want to associate via hasMany and belongsTo on the following conditions (territories hasMany offices) and (offices belongsTo

CPMF com novo nome... é circo mesmo

2008-06-16 Thread Renan Gonçalves
http://charges.uol.com.br/2008/06/13/ratinhos-deputados-o-circo/ -- Renan Gonçalves - Software Engineer Cell Phone: +55 11 8633 6018 MSN: [EMAIL PROTECTED] São Paulo - SP/Brazil --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: file_get_contents() to get response from Cake app?

2008-06-16 Thread silverquick
This may be really dumb, and it doesn't seem entirely consistent with the symptoms you're getting, but I thought it might be worth mentioning. Of course you probably know ?php echo false; ? will output nothing. Could this essentially be what's happening? Just on the off-chance. On May 13,

Re: include model data in other views?

2008-06-16 Thread Daniel Hofstetter
Hi Steve, I am brand new to Cake and am trying to figure out what probably is a very simple problem. I have a News and Events page which has a model and controller spitting out all the news from the database, but I also have a separate static page stored in the pages directory that has

Models are not committed :)

2008-06-16 Thread Nirav Mehta
Hi guys, I've just started working with CakePHP a month ago, and although I seem to have a good grip over it, there are some things that just boggle my mind at times. The latest: I have a model for Publications that is associated to People (authors of the publication) through a bridge table

Re: Javascript Form Coding Needed

2008-06-16 Thread chandru k
Hi, First thing is first can u send ur design. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group,

Re: Models are not committed :)

2008-06-16 Thread Dr. Tarique Sani
On Tue, Jun 17, 2008 at 9:24 AM, Nirav Mehta [EMAIL PROTECTED] wrote: If there are consecutive publications with the same author who is not in the database, the find statement executes the first time and returns no record. So a record is created for that author. But for the next record,