Re: Adding javascript to

2007-03-08 Thread Ámon Tamás
Andrew írta: > How do I insert some javascript code in the tag without having > to define another layout file? > You can insert it in the default.[thtml|ctp] if you want to use it in every page. -- Ámon Tamás http://linkfelho.amon.hu --~--~-~--~~~---~--~~ Yo

Re: How to configure the img folder in routes.php

2007-03-08 Thread jaideepj
Tank u for helping me. I have a doubt, The thtml file has a link which refers href="/css/aptusa.css" its in my server i have downloaded it and now the path added to it is / amateurpokertour/trunk/app . The css file consists of background like background: url(/img/template/content_b

Re: New Cake FAQ

2007-03-08 Thread Adrian Maier
On 3/8/07, nate <[EMAIL PROTECTED]> wrote: > > Wow, uh, okay, I guess I'll take everyone's enthusastic silence to > mean that our documentation is perfect, no one has any questions, and > we can just go ahead and close this mailing list, since everybody > seems to know everything. That's amazing.

Re: Element Caching

2007-03-08 Thread Mandy
http://mandysingh.blogspot.com/2007/02/caching-with-cakephp.html On Mar 9, 1:23 am, Felix Geisendörfer <[EMAIL PROTECTED]> wrote: > > So, its not possible in 1.1 or current versions of 1.2. > > Which doesn't mean that you can't get this going anyway. Your main > performance concern is probably qu

RE: Cake Recipes cancelled

2007-03-08 Thread Mariano Iglesias
Eventhough I don't want to get in the middle of a problem that after reading that blog post since to have gotten a little personal (at least from that side), I agree with Larry in that something as important as a book about CakePHP should not only get reviewed by the CSF, but also approved. I n

Re: Cake Recipes cancelled

2007-03-08 Thread Dr. Tarique Sani
On 3/9/07, Larry E. Masters aka PhpNut <[EMAIL PROTECTED]> wrote: > > > > An allied question - Will an Unofficial book be allowed by CSF? > > > We would like to be involved at some level of any book that comes out. Thanks for the clarification - though I feel that *any book* is restrictive and

Re: Cake Recipes cancelled

2007-03-08 Thread Larry E. Masters aka PhpNut
> An allied question - Will an Unofficial book be allowed by CSF? > If you mean will someone be able to use CakePHP in the title of a book without permission, then I will say no. CakePHP is trademark of the Cake Software Foundation, Inc. Will we refuse to allow someone to use this? A person or pu

Re: Cake Recipes cancelled

2007-03-08 Thread Dr. Tarique Sani
On 3/8/07, Larry E. Masters aka PhpNut <[EMAIL PROTECTED]> wrote: > Anything that has the official stamp will be reviewed by the CSF before > going to press I can assure you of that. An allied question - Will an Unofficial book be allowed by CSF? Cheers Tarique -- =

Re: Mailing list manager

2007-03-08 Thread Dr. Tarique Sani
On 3/8/07, jonatha <[EMAIL PROTECTED]> wrote: > > Hi, i would like to know if there is a mailing list manager made with > cakephp. No! > If there isn't one, i would like to find some help on how to include > one (phplist ?) in my cakephp project phplist is an entire application in itself - if you

phpGACL for CakePHP 1.0.2b Released - Integrating phpGACL with CakePHP

2007-03-08 Thread Mariano Iglesias
My fellow bakers, I am still waiting for the approval of my Cakeforge submission, but until then I can give you a ZIP package. So anyway without further, check the installation instructions: http://dev.sypad.com/installing-phpgacl-plugin-cakephp It's a package that offers a Plugin + a Componen

Re: help with windows install needed - php\php.exe instead of cake ROOT

2007-03-08 Thread hydra12
I'm assuming (from your comment about putting it on your windows partition) that you first tried this on linux or osx? Did it work there? Also, define your root this way: define('ROOT', 'e:'.DS.'programs'.DS.'apache'.DS.'htdocs'.DS.'cake'); DS is a constant that takes care of using \ or /. I'v

Re: SQLite

2007-03-08 Thread ozly
Alex, try to install the php-sqlite module, which i think its available as an rpm for fedora. Once installed, verify it in your php if it is loaded as a php module by doing the ff command in your console. either (bash/csh). $php -m | grep sqlite or just $php -m -- if you see sqlite then your good

Re: complex association needed

2007-03-08 Thread Peter Vanhee
How can I use $this->EventItem inside the Item model ? It gives the error Notice: Undefined property: Item::$EventItem in /Users/pvhee/Sites/ webdev/satellite/satellite-activation/app/models/item.php on line 66 Does it work similar to using the $uses array in the controller? Bye, Peter On Mar

Adding javascript to

2007-03-08 Thread Andrew
How do I insert some javascript code in the tag without having to define another layout file? --~--~-~--~~~---~--~~ 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@googlegr

Re: help with windows install needed - php\php.exe instead of cake ROOT

2007-03-08 Thread jyrgen
ok guys, i will track this down, thanks for yr help :-) --~--~-~--~~~---~--~~ 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 grou

