RE: a controller+model that is accessible from all controllers / models is a ...

2006-12-12 Thread Mariano Iglesias
Take a look at this post: http://groups.google.com/group/cake-php/browse_thread/thread/b78b0abbb0d7213 6/ddc05cce0b688f52?lnk=gst &q=&rnum=20 -MI

Re: Can't edit my articles on the Bakery

2006-12-12 Thread gwoo
Thanks Mariano. --~--~-~--~~~---~--~~ 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 m

Re: Helpers scope in Elements...

2006-12-12 Thread Seb
M... The pagination helper requires to be initialised... with $pagination->setPaging($paging); Interesting fact... if I duplicate that initialisation to add it to the element... it works. In other words... am I right to thing the element creates a new instance of the helpers?! I might drill

RE: Can't edit my articles on the Bakery

2006-12-12 Thread Mariano Iglesias
Thanks gwoo, it works. My bad, I didn't know there was a place on trac for the bakery. Will submit there from now on. -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, a

Helpers scope in Elements...

2006-12-12 Thread Seb
Hi everyone... I've been pulling my hair out for the past 2 hours and I can't see what's wrong; am I missing something... or am I trying to do the impossible.. please... if you know... tell me!! I use the Pagination helper, which works like a charm in any view. I also use the html and the form h

Re: bake.php errors

2006-12-12 Thread j o e l
gwoo wrote: > how about you try to debug the problem and submit a patch. Before you > do that make sure you have the latest nightly download. [EMAIL PROTECTED]:~/Development/cake/dev/core/cake/scripts$ php bake.php Gwoo, I apologize, but I haven't used Cake in awhile, as I haven't done much progr

a controller+model that is accessible from all controllers / models is a ...

2006-12-12 Thread pigeon
plugin ? component ? vendor library ? In particular, i'd like to add a language "api" to my cake app. I need methods like translate($alias, $langcode) to be accessible from _anywhere_ in the application. Where do I start? All suggestions are greatly appreciated. Thanks andrew --~--~-~

Re: hasone/belongsto with nonstandard keys

2006-12-12 Thread dyssident
you know, i actually did that by accident at one point, and it did in fact work. however, it broke loads of other stuff because the real primary key for Profile is `id`. if feels like i should be able to define the keys to join on at both ends of the association. can it be that the only way to do

Re: Replication load balancing support?

2006-12-12 Thread emiliano
Wow... I just was wondering about this... nate: cake it's incredible!! emiliano On 12 dic, 19:29, "Mariano Iglesias" <[EMAIL PROTECTED]> wrote: > If that's not scalability, I don't know what is. > > -MI > > --- > > Remember

Re: Can't edit my articles on the Bakery

2006-12-12 Thread gwoo
ok, try now. The best place for these questions is on trac. https://trac.cakephp.org is used to trac bugs in The Bakery. You can search there for tickets and see if there is something related. Bake on. --~--~-~--~~~---~--~~ You received this message because you

Re: Share with CakePHP´s community

2006-12-12 Thread emiliano
Mariano, that's the article! On 12 dic, 20:31, "Mariano Iglesias" <[EMAIL PROTECTED]> wrote: > Hey Emiliano, what newspaper was it? Since it was Monday I'm assuming La > Nacion, am I right? Was this the article? > > http://buscador.lanacion.com.ar/Nota.asp?nota_id=866485&high=htmli > (non-spanish

Can't edit my articles on the Bakery

2006-12-12 Thread Mariano Iglesias
Hi there, Whenever I try to edit my articles (even articles that are pending publication) I always get a "You do not have access to previous action." Is anyone getting the same? -MI --~--~-~--~~~---~--~~ You received this message because you are subsc

AJAX issues for IE and Firefox

