Re: Undefined property: View::$Js

2010-11-21 Thread rogwei
I am sofa king we todd ed. I declared the the JsHelper in the controller, but the controller is not called for the home page. When I created an AppController and declared the JsHelper in it, the home works fine. Thanks for you patience. Pilot error. On Nov 21, 9:26 pm, rogwei wrote: > That

Re: Undefined property: View::$Js

2010-11-21 Thread rogwei
That is the only controller in the app. On Nov 21, 8:08 pm, huoxito wrote: > check if you're not overwriting the helper in any other controller, > it's weird, never had this kind of problem. > > On 22 nov, 01:18, rogwei wrote: > > > > > > > > &

Re: Undefined property: View::$Js

2010-11-21 Thread rogwei
Yes, I did. On Nov 21, 6:58 pm, huoxito wrote: > Hey rogwel did you declare this line > > var $helpers = array('Js' => 'Jquery'); > > in your app_controller? > > On 21 nov, 23:16, rogwei wrote: > > > Declare the helper in the controller: >

Re: JS helper

2010-11-21 Thread rogwei
You are not alone. I just posted this. http://groups.google.com/group/cake-php/browse_thread/thread/08b7b0da95bac850# On Nov 21, 12:48 pm, huoxito wrote: > I've stopped one more time again to try to understand and use the Js > helper for ajax requests but it seems I just cant get it, and still >

Undefined property: View::$Js

2010-11-21 Thread rogwei
This must be a very basic question, but I don't see the solution anywhere. One person raised the question on CakePHP Qs but it was not answered. I am trying to set up the Js helper but am getting the subject error after following the setup in the manual. The following summarizes my setup. Download

Re: mysql connection refused

2010-11-15 Thread rogwei
L of > course). > > Thus try using 127.0.0.1 for MySQL hostname. > > Best regards, > Anatoli > > On Nov 12, 11:56 pm, rogwei wrote: > > > > > > > > > The subject search phrase returns 0 items in this group which > > surprises me a little,

mysql connection refused

2010-11-12 Thread rogwei
The subject search phrase returns 0 items in this group which surprises me a little, and google isn't. Anyway, I upgraded my DB server Ubuntu 9.10 to 10.04 LTS, and now when I try to access my application I get the following warning and a missing database table error. One factoid, I CAN connect wit

Re: delete session data

2010-09-11 Thread rogwei
Wilhelm, thanks for your time and attention. You were correct. Deleting 'Session.cookie' did the trick. On Sep 11, 8:50 am, rogwei wrote: > I include CookieComponent in app_controller.php and have it > configured, but as of yet, I am not using it. I mainly incorporated it >

Re: delete session data

2010-09-11 Thread rogwei
solve your problem. > > As a side note, I see that you are calling your variable "cookie", are > you using cookies in you site as well? > > Regards > Wilhelm > > On Sep 11, 6:58 am, rogwei wrote: > > > > > More... > > > Tested on local MA

Re: delete session data

2010-09-10 Thread rogwei
More... Tested on local MAMP platform. Also tested on remote Debian LAMP platform. Browsers tested... chrome on Mac and PC firefox on Mac On Sep 10, 9:53 pm, rogwei wrote: > BTW, I am using Auth and ACLs, and Session.save is set to 'php'. > > On Sep 10, 9:46 pm, rogwei wrot

Re: delete session data

2010-09-10 Thread rogwei
BTW, I am using Auth and ACLs, and Session.save is set to 'php'. On Sep 10, 9:46 pm, rogwei wrote: > I have searched this forum for 'delete session' and the cakeQs forum > for the same. I cannot find the answer. A similar post in June had no > replies. I am a

delete session data

2010-09-10 Thread rogwei
I have searched this forum for 'delete session' and the cakeQs forum for the same. I cannot find the answer. A similar post in June had no replies. I am about to blow a gasket! Please somebody tell me how to delete the session data. If users can drop into my app from history or bookmarks with data

missing controller in wamp advanced installation

2010-08-29 Thread rogwei
Apologies if this has already been discussed in the group, but I could not find it. I have an advanced installation on Windows running wamp, which I tested first with the app folder containing webroot at the document root and the cake libraries above the document root. The initial test setup worked

Re: nice new API layout

2009-01-29 Thread rogwei
Where can we get the source for the previous version? On Jan 28, 10:03 am, Gwoo wrote: > Api Generator is open source. Feel free to fork the project and add > the features you want to see. > > http://thechaw.com/api_generator --~--~-~--~~~---~--~~ You received thi

Re: nice new API layout

2009-01-28 Thread rogwei
ummm, not exactly. In some (eg AuthComponent) you have to scroll down past the property list to get to the method summary. In the old API you got the alphabetized list of member links first, and you could jump from there directly to the member in question. While this layout looks snazzy, it is not

Re: Which editor for Mac OS X?