Re: help with windows install needed - php\php.exe instead of cake ROOT

2007-03-08 Thread jyrgen
before porting my app to windows, i set: define('ROOT', 'e:\programs\apache\htdocs\cake'); // this dir ! correctly in cake/index.php. As i stated above, the first page is displayed, but all links are fucked up. ? no ideas ? j --~--~-~--~~~---~--~~ You receive

Re: help with windows install needed - php\php.exe instead of cake ROOT

2007-03-08 Thread jyrgen
even if this is not so very much cake related, but more concerning windows/apache/php configuration, i don't get any further with this problem. the strange this is that i have other php app running correctly... j- --~--~-~--~~~---~--~~ You received this message

Re: SQLite

2007-03-08 Thread AzenAlex
apoligies... i'm running fedora core 6 and it would seem that php5 is installed without sqlite. yes, i feel dumb... i'm now getting the error: Warning: sqlite_popen() [function:sqlite-popen]: file is encrypted or is not a database any thoughts? On Mar 8, 3:17 pm, "Chris Hartjes" <[EMAIL PROTE

Re: Añadir campo usuario en tablas

2007-03-08 Thread mariano.iglesias
Sorry about this, this message was destined for CakePHP group in Spanish: http://groups.google.com/group/cakephp-es I've mixed up the destination email address, you can see why :) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: hasMany / belongsTo relationship help

2007-03-08 Thread rtconner
Here is the answer, in add() I put - $this->ArticleComment->Article->id = $article_id; $this->set('comment', $this->ArticleComment->Article->read()); Thanks for the help folks ;) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

AJAX link IE problem

2007-03-08 Thread jmassi
Hi, I have a problem with AJAX links and IE7, I load content via ajax link to a DIV, the content that I load to this DIV also have an ajax link, the first link works fine but second link doesnt do anything, it works fine with firefox, any ideas? Thanks --~--~-~--~~~-

RE: Añadir campo usuario en tablas

