Re: How to: Implement Dynamic Route in CakePHP

2009-12-16 Thread iWorm
tatic object and you don't need to use > CR::init on it. > > You can just do Cache::read('routermenus') directly in your routes > file. > > That said, it is a pretty clever way of doing it and I think you > should turn this into a proper bakery article. > >

How to: Implement Dynamic Route in CakePHP

2009-12-16 Thread iWorm
Hi, I've found a method to implement Dynamic Route in CakePHP. If we develop a CMS program using CakePHP, we often let people to define their menu code. The menu code basically is the URL path. For example: An admin create a menu named 'Milk Product', and give this menu a code 'product'. He wish t

Re: About the findById method and it's returns

2008-07-17 Thread iWorm
gt; > -Mark > > On Jul 16, 5:42 am, iWorm <[EMAIL PROTECTED]> wrote: > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googleg

About the findById method and it's returns

2008-07-17 Thread iWorm
I've posted this yesterday, but I can't find it, so I post it again. --- Hi, I have 4 tables. people id name foods id name shopid shops id name orders id peopleid foodid In

About the findById method and it's returns

2008-07-16 Thread iWorm
Hi, I have 4 tables. people id name foods id name shopid shops id name orders id peopleid foodid In my application, 1 order has 1 food, 1 shop has many foods, 1 people has many orders Models: //People var $hasMany = array( 'Order' => array(