2009-01-25 Thread rogwei
Maybe I'm missing something about Eclipse, but when I create a project for CakePHP (which seems to be a requirement in this discussion) I get inordinate bloat in the project explorer. Is there a workaround for this? How do people tolerate such a mess, given that one of the basic things you use an

Re: Which editor for Mac OS X?

2009-01-24 Thread rogwei
Emacs is the bomb. Free, cross-platform, extendable, and butters your toast. I have been pleasantly surprised to find that several other Mac applications respond to the same cursor movement keyboard shortcuts. It's like...a I too tried Eclipse and NetBeans and found them seriously flawed

Re: File upload from the Model

2008-11-12 Thread rogwei
Yes, this is very confusing. If it extends Model, shouldn't it be a behavior and be integrated into the model with the $actsAs variable? His example shows "uses()". The extending Model part doesn't bother me so much, because you can change that to extends AppModel (and still inherit Model) if you

Re: css menu helper mouseover broken

2008-10-27 Thread rogwei
btw, padding: 2px; works, too, and looks better. 1px does not work. ymmv On Oct 27, 3:00 pm, rogwei <[EMAIL PROTECTED]> wrote: > The world of written communication is perilous, Mark. If you are > referring to my reply to Dardo, yes it was facetious, as I found it > exceedingly

Re: css menu helper mouseover broken

2008-10-27 Thread rogwei
wrote: > I'm hoping that was a facetious post, otherwise you are going to have > bigger troubles than just getting IE to behave. > Try positioniseverything.net, or googling something more useful that > 'it', perhaps 'IE css bug' or 'IE css hacks'. >

Re: css menu helper mouseover broken

2008-10-27 Thread rogwei
t. Search for "ie conditional stylesheet" > and you'll see reference to my code above. When Opera gains > marketshare I'll give two hoots. > > On Oct 27, 4:02 am, rogwei <[EMAIL PROTECTED]> wrote: > > > Adam, thanks for your suggestion. Just to be clear, t

Re: css menu helper mouseover broken

2008-10-26 Thread rogwei
Adam, thanks for your suggestion. Just to be clear, this code is in your ctp/html? And you are defining 'IE' somewhere, or is that pseudo- code? Also, as I said in the problem statement, this happens in Opera, too. On Oct 25, 10:14 am, Adam Royle <[EMAIL PROTECTED]> wrote: > I workaround this pr

Re: css menu helper mouseover broken

2008-10-26 Thread rogwei
Here is what I get when I google "it" -- which result should I look at? # Information technology - Wikipedia, the free encyclopedia This article includes a list of references or external links, but its sources remain unclear because it lacks inline citations. ... en.wikipedia.org/wiki/Information

Re: css menu helper mouseover broken

2008-10-26 Thread rogwei
known), > just google it... > > On Sat, Oct 25, 2008 at 3:14 PM, Adam Royle <[EMAIL PROTECTED]> wrote: > > > I workaround this problem by defining a different margin-bottom value > > for IE using conditional styles... > > > > > > On Oct 26, 12:52 am, ro

css menu helper mouseover broken

2008-10-25 Thread rogwei
Hi, I added a comment in the Bakery to the CSS Menu Helper page here: http://bakery.cakephp.org/articles/view/css-menu-helper Here is a duplicate of my comment: #begin comment 4 gap between parent and child breaks menu In IE and Opera, there is a small but visible gap between the parent li and

cannot inherit from undefined class appcontroller

2008-10-05 Thread rogwei
x27; => 'users', 'action' => 'login'); $this->Auth->loginRedirect = array('controller' => 'posts', 'action' => 'add'); } } I get the subject error when I try to access the group index acti

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: uuid does not work in $html->link (1.2)

2008-01-23 Thread rogwei
[3] => foreignKey [4] => associationForeignKey [5] => conditions [6] => fields [7] => order [8] => limit

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

2008-01-23 Thread rogwei
I have a db table that happens to have both uuid and int values in the id column. The following code works for the int value but not the uuid values. link('View',array('action'=>'view', $user['User'] ['id'])); ?> Here is the generated sql and error: Query: SELECT `User`.`id`, `User`.`username`,

Re: Open Source CakePHP Project

2008-01-21 Thread rogwei
Guide for what? Coding standards or just a way to learn cake? If the latter, there is an active discussion here: http://groups.google.com/group/cake-php/t/825c76132e10e0cd. On Jan 21, 4:40 pm, longint <[EMAIL PROTECTED]> wrote: > Just wondering if any of you folks can recommend me a good open sou

Re: SQL Error: 1110: Column 'id' specified twice with Scaffolding

2008-01-21 Thread rogwei
I have a similar problem. Different table but same process/scenario. The only additional data point I can add is that this only occurs if I try to use the automagic UUID feature, that is if I specify the id column as char(36) not null primary key. When I use int(11) not null auto_increment primary