2006-12-12 Thread [EMAIL PROTECTED]
Here is my code: selectTag('Report/report_name', $saved_reports, $report_id, array('class' => 'font8pt', 'style' => 'width: 100px'), null, null); ?> observeField('ReportReportName', array('update' => 'input_panel', 'url' => '/reports/loadReportConfiguration', 'frequency' => 1, 'loading' => "Eff

RE: Share with CakePHP´s community

2006-12-12 Thread Mariano Iglesias
Hey Emiliano, what newspaper was it? Since it was Monday I'm assuming La Nacion, am I right? Was this the article? http://buscador.lanacion.com.ar/Nota.asp?nota_id=866485&high=htmli (non-spanish bakers: link in Spanish) Felix & JQuery, what a work of evangelism ;) -MI -

RE: choosing php4 or php5

2006-12-12 Thread Mariano Iglesias
Take this CakePHP source file for example: cake/libs/model/model.php. In there you'll see: if (phpversion() < 5) { require(LIBS . 'model' . DS . 'model_php4.php'); if (function_exists("overload")) { overload("Model"); } } else { require(LIBS

Re: choosing php4 or php5

2006-12-12 Thread ivan
thanks jhon, what i don't get it yet is, let's say i'm working over php5 so i use my constructors like this public function __construct(){} the cake core must have its constructors, doesn`t it? so which constructors way is using? if it is using php4 way, does it means there is any advantage tha

Re: choosing php4 or php5

2006-12-12 Thread John David Anderson (_psychic_)
On Dec 12, 2006, at 3:45 PM, ivan wrote: > > Hi, > > I have been wondering how the cake chooses the php version to work > with. Cake uses what ever version it was executed with. There's no magic, other than it knows what version you're running. > When you use > > var $variable; > > or > > pu

choosing php4 or php5

2006-12-12 Thread ivan
Hi, I have been wondering how the cake chooses the php version to work with. When you use var $variable; or public $variable; will the cake go to the php4 or php5 core files, or both versions will be resolved by the same files? --~--~-~--~~~---~--~~ You rece

RE: Replication load balancing support?

2006-12-12 Thread Mariano Iglesias
If that's not scalability, I don't know what is. -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! --~--~-~--~~---

Re: Replication load balancing support?

2006-12-12 Thread nate
Oops, that last 'beforeSave' should actually read 'afterDelete'. --~--~-~--~~~---~--~~ 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

Re: Replication load balancing support?

2006-12-12 Thread nate
class DATABASE_CONFIG { var $default = array( 'driver'=> 'mysql', 'host' => 'slave.host.ip', 'login' => '', 'password' => '.', 'database'

Authentication Plugin

2006-12-12 Thread nicpottier
Howdy All, I played with cake about 18 months ago and was impressed then, it's looking even better now and I've decided to give it a go in earnest on a project of mine. One thing I'm surprised at is that there still doesn't seem to be any standard plugin for basic user management and authenticat

Replication load balancing support?

2006-12-12 Thread DavidJ
Hello. I'm not a CakePHP user (yet) :) Q: My current site uses MySql master/slave replication for load balancing. So, all SQL queries from a particular web-server host go to its corresponding MySQL slave host, but all SQL updates/inserts must go to the MySQL Master host. Does Cake PHP have suppo

Re: SMS with Cake

2006-12-12 Thread Sonic Baker
Hi guys, Thanks for the suggestions. @Marcus: It'll be an application which sends bulk SMS's fairly regularly, every time a new record is input to the system. I'm also using ClickaTell and my thoughts were that the SMS would be sent via the controller and then saved in the model along with the ret

RE: JQuery and Prototype [was Re: Share with CakePHP´s community]

2006-12-12 Thread Mariano Iglesias
Coming up in CakePHP 1.2... Cool. Thanks for the heads up. AppHelper instead of Helper? -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BA

Re: JQuery and Prototype [was Re: Share with CakePHP´s community]

2006-12-12 Thread nate
> I've never used, and never will use the CakePHP Ajax helper. This is not > because it's bad, but because it is doomed to create inline JS and > therefor is more targeted at JS beginners. If you want to do a real JS > project, you are going to have your own JS files where all your code rests. Cr

Re: Where to place own "Application-Libs"?

2006-12-12 Thread nate
Hey Thomas, It sounds like you're confusing directory structure with application structure. If you really feel that strongly about having a specific directory for controller-level code, I would suggest adding a 'libs' directory under vendors, and putting your controller-specific classes there.

Re: JQuery and Prototype [was Re: Share with CakePHP´s community]

2006-12-12 Thread Felix Geisendörfer
> > Have you evaluated what is the impact of using JQuery *instead of* prototype > with CakePHP? Impact = needed changes > I've never used, and never will use the CakePHP Ajax helper. This is not because it's bad, but because it is doomed to create inline JS and therefor is more targeted at JS

Re: JQuery and Prototype [was Re: Share with CakePHP´s community]

2006-12-12 Thread nate
Mariano Iglesias wrote: > Have you evaluated what is the impact of using JQuery *instead of* prototype > with CakePHP? Impact = needed changes http://cake.insertdesignhere.com/files/nyphp_presentation.pdf See page 43. --~--~-~--~~~---~--~~ You received this m

Re: Please help - data array not updates after data inserting in database.

2006-12-12 Thread [EMAIL PROTECTED]
You might try: $this->model->cacheQueries = false; before you call findById Hope that helps. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-ph

Re: Please help - data array not updates after data inserting in database.

2006-12-12 Thread Mikee Freedom
I'm not expert on caching at this point, need to dedicate some time to it. But sounds like your view might be getting cached.. maybe... possibly... Try setting debug to 1 or higher and deleting files from \app\tmp\cache\views If I find some time to do some more research in to the situation I wi

Re: load same app with different databases

2006-12-12 Thread Mikee Freedom
morning mate, This might help you: http://groups.google.com/group/cake-php/browse_thread/thread/f12ecdb3a6019d83/eeda91e311ec92dc?lnk=gst&q=database+dynamic&rnum=2#eeda91e311ec92dc cheers, mikee On 12/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi > > I am developing a website that

RE: JQuery and Prototype [was Re: Share with CakePHP´s community]

2006-12-12 Thread Mariano Iglesias
So anyway, what is your equity on JQuery? ;) Have you evaluated what is the impact of using JQuery *instead of* prototype with CakePHP? Impact = needed changes -MI --- Remember, smart coders answer ten questions for every

Re: Where to place own "Application-Libs"?

2006-12-12 Thread [EMAIL PROTECTED]
thanks for your reply. Thats what I do now. But I am not happy with this. We need this directory for other libs. One told me, that /vendors is for general vendor-libs used by the whole webserver and /app/vendors is for libs that are only used by the application. In our case, maybe it is special,

Re: JQuery and Prototype [was Re: Share with CakePHP´s community]

2006-12-12 Thread Felix Geisendörfer
> > > Yeah, no joke. Its like my own personal JavaScript novel. Thanks man. :) No problem, I also hope some other people might take a look at it ; ). > What effects library do jQuery folks use? If I'm going to drop > Prototype, I'll need a robust effects library equivalent to Scriptaculous. The In

Re: JQuery and Prototype [was Re: Share with CakePHP´s community]

2006-12-12 Thread John David Anderson (_psychic_)
On Dec 12, 2006, at 9:14 AM, Felix Geisendörfer wrote: > Hey John, > > here it comes, the ultimate why jQuery beats prototype post: Yeah, no joke. Its like my own personal JavaScript novel. Thanks man. :) > So if all of this has not convinced you yet, simply go over to > jQuery.com, downloa

