Re: fileinfo help needed

2008-01-23 Thread Samuel DeVore
On Jan 23, 2008 1:48 PM, bob [EMAIL PROTECTED] wrote: what OS are you guys using? mac os x (10.3, 10.4, 10.5) for various installs installs on shared servers running linux (who knows what flavors) a solaris box my iphone (no just kidding) --~--~-~--~~~---~--~~

Re: error when creating aco | aro with cake console cake 1.2

2008-01-23 Thread cmbg
Nevermind, I added use('string'); to the cake/libs/set.php file On Jan 23, 3:36 pm, cmbg [EMAIL PROTECTED] wrote: I get this problem as well. Was this reported? Did you get a workaround? On Jan 4, 5:32 am, polutan [EMAIL PROTECTED] wrote: I got this error when i run this command :

Re: Any doc about DB adapter interface?

2008-01-23 Thread Marcin Domanski
Hi 1. I believe that I am not the first one having this problem and I would rather avoid reinventing the wheel. Are you aware of some pure PHP DB which can be used with Cake? Not exactly pure php but try sqlite - its a db in a file, thre is a posibility that your webserver has support

Debugger stuck in a loop

2008-01-23 Thread jonknee
I recently upgraded to v1.2 and have been playing around to get Smarty working (which is how I was using Cake 1.1). It's going fine except when I call a variable that doesn't exist... Smarty throws the 'Undefined index' error that should be no problem (and in most cases not be seen), but Cake's

Re: Debugger stuck in a loop

2008-01-23 Thread [EMAIL PROTECTED]
I was having a similar problem with the cake debugger running out of memory on an error (in this case it was an undefined variable in the view). I just commented out the offending lines of code in /cake/libs/ debugger.php. The problem was a call to the get_class() function and it looks like it's

Re: Debugger stuck in a loop

2008-01-23 Thread [EMAIL PROTECTED]
here is my previous post: http://groups.google.com/group/cake-php/browse_thread/thread/48c6a57a5427a546/4169d2729f0d71b4#4169d2729f0d71b4 On Jan 23, 2:40 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I was having a similar problem with the cake debugger running out of memory on an error (in

Re: Debugger stuck in a loop

2008-01-23 Thread [EMAIL PROTECTED]
actually, after re-reading my post I think you're seeing problems with the same function that I am (the __object($var) function, not the get_class() function as I stated above) try commenting out the same lines of code from my earlier post: //causes some sort of overflow

Re: Helper - password

2008-01-23 Thread [EMAIL PROTECTED]
Sorry, there is no helper called password (in cake at least). Protecting pages can be handled by the AuthComponent in a simple setup. Check out one of these nice tutorials on how to get the new Auth in 1.2 going:

Re: Accessing Acl from a Helper

2008-01-23 Thread [EMAIL PROTECTED]
It is a component and thus only available to cotrollers. What I do is I set the authentication data I need in my views from the beforeFilter of AppController. if ( isset($this-Auth) ) { // do all the normal auth setups first. Then... $this-set('auth', $this-Auth-user() ); } Then I can

Re: Problem with latest beta on Media Temple

2008-01-23 Thread Baz
Make sure all the folders and sub folders and files in TMP folder are writable and delete everything This happened to me when I transferred hosts. I did that and was up and running in 3 minutes (I didn't shell so I couldn't set the 777 recursively ;) ). Good luck. -- Kevin Lloyd 3HN Designs

Re: Helper - password

2008-01-23 Thread justradar
thanks for the links, i'll check those out. maybe i had my terminology wrong ... on this page http://manual.cakephp.org/chapter/helpers if you scroll down and look for password; password * string $fieldName * array $htmlAttributes * boolean $return = false i'm very likely

Re: Helper - password

2008-01-23 Thread Chris Hartjes
On Jan 23, 2008 5:12 PM, justradar [EMAIL PROTECTED] wrote: thanks for the links, i'll check those out. maybe i had my terminology wrong ... on this page http://manual.cakephp.org/chapter/helpers if you scroll down and look for password; password * string $fieldName * array

Re: 'required' field in form view

2008-01-23 Thread francky06l
you can set the class of the div : $form-input('Creditcard.', array('div' = array('class' = 'required'))); hth On Jan 23, 7:28 pm, Greg Baker [EMAIL PROTECTED] wrote: I have two models: Application CreditCard... The application requires a user to input their credit card information, so

Re: Why appears this error (Undefined offset)?

