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

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

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

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

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

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

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

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

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

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

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

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

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]

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

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

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

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!

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

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

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

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(),

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

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

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.

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]

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

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

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