Re: JQuery and Prototype [was Re: Share with CakePHP´s community]

2006-12-12 Thread Felix Geisendörfer
Hey John, here it comes, the ultimate why jQuery beats prototype post: > Maybe that's just lines. The main thing I don't like about JQuery is > ThatMany.linesOfCode(endup).lookingLikeA(TrainWreck); Ok here is the deal. jQuery is like a big bucket that captures DOM elements (and objects in some

Re: hasone/belongsto with nonstandard keys

2006-12-12 Thread gwoo
set var $primaryKey = 'zipcode'; in Profile model --~--~-~--~~~---~--~~ 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, sen

Re: empty select-Boy disappears

2006-12-12 Thread [EMAIL PROTECTED]
Great, this really works! > try adding > if (!$list){$list=array();} > in the controller Thanks sam! Cheers --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to

Re: Where to place own "Application-Libs"?

2006-12-12 Thread themanfrombucharest
You can place them in /app/vendors instead of /vendors. On Dec 12, 11:00 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > I would say yes and no. I told you that we port an existing project to > cake. Therfore, there truely is something to do concerning MVC. But > there are some objec

hasone/belongsto with nonstandard keys

2006-12-12 Thread dyssident
Hello all, Im having a problem with a one-to-one association. Table `profiles` has a field `zipcode` containing the users zipcode. Table `zipcodes` has a primary key `zipcode` containting a zipcode. Im trying to do a one-to-one association on the zipcode fields, but cake is insisting on joining

Re: generateDate year setting

2006-12-12 Thread themanfrombucharest
Hey, You can pass $minYear and $maxYear as params to $html->yearOptionTag() ; dateTimeOptionTag passes null internally to yearOptionTag() so you can't use it like you want. Cheers! On Dec 12, 11:44 am, "purepear" <[EMAIL PROTECTED]> wrote: > You can change '-60' and '+11' in > cake/libs/vi

Re: Re: permanent scaffold

2006-12-12 Thread Samuel DeVore
have you tried /scripts/bake.php ??? On 12/12/06, Alessandro Nuzzo <[EMAIL PROTECTED]> wrote: > > I found this usefull post[1] (thanks Felix!) about > Controller::generateFieldNames. It seems what I need. > > [1] > http://www.thinkingphp.org/2006/06/04/yummy-cakephp-functions-you-should-know-abo

Re: empty select-Boy disappears

2006-12-12 Thread Samuel DeVore
try adding if (!$list){$list=array();} in the controller then you are not passing false to the select tag sam d note this is not tested On 12/12/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Hi there, > > i have a Select-Box which is created by the selectTag-Helper. > The array is popu

Re: Re: generateDate year setting

2006-12-12 Thread Samuel DeVore
I made my own html helper that extends the html helper and over rights some of this functionality so I use $SdHtml->selectYear ... On 12/12/06, purepear <[EMAIL PROTECTED]> wrote: > > You can change '-60' and '+11' in > cake/libs/view/helpers/html.php > > $maxYear = is_null($

Re: make requestAction call a private method

2006-12-12 Thread Samuel DeVore
from php nut in an earlier thread if($this->params['requested'] === true){ // do your thing here } Sam D On 12/12/06, Claudio Poli  <[EMAIL PROTECTED]> wrote: > > hi, > there's a method to distinguish between a normal url and a > requestAction call? > > I've a requestAction in a view that gets

Re: empty select-Box disappears (selectTag)

2006-12-12 Thread [EMAIL PROTECTED]
It seems, that the selectTag-function doesn't get an array. So when the generateList-function doesn't find a set in the database it does't return anything (not even an empty array). How can I solve my problem? --~--~-~--~~~---~--~~ You received this message beca

Please help - data array not updates after data inserting in database.

2006-12-12 Thread Webchemist
Hello all. I developed a project based on the CakePHP. But I am confronted with problem: 1) an action for updating databese records in a table exists 2) for building view, get an ID from request, then do aDataArray = model->findById(ID), pass the array into View. All ok. 3) do some changes (new

Re: permanent scaffold

2006-12-12 Thread Alessandro Nuzzo
I found this usefull post[1] (thanks Felix!) about Controller::generateFieldNames. It seems what I need. [1] http://www.thinkingphp.org/2006/06/04/yummy-cakephp-functions-you-should-know-about/ 2006/12/12, Alessandro Nuzzo <[EMAIL PROTECTED]>: > Hi all. I'm an italian web developer falling in l

empty select-Box disappears (selectTag)

2006-12-12 Thread [EMAIL PROTECTED]
Hi there, i have a Select-Box which is created by the selectTag-Helper. The array is populated witht the function generateList. Everything works so far. But when the generateList-functions returns nothing, the whole Select-Box disappears. Here is my code in the controller: $list = $this->Contac

empty select-Boy disappears

2006-12-12 Thread [EMAIL PROTECTED]
Hi there, i have a Select-Box which is created by the selectTag-Helper. The array is populated witht the function generateList. Everything works so far. But when the generateList-functions returns nothing, the whole Select-Box disappears. Here is my code in the controller: $list = $this->Contact

Re: Share with CakePHP´s community

2006-12-12 Thread Olivier Percebois-Garve
If you like the view-based js approach in cake, the head helper is still doing a very good job. Jquery rocks ! On 12/11/06, Langdon Stevenson <[EMAIL PROTECTED]> wrote: > > > Thanks Felix, I do love finding someone passionate about something :-) > > I have found a few plug-ins in JQuery that could

