Re: Schema migrations like RoR

2011-11-13 Thread Chris Cinelli
Are those any better than LiquidBase?

On Sat, Nov 12, 2011 at 11:54 PM, Sathia S sathia2...@gmail.com wrote:

 http://lquery.com/blog/cakephp-migration-plugin---part-1

 --
 Regards

 sathia
 http://www.sathia27.wordpress.com


  --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Having layout breaking because of a whitespace?

2011-11-13 Thread heohni
Well, the funny thing is:

When I take out the complete ul part, the white space is gone.
So I am pretty sure, it's not within the elements, it somewhere inside
the ul part.

Also strange: If I take all out what I have inside the ul (and add
an dummy li) the blank line is still there...

My css for the ul is:
ul.topnav { padding: 0; margin: 0px 0px 0px 0px; vertical-align: top;}

I really frustrated about this...

On 12 Nov., 15:42, mike karthauser brightsto...@gmail.com wrote:
 You've got a blank line in your view because you've set it in your element

 ?php $listCats = ''; $cats = $this-requestAction('objekt/
 getCategories'); $cities = $this-requestAction('objekt/getCities');?
 ul class=topnav

 Tbh whitespace in your HTML shouldn't be an issue. If you are
 objecting due to distance between ul and the top of your td then you
 can set margin-top:0 in your CSS.

 Also, it's considered bad practice to use tables for layout. You
 should easily be able to make a 3 column layout supported across
 browser without any tables.
 --
 Mike Karthauser
 Brightstorm limited
 Tel: 07939252144

 On 12 Nov 2011, at 13:40, heohni heidi.anselstet...@consultingteam.de wrote:



  Hi,

  in default.ctp:
  table width=100% cellpadding=0 cellspacing=0
   tr
     td class=left_content?= $this-
  element('navigation',array('cache'=array('time'='+1
  year','key'='nav')));?/td
     td class=container

  The element start in line 1 with:
  ?php $listCats = ''; $cats = $this-requestAction('objekt/
  getCategories'); $cities = $this-requestAction('objekt/getCities');?
  ul class=topnav
     li.

  I controlled both actions, but there are no white spaces at all...
  Both called actions have a $this-autoRender = false;

  I really don't get the point why I have a blank line in my source:

  table width=100% cellspacing=0 cellpadding=0
  tbody
  tr
  td class=left_content
  --- here is the blank line --
  ul class=topnav

  Does anyone has an idea where and how to debug this issue?

  --
  Our newest site for the community: CakePHP Video 
  Tutorialshttp://tv.cakephp.org
  Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help 
  others with their CakePHP related questions.

  To unsubscribe from this group, send email to
  cake-php+unsubscr...@googlegroups.com For more options, visit this group 
  athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP and Sqlite

2011-11-13 Thread Matteo Landi
On Sun, Nov 13, 2011 at 5:25 AM, zer0_gravity zr...@hotmail.com wrote:
 Having trouble setting up CakePHP to work with Sqlite? could you
 explain or point me to where I can get info in rewards to this.

 thanks


FWIW a couple of weeks ago I wrote a mini-tutorial about how to setup
a SQLite connection within CakePHP application; if you are interested,
check it out: 
http://matteolandi.blogspot.com/2011/10/about-cakephp-and-sqlite.html


Cheers,
Matteo

-- 
http://www.matteolandi.net/

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Making a real mess of Auth Component

2011-11-13 Thread majna


 When I initiate the login() it succeeds every time even though it should 
 most definitely be failing. 

 
When you pass $user param, it's up to you to authenticate.
https://github.com/cakephp/cakephp/blob/2.0/lib/Cake/Controller/Component/AuthComponent.php#L511

I'll suggest you to create Facebok Auth adapter instead of misusing Basic 
HTTP authentication.
It's all in the bible:
http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html?highlight=auth#creating-stateless-authentication-systems

Regarding Authorize add more code to paste bin.


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Making a real mess of Auth Component

2011-11-13 Thread majna
This chapter is about creating custom Auth:
http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html?highlight=auth#creating-custom-authentication-objects

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Making a real mess of Auth Component

2011-11-13 Thread Ed Propsner
I've been beating myself in the head with the bible for quite some time
now ;)

misusing Basic HTTP authentication is purely me misusnderstanding Basic
HTTP authentication. ... I've come to the conclusion hours ago that I was
heading down the wrong road with it and switched gears accordingly.

I can see now that part of my problem is not manually authenticating the
user.

I've graciously abandoned my hackish attempts at manipulating the Auth
Component and decided to go the Custom Auth route. I'm a bit fuzzy on which
direction I should be heading with it but I'll spend some time and give it
a whirl and see what I come with. How bad can it be? :)

I'll post back once I feel I've made enough mess of things.

On Sun, Nov 13, 2011 at 5:26 AM, majna majna...@gmail.com wrote:

 This chapter is about creating custom Auth:

 http://book.cakephp.org/2.0/en/core-libraries/components/authentication.html?highlight=auth#creating-custom-authentication-objects

  --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Making a real mess of Auth Component

2011-11-13 Thread majna
https://gist.github.com/1361982

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to paginate subtable in a view?

2011-11-13 Thread phpMagpie
 But I get the error:
 Undefined property: View::$Paginator [APP\views\categories\view.ctp,
 line 69]

You can't paginate data you have fetched with $this-Model-find() you
must use $this-paginate().

HTH, Paul.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Making a real mess of Auth Component

2011-11-13 Thread Ed Propsner
Yikes! I almost feel foolish seeing that ;)

No harm done, I've gotten into areas I' never messed with and learned a few
things in the process.

Thank you.

On Sun, Nov 13, 2011 at 5:59 AM, majna majna...@gmail.com wrote:

 https://gist.github.com/1361982

  --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Ignoring 'belongsTo' inside model

2011-11-13 Thread phpMagpie
another thread has now been started about this:
http://groups.google.com/group/cake-php/t/425ad9184aea7654

Will be interesting to see the results, I have never heard anyone else
complain about this at any length so doubt it is that much of a
factor.  Certainly not enough for me to manually bind and unbind for
every find I run (that would be a lot of extra code).

Paul

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Strange Session Data Corruption on CakePHP

2011-11-13 Thread Rayhan Chowdhury
Hi,

I am getting a very strange problem in CakePHP. When I store data into
session, it works. On next page load it gets changed automatically.
---
Like:
pr($this-Session-read('data'));
$this-Session-write('data', '/mine2share.com/trunk/
inviters/invitation/64/4');
pr($this-Session-read('data'));

Output 1:

/mine2share.com/trunk/inviters/invitation/64/4

On next Refresh:
/mine2share.com/trunk/inviters/invitation/64/loading2.gif

/mine2share.com/trunk/inviters/invitation/64/4
-

last character 4 has been replaced with loading2.gif. Similar things
happening with other data..

Any idea why?

Thanks in advance

- Rayhan

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Having layout breaking because of a whitespace?

2011-11-13 Thread Sam Sherlock
Really this is a css question.

Using cake as your front end is not the cause of the whitespace.

Perhaps some css applied to the container is adding space.

Either way your question is better suited to a list such as

webstandardsgroup.org/mail/

- S
On 13 Nov 2011 09:20, heohni heidi.anselstet...@consultingteam.de wrote:

 Well, the funny thing is:

 When I take out the complete ul part, the white space is gone.
 So I am pretty sure, it's not within the elements, it somewhere inside
 the ul part.

 Also strange: If I take all out what I have inside the ul (and add
 an dummy li) the blank line is still there...

 My css for the ul is:
 ul.topnav { padding: 0; margin: 0px 0px 0px 0px; vertical-align:
 top;}

 I really frustrated about this...

 On 12 Nov., 15:42, mike karthauser brightsto...@gmail.com wrote:
  You've got a blank line in your view because you've set it in your
 element
 
  ?php $listCats = ''; $cats = $this-requestAction('objekt/
  getCategories'); $cities = $this-requestAction('objekt/getCities');?
  ul class=topnav
 
  Tbh whitespace in your HTML shouldn't be an issue. If you are
  objecting due to distance between ul and the top of your td then you
  can set margin-top:0 in your CSS.
 
  Also, it's considered bad practice to use tables for layout. You
  should easily be able to make a 3 column layout supported across
  browser without any tables.
  --
  Mike Karthauser
  Brightstorm limited
  Tel: 07939252144
 
  On 12 Nov 2011, at 13:40, heohni heidi.anselstet...@consultingteam.de
 wrote:
 
 
 
   Hi,
 
   in default.ctp:
   table width=100% cellpadding=0 cellspacing=0
tr
  td class=left_content?= $this-
   element('navigation',array('cache'=array('time'='+1
   year','key'='nav')));?/td
  td class=container
 
   The element start in line 1 with:
   ?php $listCats = ''; $cats = $this-requestAction('objekt/
   getCategories'); $cities = $this-requestAction('objekt/getCities');?
   ul class=topnav
  li.
 
   I controlled both actions, but there are no white spaces at all...
   Both called actions have a $this-autoRender = false;
 
   I really don't get the point why I have a blank line in my source:
 
   table width=100% cellspacing=0 cellpadding=0
   tbody
   tr
   td class=left_content
   --- here is the blank line --
   ul class=topnav
 
   Does anyone has an idea where and how to debug this issue?
 
   --
   Our newest site for the community: CakePHP Video Tutorialshttp://
 tv.cakephp.org
   Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help
 others with their CakePHP related questions.
 
   To unsubscribe from this group, send email to
   cake-php+unsubscr...@googlegroups.com For more options, visit this
 group athttp://groups.google.com/group/cake-php

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Strange Session Data Corruption on CakePHP

2011-11-13 Thread AD7six


On Nov 13, 12:47 pm, Rayhan Chowdhury rayha...@gmail.com wrote:
 Hi,

 I am getting a very strange problem in CakePHP. When I store data into
 session, it works. On next page load it gets changed automatically.
 ---
 Like:
             pr($this-Session-read('data'));
             $this-Session-write('data', '/mine2share.com/trunk/
 inviters/invitation/64/4');
             pr($this-Session-read('data'));

 Output 1:

 /mine2share.com/trunk/inviters/invitation/64/4

 On next Refresh:
 /mine2share.com/trunk/inviters/invitation/64/loading2.gif

 /mine2share.com/trunk/inviters/invitation/64/4
 -

 last character 4 has been replaced with loading2.gif. Similar things
 happening with other data..

sounds like, unlike the code example you've shown, you're storing the
current url in the session.

AD

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to paginate subtable in a view?

2011-11-13 Thread Daniel
On Nov 13, 11:01 am, phpMagpie p...@webbedit.co.uk wrote:
 You can't paginate data you have fetched with $this-Model-find() you
 must use $this-paginate().

 HTH, Paul.

OK, here is what I tried:

$this-set(
'category',
$this-paginate(
$this-Category-find(
'first',
array(
'conditions' = array('Category.id' = $id),
'contain' = array(
'Post' = array(
'User' = array(
'id',
'username'
)
)
)
)
)
)
);

I now get these errors:

Notice (8) : Array to string conversion [CORE\cake\libs\model
\datasources\dbo_source.php, line 2204]
Warning (512) : SQL Error: 1054: Unknown column 'Category' in 'where
clause' [CORE\cake\libs\model\datasources\dbo_source.php, line 684]

What am I doing wrong?

Thanks.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


How-to URL modification

2011-11-13 Thread Sushil Gupta
Hi! I'm a CakePhp beginner. In my app, users can view their details from, 
http://myapp/users/view/userid. But I what I want is, http://myapp/userid. 
How do I do this?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Auth - 2 logged in models simultaneously

2011-11-13 Thread wudu
I have Users and Admins models. For various reasons I don't want to
merge them and use role/type field. Is it possible to use Auth
component so that Admin and User can both be logged in at the same
time? I'm using cakephp 2.0

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Auth - 2 logged in models simultaneously

2011-11-13 Thread phpMagpie
For them to exist as separate entities and at the same time they will need 
their own (and I assume on the same client) then you will need them to use 
separate sessions, well pretty much separate everything ... not sure how 
easy that is going to be to configure, i possible at all.

In summary, your 'various reasons' for not going with the standard 
convention of role/type is going to cause you a world of pain.

HTH, Paul.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How-to URL modification

2011-11-13 Thread wudu
In your users controller (cake 2.0):
function view($id = null) { if (!empty($this-request-
params['userid'])) {
$id = $this-request-params['userid']; }
...}
In your routes.php:Router::connect('/:userid',  array('controller' =
'users', 'action' = 'view'),   array('userid' = '[0-9]+'));

If userid can be username (eg: contain non-numbers) you will have to
modify array('userid' = '[0-9]+') to account for that
On Nov 13, 2:02 pm, Sushil Gupta desus...@gmail.com wrote:
 Hi! I'm a CakePhp beginner. In my app, users can view their details 
 from,http://myapp/users/view/userid. But I what I want is,http://myapp/userid.
 How do I do this?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to paginate subtable in a view?

2011-11-13 Thread phpMagpie
Daniel,

You're trying to do a find (for your Category data) and thinking you can 
then paginate the contained Posts it fetches, you cannot.

I advise you spend some time going through the book's pages on pagination 
to understand it:
http://book.cakephp.org/view/1231/Pagination

In essence you need a separate find for your category:
$this-set('category', $this-Category-find('first', array( 
  'conditions' = array('Category.id' = $id), 
  'contain' = array( 
'Post' = array('User' = array('id', 'username') ) 
  )
))); 

And a separate paginate for the post records you want to paginate:
$this-paginate = array( 
  'Post'= array( 
'limit'= 2, 
'page'= 1, 
'order'= array('Post.created'= 'desc'),
'conditions' = array('Post.category_id' = $id)
  ) 
); 
$this-set('posts', $this-paginate('Post')); 

You probably have a HABTM relationship between Category and Post, so need 
to change the paginate conditions accordingly.

HTH, Paul.

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How-to URL modification

2011-11-13 Thread phpMagpie
Links to the relevant book pages:
http://book.cakephp.org/view/945/Routes-Configuration // 1.3
http://book.cakephp.org/2.0/en/development/routing.html#routes-configuration // 
2.0

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: How to paginate subtable in a view?

2011-11-13 Thread Sam Sherlock
Paginate returns results paginated.
Find returns unpaginated data

- S
On 13 Nov 2011 16:51, Daniel danwgr...@gmail.com wrote:

 On Nov 13, 11:01 am, phpMagpie p...@webbedit.co.uk wrote:
  You can't paginate data you have fetched with $this-Model-find() you
  must use $this-paginate().
 
  HTH, Paul.

 OK, here is what I tried:

 $this-set(
'category',
$this-paginate(
$this-Category-find(
'first',
array(
'conditions' = array('Category.id' = $id),
'contain' = array(
'Post' = array(
'User' = array(
'id',
'username'
)
)
)
)
)
)
 );

 I now get these errors:

 Notice (8) : Array to string conversion [CORE\cake\libs\model
 \datasources\dbo_source.php, line 2204]
 Warning (512) : SQL Error: 1054: Unknown column 'Category' in 'where
 clause' [CORE\cake\libs\model\datasources\dbo_source.php, line 684]

 What am I doing wrong?

 Thanks.

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


CakePHP 2.0.3 out of the oven

2011-11-13 Thread José Lorenzo


The CakePHP core team is proud to announce the immediate availability of 
CakePHP 2.0.3 [1]. A lot has happened in the PHP world since our last 
release, this new version incorporates all needed changes needed to adapt 
to the ever evolving world of PHP frameworks.

One of the big changes out there was PHPUnit 3.6 being marked as stable and 
becoming the default version available through the PEAR installer. This 
change caught many developers by surprise. They could not easily run 
CakePHP's built-in test suite due to the major changes in PHPUnit. We have 
made the required changes to make sure 2.0.3 runs with no issues in both 
3.5 and 3.6 versions of PHPUnit.

A big difference people will notice when writing unit tests is that all 
output is swallowed by PHPUnit and not presented in either the web tester 
page nor in the CLI tester. To overcome this annoyance use the--debug modifier 
if you are using the CLI interface.

The second bit of good news is the availability of PHP 5.4-rc1. We have 
taken the time to test our framework against this PHP version and fixed 
many of the few notices and issues that discovered while running our 
automated tests. If you are early jumping on the 5.4 bandwagon, you can 
consider CakePHP one of the frameworks to be running smoothly on it.

In total, there were 66 commits and 32 issues have been resolved for 2.0.3. 
A complete list of the changes can be viewed in the changelogs page [2], 
here is a quick summary of changes that made it into 2.0.3:

   - Runs smoothly in php 5.4
   - Easier to test controllers using REST
   - Correct manipulation of boolean values in DboSource::insertMulti()
   - Full compatibility with PHPUnit 3.6
   - Fixed several minor issues with the command line bake utility
   - Fixed Content-Length calculation when there is buffered output that 
   will be sent before the response body
   - Various improvements in the UpgradeShell
   - DboSource::lastAffected() now returns correct integer

Thanks for ever-growing interest in CakePHP, we have received many pull 
requests for both the code and documentation, we are excited about the all 
the buzz we are creating with this new version, without all your 
contributions there would not be CakePHP

   - Download a packaged release [1]
   - View the changelog [2]

Links
   
   - [1] http://github.com/cakephp/cakephp
   - [2] http://cakephp.org/changelogs/2.0.3

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


TimeHelper problem

2011-11-13 Thread john lyles
I am using Cake v2.0.2

Why would the following generate this error??:

Fatal error: Call to a member function format() on a non-object in C:
\xampp\htdocs\myapp\View\Themed\mytheme\posts\index.ctp on line 6


$this-Time-format('F j, Y', $post['Post']['created']);

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: TimeHelper problem

2011-11-13 Thread Thiago Belem
Did you enabled the TimeHelper on the $helpers property on your Controller?

http://book.cakephp.org/2.0/en/controllers.html#Controller::$helpers

Cya,
--
***Thiago Belem*
Desenvolvedor
Rio de Janeiro - RJ - Brasil

+55 (21) 8865.9250
thiagobelem.net
cont...@thiagobelem.net

*Skype / gTalk **»* thiago.belem.web
*LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt*
Assando Sites*, curso de CakePHP *»* assando-sites.com.br


2011/11/14 john lyles confidentia...@gmail.com

 I am using Cake v2.0.2

 Why would the following generate this error??:

 Fatal error: Call to a member function format() on a non-object in C:
 \xampp\htdocs\myapp\View\Themed\mytheme\posts\index.ctp on line 6


 $this-Time-format('F j, Y', $post['Post']['created']);

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


primaryKey in cake 2.0

2011-11-13 Thread sixthpoint
I have been running into a issue once upgrading to cake 2.0. When
defining a HABTM association and then setting the primaryKey var in
each of my models. It fails to utilize my altered primary key in the
association. It resets to the default id field as the primary key in
each model. Has there been documentation about this error yet
reported? or a workaround?

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: primaryKey in cake 2.0

2011-11-13 Thread Graham Weldon
Can you provide a code sample to reproduce this? 

Cheers,
Graham Weldon
http://grahamweldon.com
e. gra...@grahamweldon.com
p. (+61) 0407 017 293
Skype: grahamweldon


On Monday, 14 November 2011 at 3:50 PM, sixthpoint wrote:

 I have been running into a issue once upgrading to cake 2.0. When
 defining a HABTM association and then setting the primaryKey var in
 each of my models. It fails to utilize my altered primary key in the
 association. It resets to the default id field as the primary key in
 each model. Has there been documentation about this error yet
 reported? or a workaround?
 
 -- 
 Our newest site for the community: CakePHP Video Tutorials 
 http://tv.cakephp.org 
 Check out the new CakePHP Questions site http://ask.cakephp.org and help 
 others with their CakePHP related questions.
 
 
 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
 http://groups.google.com/group/cake-php
 
 


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Message: No input file specified.

2011-11-13 Thread Mister Mistah
hello,

i'm just beginning to start the blog tutorial and have completed the
initial setup of cakephp.  i'm getting all green lights, except when i
start going into the views.  for example, when i type www.example.com/posts,
i get the message No input file specified.

reading around i see that people have upgraded their version of php,
but, according to my index page, my version of PHP is 5.2.6 or
higher.

would really appreciate if someone could point me in the right
direction.

thanks so much in advance!!

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Strange Session Data Corruption on CakePHP

2011-11-13 Thread Rayhan Chowdhury
Yes, I want to back to this url later, but it gets changed, so I am in
big trouble...

On Nov 13, 10:28 pm, AD7six andydawso...@gmail.com wrote:
 On Nov 13, 12:47 pm, Rayhan Chowdhury rayha...@gmail.com wrote:









  Hi,

  I am getting a very strange problem in CakePHP. When I store data into
  session, it works. On next page load it gets changed automatically.
  ---
  Like:
              pr($this-Session-read('data'));
              $this-Session-write('data', '/mine2share.com/trunk/
  inviters/invitation/64/4');
              pr($this-Session-read('data'));

  Output 1:

  /mine2share.com/trunk/inviters/invitation/64/4

  On next Refresh:
  /mine2share.com/trunk/inviters/invitation/64/loading2.gif

  /mine2share.com/trunk/inviters/invitation/64/4
  -

  last character 4 has been replaced with loading2.gif. Similar things
  happening with other data..

 sounds like, unlike the code example you've shown, you're storing the
 current url in the session.

 AD

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: CakePHP 2.0.3 out of the oven

2011-11-13 Thread stefanski
Many Thanks to the core team. You guys are fantasic! I love CakePHP

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


hi need to maintain to layouts one for admin and one for remaining

2011-11-13 Thread anjith
Hi,

I need to have two layouts one for admin and one for remaining all
pages.

How to create new admin template just like default.ctp and how to
specify that to functions of admin controller.

Regards,
Anjith Kumar G

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: hi need to maintain to layouts one for admin and one for remaining

2011-11-13 Thread Sadikul Ameen Mohamed
Use this code in App_controller

if($this-params['controller'] == 'admins') {
$this-layout = 'admin_layout';
}


On Nov 14, 11:48 am, anjith anjithkumar.garap...@gmail.com wrote:
 Hi,

 I need to have two layouts one for admin and one for remaining all
 pages.

 How to create new admin template just like default.ctp and how to
 specify that to functions of admin controller.

 Regards,
 Anjith Kumar G

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: hi need to maintain to layouts one for admin and one for remaining

2011-11-13 Thread anjith
Hi,

I have created admin routing, so controllers are having functions with
admin_index etc, and in the url it is admin/controller_name, cant i
specify for admin/controller_names a template.


On Nov 14, 11:54 am, Sadikul Ameen Mohamed sadi...@greatinnovus.com
wrote:
 Use this code in App_controller

 if($this-params['controller'] == 'admins') {
         $this-layout = 'admin_layout';

 }

 On Nov 14, 11:48 am, anjith anjithkumar.garap...@gmail.com wrote:



  Hi,

  I need to have two layouts one for admin and one for remaining all
  pages.

  How to create new admin template just like default.ctp and how to
  specify that to functions of admin controller.

  Regards,
  Anjith Kumar G

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php