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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
On 5 Lip, 19:38, danfreak <[EMAIL PROTECTED]> wrote:
> Try this then in your app_controller:
>
> --
> $this->Auth->allow('*');
> --
>
> It should work as
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
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
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?)
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
21 matches
Mail list logo