2007-03-08 Thread Mariano Iglesias
PROBLEMA FUNDAMENTAL: En ambas versiones de beforeSave() agregá esto junso antes de cerrar la función: return parent::beforeSave(); Entonces la última versión te quedaría: class NomberModelo extends AppModel { var $name = 'NomberModelo'; function beforeSave() {

help with windows install needed - php\php.exe instead of cake ROOT

2007-03-08 Thread jyrgen
hi i transferred a cake app into the apache\htdocs folder on my windows partition to check if IE plays nicely :-) i didn't change any of the config files, the starting page is being rendered, all good. but links urls resolve to sth. nasty like c:\php\php.exe\{controller}{action} which makes th

hasMany / belongsTo relationship help

2007-03-08 Thread rtconner
Its a simple relationship, One article has many comments. I don't even have users, just simply type in your name. I cannot figuere out how to access the Article Data from within the ArticleComment What do I need to do in the add() method to get it to load a list of comments using the article_id?

RE: Cake Recipes cancelled

2007-03-08 Thread Mariano Iglesias
Sounds about right. I'm not into taking sides, but it seems pretty obvious that any book that wish to have the "Official CakePHP Book" stamp should not only be reviewed by the CSF, but also approved by its majority. -MI ---

Re: cakePHP and Version control Poll

2007-03-08 Thread Sonic Baker
Hey there Sam, On 3/8/07, Samuel DeVore <[EMAIL PROTECTED]> wrote: > > > > for the vendors I live by the > < > http://svnbook.red-bean.com/nightly/en/svn.advanced.vendorbr.html#svn.advanced.vendorbr.svn_load_dirs > > > script makes life much easier for me. I take it this means you use the vendo

Internal domain aliases yield 404 errors (cake thinks part of domain is a page/controller request?)

2007-03-08 Thread phrygius
Hello, I have an application being served on a closed, internal network with internal DNS. I had a DNS entry, we'll call it "domain", set up to point to my server (Windows server + IIS6). In DNS, this means that I have "domain", but I also have "domain.some.more.stuff". I am not sure why both

Re: CakePHP Test Suite

2007-03-08 Thread Sonic Baker
Hi Roger, On 3/8/07, Roger <[EMAIL PROTECTED]> wrote: > > > (URL /tests/groups was not found on this server). It's best to use the test suite from outside the framework. This can be done as follows by avoiding the 'TestsController' by calling the URL as follows: URL /test/groups <---(leave out

Re: cakePHP and Version control Poll

2007-03-08 Thread Samuel DeVore
On 3/8/07, Sonic Baker <[EMAIL PROTECTED]> wrote: > I'm still not sure about whether to use svn:externals for the cake files or > just update manually but I really appreciate everyone's input. You know I just can't decide about this either, currently I have one project that has it as an external

Re: Element Caching

2007-03-08 Thread Felix Geisendörfer
> > So, its not possible in 1.1 or current versions of 1.2. Which doesn't mean that you can't get this going anyway. Your main performance concern is probably querying the db and building the array needed for your navigation element, right? So in that case you can use CakePHP's cache() function

Re: SQLite

2007-03-08 Thread Chris Hartjes
On 3/8/07, AzenAlex <[EMAIL PROTECTED]> wrote: > Here's my suggestion: * Go make sure that your installed version of PHP has SQLite support * Go and make sure SQLite is actually installed If both those things are true, then come back and this problem can be escalated to the next level. Don't *g

Re: cakePHP and Version control Poll

2007-03-08 Thread Sonic Baker
On 3/7/07, scott lewis <[EMAIL PROTECTED]> wrote: > > > Hopefully that's not too boring a tour. > s. Hi Scot, Not at all. Quite interesting in fact. Thanks for sharing. I was using SVK for a while but came across a bug that frightened me and after posting to the mailing list numerous times, I g

Re: New Cake FAQ

2007-03-08 Thread nate
Awesome Toby, thank you so much, I really appreciate it. It's freezing in Boston! On Mar 8, 2:13 pm, Toby Parent <[EMAIL PROTECTED]> wrote: > Actually, I'm doing just as I said - combing though posts since I joined > the list, checking for keywords and what are, in fact, the most > requested ite

Re: New Cake FAQ

2007-03-08 Thread Toby Parent
Actually, I'm doing just as I said - combing though posts since I joined the list, checking for keywords and what are, in fact, the most requested items. I'll let you know what I find. Warm regards from a chilly New England! - Toby --~--~-~--~~~---~--~~ You re

Re: New Cake FAQ

2007-03-08 Thread nate
Indeed Toby, very perceptive. That *would* be a good start, and is in fact the half the point of my making this request on the list. The other half of the point was my meager attempt at recruiting some assistance from our vibrant and active community, so that I don't feel like I'm doing absolute

Re: New Cake FAQ

2007-03-08 Thread Toby Parent
At the risk of sounding like a complete nob, isn't this list sort of evolving/devolving/revolving into a FAQ? I think, if we took a 'Top 25 questions asked in 2007' look at this list, it'd be a darn good start to a faq... Just my 0.002 (I'm poor) -Toby --~--~-~--~~~--

Re: Strange result with findCount

2007-03-08 Thread szeta
Both are VARCHAR: Field Install_Count -> works Field Status -> does not work (returns instead of 47) Is "Status" a keyword in CakePHP? Regards Ralph On 8 Mrz., 18:00, "phirschybar" <[EMAIL PROTECTED]> wrote: > try: > > $this->set('test', $this->Rat->findCount('Install_Count = "7"',0)); > > quote

Re: SQLite

2007-03-08 Thread AzenAlex
I think the "extension=php_sqlite.dll" line only applies to windows installations On Mar 8, 11:23 am, "jmn2k1" <[EMAIL PROTECTED]> wrote: > You should assure that the "extension=php_sqlite.dll" line in your > php.ini is uncommented.. > > On Mar 8, 12:42 pm, "AzenAlex" <[EMAIL PROTECTED]> wrote: >

Re: New Cake FAQ

2007-03-08 Thread [EMAIL PROTECTED]
OK here's a faq: How do I register in trac to add my faqs. When I fill out the registration form I get a "Authentication Required" dialog, that wont accept the credentials that I just put in the registration from... stumped On Mar 7, 10:43 pm, "nate" <[EMAIL PROTECTED]> wrote: > Hey Y'all, > > W

Re: New Cake FAQ

2007-03-08 Thread nate
Okay, at the risk of making it *too* easy, what if I said you could attach FAQs directly to this discussion thread. But yeah, a page sounds like a good idea. In that case, I'll be checking all three, just to be on the safe side... On Mar 8, 1:06 pm, "phirschybar" <[EMAIL PROTECTED]> wrote: > ha

Re: Unique subdomain for each user

2007-03-08 Thread phirschybar
Brian, Right that makes perfect sense and it keeps better aligned with the routing hierarchy (controller/action/etc..). It didn't make sense to have the username at the top from an application perspective, although I guess it doesn't really matter. Still working out the apache setup and server c

Re: New Cake FAQ

2007-03-08 Thread phirschybar
ha! Hey Nate I think the problem may be that it is not immediately obvious how to attach to the ticket. See what I mean? What about if we make a page on this group for now?? Ben On Mar 8, 1:00 pm, "nate" <[EMAIL PROTECTED]> wrote: > Wow, uh, okay, I guess I'll take everyone's enthusastic silenc

Re: New Cake FAQ

2007-03-08 Thread nate
Wow, uh, okay, I guess I'll take everyone's enthusastic silence to mean that our documentation is perfect, no one has any questions, and we can just go ahead and close this mailing list, since everybody seems to know everything. That's amazing. However, if anyone (and yes, *you* are included in

Re: Element Caching

2007-03-08 Thread gwoo
This is a featured that is on the 1.2 roadmap. So, its not possible in 1.1 or current versions of 1.2. --~--~-~--~~~---~--~~ 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@

Element Caching

2007-03-08 Thread robechar
I have been taking a look at caching in Cake and I am interested in caching a specific element (the left navigation) but not anything else on the page. I have found a way to *exclude* an element from caching using the tag, but no way to *include* a single element for caching. Does anyone know i

Re: Unique subdomain for each user

2007-03-08 Thread Brian French
If you want the address bar to always display something like phirschybar.cakephp.org then you dont have to touch any of the apache settings from the default ones in cake. all you have to do is in your app_controller -> beforefilter() do the following: $this->Session->write('Username',array_shift

Re: SQL/Query - get months with posts

2007-03-08 Thread Jon Bennett
> SELECT DISTINCT YEAR(date) AS year, MONTH(date) AS month, count(id) AS > numb > FROM articles > GROUP BY YEAR(date), MONTH(date) > ORDER BY date DESC > > This way you get the results grouped by year, with each month and the > number of articles per month. Bam. thanks, that works perfectly jon

Re: Strange result with findCount

2007-03-08 Thread phirschybar
try: $this->set('test', $this->Rat->findCount('Install_Count = "7"',0)); quotes around the 7. does it work? might be because it is a varchar On Mar 8, 10:48 am, "szeta" <[EMAIL PROTECTED]> wrote: > Hello, > > if I'm using > > $this->set('test', $this->Rat->findCount('Install_Count = 7',0)); > >

CakePHP Test Suite

2007-03-08 Thread Roger
Hi, I'm new to CakePHP and would like to use Larry Masters's test suite to implement unit and regression testing in my project. I haven't found any documentation so maybe somebody on this list can give me some hints. What I have: - PHP5 - CakePHP 1.1.13.4450 - CakePHP Test Suite V. 1.0.0.0 I ha

Re: SQLite

2007-03-08 Thread jmn2k1
You should assure that the "extension=php_sqlite.dll" line in your php.ini is uncommented.. On Mar 8, 12:42 pm, "AzenAlex" <[EMAIL PROTECTED]> wrote: > sorry about the spam... i'm a little new to the groups and i though my > post weren't working so i kept re-submitting... > > I'm running php 5.1.

Strange result with findCount

2007-03-08 Thread szeta
Hello, if I'm using $this->set('test', $this->Rat->findCount('Install_Count = 7',0)); I get a result, but if I do it on $this->set('test', $this->Rat->findCount('Status = 7',0)); (the only difference is the given Condition Field) I always get "0" in return, even if i know that there are seve

Re: SQLite

2007-03-08 Thread AzenAlex
sorry about the spam... i'm a little new to the groups and i though my post weren't working so i kept re-submitting... I'm running php 5.1.6 on linux so i'm guessing sqlite is already there. is there some configuration i can check to make sure it's enabled or something of that nature? On Mar 7,

Re: Strange findAll Result with complex query

2007-03-08 Thread junal
im not sure, but how about if you use recursive=2/3 ? On Mar 8, 2:15 pm, "Aldo" <[EMAIL PROTECTED]> wrote: > Yes, thats what I ended up with ;-) > Thanks! > > On Mar 8, 2:29 am, "Sergei" <[EMAIL PROTECTED]> wrote: > > > Idea is simple: > > > Use $this->query() to make custom sql queries. Don't me

Re: Cake Recipes cancelled

2007-03-08 Thread Larry E. Masters aka PhpNut
We are not proposing anything, though we have been contacted by a few publishers. There will be books published on CakePHP. Anything that has the official stamp will be reviewed by the CSF before going to press I can assure you of that. -- /** * @author Larry E. Masters * @var string $userName *

Re: Controller not found in dispatch.php?

2007-03-08 Thread gwoo
Looks to me like you have the correct file, but did not write your class correctly or (if you are on php4) you are missing var $name; paste your code. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" gro

Re: Cake Recipes cancelled

2007-03-08 Thread Darian Anthony Patrick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Is a core CakePHP developer proposing an alternate? Larry E. Masters aka PhpNut wrote: > It is true, the book deal between the Cake Software Foundation, Fabio > Cevasco, and Peachpit Press has been cancelled. This decision was > unanimously reached b

Mailing list manager

2007-03-08 Thread jonatha
Hi, i would like to know if there is a mailing list manager made with cakephp. If there isn't one, i would like to find some help on how to include one (phplist ?) in my cakephp project --~--~-~--~~~---~--~~ You received this message because you are subscribed to

Re: For every model every database table also?

2007-03-08 Thread Davide
Louie Miranda wrote: > is it possible to only have a page ex? on the controller > about_controller.php and just add a static page on views about.thtml > without > creating a new table for abouts? just use routing for that. I've not a framework by my hands now and I don't remember the syntax but t

Re: For every model every database table also?

2007-03-08 Thread Samuel DeVore
you can also make models that don't use a database as it's data souce (there are examples for ldap and one for xml I think as well. On 3/8/07, the_woodsman <[EMAIL PROTECTED]> wrote: > > > You can also have: > > - models that don´t use any tables ($useTable=false, I think), > > - different models

Re: Changing global layout - this problem is different from the rest of the problems reported on this group

2007-03-08 Thread the_woodsman
"The problem is that using the bookmarklet, the user is directed to a web form..but if he is not registered he will be directed to login page by OthAuth authentication system. Since the global layout is not changed.." I´ve never used OthAuth before, but surely your beforeRender of your AppControl

Re: For every model every database table also?

2007-03-08 Thread [EMAIL PROTECTED]
You can add pages that don't requiere a controller to /views/pages/ i.e if you add /views/pages/about.thtml then you can access the page through /pages/about/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake

Re: For every model every database table also?

2007-03-08 Thread the_woodsman
You can also have: - models that don´t use any tables ($useTable=false, I think), - different models that use the same table (although you rarely have to, unless your realtionships are very complex), - controllers that don´t use any tables ($uses=null, I think). On Mar 8, 8:25 am, "[EMAI

Controller not found in dispatch.php?

2007-03-08 Thread Somewhere
I followed the Blog tutorial to set up an online blog with Cake. But when I tried to connect to the site, i got this error: Fatal error: Class 'PostsController' not found in /usr/local/apache2/ htdocs/cake/cake/dispatcher.php on line 158 What might cause the problem? I have no idea. Thanks a lot!

RE: Installation Problem -- Need Help!!![Scanned]

2007-03-08 Thread Buckner, Mark
Weird! Everything looks correct . . . and it is named posts_controller.php, correct? Your code looks right. Sorry I'm not being more help. hydra12 -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Somewhere Sent: Wednesday, March 07, 2007 4:13 P

For every model every database table also?

2007-03-08 Thread Louie Miranda
EX: name.php db tables names question.php db tables questions is it possible to only have a page ex? on the controller about_controller.php and just add a static page on views about.thtml without creating a new table for abouts? -- Louie Miranda ([EMAIL PROTECTED]) http://www.axishift.com //JS

Re: Sanitize and hyphens

2007-03-08 Thread bernardo
But why do hyphens need to be escaped in the first place? I looked at the function cleanValue (that is called by cleanArray) and it makes several replacements, some of them look weird, for example: $val = str_replace("!", "!", $val); $val = str_replace("'", "'", $val); I guess the intention was

Strange error

2007-03-08 Thread Adrian Maier
Hello, I have the following code : $criteria = array('cod_produs'=>$tuple['ImportData']['cod_produs'], 'furnizor'=>$tuple['ImportData']['furnizor'] ); if ($this->SupplierPrice->hasAny($criteria)) { $vechi = $this->SupplierPrice->find($criteria);

Re: How to configure the img folder in routes.php

2007-03-08 Thread Dr. Tarique Sani
On 3/8/07, jaideepj <[EMAIL PROTECTED]> wrote: > > I have downloaded my clients cake php version with working files. I > cannot view the images because the path of the images varies for > example, > > the Path in the files are header.jpg > Are you not using the HTML helper? http://manual.cakeph

How to configure the img folder in routes.php

2007-03-08 Thread jaideepj
I have downloaded my clients cake php version with working files. I cannot view the images because the path of the images varies for example, the Path in the files are http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---

Re: SQL/Query - get months with posts

2007-03-08 Thread phirschybar
You could do a query like this: SELECT DISTINCT YEAR(date) AS year, MONTH(date) AS month, count(id) AS numb FROM articles GROUP BY YEAR(date), MONTH(date) ORDER BY date DESC This way you get the results grouped by year, with each month and the number of articles per month. Bam. On Mar 8, 7:25

Re: SQL/Query - get months with posts

2007-03-08 Thread hausburger
something like that? function getRange() { $q = " SELECT date_format(`date` , '%M %Y' ) AS month_year FROM posts WHERE active = '1' GROUP BY date_format(`date` , '%m-%Y' ) LIMIT 0, 12"; $result = $this->query($q); return $res

.htaccess by default of cake? looping on xampp - Request exceeded the limit of 10 internal redirects due to probable configuration error.

2007-03-08 Thread Louie Miranda
I have this rewrite rule on my server (live) RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] and everything works fine. when i copied the whole site to my local pc using xampp. i got a 500 internal server error. the debug error was.. [Thu

How to stop page loading in Cake?

2007-03-08 Thread skyblueink
Hi, Bakers! I succeeded in loading 10 divs in sequence, using the following snippet. But, my question here is how to stop the page loading after it started loading. I tried both link('STOP',"javascript:window.stop()" ); ?> and link('STOP',"javascript:document.execCommand('stop')" ); ?> in IE6 an

Re: Flaw in bake.php when ids are 0

2007-03-08 Thread Grant Cox
And what database system do you use? --~--~-~--~~~---~--~~ 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 [EM

Re: one error page for *all* errors

2007-03-08 Thread Sergei
On 8 мар, 17:40, "djiize" <[EMAIL PROTECTED]> wrote: > Create a error404.ctp in /app/views/error i have error404.thtml already. > It will appear when DEBUG == 0 didn't know that! thanks. --~--~-~--~~~---~--~~ You received this message because you are subscr

SQL/Query - get months with posts

2007-03-08 Thread Jon Bennett
hi, we have a blog app [http://www.webmarketingblog.co.uk/blog] and in the sidebar we want to have a list of months that have posts, eg: Febuary 2007 March 2007 ... etc etc any pointers on querying my model so I can get a list of months with active posts? many thanks, Jon -- jon bennett t

Re: one error page for *all* errors

2007-03-08 Thread djiize
Create a error404.ctp in /app/views/error It will appear when DEBUG == 0 On 8 mar, 05:58, "Sergei" <[EMAIL PROTECTED]> wrote: > Hello, > > how to make *all* possible errors to render to the only view error404? > > I mean errors like: > *missing controller > *missing action > and so on... It's 15

RE: sessions problem

2007-03-08 Thread Mariano Iglesias
You can also add your custom handler. For example I will replicate the way CakePHP handles sessions but leaving trans_sid ON (CakePHP deactivates it). To do just that: 1. Create a file app/config/session_cake_use_trans_sid.php with: cookieLifeTime); ini_set('session.cookie_path', $this->

RE: sessions problem

2007-03-08 Thread Mariano Iglesias
You can also add your custom handler. For example I will replicate the way CakePHP handles sessions but leaving trans_sid ON (CakePHP deactivates it). To do just that: 1. Create a file app/config/session_cake_use_trans_sid.php with: cookieLifeTime); ini_set('session.cookie_path', $this->

Re: sessions problem

2007-03-08 Thread mindcharger
Hello, That particular define controls ao CAKE handles sessions...you have 3 choices: * php -> CAKE uses PHP Session to store Session Data * database -> CAKE uses DB to store Session Data * cake -> CAKE uses a temp file to store Session Data So, I think that NOT TELLING cake how you want it to

Re: ajax editor and view

2007-03-08 Thread sanjeevdivekar
Thanks Guys This Group is Really HOT On Mar 4, 9:52 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > On 3/4/07, phirschybar <[EMAIL PROTECTED]> wrote: > > > > > gwoo's method is the way to go. I wouldn't recommend editing the > > webroot/index.php > > The only reason, I don't mind editing my ind

Re: Strange findAll Result with complex query

2007-03-08 Thread Aldo
Yes, thats what I ended up with ;-) Thanks! On Mar 8, 2:29 am, "Sergei" <[EMAIL PROTECTED]> wrote: > Idea is simple: > > Use $this->query() to make custom sql queries. Don't mess with > findAll() if you need something complex with grouping, having, cases > and so on. > > On 7 мар, 23:49, "Aldo" <