Is 1.2 alpha feature complete?

2007-09-02 Thread Sergei

Hello,

I 've watched PDF presentation of Cake 1.2 new features and it looks
promising. I built some sites on 1.1 and now I want to move on to this
new version. So I have important question: is 1.2 version feature
complete?

Thank you.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Using the Paginator helper with 2 models in a view.

2007-09-02 Thread phpjoy

in my index.ctp I have the following code:
th?php echo $paginator-sort('Title', 'title');?/th
th?php echo $paginator-sort('Layout Name', 'LayoutWidget.name');?
/th

When I try to sort the table in the column 'title' it works like a
charm.
When I try to sort the Layout Name column, it works just for 'asc'.
When I want to click it again, the direction stays on 'asc' instead of
'desc'.

Any ideas how I can fix this?


--~--~-~--~~~---~--~~
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: What is Vogoo PHP and FreeTag PHP Lib

2007-09-02 Thread junal

just go to google and search with what
is Vogoo PHP
what is FreeTag PHP Lib
hope you will get your all answers.

On Sep 1, 5:20 pm, Ayaz Khan, Indore, India [EMAIL PROTECTED]
wrote:
 Hi friends, I am new for php and cakephp so I want to know that what
 is Vogoo PHP and FreeTag PHP Lib. will you please discribe me