2008-01-23 Thread francky06l
There is a problem in one of your related model relations or relations of the related models. Check about 'fields' options and maybe className etc ... A way to search would be to remove the relation on this model one after the other, until error disappear ..That will give you which model to

Problem with Delete

2008-01-23 Thread villas
Cake 1.2 beta WindowsXP FirebirdSQL Code baked I notice on deleting a record I get a SQL error e.g. DELETE CURRENCY FROM CURRENCIES CURRENCY WHERE CURRENCY.ID ... Is this SQL correct -- why does the second word exist? (CURRENCY), shouldn't it just be Delete From CURRENCIES I notice that

Redirect leaves old URL

2008-01-23 Thread Daniel Moore
Hey, I'm moderately new with CakePHP, but I have this issue where my redirect leaves the old URL in the browser. [code] //messages_controller.php function post() { // ... Some Stuff // Redirect back to McGriff messages $this-redirect(/); } [/code] Yet the browser still shows:

Re: Debugger stuck in a loop

2008-01-23 Thread jonknee
Great, thanks for the tip. This is almost certainly a bug since the debugger should never get stuck in an infinite loop. If I take the __object() call out of the 'object' case, everything works fine (even with get_class() intact). I just wonder what the intended behavior is, the documentation

Re: Problem with Delete

2008-01-23 Thread [EMAIL PROTECTED]
this is not correct SQL, it should be: DELETE CURRENCY FROM CURRENCIES AS CURRENCY WHERE CURRENCY.ID so I'm guessing the line in dbo_source.php should be: return DELETE {$alias} FROM {$table} {$this-alias} AS {$alias} {$joins} {$conditions}; Does this fix the problem as well? If so, you should

problems generating a custom 404

2008-01-23 Thread [EMAIL PROTECTED]
Hi, first, I would like to say that I posted this message to a forum that tried to send it here, and once I realized that's what it was doing, I just joined here myself. I apologize if it then succeeds in sending it and there is a double post. Now, onto the actual code problem. Some brief config

Scaffolding Views issue - Cake 1.2.0.6311-beta

2008-01-23 Thread Jolyon
I thought I would notify the community of a bug, fix and issues regarding automatic Cake scaffolding of views and editing scaffold views. This mostly pertains an incorrectly documented view- scaffolding pathing issue within this beta. The documentation at http://tempdocs.cakephp.org/#TOC107815

Re: uuid does not work in $html-link (1.2)

2008-01-23 Thread rogwei
Thanks Renan, All three of those suggestions work. This also works: $this-set('user', $this-User-find(id='$id')); I didn't realize I had to use SQL syntax. So, I guess it was pilot error. Thanks again. Roger On Jan 23, 11:00 am, Renan Gonçalves [EMAIL PROTECTED] wrote: Try it:

Re: Redirect leaves old URL

2008-01-23 Thread [EMAIL PROTECTED]
huh, that's really odd, it looks good to me. Maybe it's a facebook thing. Have you tried it on a different server? Also, what happens if you use $this-redirect(/messages/)? I think the url routing is all handled in /webroot/index.php so maybe it doesn't like redirecting to a shallower path? Dave

Moved CakePHP 1.2.x from unix to windows, weird directory problem?

