Re: Pagination not advancing results

2006-10-18 Thread AD7six
Hi LikeSoy, Never used MS Sql, and I wish I could say something more constructive than 'bummer'. If MS Sql doesnt understand OFFSET you could either Based on the pagination settings, retrieve results i - j from the complete result set of your find all or Find the limits of the result set that

Re: how to get two tables with pagination on same page?

2006-10-18 Thread AD7six
Hi Frank, See the link refering to exactly that from the bakery: http://bakery.cakephp.org/leafs/view/7 Alternatively view any individual title http://www.noswad.me.uk/Demo1/Titles/ The code for any demo on my site is available from the demos tab so you can see the controller and view files. H

CakePHP on IIS problems

2006-10-18 Thread [EMAIL PROTECTED]
Hi, In order to evaluate the framework, I have developed the "blog example" of the Cakephp tutorial using Apache 2.0 + php 4.3.11 on my Desktop. And I have found that it can save me more time. Unfortunately, my hosting service work under "Windows + IIS" , so I made suggested ( define Apache fal

Re: version 1.2?

2006-10-18 Thread Felix Geisendörfer
Hi, I can't give you an estimate, but I can tell you that I've been running 1.2 since weeks and it has felt very stable so far, which is impressive since there hasn't even been a dev release. However, trac is saying that the dev release is aimed for the end of this month which is awesome, but

Re: version 1.2?

2006-10-18 Thread Larry E. Masters aka PhpNut
I do not like to set release dates.But lets say sometime before the end of the year...You can use 1.1.x.x now, with cake the upgrade process is minimal.-- /*** @author Larry E. Masters* @var string $userName * @param string $realName* @returns string aka PhpNut* @access  public*/ --~--~-~

Re: Simple web application

2006-10-18 Thread roby
Thanks for the reply, John, and sorry if I ask more than simple question. But I'm really confused how to use Cake correctly and properly. I've visited http://cakeforge.org and other places too. I were looking up some codes or pre built applications, but I didn't know how to implement it or how to

help on select Tag.

2006-10-18 Thread Gayathiri
I have a selectTag with list(for eg names). On changing, I need to call a url with the name selected. echo $html->selectTag('user/name',$allnames,0,$selectAttr=array("onchange"=>"echo $html->redirect( .)")); can some one please help me with ths? Regards, GS --~--~-~--~~---

version 1.2?

2006-10-18 Thread Sergei
Hello, I'm interested when Cake 1.2 will be released? Just estimated date. Asking because I want to start some project and don't want to build it on the old version. Thank you. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: problem with updates

2006-10-18 Thread Matt Adams
mike091 wrote: > Currently have $this->params['data']['Enquiry']['status'] = 'booked'; > in my appointments controller. > > I need to change the status field in my enquiries table when a record > is edited. I can get it saving to a status field in the appointments > table but not in enquiries.

Re: how to get two tables with pagination on same page?

2006-10-18 Thread Matt Adams
frocco wrote: > I want to display two tables on the same page. > They must both have pagination. > > How can I do this with CakePHP? Here's how I did it (with the current CakePHP 1.1.8.3544 and the latest pagination component & helper scripts and whatnot from the Bakery). My AppController cla

Re: Simple web application

2006-10-18 Thread John Zimmerman
Hi Roby.   What you are asking for is nearly a whole application.   One important thing to understand with Cake is that it is a framework for building applications, not an application itself.If you are looking for a prebuilt application you can checkout some of the projects on CakeForge http://ca

Simple web application

2006-10-18 Thread roby
Hello everyone, I'm a new member here and I'm a beginner in PHP and CakePHP. I want to learn more about CakePHP because I'm going to use it in my paper. So far, I try to understand the tutorial in CakePHP's manual but I didn't get it much. I've troubled especially with the mechanism. So, please he

Re: serving javascript instead of html

2006-10-18 Thread Rodrigo Tassinari
I don't know also kain, maybe autorender only occurs when the header sent is a (x)html header? I thought I didn't needed it also. maybe it's a bug. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. T

Using Exceptions in Cake

2006-10-18 Thread gourlay
I'm curious if there are suggestions for basic strategies in using Exceptions in Cake. I know that's a very general question but it seems there is nothing in this group regarding questions except for a few unanswered questions. Thanks --~--~-~--~~~---~--~~ You r

Re: Find posts I have commented on

2006-10-18 Thread nate
$posts = $this->Post->Comment->findAllByUserId($user_id, array("DISTINCT Post.id", "Post.title")); --~--~-~--~~~---~--~~ 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@goog

Re: problem with updates

2006-10-18 Thread John David Anderson (_psychic_)
On Oct 18, 2006, at 4:26 PM, mike091 wrote: > > Hi, > > Have quite a simple question: > > Currently have $this->params['data']['Enquiry']['status'] = 'booked'; > in my appointments controller. > > I need to change the status field in my enquiries table when a record > is edited. I can get it s

problem with updates

2006-10-18 Thread mike091
Hi, Have quite a simple question: Currently have $this->params['data']['Enquiry']['status'] = 'booked'; in my appointments controller. I need to change the status field in my enquiries table when a record is edited. I can get it saving to a status field in the appointments table but not in en

how to get two tables with pagination on same page?

2006-10-18 Thread frocco
Hello, I want to display two tables on the same page. They must both have pagination. How can I do this with CakePHP? Thanks Frank --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to thi

Find posts I have commented on

2006-10-18 Thread hookjd
I'm wondering if anyone can point out a handy way of using Cake functions to query for Posts that have Comments with a user_id of x. Here's a quick sketch of what I'm talking about: Post hasMany = 'Comment' Comment belongsTo = 'Post','User' - My objective is to make a page that has all

Re: Faking OO on RDBMS

2006-10-18 Thread [EMAIL PROTECTED]
scott lewis wrote: > This far from an ideal solution, but it might be workable... > > Schema: > runs > idINT > exec_id INT > ... > > execs > idINT > > exec_type1s > idINT > exec_id INT >

Re: Faking OO on RDBMS

2006-10-18 Thread [EMAIL PROTECTED]
Sonic Baker wrote: > Woops, > > Sorry, forgot to include the link. Here you go: > > http://www.architecturejournal.net/2006/issue8/F6_Nordic/default.aspx > from that article: "Development of the Nordic Object/Relational Database Design involved a year's worth of iterations, a simplified metadata

Re: Integration with phpMailer?

2006-10-18 Thread xhenxhe
cool site. Thanks! On Oct 18, 2:53 pm, "Mikee Freedom" <[EMAIL PROTECTED]> wrote: > morning mate, > > best place to look these days is the bakery: > > http://bakery.cakephp.org/articles/view/94 > > or if you can't find it there try the old wiki > > http://wiki.cakephp.org/tutorials:sending_email_

Re: Integration with phpMailer?

2006-10-18 Thread Mikee Freedom
morning mate, best place to look these days is the bakery: http://bakery.cakephp.org/articles/view/94 or if you can't find it there try the old wiki http://wiki.cakephp.org/tutorials:sending_email_with_phpmailer?s=phpmailer HTH freedom On 19/10/06, xhenxhe <[EMAIL PROTECTED]> wrote: > > I'm

Integration with phpMailer?

2006-10-18 Thread xhenxhe
I'm really new to Cake. I use phpMailer for sending mail. I was wondering if it has been integrated into cake in anyway, or how I would go about integrating it? Thanks. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Group

Re: Convincing my company to use Cake

2006-10-18 Thread ski.nalicio.us
Couldnt you just encrypt the App related files (objects, controllers and views etc.) which you created within the Cake framework specific to your application? At least then there is no copyright issues as it is your code. That way the client simply cant modify the application you have built for

Re: Functional benchmark Rails - Django - CakePHP

2006-10-18 Thread jchatard
Thank you guys for your precisions, I've modified the document, thanks to you. I'll will let you know when the benchmark is published! Jérémy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To po

Re: making controller methods private?

2006-10-18 Thread Chris Hartjes
On 10/18/06, nate <[EMAIL PROTECTED]> wrote: > > Just to clarify: > > Chris, yes you're right, using an underscore is just a convention, and > while we can't disable access to object methods that begin with an > underscore from being accessed by you within your own application code, > it is baked

Re: Functional benchmark Rails - Django - CakePHP

2006-10-18 Thread nate
Well, I don't want to do *all* your work for you, but this may be of help: http://cake.insertdesignhere.com/files/cakephp.xls --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group,

Re: making controller methods private?

2006-10-18 Thread nate
Just to clarify: Chris, yes you're right, using an underscore is just a convention, and while we can't disable access to object methods that begin with an underscore from being accessed by you within your own application code, it is baked into the Dispatcher to disallow calling controller methods

Re: Is Model::findCount supposed to work?!?!?!?!

2006-10-18 Thread nate
https://trac.cakephp.org/browser/branches/1.2.x.x/cake/libs/controller/controller.php#L943 A simple usage example might look something like this: class PostsController extends AppController { var $paginate = array( "order" => "Post.created", "limit" => 20, "conditions" => array("pub

Re: Doubt with function Find and similar functions

2006-10-18 Thread Ismael S. Kafeltz
It was exactly what i was looking for... Thank you, it worked. I wish this information was documented in cake-api =/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send em

Re: Functional benchmark Rails - Django - CakePHP

2006-10-18 Thread Andre Medeiros
First off, CakePHP _HAS_ code generation (see the bake script). I believe that skills needed should be OO and general knowledge about PHP. Ajax / Javascript FX requires an external library to be downloaded and extracted to the js folder on the web root dir. You already have built-in functions th

Re: Pagination not advancing results

2006-10-18 Thread LikeSoy
Nah, $page was getting passed ... I tracked it all the way into the db libraries and realized the problem: I'm using SQL Server, which doesn't use OFFSET and has no real equivalent function. The dbo_mssql library translates the request as TOP, which returns the first 10, 20 or whatever. I guess

Re: Doubt with function Find and similar functions

2006-10-18 Thread AD7six
Recursive 0 still includes belongsTo and hasOne relationships (IIRC). set recursive to -1 to remove all associations and only query the direct model with no joins. HTH, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Goo

Re: multiple inheritance and uses

2006-10-18 Thread AD7six
Hi 2000Man, This may serve as a reasonable start for such functionality: http://bin.cakephp.org/view/16387673 HTH, AD7six --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, s

Doubt with function Find and similar functions

2006-10-18 Thread Ismael S. Kafeltz
Hello people. I was wondering about this piece of code: $aux = $this->PessoaFisica->find("PessoaFisica.cpf = '{$this->data['Form']['cpf']}'", array('cpf'), null, 0); pr($aux); which outputs this: Array ( [PessoaFisica] => Array ( [cpf] => 123 ) ) Fine, but my

Re: Problem with associations

2006-10-18 Thread Steniskis
Hello Leo, What about using the query in a method inside your model ? Sten --~--~-~--~~~---~--~~ 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 unsubscr

Re: Using Subversion for both site and cake

2006-10-18 Thread MJ Ray
Dave asked: > But is there some way to have a subdirectory in *both* repositories? You may like to try git for local development and see whether its svnimport tool pulling from Cake's SVN works well for you. I feel git really is much better than svn at handling multi-centred development. > It

Using Subversion for both site and cake

2006-10-18 Thread Dave
This is actually a continuation of: http://groups-beta.google.com/group/cake-php/browse_thread/thread/ed9d441a4b9141ef/bdac07fb5959629c I see how I can use svn:externals to have a subdirectory (i.e. cake) point to another repository while keeping my own files versioned in my own repository. But i

Rico LiveGrid Example

2006-10-18 Thread bingo
Hi Bakers, Does anyone has a working example for rico livegrid. I am trying to implement it but I am not a js programmer and wondering how other bakers have integrated it with CakePHP Regards --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Functional benchmark Rails - Django - CakePHP

2006-10-18 Thread jchatard
MJ Ray wrote: > Can you publish it in a web format (html, text, PDF, even CSV...) please? Ok, here it is : http://www.jchatard.info/cakephp.html Jérémy --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" gr

multiple inheritance and uses

2006-10-18 Thread 2000Man
Hi there, When I create a FooController in Cake which extends AppController then, when both have a $uses array specified, these two $uses are merged by Cake. But when I have a FooController extending FrontController which itself extends AppController and I specify a $uses for all three, only the

Re: Functional benchmark Rails - Django - CakePHP

2006-10-18 Thread MJ Ray
Jérémy wrote: > You can find the sheet at http://www.jchatard.info/cakephp.xls Can you publish it in a web format (html, text, PDF, even CSV...) please? Thanks, -- MJ Ray <[EMAIL PROTECTED]> www.ttllp.co.uk +44-870-4321-9-10 Web, localisation, koha, databases, GNU/Linux and statistics. Regist

Re: serving javascript instead of html

2006-10-18 Thread kain
just to clarify, if autorender is set to true $this->render() can be skipped in default installations? or at least this is the behaviour I've always encountered; why he needs a render() ? --~--~-~--~~~---~--~~ You received this message because you are subscribed t