Re: generateDate year setting

2006-12-12 Thread purepear
You can change '-60' and '+11' in cake/libs/view/helpers/html.php $maxYear = is_null($maxYear) ? $currentYear + 11 : $maxYear + 1; $minYear = is_null($minYear) ? $currentYear - 60 : $minYear; although you should't mess with cake's code . but... it's just

permanent scaffold

2006-12-12 Thread Alessandro Nuzzo
Hi all. I'm an italian web developer falling in love with cake ;) Before starting write my project, I want to be sure that nobody has already done. I want to do something like rdBaker [1], but with an option that can write all the code for the scaffolding. So I have _all_ code written in view, and

Re: acl.php

2006-12-12 Thread Daniel Kvasnicka jr.
Try executing 'php-cgi' or 'php5-cgi' instead of php. That solved the problem for me. Dan On Dec 6, 7:15 am, "Falagar" <[EMAIL PROTECTED]> wrote: > Hi, > > I tried to use the ACL example from the manual and ran into problems. I > have 1.1.11.4064 installed, the database connection is set up and

Re: Where to place own "Application-Libs"?

2006-12-12 Thread [EMAIL PROTECTED]
Hi, I would say yes and no. I told you that we port an existing project to cake. Therfore, there truely is something to do concerning MVC. But there are some objects used in the code, which are good and shouldn't be replaced. Think of objects that do actions or hold data. They do not have any dat