Re: Pagination & RSS > Warning (1.1)

2007-10-18 Thread FallenJehova


This happens because you can't send any sort of header to a browser if
you've already sent any output.

Take a look at pagination.php line 556 to see what might be echoing
any output. If it's the end of the file, check that you have not left
some spaces at the end of it.



On Oct 18, 5:21 am, bigbass <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I included the pagination component (http://bakery.cakephp.org/
> articles/view/pagination) in my articles, but now I get a warning
> when debug = 2:
> "Cannot modify header information - headers already sent by (output
> started at /path/to/myapp/views/helpers/pagination.php:556)"
>
> Should I be troubled?
>
> Bassy regards,
> Benjamin


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Using blank in Data Validation

2007-09-29 Thread FallenJehova

Hi,

I think this article will help you:

http://cakebaker.42dh.com/2007/01/03/validation-with-cakephp-12/

Good luck!

On 29 sep, 10:49, Ahsan <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> I was going through all the built-in rules for data validation in 1.2.
> I was just wondering whats the use of the blank rule? Since it is
> there, I am sure it has a use, but I am not being able to figure it
> out.
>
> Any ideas?
>
> Thanks.
>
> --
> Regards
> Ahsanul Bari


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: helper or html tag ?

2007-09-28 Thread FallenJehova


Hi,

If your designer knows css, I would recommend using the htmlhelper.
It's is very simple and fast to use for you, and as all elements are
styleable, he'll would have no problem working with them.

I am one of those who thinks that php is already a template language
and smarty's features does not compensate the loss of simplicity and
the processing overhead it produces.



proce
On 28 sep, 23:38, Adwin  Wijaya <[EMAIL PROTECTED]> wrote:
> Hi,
>
> for you, who are playing with cakephp for quite long, are you using
> htmlhelper or just use plain html code or smarty ?
>
> i  myself, get used with smarty for about 3 years and my web designer
> is get used with it (he just know how to do html and css, no idea
> about scripting).
>
> can you give me the advantages using cakephp helper object over using
> smarty ?
> especially for the easy of use


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: Testing Controllers in 1.2

2007-09-23 Thread FallenJehova

I'm sure it's late, but just in case anybody google this.

When using the loadController(), just pass the Conroller name without
'Controller''. Cake will concatenate it later.

in your example:

loadController ('Posts');

On 7 sep, 18:38, dresdn <[EMAIL PROTECTED]> wrote:
> Hi.
>
> I just started looking at CakePHP just over a week ago, and so far, I
> like what I see.  Based on documentation, etc., I've decided to start
> out with the 1.2 branch due to all the nice new features.
>
> One of the things I was most interested in was testing, and using the
> Blog Tutorial as a starting point, I wanted to write some tests.  I
> did 
> findhttp://bakery.cakephp.org/articles/view/testing-models-with-cakephp-1...
> , but for some reason I'm not able to do the same for the controller.
>
> What I have so far in tests/cases/controller/post_controller.test.php
> is:
>
>  loadController ('PostsController');
>
> class PostsTest extends PostsController {
> var $name = 'PostsTest';
>
> }
>
> class PostsControllerTest extends CakeTestCase {
> var $fixtures = array ('post_test');
>
> function testIndex () {
> $this->get ('/posts');
> $this->assertResponse (SUCCESS);
> }
>
> }
>
> When I run the test, I get a Fatal error: Class 'PostsController' not
> found in
>
> It looks like loadController() isn't doing anything.  Am I way off on
> this?  I'm running from svn rev. 5619.
>
> Any help would be appreciated!
>
> Thanks in advance,
> Mike


--~--~-~--~~~---~--~~
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 PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---