Hi Brian,
Have a look at how the redirect method is defined (overriden) in the
app controller here: http://www.noswad.me.uk/MiBlog/ACLPart1
When you do a redirect, you lose the recognition that you are in an
ajax request, and the server sends back a full html page. Using the
code in the link
I could just do that yeah - I will have to look into it some more :)
But yes, the IonCube tools do allow for the copyright notices to be
left unencrypted, as I thought.
The client is more likely to sue us if they manage to break something.
--~--~-~--~~~---~--~~
Now it work's fine. That's what I did:
I've created a helper in the app/views/helpers directory with the name
myhtml.php.
That file contains a class MyhtmlHelper which extends Helper.
Basically I copied the function selectTag and named it to myselectTag.
The only thing I had to do is to change
On 10/23/06, gwoo [EMAIL PROTECTED] wrote:
so for some time you should have no worries about dropping the cake core into any project and watchingit work.I would like to qualify the above with watch it work most of the time
Last two minor versions of cake broke my Cheesecake app which
was running
[EMAIL PROTECTED] wrote:
...
Basically I copied the function selectTag and named it to myselectTag.
The only thing I had to do is to change the following line and mark it
as selected:
if ($showEmpty == true) {
$select[] = sprintf($this-tags['selectempty'],'selected');
}
I've not
Hi Davide,
On Oct 24, 11:29 am, davide [EMAIL PROTECTED] wrote:
Why didn't you extend the HtmlHelper class directly and then reimplement
only the required method? So in all of your application, you have only
to include your helper and will have all the htmlHelper functionality
That's a
Hi, bakers.
The HTML helper automatically generates the id attributes for form related
tags (inputs, radios, checkboxes, etc.). If i pass a value for id in the
attributes array the generated tag will have two id attributes.
Is there a way of overriding this behavior and providing a custom id
You didn't have to extend the helper at all.Nate was saying that by default the select tag in the html helper will add a blank list item.I think you thought that he was trying to say that you needed an empty element in the data array which is not the case.
Sonic
In what way did it break your apps? I'm curious because in the last
release, we started removing deprecated methods, which will happen
again in 1.2. The methods that were removed in the previous release
had been deprecated for several release cycles, some even before 1.0
final.
So, I guess the
You just need to set the 'id' key of the $htmlAttributes array
parameter. This will replace the ID that is generated by default, it
does not make two.
For example, if you do ?=$html-password('Contact/passwd', array('id'
= 'ThePassword')); ?, it will give you input type=password
Nate is it possible to have deprecated methods through notices in
debug mode but work in deployment for deprecated methods for a release
or two before the scheduled removal. Given that there are more and
more sites built on CakePHP that are in production?
SD
On 10/24/06, nate [EMAIL PROTECTED]
Hi Nate, thanks for your reply.
In the version of Cake i'm using (1.1.5 - i know i should have upgraded
but i've changed a few things and haven't had the time to propagate those
changes to a newer version) that doesn't happen. If i do what you suggest
i get two ids: UserPassword and ThePassword
Javascript is undefined, which means you do not have the javascript
helper
var $helpers = array('Html', 'Javascript', 'Ajax');
In your App_controller or the controllers you have.
Thanks.
--~--~-~--~~~---~--~~
You received this message because you are
Hmm, posted an answer ... but it does not appear?!?!
--~--~-~--~~~---~--~~
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,
Thanks Ryan,
If I do that though I just get a 404 page.
Add .thtml to the file name and I get a window full of code...
Does that make sense?
Cheers
BN
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP
Hi all.
I have another simple question (or may be stupid question, poor me). If
I want to use the md5 function for password checking in user
authentication, the password must be encoded in md5 also or not? I
mean, the password in the table in my database. If yes, can someone
tell me how to use
Hello everyone:
i have been trying out cake for a week to decide wheather to use it for
my app dev.
so far so good but im having difficulity with complex queries and table
assocciations.
i built 2 simple tables as a try out;
table categories:
id
name
description
table products;
id
name
Hello Bingo,
tried the whole scenario:
?php
class User extends AppModel
{
var $name = 'User';
var $recursive = 2;
var $hasAndBelongsToMany = array('Song');
}
?
?php
class Singer extends AppModel
{
var $name = 'Singer';
var $recursive = 2;
var $hasAndBelongsToMany = array('Song');
}
Somehow I managed to get cake to connect with my MySQL database,
installed with MAMP.
Now, it seems that I can't get to work the clean urls correctly, since
when I type, say, http://localhost/posts/ i get this error:
The requested URL /posts/ was not found on this server.
What can I do? Does
Hi all.
I've made the Blog Tutorial in CakePHP manual and I've added simple
authentication using the one in CakePHP manual also (appendix B). So
far, I understand the logic mechanism but I have 1 question about link.
I made the system like this:
1). User must login through login page
2). After
Hi
i want change the template of the error page when i invoke cakeerror...
how can i do?
There are an infos abount cakeerror and can i manager that?
Tnx
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP
Hello Ryan,
Sorry if this turns up twice. It doesn't seem to work first time
though..
Anyway. If I do as you suggest, I get a 404 but then, add .thtml to the
end of the url and hey presto I get a page full of code.
No idea what's going on here. Any help would be great.
BN
Hi all.
Based on the CakePHP manual tutorial (appendix B), I've found that if I
changed the table structure for users become like this:
CREATE TABLE users
(
user_id INT AUTO_INCREMENT NOT NULL,
user_name VARCHAR(255) NOT NULL,
user_password VARCHAR(32) NOT NULL,
first_name VARCHAR(255)
Hi all,
I am stuck because my $params are undefined in the controller. May be
you have an idea or an experience that would help me and others.
I reload a select with an observe field
my element is :
==ELEMENT
div id=options_vehicules
table
tr
Defining your schema and having the database engine enforce key
integrity has its advantages and disadvantages. You'll probably want
to continue to learn about the issues regarding telling mySQL about
foreign keys.
What about us poor schmucks who are trying to develop applications
$cryptPass = md5($plaintextPass); // this and other fun facts at
http://php.net/md5
I would like to say something cranky like
did you look up md5 at php.net
or
perhaps some time spent in a nice comfortable desk chair with a girl
named Google
or some other snide, sarcastic comment. But then I
if you are on php4 you might need to use findByUser_name
On 10/24/06, roby [EMAIL PROTECTED] wrote:
Hi all.
Based on the CakePHP manual tutorial (appendix B), I've found that if I
changed the table structure for users become like this:
CREATE TABLE users
(
user_id INT AUTO_INCREMENT
That would be interesting, considering that otherwise you would have to go
through the API to look for deprecated methods. A proper procedure for
version upgrading on sites that are in production with Cake will definitely
make Cake stand amongst the rest.
I also agree with Nate that bakers
On 10/24/06, barry_normal [EMAIL PROTECTED] wrote:
No idea what's going on here. Any help would be great.
BN
(cranky programmer wakes up to find thread, prepares to answer)
First of all, I don't see anywhere in the blog tutorial where you are
supposed to be viewing the thtml files. The
Hi,
I'm still getting the same thing with the -Q parameter :
php -q cake/scripts/acl.php help
I've tried whith the passtruh command, this is the output :
php -q cake/scripts/acl.php help
X-Powered-By: PHP/4.4.4
Content-type: text/html
br /
bWarning/b: passthru() [a
So if I deleted for ex. post id=1 flash message about deleted and
back I still view that post, in Firefox evertything is ok, post
disappears after delete. What's going one ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Unfortunately, cakephp doesn't support compound primary keys. You will
need to declare a primary key in cake in order for the save and insert
to work properly. A work around is to add an auto_increment field to
every table, which implies that the compound key must be removed since
Mysql only
Hi All,
Just wonder if you give give me some advise on this.
Based on the example Auth. system at
http://manual.cakephp.org/appendix/simple_user_auth in the Manual, I'm
wondering what is the best way to display the current username once
logged in and run queries based on that username?
Thanks,
Hi frnds, Here is one site of substance, related to careers. Any one can check the relevancy of his/her skill along with the information given in the site. Also one cancheckout thevarious sponserd links given by the differentorganistaion. Also forward it to all your friends for whom it
Hi Roby,
Don't you have to camelCase the method name findByUserName ?
Yes it is a magic method.
Go and fetch it in http://manual.cakephp.org/chapter/models
Lastly you can create a method in your model and include a query
inside, calling it from your controller.
Cheers
Sten
Cunt cunt cunt - you are a cuntOn 10/24/06, Jitender Kumar Nauni [EMAIL PROTECTED] wrote:
Hi frnds, Here is one site of substance, related to careers. Any one can check the relevancy of his/her skill along with the information given in the site. Also one cancheckout thevarious
Thanks alot nate! Is there any example of this anywhere?
nate wrote:
how do i get it to properly upload the file?
You don't. Because of the way the XHR transport layer works, you can't
use it to send actual file data. What you *can* do is have the upload
form POST to an
Thanks alot!! that is exactly what i was looking for... maybe this
should be proposed to go into the core?
AD7six wrote:
Hi Brian,
Have a look at how the redirect method is defined (overriden) in the
app controller here: http://www.noswad.me.uk/MiBlog/ACLPart1
When you do a redirect, you
Guys,
my own opinion on this. For the future stability and wider acceptance
of CakePHP, you should never remove any deprecated methods.
Anything that introduces instability into the product, reduces its
acceptance into the wider developer community.
At the least, you end up stuck on older
but i've changed a few things
I'm going to guess that the problem lies there, since I'm fairly
certain that 1.1.5 didn't ship with that issue. If you think a change
should be made to the Cake core, I'd suggest opening a ticket, since we
don't support modified versions of Cake here.
Good Day All !
I haven't really had any experience with Trees. And, I've got a
problem that I see can be tackled in either one of two ways - using
Trees or Tables in the DB.
Here's the problem: I've got a threaded list, but it can only go two
deep. Here's what it looks like :
-- AD 1
--
Hi Sonic!
I understood everything Nate posted.
I use the automated insertion of the blank list item.
My problem was, that this blank list item is not selected by default.
Cheers
Felix
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Ive had a similar problem when I add the final /
try removing the final slash, and see if it works, eg /posts
havent had time thus far to investigate this further, anyone know why
the additional / causes problems?
--~--~-~--~~~---~--~~
You received this message
We do not remove deprecated until there is a major version change.
Nate was referring to methods that have been deprecated since 0.10,
which came out over a year
ago. Otherwise, trigger_error is used to send a warning.
The most important thing here is that we need communication from the
1) When ajax refresh div than scroll in browswer going to top why ? I
want to stay scrool !
2)i want to add loading layer for progress ajax i find in manual
$options['loading'] // JS code to be executed when the remote
document
// is being loaded with data by the
I think that at some point you may find the necessity to remove deprecated
methods. Java will remove deprecated methods on future versions (i.e: post
tigris) and will also remove certain APIs from their SE distributions. Why?
A simple reason that can also be applied for cake: avoiding the
I don't know why, but in release server where i do upload my files i
found this problem with debug = 2.
SELECT `cidade`.`estado_id` FROM `sis_cidade` AS `cidade` WHERE
`Cidade`.`id` = '5' LIMIT 1 1109: Unknown table 'Cidade' in where
clause
In my local server the sql statement is different:
Hi,
I want to register the user who creates or edits the data of the web.
For this I want to use the beforeSave() function. I take the username
from the Session.
But nothing occurs, i have try to put the beforeSave() in the
AppController and in the 'Object'_controller.
I have implemented the
Anyone ? :(
--~--~-~--~~~---~--~~
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
only Models has beforeSave() callback function, not the Controllers.
--~--~-~--~~~---~--~~
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
@Samuel: I run on PHP 5.1.6 with Apache 2.2.3 and MySQL 5.24a (I use
XAMPP 1.5.4 for simplicity) but thanks anyway for your reply
@Steniskis: thanks a lot.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP
Hey, happy Tuesday, how's everybody doing? I just wanted to take a
moment out of my afternoon to remind everyone about the awesome search
technology this mailing list is built on. It's called Google, and it
can help you quickly and efficiently find answers to questions that you
might have.
Thanks Samuel. Just FYI, I really new to PHP too and I'm really sorry
to take your time.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
I do search a lot before any question, but i found too many topics
without solution.
Maybe nobody reads...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
then php.nt should be yu bed time reading the manual is REALLY REALLY good
On 10/24/06, roby [EMAIL PROTECTED] wrote:
Thanks Samuel. Just FYI, I really new to PHP too and I'm really sorry
to take your time.
--
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness
The Java argument also doesn't really hold up, because in most cases,
methods are simply renamed, or moved to a different object. Which
means that updating an app to the current release is usually a simple
matter of a search-and-replace. It also doesn't hurt to be an
efficient coder, and have
Ok I am an epically bad typer with a sleeping baby in arms should read
Then http://php.net/ should be your bedtime reading, the manual is
Really Really good (and some of the comments are great places to learn
good tricks, ok and some bad ones)
Sam D
On 10/24/06, Samuel DeVore [EMAIL PROTECTED]
Well but you're saying the same: that uses non deprecated methods. In the
moment that you have to do a search replace you are following what I was
saying: sometimes even with java YOU DO NEED to do SR.
-MI
-Original Message-
From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On
The Cake error pages are great, because they always tell you exactly
what you need to do, not only to fix them, but to replace them with
custom pages. The first line of every error page, right below the
title, says something like this:
Notice: this error is being rendered by the
What I'm saying about Java is that it's usually a bit more complex than
a quick SR.
--~--~-~--~~~---~--~~
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
btw here is a great newbie tip, add 'nate' to the end of search
queries on the cakephp group to get better result sets.
On 10/24/06, Chris Hartjes [EMAIL PROTECTED] wrote:
On 10/24/06, Ismael S. Kafeltz [EMAIL PROTECTED] wrote:
I do search a lot before any question, but i found too many
When i have an AppController set with the method beforeFilter as well as
another normal controller (TasksController).
Does the beforeFilter in the TasksController:
a. overwrite the AppController's beforeFilter
b. run before the AppController's beforeFilter
c. run after the AppController's
nate [EMAIL PROTECTED] wrote:
What's not great is that people are continuing to ask questions without
bothering to search for an answer beforehand. [...]
google is a search engine, but a terrible catalogue. Does cake need a
FAQ? (Does it have a FAQ? I thought it did, but couldn't find it
I'm sorry for this stupid topic
You are right, the problem was because my confustion with portuguese
and english varibale names...
var $nome = 'Cidade';
instead of
var $name = 'Cidade';
really really sorry about that, anyway you helped me to find this
mistake...
Thank you very much
See here:
http://www.php.net/manual/en/keyword.parent.php
--~--~-~--~~~---~--~~
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
Touch...
I had the below code code.
?php
class AppController extends Controller
{
function beforeFilter()
{
echo "AppController::BeforeFilter";
}
}
class ReviselogsController extends AppController
{
function beforeFilter()
{
echo "ReviselogsController::BeforeFilter";
}
}
?
I ran
Hi all.
Help me how to define the association between these:
1). User has many messages
2). User has many relations
If only those, it's simply just add the User model the hasMany variable
and in Message model and Relation model just add the belongsTo
variable. But I've been thinking to make
Hi all.
I'm going to track down the user's educations so I can make
portfolio-like page for my application. The portfolio-like page will be
per user, each has the information about the user's educations.
I made the tables' relations in my database like these:
1). users: (PK)user_id + email +
funkyfresh wrote:
Ive had a similar problem when I add the final /
try removing the final slash, and see if it works, eg /posts
havent had time thus far to investigate this further, anyone know why
the additional / causes problems?
Actually, even removing the final slash I still get that
On 24-Oct-2006, at 05:16, barry_normal wrote:
Hello Ryan,
Sorry if this turns up twice. It doesn't seem to work first time
though..
Anyway. If I do as you suggest, I get a 404 but then, add .thtml to
the
end of the url and hey presto I get a page full of code.
No idea what's going on
morning Z,
For the actual dynamic menu you've got as many options as the Internet
can throw at you. I quite like the pure CSS version by StylePhreak but
everyone has their own opinion.
Would welcome suggestions if anyone had a pearler.
As for pulling your data from the DB in a way that would
Maybe this can help you:
http://wiki.cakephp.org/docs:understanding_associations
--~--~-~--~~~---~--~~
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
hey Roby,
Is your app installed in the subdirectory cake on your local server?
if so, you might be able to solve your problem with routes:
/app/config/routes.php
and .htaccess, but basically you're trying to point at the root when
the application is installed in a subdirectory. i may be well
Hey Bill,
I've not used the simple user auth method, i'm a fan of the othAuth
version - thanks Oth!
either way, in the function that checks the login details (U and P),
if they validate, Oth stores information about that user in the
session as a way of a) checking a user is logged in and b)
Praise the powers that be, the wiki is dead. I suppose I could start
a page on the manual that only features FAQs. Anyone want to help on
that?
I'll gladly help you with that, John, if you're interested! Still feel
like a blueberry but I've been around since July :)
I think that the manual
As far as an FAQ goes, according to gwoo the Bakery will get one soon
(?). People will be able to ask and answer questions,
but the public FAQ itself will be moderated / maintained by the core
developers / contributors.
Best Regards,
Felix Geisendörfer aka the_undefined
Samuel DeVore wrote:
Ok I am an epically bad typer with a sleeping baby in arms should read...
That would be a sight for sore eyes...
PHP.net is the first stop if you want to learn more about the basics.
Buying a good book on PHP and MySQL might help as well. Or you could
just google it...
morning all,
just thought i would chime in with my 2.
i agree, there are a lot of beginners about the place.
at one stage being a Cake newbie myself, it has only been through
serious time dedicated have I managed to come out with what I think to
be a pretty good application utilising *some* of
Mike;
thanks alot, thats excatly what im trying to do.
im used to hard code my php from ground up suddenly this cake is so
easy but i keep thinking and expecting complex.
i was trying to build custom sql functions inside models and cotrollers
for that matter but thanks to you
Ziad
On
as a distinctly average php user and a newcomer to cake i'll add my thoughts here for what it's worth.
The fact that Cake is (or can be) such a powerful framework is a
double-edged sword - serious developers use it to solve common problems
quickly and speed up development of complex apps
but
Hi Christoph,
Thanks for the query. I got it working.
About your question...It is not necessary to fetch all the data at
onceactually I was expecting a multistep procedure...the way it
will be going to work is that the user clicks on button (title Show
singers) and then in the view a list
Hi,
Thanks very much for the reply. I do understand what you're saying but
if it's not too much trouble, some code examples would be very welcome.
Thanks,
Bill
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
This group is very useful, I found lot of answers in it, I have also
ask some beginners questions a while ago bothering nate, ADS7X and
other very eminent people here. I am also answering some of them, but I
admit (being modo on other groups) that's is really a lot of work.
That's also the price
nate wrote:
This my have nothing to do with it, but try this syntax instead:
var $default = array( 'driver' = 'mysql',
'connect' = 'mysql_connect',
'host'
= 'localhost',
On Oct 25, 12:00 am, mike091 [EMAIL PROTECTED] wrote:
Hi,
Thanks very much for the reply. I do understand what you're saying but
if it's not too much trouble, some code examples would be very welcome.
Thanks,
Bill
Hi Mike091,
An example of how to use your authentication is here:
About the cheatsheet, is there a cut-down version available on for screen display? (I assume this one was created for printing, I would like to have one that I could see on the screen, this one renders too slow!).Thanks,
Marcelo.On 10/23/06, Marcelo de Moraes Serpa [EMAIL PROTECTED] wrote:
Oh
[EMAIL PROTECTED] wrote:
Yeah, set DEBUG to 0 in /app/config/core.php (production mode).
-- John
So turning off debug also stops these calls to the database? Or does it
just not log that it's doing them anymore?
DESC is what cake is running to figure out your DB. Once you go into
Mikee Freedom wrote:
I have found great assistance in:
1. the manual
2. the wiki (and now the bakery)
3. the various blogs around (thanks fellas)
4. searching google groups
5. the source code
6. the api
7. asking questions in here
roughly in that order.
I think this list is spot-on
I am working on a simple web site and I am trying to achieve this structure
domain.com/contact - static page
domain.com/about- static page
domain.com/tutorials - static page
domain.com/tutorials/4 - dynamic page
For the static pages I don't
Search this group for pages_controller
--~--~-~--~~~---~--~~
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
All of my CakePHP projects are integrated into vBulletin and simply use
the board's cookies.
When a user is logged in onto the board, he gets at least two cookies:
one with the user id and one with a password hash.
I can check the id and the password hash against the vBulletin user
table and
91 matches
Mail list logo