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
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
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.
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
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
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
> 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
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
--
=
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
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
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
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
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
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
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
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
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
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
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
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
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
--~--~-~--~~~-
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()
{
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
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?
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
---
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
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
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
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
>
> 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
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
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
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
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
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
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
--~--~-~--~~~--
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
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:
>
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
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
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
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
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
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@
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
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
> 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
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));
>
>
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
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.
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
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,
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
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
*
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
-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
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
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
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
"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
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
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
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!
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
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
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
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);
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
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
-~--~~~~--~~--~--~---
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
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
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
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
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
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
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
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
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->
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->
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
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
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" <
82 matches
Mail list logo