Re: Different frontend and backend controllers

2012-02-03 Thread Thaissa Mendes
Yes, using an AdminController can prevent duplicate code. My backend controllers would almost always have at least index, add, edit and delete methods. Those methods, created on AdminController, let me have on my backend controllers only any extra methods I would need. Creating

Different frontend and backend controllers

2012-02-02 Thread Thaissa Mendes
Hi all, I've been using CakePHP for 3-4 years, and I just downloaded and started to check the 2.0 version. One thing that I didn't like about 1.x version, and apparently didn't change on 2.0, is the prefix routing. IMO, backend and frontend methods on the same controller isn't a good idea. So,

Re: Different frontend and backend controllers

2012-02-02 Thread Thaissa Mendes
It isn't a solution, but it's a start! Thanks! On Thu, Feb 2, 2012 at 6:07 PM, Tilen Majerle tilen.maje...@gmail.com wrote: just simply extend pathy for controllers with App::build() -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/2/2 Thaissa Mendes thaissa.men...@gmail.com Hi all

Re: Different frontend and backend controllers

2012-02-02 Thread Thaissa Mendes
dereurom...@googlemail.com wrote: most would argue that it helps to keep it DRY to have all prefixed ones in the same controller in many cases the action is pretty identical, anyway or the views - or both On 2 Feb., 18:49, Thaissa Mendes thaissa.men...@gmail.com wrote: It isn't a solution

Re: Different frontend and backend controllers

2012-02-02 Thread Thaissa Mendes
, on plugins too. On Thu, Feb 2, 2012 at 7:55 PM, Miles J mileswjohn...@gmail.com wrote: Use plugins. In my projects I have an admin plugin, which works wonderfully and I don't have to deal with prefixes, which I also dislike. On Feb 2, 10:05 am, Thaissa Mendes thaissa.men...@gmail.com wrote: Depends

Re: CakeEmail with dynamic templates

2012-01-08 Thread Thaissa Mendes
Hi, Not sure if it's the best approach, but when I did that I built a component, who was calling the DB record, replacing the strings, set to a default template, and sending the email. I can publish my component somewhere if you think it'll help. Thaissa. On Sun, Jan 8, 2012 at 6:05 PM, Arnold

Re: CakeEmail with dynamic templates

2012-01-08 Thread Thaissa Mendes
http://bin.cakephp.org/view/1119637582 On Sun, Jan 8, 2012 at 9:59 PM, Sam Sherlock sam.sherl...@gmail.com wrote: http://bin.cakephp.org/ Or github gist. - S On 8 Jan 2012 20:42, Thaissa Mendes thaissa.men...@gmail.com wrote: Hi, Not sure if it's the best approach, but when I did