Re: $this->Acl->check() and max execution time in cake\libs\model\datasources\dbo\dbo_mysql.php on line 600

2011-09-20 Thread sathyashrayan
Hi Jeremy, yes I did set Index and FK relations. hi, alaxos.. Thanks for creating such a wonderful plugin. It has helped me a lot. I am using alaxos_acl_1.0.6 and yes, I enabled "true" for ajax in boot loader and its good in performance now. At first i thought the problem could be due to $this->A

Re: multiple select box. automagic form helper problem

2011-09-20 Thread rockbust
Hi Jeremy, Thank you so much for the reply. I kind of got it working. after searching some old posts it seems it is a possible bug with the security component. http://groups.google.com/group/cake-php/browse_thread/thread/bc953181eb49d1db/802799a13bdb5a11?lnk=gst&q=security+component+not+posting#8

Re: multiple select box. automagic form helper problem

2011-09-20 Thread Jeremy Burns | Class Outfit
A checkbox only holds true or false, but you are trying to store the user id in it. I'd change it to a 'selected' field and then inspect $this->data for array keys where 'selected' => true. I'd retain your user id field too (as a text field) otherwise you won't know the ids of the selected rows.

Re: use of javascript focus()

2011-09-20 Thread nkoss
Webbedit... AHA...but your code did not work since scriptBlock is a method of the Html helper. When I used... $this->Html->scriptBlock("document.getElementById(\"OpFirstName \").focus();", array('inline'=>false, 'safe'=>false)); it placed the code in the so not very useful

Re: Disable Missing Table error

2011-09-20 Thread José Lorenzo
Open the Model class in CakePHP and loof for the setSource() method, copy it into AppModel and change the call to $this->cakeError to whatever you like. I often change it to throw an exception which I can catch in other models or the controller -- Our newest site for the community: CakePHP Vid

Re: Cake 2.0 1&1 hosting and htaccess problem

2011-09-20 Thread José Lorenzo
Can you explain a bit better how the application is deployed on the filesystem, and verify that whether the .htaccess files are the same? Also verify if both the production and de 1&1 server settings match -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Che

multiple select box. automagic form helper problem

2011-09-20 Thread rockbust
I just can not figure this out. Read the book http://book.cakephp.org/#!/view/1390/Automagic-Form-Elements in my user_index view I am looping through the results of the find(all). for each pass of the foreach I want to set a checkbox so I can mass select each user_id. I can not get the multiple ch

Re: $this->Acl->check() and max execution time in cake\libs\model\datasources\dbo\dbo_mysql.php on line 600

2011-09-20 Thread alaxos
Hi, It seems that you don't use the latest version of the plugin, because in this one the code you mention is not on line 258. I'm not sure which one you use, but since version 1.0.4 (january 2011), the roles permissions page can be loaded with Ajax. Basically it means that instead of one very he

Re: Undefined property Component::$Session

2011-09-20 Thread Miles J
debug($this) on the component or controller to see if the Session object is being attached. On Sep 19, 11:54 pm, heohni wrote: > I uploaded all to my webserver and have the same problem... > > Anyone any idea? > I am really lost here > > On 20 Sep., 08:25, Thomas Ploch wrote: > > > > > > > >

Re: use of javascript focus()