--~--~-~--~~~---~--~~
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: Cake Mysql UTF-8 :(

2007-09-02 Thread MJ Ray

Mech7 [EMAIL PROTECTED] wrote:
 header('Content-Type: text/html; charset=utf-8');
 ?
 Or is there a better way that it will always get used automatically
 with any layout ?

Put it in your server configuration.  If using Apache, it's
  AddDefaultCharset utf-8

Hope that helps,
-- 
MJ Ray [EMAIL PROTECTED]  www.ttllp.co.uk +44(0)844 4437 237
Webmaster since 1994, programmer, statistician, writer, more.
Turo Technology LLP, reg'd in England+Wales, number OC303457
Reg. Office: 36 Orchard Cl., Kewstoke, Somerset, GB-BS22 9XY

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



CakePHP 1.2 paginate two models

2007-09-02 Thread [EMAIL PROTECTED]

I have two models:

Top hasMany Post
Post belongsTo Top

(all default created by cake bake ;-)

So.

When I Top index view. All good. I see pervious, next and can
browse between page.

What I want? I want paginating for Post-model, When I view Top.

In Top view, I see one Top, and all related Post records.

How to make paginate for Post? And have 1 Top records from Top model,
and switch between some page of Post records.

How to do this?


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Augmenting controller actions with components

2007-09-02 Thread [EMAIL PROTECTED]

Is it currently possible to augment controller actions with component
functions. What I'm looking for is something similar to the way that a
behaviour function can be accessed through its model, but for
controllers, so I can provide an action with a component, instead of
having to write a bunch of actions in the controller which do no more
than farm the work out to a component.

I've implemented this through startup hook, with a switch on the
controller-params, but suspect that this might be a less than elegant
solution. Do people think it might be worth a RFE?


--~--~-~--~~~---~--~~
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: does $cakeDebug work?

2007-09-02 Thread Grant Cox

If you find a potential bug, post a ticket on https://trac.cakephp.org


On Sep 2, 1:26 am, Baz L [EMAIL PROTECTED] wrote:
 Since this has been ignored for a while, I guess a lot of people don't
 really care for it much, but I do. I noticed that when I went to cake
 1.2 it just died.

 Here's how I fixed it:

 Opened this file: cake\libs\view\templates\elements\dump.ctp

 changed:
 ?php print_r($this-controller); ?

 to

 ?php print_r($this); ?

 Opened this file: cake\libs\view\view.php

 changed:
 if (Configure::read()  2  $this-controller != null) {

 to

 if (Configure::read()  2  $this != null) {

 I guess from cake 1.2 we no longer populate $this-controller?

 Could one of the developers confirm this so that (if it's correct) we
 can get it into the next version?

 Thanks:
 --
 Baz L
 Web Development 2.0: Web Design, CakePHP, 
 Javascripthttp://www.WebDevelopment2.com/


--~--~-~--~~~---~--~~
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: Fw: cakephp Eclipse install where is console???

2007-09-02 Thread Chris Hartjes

On 9/1/07, SIXS [EMAIL PROTECTED] wrote:

 I have watched the video and followed the instructions. I can't  see where
 console is located in cakephp
 Jim

Console is in cake/console/

It's a command-line script that must be run from a DOS prompt in your
case.  I run OS-X, so it's as simple as this, once I've added
cake/console/cake to my path:

type 'cake bake' to start up bake
type 'cake console' to use my very alpha interactive testing console
type 'cake' and you will see a bunch of information about what shells
are available

Hope that helps.

-- 
Chris Hartjes
Senior Developer
Cake Development Corporation

My motto for 2007:  Just build it, damnit!

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
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: Newbie: Insert in many models from one controller

2007-09-02 Thread [EMAIL PROTECTED]

Thanks for the reply,
So I guess, i will stick with it.

Adam.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



invoking controller function from view

2007-09-02 Thread Saeedo

Hello:

Background:
I am attempting to create an application that pings multiple address.
The problem that I am having is the execution limit is reached i.e. 60
seconds when running the script. Also, this is not acceptable due to
the end-user waiting for all request to finish before displaying at
least some of the results.

Fix:
My solution for this problem was to create an img tag that passes
variable to a function and return if  a host is reachable. Hence, the
page will display an image depending on the result.

Problem:
How do I pass to the controller the ip address?
img src='?php echo $this-controller-ipcheck('100.0.0.1')?'

Thanks,
Saeedo


--~--~-~--~~~---~--~~
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: UnitConversion, in which layer? / Correct input erros, where?

2007-09-02 Thread Chris Hartjes

On 9/1/07, davidpersson [EMAIL PROTECTED] wrote:
 1. In which layer should I do the conversion?
 I thought it should be placed within the model in beforeSave() /
 beforeValidate() and afterFind().

You can create a custom validation function that could do all this for
you, even changing the value into the correct format you want before
returning it by manipulating
$this-data['ModelName']['FieldYouAreValidtatingHere']

I believe there is an article in the bakery about advanced validation
that shows you how to build and use one of these things.

Hope that helps.

-- 
Chris Hartjes
Senior Developer
Cake Development Corporation

My motto for 2007:  Just build it, damnit!

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
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: Augmenting controller actions with components

2007-09-02 Thread Chris Hartjes

On 9/2/07, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

 Is it currently possible to augment controller actions with component
 functions. What I'm looking for is something similar to the way that a
 behaviour function can be accessed through its model, but for
 controllers, so I can provide an action with a component, instead of
 having to write a bunch of actions in the controller which do no more
 than farm the work out to a component.

I'm having a hard time visualizing what you're trying to accomplish
here.  Could you show us a code example?  Given that you can create
methods in a component, and you can call these methods in an action in
your controller.

I think an example would be very helpful.

-- 
Chris Hartjes
Senior Developer
Cake Development Corporation

My motto for 2007:  Just build it, damnit!

@TheBallpark - http://www.littlehart.net/attheballpark
@TheKeyboard - http://www.littlehart.net/atthekeyboard

--~--~-~--~~~---~--~~
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: outputting results from a db in groups of common content

2007-09-02 Thread alan

That is tight!  Thanks!


--~--~-~--~~~---~--~~
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: Release: 1.1.17.5612

2007-09-02 Thread red

Is everything ok with a the bake script in this release?
I can't bake anything, because the script seems to not recognize field
names from table when I wan't to add some validation rules to the
model. The types of fields are ok... strange :/



On 30 Sie, 06:06, Larry E. Masters aka PhpNut [EMAIL PROTECTED]
wrote:
 The 1.1.17.5612 release is available for download. This is a bug fix
 release. We will continue to release bug fixes on this branch for some time,
 most focus over the next few X (sorry you know I will not give dates) will
 be on implementing the remaining enhancements in the 1.2.x.x branch of the
 code.

 Download 1.1.17.5612http://cakeforge.org/frs/?group_id=23release_id=307
 Change loghttps://trac.cakephp.org/wiki/changelog/1.1.x.x

 --
 /**
 * @author Larry E. Masters
 * @var string $userName
 * @param string $realName
 * @returns string aka PhpNut
 * @access  public
 */


--~--~-~--~~~---~--~~
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: Augmenting controller actions with components

2007-09-02 Thread [EMAIL PROTECTED]

Sure, it does sound a little convoluted... I'll try again!

for example:

class ExampleController extends AppController {
  var $actsAs = array('SomeComponent');
}

class SomeComponent extends Component {
  public function someAction() {

  }
}

What I want to be able to do is have the url
(controller=ExampleController, action=SomeAction) result in the
SomeAction member of the component being called as an action. Of
course I could just write: function someAction() { return $this-
SomeComponent-someAction()); } lots of times in my controller (for
all the actions), but it would be nice not to have to do all that
typing.

Essentially I view it working the same way as ModelBehaviours, the way
you can call $model-functionInBehaviour() directly. The change would
probably have to go in the dispatcher though, rather than the
controller.

Right now I am achieving the effect through the rather in-elegant, and
potentially dangerous:
class SomeComponent extends Component {
  function startup($controller) {
$action = $controller-params['action'];
if method_exists($this,$action) {
  $this-$action();
}
  }
  function someAction() {
... do some stuff which results in a $this-controller-redirect,
renderAction or such like, ie completely fulfills an action ...
  }
}

It's certainly an enhancement, but I think the design might need some
discussion before it's worth submitting/rejecting as an enhancement.


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



How to render a template from another model.

2007-09-02 Thread welja

I am trying to render a template form another model.

Something like:

//  controller of ExampleA using a Template from ExampleB

$this-render(null,null, '/../example_b/view.thtml');

This doesn't work, sadly. maybe because its not very MVC like?
But is it possible (without using the requestAction )?

Thx.


--~--~-~--~~~---~--~~
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: How to render a template from another model.

2007-09-02 Thread welja

Sorry, found the answer. In needed a absolute path to the template, so
in my case the following worked:

  $file = APP . 'plugins' . DS . $this-params['plugin'] . DS .
'views' . DS . $view . DS . 'test.tpl';

  $this-render( null, null, $file );

Cake Rocks!



--~--~-~--~~~---~--~~
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: problems with midphase hosting

2007-09-02 Thread Alvaro

If I force an error on database.php file I can get my layout working and
render some elements too, but off corse nothing about data db and get
other errors. Why this happend? Is about data connection? is .htaccess?

 Can you straight to your index.php file in Cake?
I don't understand exactly what you mean. :)

Thanks
Alvaro

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Function to format Date/Time for insertion on database

2007-09-02 Thread Luiz Fernando

Hi there guys,

I know what the subject may make it look like, but my question is not
related to standard PHP functions like date(), strftotime(), and the
like. What I'm looking for is a function (that would probably be
provided by Cake) that would abstract the date formatting used in the
underlying database.

Right now I'm using MySQL. In my application, I'm fetching the
birthdate of the user using separate select's for each field (day,
month and year). Then, at the controller, I join these together by
concatenating the year, month and day by the - character, that
results in a MySQL compatible date format, and insert/update this into
the database. However, I see that this format may not be compatible
for other databases, and would require me to modify the concatenation
method if in the future I decide to migrate the application to another
database.

So, what I'm asking for is if there's a function that, given a series
of parameters respective to each date field, or a single parameter
(like a timestamp) would return me a string with a date formatted in a
way compatible with the underlying database. Is there such a thing on
Cake?

Thanks,

Luiz


--~--~-~--~~~---~--~~
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: invoking controller function from view

2007-09-02 Thread Paul Webster

Using request action?

?php echo $this-requestAction('/controllerName/ipcheck/100.0.0.1');?

-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf
Of Saeedo
Sent: Monday, 3 September 2007 2:07 a.m.
To: Cake PHP
Subject: invoking controller function from view


Hello:

Background:
I am attempting to create an application that pings multiple address.
The problem that I am having is the execution limit is reached i.e. 60
seconds when running the script. Also, this is not acceptable due to
the end-user waiting for all request to finish before displaying at
least some of the results.

Fix:
My solution for this problem was to create an img tag that passes
variable to a function and return if  a host is reachable. Hence, the
page will display an image depending on the result.

Problem:
How do I pass to the controller the ip address?
img src='?php echo $this-controller-ipcheck('100.0.0.1')?'

Thanks,
Saeedo





__ NOD32 2497 (20070901) Information __

This message was checked by NOD32 antivirus system.
http://www.eset.com



--~--~-~--~~~---~--~~
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: Function to format Date/Time for insertion on database

2007-09-02 Thread Samuel DeVore

api has the answer

http://api.cakephp.org/1.2/class_controller.html#f6d9f131aca280eb1c21e3665b0de659

Sam D

On 9/2/07, Luiz Fernando [EMAIL PROTECTED] wrote:

 Hi there guys,

 I know what the subject may make it look like, but my question is not
 related to standard PHP functions like date(), strftotime(), and the
 like. What I'm looking for is a function (that would probably be
 provided by Cake) that would abstract the date formatting used in the
 underlying database.

 Right now I'm using MySQL. In my application, I'm fetching the
 birthdate of the user using separate select's for each field (day,
 month and year). Then, at the controller, I join these together by
 concatenating the year, month and day by the - character, that
 results in a MySQL compatible date format, and insert/update this into
 the database. However, I see that this format may not be compatible
 for other databases, and would require me to modify the concatenation
 method if in the future I decide to migrate the application to another
 database.

 So, what I'm asking for is if there's a function that, given a series
 of parameters respective to each date field, or a single parameter
 (like a timestamp) would return me a string with a date formatted in a
 way compatible with the underlying database. Is there such a thing on
 Cake?

 Thanks,

 Luiz


 



