Re: Problem with Automagic Form Elements

2008-12-10 Thread Pillow
OK.. Update - Problem resolved! It was my bad, I had put plurals var $uses = array('Orders', 'Businesses'); in the controller instead of singular! Thanks very much for your help, sorry it was a waste of your time! I would however like to get the 'unobtrusive date picker' to work - if anyone has

Re: Problem with Automagic Form Elements

2008-12-10 Thread Pillow
Ok, sure. The table is as follows: CREATE TABLE `orders` ( `id` int(11) NOT NULL auto_increment, `order_date` datetime NOT NULL default '-00-00 00:00:00', `order_total` float NOT NULL default '0', `business_id` int(11) NOT NULL default '0', `package_id` int(11) default NULL, `opt

Re: Problem with Automagic Form Elements

2008-12-10 Thread Pillow
Thank you for your advice. However, I am still stuck with the problem. The fields are definitely named correctly. The table for which the automagic works and the table for which it does not were created using the same SQL script. The view was created using bake. I am unable to determine the reason

Problem with Automagic Form Elements

2008-12-09 Thread Pillow
Dear Cake People, I hope you can assist with this confusing issue. I am building an application in which several tables contain advert_start_date and advert_end_date fields. In MySQL they are set as the DATE type. The problem I am experiencing is that in the forms for one controller, the input is

Accelerating cakePHP

2007-12-15 Thread Pillow
free system which hadn't even had cache, and the CPU usage was about 6 times less. Do you have any tricks and tips to speed up system based on cake? Thx, Pillow --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "C

Translate behavior - finding by translated fields (1.2)

2007-08-14 Thread Pillow
Hi, I wonder is there any better way of finding records by translated fields than this: $this -> Page -> find(array('I18n__url.content' => $url)); I've fields title, url and content translated. I want to search page not by its id, but by url, which is different f

Efficiency of database driven sessions

2007-08-14 Thread Pillow
how to implement online counter? Thx, Pillow --~--~-~--~~~---~--~~ 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

Changing baseUrl dynamically (1.2)

2007-08-06 Thread Pillow
Hi, I'm trying to implement this kind of links in my app: example.com/en/ page, example.com/de/page etc. This is what my router connections look like: Router::connect('*/pages/edit/', array('controller' => 'pages', 'action' => 'edit')); Router::connect('*/pages/add/', array('controller' => 'pag

Re: Subdirectory in /webroot/img/

2007-08-05 Thread Pillow
On 5 Sie, 11:55, Preloader <[EMAIL PROTECTED]> wrote: > Hello Pillow, > > I don't think you have to change the .htaccess at all, it should work > from the scratch: You're right. The problem was that file on which I was testing

Subdirectory in /webroot/img/

2007-08-05 Thread Pillow
ks in advance, Pillow --~--~-~--~~~---~--~~ 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 PROT

Re: Bakery Article : How to use ACL in 1.2.x

2007-07-18 Thread Pillow
On 13 Lip, 16:16, Ketan Patel <[EMAIL PROTECTED]> wrote: > I have written an article in Bakery on how to use Acl. The url > ishttp://bakery.cakephp.org/articles/view/how-to-use-acl-in-1-2-x > > I don't know whom to contact for getting the article published. But if > some one senior could have a l

Re: cakephp 1.2 ACL problem

2007-07-16 Thread Pillow
in-1-2-x > > Let me know if it helps you. The problem was auth component. I was trying tu use it + custom ACL checking. It was a bad move. I disabled Auth component, end now everything goes as it should. However, your article (on group as yet) is great :) Ketan, francky06

Re: cakephp 1.2 ACL problem

2007-07-13 Thread Pillow
On 13 Lip, 16:11, Ketan Patel <[EMAIL PROTECTED]> wrote: > I have written an article on 'How to use Acl in 1.2x' which is pending > approval on bakery. I don't know if you could access it, though the > url ishttp://bakery.cakephp.org/articles/view/how-to-use-acl-in-1-2-x > > Let me know if it help

Re: cakephp 1.2 ACL problem

2007-07-13 Thread Pillow
On 13 Lip, 11:39, francky06l <[EMAIL PROTECTED]> wrote: > Using create and save does not seem to fill up the lft / rght fields. No, lft and rght are alright (according to MPTT rules). These are my tables: acos: ++---+---+-++--+-- + | id | pa

Re: cakephp 1.2 ACL problem

2007-07-12 Thread Pillow
On 12 Lip, 19:20, Ketan Patel <[EMAIL PROTECTED]> wrote: > Did you check in database to see whether your AROs and ACOs are with > proper parent/child relationship? Or use console to check > > "cake acl view aros" Yes, everything seems to be alright. Shell script outputs nice trees. > Acl works f

cakephp 1.2 ACL problem

2007-07-12 Thread Pillow
I am trying to use ACL in new 1.2. It seems to me that in check method (http://tinyurl.com/ywr9nu) on line 282 should be something like this: for ($i = 0; $i <= count($aroPath) - 1; $i++) { rather than: for ($i = count($aroPath) - 1; $i >= 0; $i--) { Now Acl is checking from the roots to lea

Re: CakePHP 1.2 + Auth component (Auth::validate)

2007-07-05 Thread Pillow
On 5 Lip, 19:38, danfreak <[EMAIL PROTECTED]> wrote: > Try this then in your app_controller: > > -- > $this->Auth->allow('*'); > -- > > It should work as

Re: CakePHP 1.2 + Auth component (Auth::validate)

2007-07-05 Thread Pillow
On 5 Lip, 15:33, danfreak <[EMAIL PROTECTED]> wrote: > Dunno if this can help, but I managed as explained in the following > post: > > =>http://groups.google.com/group/cake-php/t/871ff4c536bc1e00 Thanks for this post, it helped mi very much to get familiar with Auth component :) However, I don't

Re: CakePHP 1.2 + Auth component (Auth::validate)

2007-07-05 Thread Pillow
I've tried already, anything changes... On 5 Lip, 14:59, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 7/5/07, Pillow <[EMAIL PROTECTED]> wrote: > Try $this->Auth->validate = false --~--~-~--~~~---~--~~ You received thi

CakePHP 1.2 + Auth component (Auth::validate)

2007-07-05 Thread Pillow
Hi, I'm trying to use new Auth component. I've got problem with Auth::validate. I want to use my own validation, not 'actions' or 'objects'. So, as it stands in the comment, in beforeFilter() of my appController I do: $this -> Auth -> validate = null; However, it doesn't work (maybe I'm wrong?)

Using generateFieldNames with $actsAs (1.2 version)

2007-06-20 Thread Pillow
Hi, Do you know how to use generateFieldNames() with $actsAs? I've got model: class Page extends AppModel { public $name = 'Page'; public $actsAs = array('Translate' => array('title', 'body')); } ...controller: class PagesController extends AppController { public $help