2011-09-20 Thread Miles J
Unnecessary to use Cake/PHP to render a simple HTML tag. On Sep 20, 3:50 am, WebbedIT wrote: > In your view any blocks of script that you want to be echoed into the > layout for that page you add to $scripts_for_layout by calling: > > $this->Javascript->codeBlock(" > // enter your raw jscript her

Re: Form->radio with zero value

2011-09-20 Thread gregor.morr...@gmail.com
The values are really only used to trigger different types of validation. Since they don't need to be stored, I can easily adapt to use string values. I think it'd be a good idea to specify in the documentation that you should only use integers OR strings (or that if you mix them, you should avoid

Re: http://ci.cakephp.org/

2011-09-20 Thread mark_story
I added a bit to the 2.0 docs on getting things integrated with Jenkins. Hopefully it helps, but as you guessed most of the config can be gathered from the build output. -Mark On Sep 18, 1:43 pm, "Meroe Kush" wrote: > Mark, > > Thanks.  I was actually able to figure out what I needed from the co

Cake 2.0 1&1 hosting and htaccess problem

2011-09-20 Thread Raph
The problem is weird. We have two 1&1 linux servers managed by 1&1. On development server we have weird errors because Cake "thinks" that its base directory is directory above real base directory. The problem dosen't occur on production server. The weirdest thing is that older versions of Cake (1.

Re: $this->Acl->check() and max execution time in cake\libs\model\datasources\dbo\dbo_mysql.php on line 600

2011-09-20 Thread Jeremy Burns | Class Outfit
Have you applied indexes and referential integrity to the ACL tables? It will make a dramatic difference. Do that before you apply caches. Jeremy Burns Class Outfit http://www.classoutfit.com On 20 Sep 2011, at 15:28, sathyashrayan wrote: > Ok..after looking here and there I got to know that I

Re: $this->Acl->check() and max execution time in cake\libs\model\datasources\dbo\dbo_mysql.php on line 600

2011-09-20 Thread sathyashrayan
Ok..after looking here and there I got to know that I need to set index in acos,aros tables. Even then it is taking more time. So searched and found that it could be solved with cache. trying to install these two links, but does not work for me. http://bakery.cakephp.org/articles/Frank/2009/04/15/

Re: Cascade delete and HABTM

2011-09-20 Thread xamako
Hi! I was wrong thinking on HABTM. Everything is working ok :-) Thanks! On 20 sep, 12:01, WebbedIT wrote: > You would not want to delete the associated Service as the nature of > HABTM means that Service could be associated with any number of other > ServiceCategory. > > HTH, Paul -- Our newe

Re: use of javascript focus()

2011-09-20 Thread WebbedIT
In your view any blocks of script that you want to be echoed into the layout for that page you add to $scripts_for_layout by calling: $this->Javascript->codeBlock(" // enter your raw jscript here ", array('inline'=>false, 'safe'=>false)); On Sep 20, 7:08 am, nkoss wrote: > Thanks, Vinicius, but

Re: $this->Acl->check() and max execution time in cake\libs\model\datasources\dbo\dbo_mysql.php on line 600

2011-09-20 Thread sathyashrayan
I forgot to mention that I use Xampp version-1.7.3 and cake php version 1.3.6 On Sep 20, 2:57 pm, sathyashrayan wrote: > Group, >   I used Alaxos ACL plugin found here.. > > http://www.alaxos.net/blaxos/pages/view/plugin_acl > > In my project i have more than 165 actions and 55 controllers, > inc

Re: Cascade delete and HABTM

2011-09-20 Thread WebbedIT
You would not want to delete the associated Service as the nature of HABTM means that Service could be associated with any number of other ServiceCategory. HTH, Paul -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site htt

$this->Acl->check() and max execution time in cake\libs\model\datasources\dbo\dbo_mysql.php on line 600

2011-09-20 Thread sathyashrayan
Group, I used Alaxos ACL plugin found here.. http://www.alaxos.net/blaxos/pages/view/plugin_acl In my project i have more than 165 actions and 55 controllers, including ADD, EDIT ect. When I clicked role wise permission in the plugin (admin/acl/aros/role_permissions) i get Fatal error: Maximum

Question about db table structure and its model

2011-09-20 Thread heohni
Hi, I have a table where I have certain content items per row. Together with this content items I have a translation ID per content item. That means I have a table row like this: item_area1 | item_area1_translationId | item_area2 | item_area2_translationId | When I create now my model for this c

Re: Form->radio with zero value

2011-09-20 Thread euromark
i find it awkward to mix those values, as well. you can use integer values as keys and replace them later on with text. or use strings from the beginning. On 20 Sep., 01:34, "gregor.morr...@gmail.com" wrote: > I'm running into a weird situation where I have three CakePHP- > generated radio butto

Disable Missing Table error

2011-09-20 Thread Fredrik Elestedt
Hi, I'm running CakePHP 1.3.0 and I need to to do something which I'm uncertain of how to do. I have a CakePHP setup in which the ACL is database-driven. But when the database is unavailable I get the missing table error table. What I want is the ACL going into anonomous mode instead. I really ne

Re: Cakefest videos

2011-09-20 Thread stefanski
Thanks Larry, It's great to get the chance to see you guys from Germany too. Stefan -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To un