Re: Undefined property: View::$Js
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 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: > > > > 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: > > > > > var $helpers = array('Js' => 'Jquery'); Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Undefined property: View::$Js
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: > > > > > > > > > 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: > > > > var $helpers = array('Js' => 'Jquery'); Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Undefined property: View::$Js
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: > > var $helpers = array('Js' => 'Jquery'); > Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: JS helper
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 > couldnt find a good example of its use with ajax on the web. Every > time I have to do one request I need to write all this bunch of code: > > $.ajax({ > > url: 'url(array("controller" => > "agendamentos","action" => "editResponse"));?>', > cache: false, > type: 'GET', > contentType: "application/x-www-form-urlencoded; > charset=utf-8", > data: ( {id : id, categoria: categoria, valor: valor, > vencimento: vencimento, observacoes: obs} ), > beforeSend: function(){ > $('.submit img').remove(); > $('.submit span').remove(); > $('.submit').append(''); > }, > success: function(result){ > > if(result == 'error'){ > $('.submit img').fadeOut('fast', function(){ > $('.submit').append(' class="ajax_error_response">Ocorreu um erro. Recarregue a página e > tente novamente.') > }); > }else if(result == 'validacao'){ > $('.submit img').fadeOut('fast', function(){ > $('.submit').append(' class="ajax_error_response">Preencha todos os campos corretamente. span>'); > }); > }else{ > > parent.$('#agend-' + id).html(result); > //var te=setTimeout("parent.$('#agend-'" + id > +").html("+ result +");",5000); > var > t=setTimeout("parent.jQuery.fn.colorbox.close()",100); > } > > } > > }); > > which doesnt seems practical at all. I'm really enjoying study and > work with cakephp but I guess its lack of builtin ajax functions is > what bothers me most so far. Hope to improve that myself by developing > a helper which would make things simpler, clearer and share it with > the community. > > Just curious, Do you get to use much of Js helper on your projetcs ? > Or I'm the only one here who doesnt get along well with it? > > On 28 set, 18:41, lyba wrote: > > > > > > > > > for the record: > > Seems that above function despite having additional class is still > > bound to the same event executing both open and close. > > > Since I could not find solution to this in reasonable time I've > > implemented following workaround: > > > $(function() > > { > > $('div.Commands a.CmdOpen').click(function(ev) > > { > > ev.preventDefault(); > > var target = > > $(this).parent('div').next('div.Target'); > > if ($(this).is('.Active')) { > > $(this).removeClass('Active'); > > target.slideUp().html(''); > > } else { > > $(this).addClass('Active'); > > > > $("#busy-indicator").clone().appendTo(target).show(); > > $.ajax({ > > url: > > $(this).attr('href'), > > cache: false, > > success: > > > > function(html) > > { > > > > target.slideDown().html(html); > > }, > > error: > > > > function (XMLHttpRequest, status, errorThrown) > > { > > > > alert('error ...'); > > } > > }); > > } > > }); > > > }); > > > At present I only experience one problem - indicator is visible only > > on the first click, following clicks work but do not display busy > > indicator while awaiting ajax response. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this
Undefined property: View::$Js
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 library and install in webroot. Path to jquery library: /Users/user/Sites/MyAppName/js/jquery-1.4.4.js Link to library in default layout file. In the tag of default.ctp: echo $this->Html->script('jquery-1.4.4'); When I view source on the rendered home page view, I can see a link to the jquery library and click the link to load the jquery source, so I know the library is linked correctly. Write out buffered scripts. This is the line that causes the error. Immediately preceding the tag in default.ctp: Js->writeBuffer(); ?> Declare the helper in the controller: var $helpers = array('Js' => 'Jquery'); I get the error when visiting the home page of the app (http:// localhost/~user/MyAppName/). Can someone please tell me what I am missing? The complete notice and error messages follow. Notice (8): Undefined property: View::$Js [APP/views/layouts/ default.ctp, line 47] Code | Context Session->flash('email');?> Js->writeBuffer(); ?> $___viewFn = "/Users/user/cake/1.3.x/MyAppName/views/layouts/ default.ctp" $___dataForView = array( "page" => "home", "subpage" => null, "title_for_layout" => "Home", "content_for_layout" => " ", "scripts_for_layout" => "", "form" => FormHelper FormHelper::$helpers = array FormHelper::$fieldset = array FormHelper::$__options = array FormHelper::$fields = array FormHelper::$requestType = NULL FormHelper::$defaultModel = NULL FormHelper::$_inputDefaults = array FormHelper::$base = "/~user/MyAppName" FormHelper::$webroot = "/~user/MyAppName/" FormHelper::$theme = NULL FormHelper::$here = "/~user/MyAppName/" FormHelper::$params = array FormHelper::$action = "display" FormHelper::$plugin = NULL FormHelper::$data = NULL FormHelper::$namedArgs = NULL FormHelper::$argSeparator = NULL FormHelper::$validationErrors = NULL FormHelper::$tags = array FormHelper::$__tainted = NULL FormHelper::$__cleaned = NULL FormHelper::$Html = HtmlHelper object, "session" => SessionHelper SessionHelper::$helpers = array SessionHelper::$__active = true SessionHelper::$valid = false SessionHelper::$error = false SessionHelper::$_userAgent = "eee529c539a2f1d37ce990348ba812dc" SessionHelper::$path = "/" SessionHelper::$lastError = NULL SessionHelper::$security = "medium" SessionHelper::$time = 1290386547 SessionHelper::$sessionTime = 1290398547 SessionHelper::$cookieLifeTime = false SessionHelper::$watchKeys = array SessionHelper::$id = NULL SessionHelper::$host = NULL SessionHelper::$timeout = NULL SessionHelper::$base = "/~user/MyAppName" SessionHelper::$webroot = "/~user/MyAppName/" SessionHelper::$here = "/~user/MyAppName/" SessionHelper::$params = array SessionHelper::$action = "display" SessionHelper::$data = NULL SessionHelper::$theme = NULL SessionHelper::$plugin = NULL, "html" => HtmlHelper HtmlHelper::$tags = array HtmlHelper::$_crumbs = array HtmlHelper::$__includedScripts = array HtmlHelper::$_scriptBlockOptions = array HtmlHelper::$__docTypes = array HtmlHelper::$helpers = NULL HtmlHelper::$base = "/~user/MyAppName" HtmlHelper::$webroot = "/~user/MyAppName/" HtmlHelper::$theme = NULL HtmlHelper::$here = "/~user/MyAppName/" HtmlHelper::$params = array HtmlHelper::$action = "display" HtmlHelper::$plugin = NULL HtmlHelper::$data = NULL HtmlHelper::$namedArgs = NULL HtmlHelper::$argSeparator = NULL HtmlHelper::$validationErrors = NULL HtmlHelper::$__tainted = NULL HtmlHelper::$__cleaned = NULL ) $loadHelpers= false $cached = true $loadedHelpers = array() $page = "home" $subpage= null $title_for_layout = "Home" $content_for_layout = " " $scripts_for_layout = "" $form = FormHelper FormHelper::$helpers = array FormHelper::$fieldset = array FormHelper::$__options = array FormHelper::$fields = array FormHelper::$requestType = NULL FormHelper::$defaultModel = NULL FormHelper::$_inputDefaults = array FormHelper::$base = "/~user/MyAppName" FormHelper::$webroot = "/~user/MyAppName/" FormHelper::$theme = NULL FormHelper::$here = "/~user/MyAppName/" FormHelper::$params = array FormHelper::$action = "display" FormHelper::$plugin = NULL FormHelper::$data = NULL FormHelper::$namedArgs = NULL FormHelper::$argSeparator = NULL FormHelper::$validationErrors = NULL FormHelper::$tags = array FormHelper::$__tainted = NULL FormHelper::$__cleaned = NULL FormHelper::$Html = HtmlHelper object $session= SessionHelper SessionHelper::$helpers = array SessionHelper::$__active = true SessionHelper::$valid = false SessionHelper::$error = false Se
Re: mysql connection refused
This is a dev environment where the application server is a VBox host. The MySQL server is a VBox guest machine on the VBox host. phpmyadmin runs from a browser on the VBox host, so it *is* using tcp. Everything was working fine until I upgraded the guest OS from 9.10 to 10.04. I think I might have changed the skip-networking option during the initial MySQL install and it must have been reset to the default 127.0.0.1 setting during the upgrade. I changed the bind-address option to 0.0.0.0 in the my.cnf, and now it works fine. Thanks for your help. On Nov 12, 9:49 pm, Anatoliy Dimitrov wrote: > I can't believe you are connecting to MySQL from PHPMYADMIN with > absolutely the same details. The error means that the application > cannot connect to the MySQL server on that port. By default on decent > Ubuntu MySQL listens only on the local interface 127.0.0.1 and not on > all IPs. You can check it with: > > netstat -ntap |grep 3306 > > tcp 0 0 127.0.0.1:3306 0.0.0.0:* > LISTEN - > > Thus if you have been connecting to the external IP before you will > not be able to do so any longer (unless you reconfigure MySQL 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, 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 with phpmyadmin using the same host > > and credentials. > > > The only my.cnf file on the server uses port 3306. Not sure what to do > > or whose issue this is. Any help? > > > Warning (2): mysql_connect() [function.mysql-connect]: [2002] > > Connection refused (trying to connect via tcp://x.x.x.x:3306) [CORE/ > > cake/libs/model/datasources/dbo/dbo_mysql.php, line 552] > > Code | Context > > $config = array( > > "persistent" => false, > > "host" => "x.x.x.x", > > "login" => "x", > > "password" => "", > > "database" => "xx", > > "port" => "3306", > > "driver" => "mysql", > > "prefix" => "" > > ) > > mysql_connect - [internal], line ?? > > DboMysql::connect() - CORE/cake/libs/model/datasources/dbo/ > > dbo_mysql.php, line 552 > > DboSource::__construct() - CORE/cake/libs/model/datasources/ > > dbo_source.php, line 143 > > ConnectionManager::getDataSource() - CORE/cake/libs/model/ > > connection_manager.php, line 114 > > Model::setDataSource() - CORE/cake/libs/model/model.php, line 2818 > > Model::__construct() - CORE/cake/libs/model/model.php, line 469 > > AclNode::__construct() - CORE/cake/libs/model/db_acl.php, line 62 > > ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 141 > > DbAcl::__construct() - CORE/cake/libs/controller/components/acl.php, > > line 237 > > AclComponent::__construct() - CORE/cake/libs/controller/components/ > > acl.php, line 58 > > Component::_loadComponents() - CORE/cake/libs/controller/ > > component.php, line 249 > > Component::init() - CORE/cake/libs/controller/component.php, line 78 > > Controller::constructClasses() - CORE/cake/libs/controller/ > > controller.php, line 487 > > Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 186 > > Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171 > > [main] - /Users/Roger/Sites/uypBarebones/index.php, line 84 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
mysql connection refused
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 with phpmyadmin using the same host and credentials. The only my.cnf file on the server uses port 3306. Not sure what to do or whose issue this is. Any help? Warning (2): mysql_connect() [function.mysql-connect]: [2002] Connection refused (trying to connect via tcp://x.x.x.x:3306) [CORE/ cake/libs/model/datasources/dbo/dbo_mysql.php, line 552] Code | Context $config = array( "persistent" => false, "host" => "x.x.x.x", "login" => "x", "password" => "", "database" => "xx", "port" => "3306", "driver" => "mysql", "prefix" => "" ) mysql_connect - [internal], line ?? DboMysql::connect() - CORE/cake/libs/model/datasources/dbo/ dbo_mysql.php, line 552 DboSource::__construct() - CORE/cake/libs/model/datasources/ dbo_source.php, line 143 ConnectionManager::getDataSource() - CORE/cake/libs/model/ connection_manager.php, line 114 Model::setDataSource() - CORE/cake/libs/model/model.php, line 2818 Model::__construct() - CORE/cake/libs/model/model.php, line 469 AclNode::__construct() - CORE/cake/libs/model/db_acl.php, line 62 ClassRegistry::init() - CORE/cake/libs/class_registry.php, line 141 DbAcl::__construct() - CORE/cake/libs/controller/components/acl.php, line 237 AclComponent::__construct() - CORE/cake/libs/controller/components/ acl.php, line 58 Component::_loadComponents() - CORE/cake/libs/controller/ component.php, line 249 Component::init() - CORE/cake/libs/controller/component.php, line 78 Controller::constructClasses() - CORE/cake/libs/controller/ controller.php, line 487 Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 186 Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171 [main] - /Users/Roger/Sites/uypBarebones/index.php, line 84 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: delete session data
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 > to test different ways to 'delete' the Session data, but as you can > imagine, those did not work either. > > I see your point about the Session.cookie. I guess I was thinking of > that as a property of the Session class and not something that I set. > I thought one was only supposed to change the value of that property. > I will look into that some more and report my findings. Thanks for > your suggestion. > > On Sep 11, 5:35 am, Wilhelm wrote: > > > > > Hi, > > > from looking at the code, and not doing any testing. I see that you > > have named your session variable "Session.cookie" but in you session > > delete statement you are trying to delete "foo". Does going this- > > > >Session->delete('Session.cookie'), work to 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 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 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 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 from > > > > > a previous session, I am screwed. But currently, the session cookie > > > > > persists beyond any attempts to delete it specifically, delete the > > > > > entire session cookie, or destroy the session. > > > > > > /* core.php */ > > > > > Configure::write('Session.cookie', 'foo'); > > > > > > /*users_controller.php */ > > > > > > function logout() { > > > > > $this->Session->delete('foo'); > > > > > $this->Session->destroy(); > > > > > $this->redirect($this->Auth->logout()); > > > > > } > > > > > > Even after the user logs out and is redirected to a *different* page > > > > > (not login page), the data remains and is available to $session- > > > > > > >read(); in the view/layout. > > > > > > Somebody please tell me how to do the magic dance. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: delete session data
I include CookieComponent in app_controller.php and have it configured, but as of yet, I am not using it. I mainly incorporated it to test different ways to 'delete' the Session data, but as you can imagine, those did not work either. I see your point about the Session.cookie. I guess I was thinking of that as a property of the Session class and not something that I set. I thought one was only supposed to change the value of that property. I will look into that some more and report my findings. Thanks for your suggestion. On Sep 11, 5:35 am, Wilhelm wrote: > Hi, > > from looking at the code, and not doing any testing. I see that you > have named your session variable "Session.cookie" but in you session > delete statement you are trying to delete "foo". Does going this- > > >Session->delete('Session.cookie'), work to 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 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 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 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 from > > > > a previous session, I am screwed. But currently, the session cookie > > > > persists beyond any attempts to delete it specifically, delete the > > > > entire session cookie, or destroy the session. > > > > > /* core.php */ > > > > Configure::write('Session.cookie', 'foo'); > > > > > /*users_controller.php */ > > > > > function logout() { > > > > $this->Session->delete('foo'); > > > > $this->Session->destroy(); > > > > $this->redirect($this->Auth->logout()); > > > > } > > > > > Even after the user logs out and is redirected to a *different* page > > > > (not login page), the data remains and is available to $session- > > > > > >read(); in the view/layout. > > > > > Somebody please tell me how to do the magic dance. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: delete session data
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 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 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 from > > a previous session, I am screwed. But currently, the session cookie > > persists beyond any attempts to delete it specifically, delete the > > entire session cookie, or destroy the session. > > > /* core.php */ > > Configure::write('Session.cookie', 'foo'); > > > /*users_controller.php */ > > > function logout() { > > $this->Session->delete('foo'); > > $this->Session->destroy(); > > $this->redirect($this->Auth->logout()); > > } > > > Even after the user logs out and is redirected to a *different* page > > (not login page), the data remains and is available to $session- > > > >read(); in the view/layout. > > > Somebody please tell me how to do the magic dance. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: delete session data
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 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 from > a previous session, I am screwed. But currently, the session cookie > persists beyond any attempts to delete it specifically, delete the > entire session cookie, or destroy the session. > > /* core.php */ > Configure::write('Session.cookie', 'foo'); > > /*users_controller.php */ > > function logout() { > $this->Session->delete('foo'); > $this->Session->destroy(); > $this->redirect($this->Auth->logout()); > } > > Even after the user logs out and is redirected to a *different* page > (not login page), the data remains and is available to $session- > > >read(); in the view/layout. > > Somebody please tell me how to do the magic dance. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
delete session data
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 from a previous session, I am screwed. But currently, the session cookie persists beyond any attempts to delete it specifically, delete the entire session cookie, or destroy the session. /* core.php */ Configure::write('Session.cookie', 'foo'); /*users_controller.php */ function logout() { $this->Session->delete('foo'); $this->Session->destroy(); $this->redirect($this->Auth->logout()); } Even after the user logs out and is redirected to a *different* page (not login page), the data remains and is available to $session- >read(); in the view/layout. Somebody please tell me how to do the magic dance. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
missing controller in wamp advanced installation
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 as expected. I then moved the app folder to the same level as the cake core libraries and left the webroot folder in the document root. This is when I began to get the missing controller error. My installation uses the following structure. from Start>Run>notepad \wamp\www\testweb\index.php if (!defined('ROOT')) { define('ROOT', DS.'wamp'.DS.'cake'.DS.'1.3.x'); } if (!defined('APP_DIR')) { define('APP_DIR', 'test'); } if (!defined('CAKE_CORE_INCLUDE_PATH')) { define('CAKE_CORE_INCLUDE_PATH', DS.'wamp'.DS.'cake'.DS.'1.3.x'); } When I load http://localhost/testweb/, I get the default home view with four green bars. I have a controller and model set up as follows. Start>Run>\wamp\cake\1.3.x\test\controllers\profiles_controller.php: Start>Run>\wamp\cake\1.3.x\test\models\profile.php: When I load http://localhost/testweb/profiles, I get the missing controller message. CakePHP: the rapid development php framework Missing Controller Error: ProfilesController could not be found. Error: Create the class ProfilesController below in file: test \controllers\profiles_controller.php Notice: If you want to customize this error message, create test\views \errors\missing_controller.ctp My take is that for some reason the core libraries are in scope but the app is not, and I really have no clue as to why. Apache returns a 200 status code on the request which suggests that the .htaccess is set up correctly. 127.0.0.1 - - [29/Aug/2010:00:36:58 -0700] "GET /testweb/profiles HTTP/ 1.1" 200 1470 My cake console works as expected, so my paths for cake and php must be good. Seems like something internal to cake. I am very discouraged to be fumbling around with this problem and would love it if someone would point out what I am missing. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: nice new API layout
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 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, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: nice new API layout
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 as usable as the previous layout. Honestly, and I don't mean to disparage your good work or sound like a curmudgeon, I had zero complaints about the old API. What was the problem you were trying to fix with this version? On Jan 28, 5:10 am, mark_story wrote: > On Jan 28, 1:30 am, Marcelo Andrade wrote: > > But I miss the "members" link with the name of > > all classes' methods in alphabetic order. :-( > > > Each class has a summary of methods in it with links to the expanded > doc section so you don't have to scroll around. Or are you referring > to something else? > > -Mark --~--~-~--~~~---~--~~ 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, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Which editor for Mac OS X?
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 IDE for is project management? I would love to know, because otherwise, I think Eclipse is a fairly attractive alternative for the other noted features. On Jan 25, 7:34 am, rgreenphotodesign wrote: > Eclipse is nice because it's the same on all OS. If you use Windows at > work and Mac at home, it still works pretty much the same. That and > I've been using it since version 1 and I'm kind of used to it. > > I've tried CODA and it's pretty cool. I like the CSS editior which is > something most pure IDEs lack and well as the terminal window options. > I'm still trying to decide if it's worth the 100 or if I'm OK using > Eclipse and CSS editors that came with Adobe Dreamweaver, since I > already own it as a part of the suite I use. > > On Jan 25, 7:45 am, Janoma wrote: > > > I'd go for Smultron, though I don't think the newest versions work on > > non-intel macs. > > > On Jan 23, 11:01 am, leo wrote: > > > > Having spent months trying to find an adequate editor for Windows, I > > > eventually settled on Komodo. Now I'm working on a Mac and Komodo is > > > available, but version 5 is so slow it's unusable. I reverted to v4, > > > but while it is a little quicker it is also a little unstable. It is > > > still slow enough to be irritating - 2 seconds to switch tabs; > > > sometimes it doesn't load the plugins, sometimes it will not maximise > > > properly. > > > > Okay, I'm not using a cutting edge Intel Mac, I'm on a G4 / Leopard, > > > but it's still a reasonably powerful machine (it'll run Photoshop and > > > Illustrator simultaneously without grinding to a halt). > > > > Can anybody suggest a non-java based editor (I do not like Eclipse or > > > NetBeans or anything Java come to that)? I've tried Xcode, but it > > > seems really clunky and not at all geared to PHP. It needs to have > > > project handling like Komodo, code intelligence and above all, it must > > > be free. > > > > Maybe a Macport of Bluefish - anybody tried that? --~--~-~--~~~---~--~~ 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, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Which editor for Mac OS X?
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 (on the Mac platform at least) and I am using state of the art quad core intel hardware. My beefs were not so much with performance, duh, but with the heavy handed project paradigm in Eclipse and the bugginess of NetBeans code completion. Both were show stoppers for me. Emacs is included in Leopard through the Terminal application, but you might want to set up MacPorts and install the X version. There is a PHP mode for Emacs, also available through MacPorts, that provides some useful features for PHP development. On Jan 23, 6:01 am, leo wrote: > Having spent months trying to find an adequate editor for Windows, I > eventually settled on Komodo. Now I'm working on a Mac and Komodo is > available, but version 5 is so slow it's unusable. I reverted to v4, > but while it is a little quicker it is also a little unstable. It is > still slow enough to be irritating - 2 seconds to switch tabs; > sometimes it doesn't load the plugins, sometimes it will not maximise > properly. > > Okay, I'm not using a cutting edge Intel Mac, I'm on a G4 / Leopard, > but it's still a reasonably powerful machine (it'll run Photoshop and > Illustrator simultaneously without grinding to a halt). > > Can anybody suggest a non-java based editor (I do not like Eclipse or > NetBeans or anything Java come to that)? I've tried Xcode, but it > seems really clunky and not at all geared to PHP. It needs to have > project handling like Komodo, code intelligence and above all, it must > be free. > > Maybe a Macport of Bluefish - anybody tried that? --~--~-~--~~~---~--~~ 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, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: File upload from the Model
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 want the behavior to inherit some custom behavior of yours. Has anyone actually used this successfully? If so, some clarification would be nice. On Nov 11, 5:11 pm, Drew Pearson <[EMAIL PROTECTED]> wrote: > Thanks for the advice @validkeys and @Marcelo Andrade. I read through > Chris's file handler and it looks pretty easy. > One thing though. He has a new snipit that extends the model that > seems to be exactly what I need. > > http://cakeforge.org/snippet/detail.php?type=snippet&id=52 > > I'm not sure where to put this file though. Its not a regular model > because the class is extending "Model" not "AppModel." It doesn't look > like a behavior either. > > can anyone help me out? > > On Nov 11, 2008, at 9:17 AM, validkeys wrote: > > > > > check out the FileHandler component by Chris Patridge > > >http://cake-php.blogspot.com/2006/09/easy-way-to-upload-files-up-to-y... > > > On Nov 10, 9:07 pm, farfignugin <[EMAIL PROTECTED]> wrote: > >> Just started with cakephp (1.2) and I can't seem to find a simple > >> walk > >> through on how to upload a file and save the url to a table field in > >> the database. Links, hints, or tips would be much appreciated. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: css menu helper mouseover broken
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 vague. My post immediately preceding yours is not > facetious. In fact, the conditional stylesheet fix did not work (for > me). I could not get any result from adjusting margins. I decided to > remove all positioning in the main stylesheet, css_menu.css, and found > a counter-intuitive result. When I removed the padding for the > ul.css_menu li, MORE space was created between the parent and child. I > reversed that move and instead increased padding to 3px (from 0.1em) > in the ul.css_menu li and that cured it in IE and Opera with no ill > effects in Firefox. I call that a real css solution. > > BTW, thanks for your suggested links and search queries, those might > indeed come in handy in the future. > > On Oct 27, 8:54 am, mark_story <[EMAIL PROTECTED]> 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'. > > > -Mark > > > On Oct 26, 1:29 pm, rogwei <[EMAIL PROTECTED]> wrote: > > > > 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_technology - 52k - Cached - Similar > > > pages - Note this > > > # > > > IT World > > > ITworld.com helps information technology professionals make informed > > > strategic decisions by providing insight on a wide range of technical > > > topics, ...www.itworld.com/-76k- Cached - Similar pages - Note this > > > # > > > Slashdot - News for nerds, stuff that matters > > > The article is light on details, but it hints at a security hole in > > > the browser, ... It is just the software program that interacts with > > > the voter. ... > > > it.slashdot.org/ - 70k - Cached - Similar pages - Note this > > > # > > > > Video results for it > > > YouTube - OK Go - Here It Goes Again > > > 3 min 4 secwww.youtube.com > > > > Michael Jackson - Beat It > > > 4 min 57 secwww.youtube.com > > > # > > > Toolbox for IT Professional Communities > > > Toolbox for IT. Share and compare information with 1.3 million > > > professionals ... IT Community Topics. IT Management & Trends ... > > > it.toolbox.com/ - 38k - Cached - Similar pages - Note this > > > # > > > Computerworld's IT Careers - Search Jobs, Recruiting, Hiring ... > > > Computerworld, the 'Voice of IT Management' is your information source > > > for education, training, recruiting, outsourcing, hiring, search jobs, > > > consulting and ...www.itcareers.com/-17k- Cached - Similar pages - Note > > > this > > > # > > > WhatIs.com definitions, computer terms, tech glossaries and cheat ... > > > Part of the TechTarget Network of Enterprise IT Web Sites ... > > > Definitions for thousands of the most current IT-related words. ... > > > whatis.techtarget.com/ - 89k - Cached - Similar pages - Note this > > > # > > > Apple - IT Pro > > > Get information about Apple solutions for IT managers and technology > > > professionals.www.apple.com/itpro/-27k- Cached - Similar pages - Note this > > > # > > > Research-It > > > iTools Internet tools: Search, research, reference, look up or > > > translate just about anything in one place.www.itools.com/-35k- Cached - > > > Similar pages - Note this --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: css menu helper mouseover broken
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 vague. My post immediately preceding yours is not facetious. In fact, the conditional stylesheet fix did not work (for me). I could not get any result from adjusting margins. I decided to remove all positioning in the main stylesheet, css_menu.css, and found a counter-intuitive result. When I removed the padding for the ul.css_menu li, MORE space was created between the parent and child. I reversed that move and instead increased padding to 3px (from 0.1em) in the ul.css_menu li and that cured it in IE and Opera with no ill effects in Firefox. I call that a real css solution. BTW, thanks for your suggested links and search queries, those might indeed come in handy in the future. On Oct 27, 8:54 am, mark_story <[EMAIL PROTECTED]> 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'. > > -Mark > > On Oct 26, 1:29 pm, rogwei <[EMAIL PROTECTED]> wrote: > > > 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_technology - 52k - Cached - Similar > > pages - Note this > > # > > IT World > > ITworld.com helps information technology professionals make informed > > strategic decisions by providing insight on a wide range of technical > > topics, ...www.itworld.com/-76k - Cached - Similar pages - Note this > > # > > Slashdot - News for nerds, stuff that matters > > The article is light on details, but it hints at a security hole in > > the browser, ... It is just the software program that interacts with > > the voter. ... > > it.slashdot.org/ - 70k - Cached - Similar pages - Note this > > # > > > Video results for it > > YouTube - OK Go - Here It Goes Again > > 3 min 4 secwww.youtube.com > > > Michael Jackson - Beat It > > 4 min 57 secwww.youtube.com > > # > > Toolbox for IT Professional Communities > > Toolbox for IT. Share and compare information with 1.3 million > > professionals ... IT Community Topics. IT Management & Trends ... > > it.toolbox.com/ - 38k - Cached - Similar pages - Note this > > # > > Computerworld's IT Careers - Search Jobs, Recruiting, Hiring ... > > Computerworld, the 'Voice of IT Management' is your information source > > for education, training, recruiting, outsourcing, hiring, search jobs, > > consulting and ...www.itcareers.com/-17k - Cached - Similar pages - Note > > this > > # > > WhatIs.com definitions, computer terms, tech glossaries and cheat ... > > Part of the TechTarget Network of Enterprise IT Web Sites ... > > Definitions for thousands of the most current IT-related words. ... > > whatis.techtarget.com/ - 89k - Cached - Similar pages - Note this > > # > > Apple - IT Pro > > Get information about Apple solutions for IT managers and technology > > professionals.www.apple.com/itpro/-27k - Cached - Similar pages - Note this > > # > > Research-It > > iTools Internet tools: Search, research, reference, look up or > > translate just about anything in one place.www.itools.com/-35k - Cached - > > Similar pages - Note this --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: css menu helper mouseover broken
lol re: Opera, however, I like this quote from quirksmode.org [quote] I use conditional comments, though sparingly. First I see if I can find a real CSS solution to an Explorer Windows problem. If I can't, though, I don't hesitate to use them. [/quote] Regardless of Opera market share, the fact that this problem occurs in Opera suggests that there is a 'real' CSS solution? I thought Opera was supposed to be the real stardards bearer, no pun intended, among browsers. On Oct 26, 12:52 pm, Adam Royle <[EMAIL PROTECTED]> wrote: > Yes, chuck it in your layout. 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, 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 problem by defining a different margin-bottom value > > > for IE using conditional styles... > > > > --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: css menu helper mouseover broken
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 problem by defining a different margin-bottom value > for IE using conditional styles... > > > --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: css menu helper mouseover broken
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_technology - 52k - Cached - Similar pages - Note this # IT World ITworld.com helps information technology professionals make informed strategic decisions by providing insight on a wide range of technical topics, ... www.itworld.com/ - 76k - Cached - Similar pages - Note this # Slashdot - News for nerds, stuff that matters The article is light on details, but it hints at a security hole in the browser, ... It is just the software program that interacts with the voter. ... it.slashdot.org/ - 70k - Cached - Similar pages - Note this # Video results for it YouTube - OK Go - Here It Goes Again 3 min 4 sec www.youtube.com Michael Jackson - Beat It 4 min 57 sec www.youtube.com # Toolbox for IT Professional Communities Toolbox for IT. Share and compare information with 1.3 million professionals ... IT Community Topics. IT Management & Trends ... it.toolbox.com/ - 38k - Cached - Similar pages - Note this # Computerworld's IT Careers - Search Jobs, Recruiting, Hiring ... Computerworld, the 'Voice of IT Management' is your information source for education, training, recruiting, outsourcing, hiring, search jobs, consulting and ... www.itcareers.com/ - 17k - Cached - Similar pages - Note this # WhatIs.com definitions, computer terms, tech glossaries and cheat ... Part of the TechTarget Network of Enterprise IT Web Sites ... Definitions for thousands of the most current IT-related words. ... whatis.techtarget.com/ - 89k - Cached - Similar pages - Note this # Apple - IT Pro Get information about Apple solutions for IT managers and technology professionals. www.apple.com/itpro/ - 27k - Cached - Similar pages - Note this # Research-It iTools Internet tools: Search, research, reference, look up or translate just about anything in one place. www.itools.com/ - 35k - Cached - Similar pages - Note this --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: css menu helper mouseover broken
Did you notice that it also happens in Opera, which from what I can tell is somewhat rigorous when it comes to starndards compliance. On Oct 25, 4:15 pm, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > It's a well known IE rendering bug (also the solution is well 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, rogwei <[EMAIL PROTECTED]> wrote: > >> 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 the child li that breaks the menu functionality. For some > >> reason, Firefox renders the parent and child li elements without the > >> gap, so you can move the mouse easily from one to the other without > >> the child li elements disappearing. Obviously, the gap translates to a > >> mouseout event which removes the child li elements. With some effort > >> (in IE and Opera), I can move the mouse quickly enough but not too > >> far, so that I am able to mouseover the child element before the > >> mouseout on the parent is handled. That's all beside the point. The > >> real question is what is causing the gap and how to get rid of it. I > >> am using the css_menu.css as is. Fwiw, here is my helper function call > >> echo $cssMenu->menu(array('Activities'=> array('Add'=> $this->base.'/ > >> activities/add','List'=> $this->base.'/activities/index')),'down'); > >> #end comment > > >> I haven't gotten a reply. Has anyone else noticed this behavior or can > >> suggest a fix? Thanks much. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
css menu helper mouseover broken
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 the child li that breaks the menu functionality. For some reason, Firefox renders the parent and child li elements without the gap, so you can move the mouse easily from one to the other without the child li elements disappearing. Obviously, the gap translates to a mouseout event which removes the child li elements. With some effort (in IE and Opera), I can move the mouse quickly enough but not too far, so that I am able to mouseover the child element before the mouseout on the parent is handled. That's all beside the point. The real question is what is causing the gap and how to get rid of it. I am using the css_menu.css as is. Fwiw, here is my helper function call echo $cssMenu->menu(array('Activities'=> array('Add'=> $this->base.'/ activities/add','List'=> $this->base.'/activities/index')),'down'); #end comment I haven't gotten a reply. Has anyone else noticed this behavior or can suggest a fix? Thanks much. --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
cannot inherit from undefined class appcontroller
I found this thread in the group: http://groups.google.com/group/cake-php/browse_thread/thread/cf73faa906a7265d/844a8cfc17aadf36?hl=en&lnk=st&q=Cannot+inherit+from+undefined+class+appcontroller#844a8cfc17aadf36 It does not appear to have a resolution. 2-1/2 years later, I am having the same issue while working through the AclComponent tutorial with the following code. /blog/app/app_controller.php: class AppController extends Controller { var $components = array('Auth','Acl'); function beforeFilter() { //Configure AuthComponent $this->Auth->authorize = 'actions'; $this->Auth->loginAction = array('controller' => 'users', 'action' => 'login'); $this->Auth->logoutRedirect = array('controller' => 'users', 'action' => 'login'); $this->Auth->loginRedirect = array('controller' => 'posts', 'action' => 'add'); } } I get the subject error when I try to access the group index action. Is there something obvious that I am doing wrong? rogwei --~--~-~--~~~---~--~~ 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, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: uuid does not work in $html->link (1.2)
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: > $model->findById($id); > or > $model->find('first', array('conditions' => array('id' => $id))); > or > $model->find(array('conditions' => array('id' => $id))); > > []'s > > On Jan 23, 2008 2:39 PM, Samuel DeVore <[EMAIL PROTECTED]> wrote: > > > > > > > For future reference, pasting a lot of code in a list serve message is > > kind of ugly, if you would like to make me happier (really just being > > selfish here) use a pasting service that preserves formatting and also > > lets you add comments like > > >http://bin.cakephp.org/ > > > or if you don't like cake > > >http://pastie.textmate.org/ (which you can use from TextMate directly > > if you use that little slice of goodness) > > > or one of the many other ones. Really makes you look better to me. > > > Sam D > > -- > Renan Gonçalves - Web Developer > Cell Phone: +55 (11) 8633-6018 > MSN: [EMAIL PROTECTED] > Web Site: renangoncalves.com > São Paulo - SP/Brazil --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: uuid does not work in $html->link (1.2)
gt; [__behaviorMethods] => Array ( ) [recursive] => 1 [order] => [__exists] => [__associationKeys] => Array ( [belongsTo] => Array ( [0] => className [1] => foreignKey [2] => conditions [3] => fields [4] => order [5] => counterCache ) [hasOne] => Array ( [0] => className [1] => foreignKey [2] => conditions [3] => fields [4] => order [5] => dependent ) [hasMany] => Array ( [0] => className [1] => foreignKey [2] => conditions [3] => fields [4] => order [5] => limit [6] => offset [7] => dependent [8] => exclusive [9] => finderQuery [10] => counterQuery ) [hasAndBelongsToMany] => Array ( [0] => className [1] => joinTable [2] => with [3] => foreignKey [4] => associationForeignKey [5] => conditions [6] => fields [7] => order [8] => limit [9] => offset [10] => unique [11] => finderQuery [12] => deleteQuery [13] => insertQuery ) ) [__associations] => Array ( [0] => belongsTo [1] => hasOne [2] => hasMany [3] => hasAndBelongsToMany ) [__backAssociation] => Array ( ) [__insertID] => [__numRows] => [__affectedRows] => [__findMethods] => Array ( [all] => 1 [first] => 1 [count] => 1 [neighbors] => 1 [list] => 1 ) [_log] => ) ) 1 query took 1 ms NrQuery Error AffectedNum. rows Took (ms) 1 SELECT `User`.`id`, `User`.`username`, `User`.`password` FROM `users` AS `User` WHERE 4796ed47-ec68-42d0-8b57-30402d55369f LIMIT 1 1054: Unknown column '4796ed47' in 'where clause' 1 On Jan 23, 4:34 am, "Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > It seems like there is a problem in your controller, rather than in > the FormHelper. Could you paste the view function ? > > On Jan 23, 2008 6:38 AM, rogwei <[EMAIL PROTECTED]> wrote: > > > > > 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`, `User`.`password` FROM > > `users` AS `User` WHERE 4796ed47-ec68-42d0-8b57-30402d55369f LIMIT 1 > > > Warning (512): SQL Error: 1054: Unknown column '4796ed47' in 'where > > clause' [CORE\cake\libs\model\datasources\dbo_source.php, line 440] > > > I cannot find anything in trac about this. Is this a bug or pilot > > error? > > > Regards, > > Roger --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
uuid does not work in $html->link (1.2)
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`, `User`.`password` FROM `users` AS `User` WHERE 4796ed47-ec68-42d0-8b57-30402d55369f LIMIT 1 Warning (512): SQL Error: 1054: Unknown column '4796ed47' in 'where clause' [CORE\cake\libs\model\datasources\dbo_source.php, line 440] I cannot find anything in trac about this. Is this a bug or pilot error? Regards, Roger --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Open Source CakePHP Project
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 source > cake project to use a guide? > > Thanks. --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: SQL Error: 1110: Column 'id' specified twice with Scaffolding
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 key, it works as expected. Roger On Jan 14, 2:34 pm, JTTACJ1 <[EMAIL PROTECTED]> wrote: > I'm getting ready to explore AJAX so I created what I thought was the > most basic application possible. It is a task manager with one table > consisting of two columns. Just to get things up and running quickly > I created the model and a controller using scaffolding. When creating > a new entry int the task table I get the error: > > Warning (512): SQL Error: 1110:Column'id'specifiedtwice[CORE\cake > \libs\model\datasources\dbo_source.php, line 440] > > Checked trac and didn't find it listed. This makes me think I did > something wrong even if the application to this point seems to simple > to have any problems. Is this an unreported bug or something I am > doing wrong? > > James > > CREATE TABLE `tasks` ( > `id` char(36) NOT NULL, > `name` varchar(50) NOT NULL, > PRIMARY KEY (`id`) > ) ENGINE=InnoDB DEFAULT CHARSET=latin1; > > class Task extends AppModel { > > public $name = 'Task'; > > } > > class TasksController extends AppController { > public $scaffold; > > } --~--~-~--~~~---~--~~ 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 options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---