-- 
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

http://blog.samdevore.com/archives/2007/03/05/when-open-source-bugs-me/

--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Pagination sort() tweaks

2007-09-02 Thread Dave

I was curious if anyone would like to comment on these few changes
I've made to the pagination helper.

I've noticed that regardless everything is always sorted asc, which
for me didn't work as I need to be able to sort asc or desc from links
next to the field names. (EG: Name (Asc) | (Desc))

So in order to do this, I pilfered through the pagination helper and
tweaked it a little bit.

function sort($title, $key = null, $options = array()) {
$options = am(array('url' = array(), 'model' = null, 'dir' =
null), $options);
$url = $options['url'];
unset($options['url']);

if (empty($key)) {
$key = $title;
$title = Inflector::humanize(preg_replace('/_id$/', '', 
$title));
}

if (isset($options['dir'])) {
$dir = $options['dir'];
unset($options['dir']);
} elseif ($this-sortKey($options['model']) == $key  $this-
sortDir($options['model']) == 'asc') {
$dir = 'desc';
}

if (isset($options['model'])) {
$key = $options['model'].'.'.$key;
unset($options['model']);
}

$url = am(array('sort' = $key, 'direction' = $dir), $url,
array('order' = null));
return $this-link($title, $url, $options);
}

Basically just added the dir option, and the ability to append the key
with the model name sense currently in 1.2 it doesn't appear to accept
the model option. By accept I mean actually perform something, from
what I've seen prior to my changes it would sort by default.name
instead of say, state.name.

