Hi Armando,
I was hoping to update the code to permit this (and demonstrate why I
don´t think it's a good idea in many cases) yesterday, but didn´t get
time to do it yet.
I see a number of problems in it´s use:
1) If you paginate /Controller/ - then the action will become page,
show etc. If you
Couldn't you use requestAction() for this?
--~--~-~--~~~---~--~~
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
I think it will be very hot in July and August.
But Beijing is not like some citys in the south of China, such as
Wuhan, Nanchang.
Most summer evenings and nights in Beijing is not too hot, even a
little cool.
--~--~-~--~~~---~--~~
You received this message
sorry but that didnt help. i found out that it doesnt understand the
field name with two words. for example, in my table, i have field
'first_name'. and in my PHP when i use findByFirstName, it wouldnt work
on the production server. but if my fieldname is set to 'firstname',
then it would work.
I would say it is a fairly easy process if your application is similar
to just inserting, modifying and displaying data. Cake allows for
scaffolding which can give you this functionality immediatly so you can
concentrate on other areas.
Those other areas, by the looks of codecharge, would be
Hi warrenchua,
this might be relavent (from memory):
findByFirstName will look for
the field firstname If you are running php4 (because it´s case
insensetive for method/class names)
the field first_name If you are running php5 (because it´s case
sensetive, and the capital letter is converted
My solution has been to avoid using findByFieldName altogether, and opt
for the slightly more involved $this-Model-find('field_name =
\''.$foo.'\''). While it is obviously not as elegant as the automagic
find, it does work on both php4 and php5 and is readable.
Thanks a lot, I will test this .. Is there a documentation about the
typedef such as 'FULL_BASE_URL' ?? Where are they located (wich files
) in Cake ?
I have another question, if it's not too much asking ..
During an Ajax request (from the browser), I want to return a normal
layout ..I mean
Well actually yes, I have tried and found 2 the solutions,depends if
you want to act only a certain controller/method or the complete
project :
* changes the redirect in app-controller :
if( $this-RequestHandler-isAjax())
{
$this-requestAction($url, array('ajax'));
Hi wluigi,
Set debug to 2 and you will almost certainly see that the execution
table isn´t included in the Application query.
As you are looking for a specific Execution, why not restructure your
code to be of the form:
$ExecutionData=$this-Application-Execution-findById($ExecutionId);
Jon Bennett wrote:
place them in the /view/elements/ dir then use $this-renderElement
('myfile');
you can also place sub directories in there as well, say
/views/elements/arbitrary_content_files/
hth
Indeed, that did help. Thanks. It's still not quite what I'd imagined,
since it
AD7six wrote:
Hi Ian,
1) Cake isn't set in motion for any file that exists on the file system
so: If they are complete html pages and you don't need/want cake to do
anything with them then you could create a folder in your webroot and
access/link to them directly as /AnyFolder/File.html.
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]
For more
Great looking web site, by the way.
--~--~-~--~~~---~--~~
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
I used (in very old versions of cake, well, maybe not so old... RC6) to be able to access DB errors from the model in this way:$this-db-errorI'm working again on an old project and I found out I'm not able to access these errors anymore, can someone point me to the right direction?
Thanks
@AD7six: yes, it is (mostly) correct, but this is not deliberate. It
has to do with the fact that php4 can only read __call method names in
lowercase. However, because of the way the Inflector is set up, you
can manually underscore the field names in the method, i.e.
findByFirst_name, and it
Hi All,
I have two tables: Artists and Artworks. Artworks BelongsTo Artists,
and Artists hasMany Artworks. I need to generate a list of all of the
artists who have artwork of a certain category.
I tried
$this-Artist-recursive = 1;
$this-set('artists',
hi list
I was just wondering what editor you use to write your cakephp apps,
and thought it would be cool to share some thoughts about this on the
list.
I'm personnaly using SciteFlash for all PHP, HTML, js, and
actionscript editing so far. it's based on scintilla.
The reason why I'm asking is
Hi there,
I know the proper cake way to set content is to use the RequestHandler
Component $this-RequestHandler-setAjax(), but Ive discovered that
that this function tests the value of the HTTP_X_REQUESTED_WITH header,
which is a proprietry value set by the Prototype.js.
If you're using
How to make that something is related to others...
In real example:
Article has few related other articles and few products and maybe a
related gallery.
When 'one' is related to 'other' so the 'other' should be related to
the 'one'., but the idea is it could be not related or related.. it
im using Notepad++ (on scintilla) on windows to 'just edit a typo', or
Eclipse when i'm working (on windows too.) My old PowerMac has only
256mb ram and Textmate work bad, so i use BBEdit 8, i'm looking for
good editor for OSX
--~--~-~--~~~---~--~~
You received
I'm using Textmate on OS X. It's pretty good.
I also tried out Eclipse, but it seemed like overkeel for a medium
sized web application.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to
I use TextWrangler on Mac, ZDE on PC, and ZDE on Mac only when I
really, really have to.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
I am using Eclipse with the php plugin on one machine and using Zend (ZDE) on my laptop.On 7/5/06, nate [EMAIL PROTECTED]
wrote:I use TextWrangler on Mac, ZDE on PC, and ZDE on Mac only when I
really, really have to.
--~--~-~--~~~---~--~~
You received this message
I'm sure I'm just missing something (or overthinking it), but I don't
quite understand the style used to explain the syntax for functions. In
the example below, are 'string' and 'array' supposed to be describing
the variable between them, or is there more to it?
* findAll
* string
Thanks everyone for your replies.
Let me see if I understand this correctly, the built-in webservices is
an advanced routing feature that will translate an address of
http://example.com/xml/controller/action/ to a particular controller,
and action of controller::xml_action().
For this example,
No one can help?
This is a vital issue for me...
--~--~-~--~~~---~--~~
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
Hi CrazyLegs,Looking forward to the new version. Will the new version work with earlier versions of Cake?I do not want to have to switch to Cake 1.2 before it is ready.Do you have a time frame as to when your next version will be available?
Thanx.Ryan
On 7/1/06, Olivier Percebois-Garve [EMAIL
Hi Langdon,What controller did you end putting your code in?and what does your beforeFilter function look like so that we might be able to have the same success that you had?thanx.--Ryan
On 6/30/06, Langdon Stevenson [EMAIL PROTECTED] wrote:
Hi Olivier and RyanI have experienced all of the
I'm using Kate and Quanta (which is built on Kate) on Kubuntu. They're
fine as editors but I am considering switching to somethng better. The
problem is, I can't find anything (free) which has a feature whch would
make life easier. If there was something which had MVC in mind I'd
definitely take a
On 2006-07-05 14:57:50 +0100 clemos [EMAIL PROTECTED] wrote:
I was just wondering what editor you use to write your cakephp apps,
and thought it would be cool to share some thoughts about this on the
list.
I still use the retro-style wily because being able to right-click
links between files
hi, whats good captcha component for cakephp for u?-- regards,wa
--~--~-~--~~~---~--~~
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
I use PHPEclipse. It's a must have. It has a debugger
--~--~-~--~~~---~--~~
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,
http://cakephp.org/search?q=captcha
--~--~-~--~~~---~--~~
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
On 2006-07-05 16:16:19 +0100 Warren Chua [EMAIL PROTECTED] wrote:
hi, whats good captcha component for cakephp for u?
Please be careful to avoid image-only captcha, which is worse than
useless. See http://www.w3.org/TR/turingtest/ for background.
Hope that helps,
--
MJ Ray [EMAIL PROTECTED]
Hi!
Linux is my OS and Emacs(*) is my editor!
(*) with PHP-mode, HTML-Helper-mode and MMM-mode to bind them!
Best regards!
--
Gonçalo Marrafa [EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hi!
I´m using the freeware PSPad (http://www.pspad.com) on WinXP.
Take a look at their characteristics. It's the best i already used.
Like their words:
do you work with various programming environments ?
do you like highlighted syntax in code ?
do you need a small tool with simple controls
Hi all,
Regarding the immediate problem discussed in this thread (rendering
bare)... I'm finding that using the following works
$this-autoLayout = false;
or
$this-layout=ajax;
For anyone else following this beware of the render time print out
that appears by default at the bottom of your pages
UltraEdit
--
Gallery Robinson Web Services
http://galleryrobinson.com/
--~--~-~--~~~---~--~~
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
You know for most of the functions you may be better off looking in the api documentation (http://api.cakephp.org/ ) it's a little more standardized.Sam D
On 7/5/06, LikeSoy [EMAIL PROTECTED] wrote:
I'm sure I'm just missing something (or overthinking it), but I don'tquite understand the style
I would imagine that if one is using other js methods like dojo that there might be a custom header from them as well that could be added to the requestHandler stuff, as a variable or define, that could be added to the code via a enhancement request in the trac/
On 7/5/06, adam davis [EMAIL
Hey Adam, thanks for the feedback. I look forward to seeing your
contributions.
Lately we have been working on some basic support for alternative
methods of doing things in JavaScript. For example,
JavascriptHelper::event now supports both Prototype-style events (the
default) and Justin
i just discovered that there is another similar problem with any
action. for example, if you wait long enough for the session to expire,
but then you hit say, Save, the save will commit before you are
redirected to the login page.
--~--~-~--~~~---~--~~
You
I used to use and be very happy with Eclipe and the Trustudio eclipe
plugin, but nowdays I use ActiveState's Komodo. It's a commercial
editor but it's really good if you've got the cash.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Why not simply do the following thing:
function view($id){
//Some code
$this-render('view','ajax');
}
function add(){
if ('valid post data'){
//Saving data
$this-view($id);
} else {
$this-render('add','ajax');
}
}
Submit link in 'add' view will fill div with the 'view'.
I am trying to set up a checkbox to be checked by default by doing
this:
$html-checkbox('Article/active', array('checked' = 'checked'));
And all it keeps rendering is this:
input type=hidden name=data[Article][active] value=0
id=ArticleActive_ /input type=checkbox
name=data[Article][active]
I have been using just VIM for a while now. I usually have 3-4 terminals open with VIM sessions running. I have my .vimrc file setup so formatting happens the way I need it to.I use ditto to keep track of handy copy/pastes.
My main OS is Windows XP, but I use putty to SSH into either my linux test
try putting $this-data['Article']['active'] = 1; in your controller
to have the checkbox checked by default
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
How do you use the sanitize methods in cakePHP. I read the manual, but
it tells you to do this:
// First, include the core library:
uses('sanitize');
// Next, create a new Sanitize object:
$mrClean = new Sanitize();
// From here, you can use Sanitize to clean your data
// (These methods
Ryan: I completely agree with you...On 7/5/06, Ryan Petrain [EMAIL PROTECTED] wrote:
It would be nice to see a CakePHP version of RadRails, which is based off of eclipse.--Ryan
On 7/5/06, John Zimmerman [gmail]
[EMAIL PROTECTED] wrote:I have been using just VIM for a while now. I usually have 3-4
On Jul 5, 2006, at 2:16 PM, Luke wrote:
How do you use the sanitize methods in cakePHP. I read the manual, but
it tells you to do this:
// First, include the core library:
uses('sanitize');
// Next, create a new Sanitize object:
$mrClean = new Sanitize();
// From here, you can use
You can see how I use it here: http://wiki.cakephp.org/
tutorials:authentication_with_rdsimpleauth
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
So, Ryan you are going to head up the efforts for a CakePHP editor?
Personally, I use textmate with the Cake.bundle by sdevore.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group,
I have a couple questions.
1. I have a company table that holds a company name, databasename,
databaseuser, and password. When a person tries to login they use 3
fields. Company Name, Username, and Password. I look up the Company
Name record in the company database and if it exists I continue
Hey guys,
I've been using PHPEdit for years and I'm quite fond of it.
Lately I've been evaluating EasyEclipse for PHP. it has a nice set of
features/packages that go well with ANY php job. It comes with
PHPEclipse, SVN, Debug, Database and some more that I don't quite
remember, so get at
Well, I thought you were theman?
Anyway, what you want to do here is definitely possible in Cake.
check out the useDbConfig property of the model.
You should be able to adjust that in the beforeFilter.
you will want an AppController.
As far as the default page, that is setup in routes.php which
Hi!
Is it possible to use a model from a class in the vendor directory? I
can't use a component and it would be great to use the power of Cake
models!
Is it possible to do a requestAction from there? Then I could run a
controllers action?
Cheers!
If Artwork belongsTo Artist, then reciprocally, Artist should hasMany
(haveMany?) Artwork. Then, you can do the find on $this-Artist
instead.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post
Looks like someone already started a Yahoo UI helper:
https://cakeforge.org/plugins/scmsvn/viewcvs.php/app/views/helpers/yahoo_ui.php?rev=2root=yahoouihelperview=log
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Yes, I'm Chinese!
--~--~-~--~~~---~--~~
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
how about $html-radio?
how to make one of options checked by default?
thanks.
Grant Cox wrote:
The second parameter to $html-checkbox() is a title, not the html
attributes. Change it to
$html-checkbox('Article/active', 'Is active', array('checked' =
'checked'));
and it will work.
Hello, I'm a newby.
My problem is http://localhost/project; isn't work, but I use
http://localhost/project/; then it is work. Can I use a
http://localhost/project;?
Thank you.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
62 matches
Mail list logo