2008-01-23 Thread Louie Miranda
require() [http://php.net/function.require]: Unable to access D:\/Web/ WWW_Root/adminpage2/app/controllers/users_controller.php [CORE\cake \basics.php, line 393] Warning (2): require(/Web/WWW_Root/adminpage2/app/controllers/ users_controller.php) [http://php.net/function.require]: failed to open

Re: problems generating a custom 404

2008-01-23 Thread rtconner
not sure if this is the best way.. but it is *a* solution. just put this in app/error.php ?php class AppError extends ErrorHandler { function error404($params) { header('location: http://new404url.com'); exit; } } --~--~-~--~~~---~--~~ You received

Re: Moved CakePHP 1.2.x from unix to windows, weird directory problem?

2008-01-23 Thread rtconner
It's stored in cakes cache. You gotta go through your tmp directory and delete all the files in it. But don't delete the folders because cake won't re-create the folders, but if the folders are missing cake won't work properly. --~--~-~--~~~---~--~~ You received

Re: Auto-Magic in Formhelper

2008-01-23 Thread ProFire
Yup! I have submited an enhancement ticket on this! On Jan 23, 11:30 pm, Baz [EMAIL PROTECTED] wrote: trac.cakephp.org Let's get the fix in. On Jan 23, 2008 4:28 AM, grigri [EMAIL PROTECTED] wrote: Well, it's not a bug per-se, perhaps an oversight? Anyway, there's a spot of code in

15 minute blog tutorial

2008-01-23 Thread justradar
i've successfully worked thru the blog tutorial. great. now i'm altering it ... and having a little trouble ... instead of having this blog be on the homepage ... as the tutorial teaches $Route-connect ('/', array('controller'='posts', 'action'='index')); i'd rather insert it into a views /

Re: problems with cake and swfupload

2008-01-23 Thread b logica
On Jan 23, 2008 7:40 AM, Novice Programmer [EMAIL PROTECTED] wrote: I am running on a shared server.. so /etc/logs is not accesible to me. dont know if cake also makes some log or some thing like that some where? Cake's logging mechanism works like so (in your controller): // writes to

Re: CSS/Javascript and Images Problem

2008-01-23 Thread b logica
On Jan 23, 2008 2:25 AM, AD7six [EMAIL PROTECTED] wrote: On Jan 23, 6:28 am, Rashid [EMAIL PROTECTED] wrote: Dear All, I am facing a problem regarding CSS/Javascript and Images. What I have done is that, I have a layout, in which I am including header, menu, and footer elements.

Re: application falls

2008-01-23 Thread b logica
On Jan 22, 2008 6:01 AM, galem [EMAIL PROTECTED] wrote: First of all, sorry for my english! Has written the appendix on cakePHP. Have established on a hosting. There were problems: periodically the appendix falls with mistake Warning: require(cake/bootstrap.php) [function.require]: failed

Re: fileinfo help needed

2008-01-23 Thread b logica
On Jan 23, 2008 3:38 AM, bob [EMAIL PROTECTED] wrote: Here is something interesting: 1) if i have the following: $handle = finfo_open(FILEINFO_MIME); The output i get is finfo_open() [function.finfo-open]: Failed to load magic database at '(null)'. 2) if i have the following:

Re: Moved CakePHP 1.2.x from unix to windows, weird directory problem?

2008-01-23 Thread Louie Miranda
Thanks a lot! I deleted some files on app/tmp/cache - models - persistent - views It is now working again! On Jan 24, 2008 10:55 AM, rtconner [EMAIL PROTECTED] wrote: It's stored in cakes cache. You gotta go through your tmp directory and delete all the files in it. But don't delete the

Re: fileinfo help needed

2008-01-23 Thread bob
Just magic.mime On Jan 23, 2008 7:46 PM, b logica [EMAIL PROTECTED] wrote: On Jan 23, 2008 3:38 AM, bob [EMAIL PROTECTED] wrote: Here is something interesting: 1) if i have the following: $handle = finfo_open(FILEINFO_MIME); The output i get is finfo_open()

Re: 15 minute blog tutorial

2008-01-23 Thread Sam Sherlock
Router::connect('/', array('controller' = 'pages', 'action' = 'display', 'home')); On 24/01/2008, justradar [EMAIL PROTECTED] wrote: i've successfully worked thru the blog tutorial. great. now i'm altering it ... and having a little trouble ... instead of having this blog be on the

Re: 15 minute blog tutorial

2008-01-23 Thread Sam Sherlock
multiple roots defined yep. There are all manor of things you can do with routes :) On 24/01/2008, justradar [EMAIL PROTECTED] wrote: so is it normal to have multiple router::connect... statements if you want to insert it (what your connecting) in different pages? thanks for the help

Re: 15 minute blog tutorial

2008-01-23 Thread justradar
so is it normal to have multiple router::connect... statements if you want to insert it (what your connecting) in different pages? thanks for the help --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group.

join

2008-01-23 Thread bob
I have the tables lists and categories and lists hasMany categories. How do i create a join statement that finds all lists in a specific category? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To

Re: 15 minute blog tutorial

2008-01-23 Thread justradar
are you supposed to use routes to define which page uses which template?? There are all manor of things you can do with routes --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Cake PHP group. To post to this

Re: Inserting secure urls or actions

2008-01-23 Thread francky06l
You can use .htaccess to force an https connection for the desired url's. On Jan 23, 6:34 pm, vb13 [EMAIL PROTECTED] wrote: Hi all, I am struggling with the following (I hope simple) issue in 1.2 I have a login form that has to post via https. I would like to use cake controller/action

Re: 15 minute blog tutorial

2008-01-23 Thread Sam Sherlock
I think the answer to that would be no. Perhaps a more experienced baker may pitch in if I get this wrong:- routes define how the url is transposed into controller and action pairs; possibly with params too. I have seen examples of date based routes. see section Section 3 of the following

<    1   2