very odd considering that this should work?

?php echo $paginator-sort('blah', 'name', array('dir' = 'desc',
'model' = 'Business'));?

But apparently doesn't.

Thanks,
Dave


--~--~-~--~~~---~--~~
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: Function to format Date/Time for insertion on database

2007-09-02 Thread Grant Cox

And in case Sam's link isn't so obvious, he's talking about the
Controller::cleanUpFields() function.  If you use the Form helper's
date options, just call $this-cleanUpFields() before your save() in
the controller, this will automatically rejoin the separate day/month/
year fields into whatever is appropriate for your db field.


--~--~-~--~~~---~--~~
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: Is 1.2 alpha feature complete?

2007-09-02 Thread nate

On Sep 2, 3:01 am, Sergei [EMAIL PROTECTED] wrote:
 Hello,

 I 've watched PDF presentation of Cake 1.2 new features and it looks
 promising. I built some sites on 1.1 and now I want to move on to this
 new version. So I have important question: is 1.2 version feature
 complete?

No.


--~--~-~--~~~---~--~~
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: does $cakeDebug work?

2007-09-02 Thread Baz
I kinda wanted someone to check it out first, but that's cool.

There was already a ticket (closed) so I reopened with my comments.

On 9/2/07, Grant Cox [EMAIL PROTECTED] wrote:


 If you find a potential bug, post a ticket on https://trac.cakephp.org


 On Sep 2, 1:26 am, Baz L [EMAIL PROTECTED] wrote:
  Since this has been ignored for a while, I guess a lot of people don't
  really care for it much, but I do. I noticed that when I went to cake
  1.2 it just died.
 
  Here's how I fixed it:
 
  Opened this file: cake\libs\view\templates\elements\dump.ctp
 
  changed:
  ?php print_r($this-controller); ?
 
  to
 
  ?php print_r($this); ?
 
  Opened this file: cake\libs\view\view.php
 
  changed:
  if (Configure::read()  2  $this-controller != null) {
 
  to
 
  if (Configure::read()  2  $this != null) {
 
  I guess from cake 1.2 we no longer populate $this-controller?
 
  Could one of the developers confirm this so that (if it's correct) we
  can get it into the next version?
 
  Thanks:
  --
  Baz L
  Web Development 2.0: Web Design, CakePHP,
 Javascripthttp://www.WebDevelopment2.com/


 


--~--~-~--~~~---~--~~
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: problems with midphase hosting

2007-09-02 Thread Sam Sherlock
have you tried cake with internal rewrite?

I had a few troubles with 1and1 and cake's default htaccess see
config/core.php I was able to make a slight modification to  the htaccess
files and get it working fine.  Its worth turning this off as a trial.

though you issue does sound different from the issue I had with 1and1 as you
describe the following

 If I force an error on database.php file I can get my layout working and
render some elements too

On 02/09/07, Alvaro [EMAIL PROTECTED] wrote:


 If I force an error on database.php file I can get my layout working and
 render some elements too, but off corse nothing about data db and get
 other errors. Why this happend? Is about data connection? is .htaccess?

  Can you straight to your index.php file in Cake?
 I don't understand exactly what you mean. :)

 Thanks
 Alvaro

 


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



renderElement not working in Ajax Updated div

2007-09-02 Thread Richard

Hi,

I have an Ajax form that posts some data and the updated div section
(confirmation page) calls renderElement -- but for some reason does
not work. Any ideas?

Many thanks, Richard


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Cake Issue - Help needed asap!

2007-09-02 Thread [EMAIL PROTECTED]

Hey everyone, new member here.

Is it a folder structure issue? My documentRoot is configured in
apache2 to be /home/user/www, I'm having problems droping the
contents of my CakePHP site directly into this directory so that now I
have the following:

home/user/www
   /app
   /cake
   .
   .
   .
   index.php
   .htaccess


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Cake/Server Issue - Help needed asap!

2007-09-02 Thread [EMAIL PROTECTED]

Hey everyone, new member here.  I just put my site onto a new server
(I had it professionally compiled with all of my site's needs) and I'm
having an issue.  It's not recognizing Cake.  When I load a page (all
of my site's files were uploaded) it doesn't recognize any of the
site's pages.  It all starts with the index.php file, where nothing
shows up.  It's almost as if it ignores it and doesn't see that it
exists.  The page just loads up blank.  I've tried debug mode and
don't see any notifications which tells me that Cake is somehow not
being recognized.

Is it a folder structure issue? My documentRoot is configured in
apache2 to be /home/user/www, I'm having problems dropping the
contents of my CakePHP site directly into this directory so that now I
have the following:

home/user/www
   /app
   /cake
   .
   .
   .
   index.php
   .htaccess

Has anyone experienced this issue?  Any ideas?  Please help me out,
I'd love to finally go to sleep for once this weekend!

Thanks!


--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---