Re: Strange Header Error

2008-06-23 Thread Ian Zepp
tag for include or require files. PHP doesn't require it, and it can cause these exact types of 'headers already sent' errors. For the purists who feel that all open tags should be closed, the alternative solution is to recursively (and periodically) so a regex grep for closing tags w

Re: inserting more layers into cake php

2008-06-21 Thread Ian Zepp
Nate wrote: > On Jun 20, 10:24 am, Ian Zepp <[EMAIL PROTECTED]> wrote: >> Unlike Zend (with uses an Action suffix to designate controller >> actions), Cake doesn't have any such thing and instead uses a blacklist >> of 'private' controller actions (de

Re: inserting more layers into cake php

2008-06-21 Thread Ian Zepp
Nate wrote: > On Jun 21, 9:54 am, Ian Zepp <[EMAIL PROTECTED]> wrote: >> I do agree, on principle, that non-actions should be written as >> protected or private methods. I'm was just pointing out the convention >> differences (from Zend) and potential pitfa

Re: inserting more layers into cake php

2008-06-21 Thread Ian Zepp
Marcin Domanski aka kabturek wrote: > hey > > On Jun 20, 4:24 pm, Ian Zepp <[EMAIL PROTECTED]> wrote: >> Unlike Zend (with uses an Action suffix to designate controller >> actions), Cake doesn't have any such thing and instead uses a blacklist >> of '

Re: partial recursion?

2008-06-21 Thread Ian Zepp
As a general rule, cake needs to know the DB table layouts in order to perform queries. As you've seen, unbinding the model associations prevents Cake from joining the tables at query time. RE the describe, however, I wouldn't worry about it for two reasons: (a) DESCRIBE is essentially a no-co

Re: Url problem

2008-06-21 Thread Ian Zepp
You are going to have to provide more context than that, sorry. AbhinavZone wrote: > hi. > > I am working on website in cakephp. everything is going fine. > but I got stuck with an issue. > > > 1. Client requirement is to rewrite all pages as > http://websitename.com/xx/yy.html > > 2. Add bac

Re: Routes issue.

2008-06-21 Thread Ian Zepp
What you want is a route that defines a single-part URL as defaulting to the users controller: Router::connect('/:action', array( 'controller' => 'users' )); And it needs to be at the top of the routes file, because the Router scans from the top down. HOWEVER, you can't do this: Router::conn

Re: Share Common Code

2008-06-20 Thread Ian Zepp
to be maintainable over a period of time a utility class passed to the view and used in the controller is the (IMHO) best way to go.  ++ Beatport DIGITAL DOWNLOAD NETWORK™ Ian Zepp - Software Engineer, RHCE, ZCE, CMDEV www.beatport.com - Access the world of club music™ -Original Message-

Re: inserting more layers into cake php

2008-06-20 Thread Ian Zepp
hanks zaidi ++ Beatport DIGITAL DOWNLOAD NETWORK™ Ian Zepp - Software Engineer, RHCE, ZCE, CMDEV www.beatport.com - Access the world of club music™ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

Re: complex findAll()

2008-06-20 Thread Ian Zepp
h array_merge > > HTH > Tarique > > -- > = > Cheesecake-Photoblog:http://cheesecake-photoblog.org > PHP for E-Biz:http://sanisoft.com > = ++ Beat

Re: Sub directories within Cake

2008-06-20 Thread Ian Zepp
plugin directories. Whether you want to do that or not is a philosophical issue, though. Best, Ian Zepp. -Original Message- From: Drew <[EMAIL PROTECTED]> Reply-To: cake-php@googlegroups.com To: CakePHP Subject: Re: Sub directories within Cake Date: Fri, 20 Jun 2008 06:23:46 -0700 (PDT

Re: Share Common Code

2008-06-19 Thread Ian Zepp
Pass an object to view that has the methods you need. Ketan Patel wrote: > I am baffled right now with a simple question. I want some specific > functions to be available in the controllers as well as the views. > What's the best way to do this? I don't want to duplicate same code in > components