On Dec 21, 3:03 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
first off, it seems like the page would probably run faster if it was
just one query instead of 30 or 40.
but the other reason is to filter results or get variables from the
other model. for instance, if Forrest has many Trees and
Yes, that tells you if you are in an Ajax call or not. But
RequestHandler-setAjax($controller) was what I was looking for because it
automatically sets the default layout or ajax layout depending on isAjax()
state.
-MI
---
But you didn't tell us the solution ;)
For what I can see is that you forgot to add the className field on one of
your relations, or probably misspelled it (such as classname instead of
className)
-MI
---
Remember, smart
The bakery is completely in English, so is this Google Group. I don't think
I encountered any Spanish speaking forum/group/whatever supporting CakePHP,
maybe this could be a good time to start? :)
I haven't started anything yet because for example the other day I
discovered that on this group
There exists a group for Spanish speaking people:
http://groups.google.com/group/CakePHP-es
--
Daniel Hofstetter
http://cakebaker.42dh.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post
Cool! Just signed up. Thanks for the tip!
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
-Mensaje original-
De:
You should read up on
allow_url_fopen, and the *huge* security risk it poses if you're not
careful. You should never use any filesystem functions on remote
resources, especially if you don't control them.
Thanks for pointing this out nate ! in case there are others who didn't
know about this
I created a Google Reader public page since Bloglines can be crappy when
displaying feeds, and found that Google Reader has an easier interface.
The URL is at:
http://www.google.com/reader/shared/user/09138396384756178995/label/cakephp-
blogs
I think the URL sucks, and worst of all Google has
Hello everybody.
I am using the dAuth v0.3, I have a problem with session that dAuth
create
[User] = Array
(
[id] = 1
[username] = ismael
[email] = yyy
[password] = xx
)
)
Ok, the problem is
http://hi.baidu.com/xeboy
Try to look through my blog.
It will give u some simple examples.
Hopes it will helps
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email
Is there a possibility to specify route to plugin?
I want to change the default behaviour where url:
/plugin/controller/action
is needed to access plugin.
--
View this message in context:
http://www.nabble.com/route-to-plugin-tf2865257.html#a8006995
Sent from the CakePHP mailing list archive
This should work:
//route to plugins
//$Route-connect('/foo/*', array('controller' = 'plugin_name',
'action' = 'controller_name'));
HTH,
Ryan Rose
Digiwize.com
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
Happy to hear that :)
--~--~-~--~~~---~--~~
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]
great I am chinese too.
ERic ZoU
http://hi.baidu.com/xeboy
Try to look through my blog.
It will give u some simple examples.
Hopes it will helps
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP
Hi,
Im having the same session problems with obauth..unfortunately the
problem is not related to any specific code for me, i just use the
login function rthat stores the data in session variables, and before
the controller redirects to a specific view i can print_r all the
$_SESSION
This problem occurs in my PC and in the webserver where the site is
hosted. I don't think that's related to the server.
I just can't believe how a html file would crash php core.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
On 12/21/06, Ismael S. Kafeltz [EMAIL PROTECTED] wrote:
This problem occurs in my PC and in the webserver where the site is
hosted. I don't think that's related to the server.
I just can't believe how a html file would crash php core.
It seems very unliktely to me as wel that an HTML file
Mariano,
those Google Reader links seem truncated... maybe repost after running
through http://tinyurl.com/ ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
I post CakePHP articles here:
http://www.shepherdweb.com/category/frameworks/cakephp/
--~--~-~--~~~---~--~~
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
Yes damn email client. Short URLS:
AGGREGATED WEB: http://tinyurl.com/yxlpto
AGGREGATED FEED: http://tinyurl.com/y33xr2
But I'm thinking that it could be useful to have something like
blogs.cakephp.org redirected to the aggregated blog page (or even use the
feed to display aggregated posts
The word blogs wrapped to the next line, so after clicking the link
and getting the oops page, add the word blogs to the end of the
URL.
The part after www.google.com/ should be:
reader/shared/user/09138396384756178995/label/cakephp-blogs
--~--~-~--~~~---~--~~
After giving up getting mod_rewrite working on my windows development
environment (I settled for cake pretty urls - thank goodness for them),
I thought I would have no problems on my production server.
My production server has mod_rewrite, so I reasoned it would be a
breeze, after all, that is
Thanks, I've just added your CakePHP feed to Google Reader.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
-Mensaje
On 12/21/06, Mariano Iglesias [EMAIL PROTECTED] wrote:
Thanks, I've just added your CakePHP feed to Google Reader.
-MI
Could you please add my blog to this as well? When I talk about PHP
it's usually CakePHP related.
http://www.littlehart.net/atthekeyboard/
--
Chris Hartjes
The
Done Chris. Thanks.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So be smart, be cool, and share your knowledge.
BAKE ON!
-Mensaje original-
De: cake-php@googlegroups.com
I sure would like to see all the methods and properties available to me
as I'm working with cakePHP. Autocomplete and some of that other stuff
would be nice, too. I tried the one from Zend, but it seemed to be a
bit of overkill for me. Do you use any sort of IDE? What one? Why?
On 12/21/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I sure would like to see all the methods and properties available to me
as I'm working with cakePHP. Autocomplete and some of that other stuff
would be nice, too. I tried the one from Zend, but it seemed to be a
bit of overkill for me. Do
Make sure you comment out the line in app/conf/core.php that says:
define ('BASE_URL', env('SCRIPT_NAME'));
when uploading your work to your production server.
On 12/21/06, keymaster [EMAIL PROTECTED] wrote:
After giving up getting mod_rewrite working on my windows development
environment
Please DO search the group before posting as this issue has been covered
several times:
http://groups-beta.google.com/group/cake-php/browse_thread/thread/cbb35f8a9b
15a978
http://groups-beta.google.com/group/cake-php/browse_thread/thread/8d6103ef74
1074f9
and more. (look for IDE on
Hi.
I evaluated Zend Studio. I think the Zend autocomplete function is
great!! And i love to work via ftp. But Zend is too expensive for me.
I checked Eclipse, but I don´t like it. It´s a bit overkill for me...
Now i evaluate Komodo Personal (29,95 Dollar) since two weeks and it
seems to
It was/is commented. Any other suggestions?
Do you think the fact there is no domain name and I am accessing the
site as:
http://99.99.999.999/~accountname/
(ie. using the ip) is a problem? What about php over cgi, is that an
issue?
--~--~-~--~~~---~--~~
You
Thanks a lot, now I'm subscribed to both of groups and start with CakePHP.
Cheers
2006/12/21, Mariano Iglesias [EMAIL PROTECTED]:
Cool! Just signed up. Thanks for the tip!
-MI
---
Remember, smart coders answer ten
Hi devon,
looks like your user data is not being passed to the session...thats
why when the lock function is trying to determine wheter the user is
authorized or not its not able to find this data in the session.
Have you made the models and its relationships? (usermodel and
groupmodel)
devon
Well...im still not able to solve this..
im making my login page redirect to an action where i use as layout a
blank page with this code:
?php
print_r($_SESSION);
?
and i get :
Array ( [Config] = Array ( [rand] = 1301800827 [time] = 1166721008
[userAgent] = 5775c78b808060a9b312c8682121643e
Hi everyone :)
Just thought I'd write this here in case other people have this problem
in the future. There is a bug in some versions of PHP that causes PHP
to crash when mysql_fetch_field is called.
I don't know exactly which versions of PHP this covers, but I have had
it in PHP 5.0.3, and it
Anselm,
Thanks for the info. I'm concerned because I'm getting ready to launch
a site which is running php v 5.0.4. However, I don't have access to
the server yet. Does anyone know if this bug was fixed in version
5.0.4?
--~--~-~--~~~---~--~~
You received
Hello uic,
Thanks for your reply. If I understand you correctly, I have made
models for user, group.
user:
?php
class User extends AppModel
{
var $name = 'User';
var $hasOne = array('Group' =
array('className'= 'Group',
That's a bummer. If your hosting is already running PHP 5.x then you should
encourage them to upgrade to 5.2 since it fixes a lot of critical/security
bugs.
I have some dedicated servers with GoDaddy and I almost demanded them to do
so, and they did. There's nothing like acting as a pissed
Thanks for all the reply I will try some of the advices...
I hope to succeed and then show you my site in cakephp...
... and thanks again for the fantastic framework
Michele
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
i would try to check at some point in the component what part of the
process is failing.
first i would try to print session variables after connecting to the
database in login function :
$this-Session-write($this-sesskey, $sessdata);
//--- just here, before it returs true and try to
On 12/22/06, keymaster [EMAIL PROTECTED] wrote:
It was/is commented. Any other suggestions?
Do you think the fact there is no domain name and I am accessing the
site as:
http://99.99.999.999/~accountname/
This should not be a problem.
(ie. using the ip) is a problem? What about php over
ah, thanks for the reply. using the fake hasOne relationship worked.
but, the page still performs a *ton* of sql queries. is ther any way
of limiting this?
On Dec 21, 1:21 am, AD7six [EMAIL PROTECTED] wrote:
On Dec 21, 3:03 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
first off, it seems
So I've got an ajax form with an ajax auto-complete field in it, using
the auto-complete component. It works find if I replace the Ajax
submit with a regular submit, or if I use the Ajax form and disable the
Autocomplete component (but then, of course, the autocomplete doesn't
work).
Thanks uic, I'll give that a shot this afternoon and let you know what
I find out.
i would try to check at some point in the component what part of the
process is failing.
first i would try to print session variables after connecting to the
database in login function :
Thanks for the info. I'm concerned because I'm getting ready to launch
a site which is running php v 5.0.4. However, I don't have access to
the server yet. Does anyone know if this bug was fixed in version
5.0.4?
As I understand it, it was fixed in 5.2.0, sorry. But it's probably a
I have a form that ties into a table, and in that table is a field
date_created...so when someone submits that form i need to add a
date_created=now() to the sql.
How do I accomplish this? I'm sure its something very easy, but I can't
seem to find it in the manual.
Thanks for all your replies.
I did the following. I installed the identical files on another site,
this time with a regular domain name.
eg. www.mydomain.com (as opposed to the site in my post above which was
accessed through the ip)
I got the same error - but, I looked at the server error
Take a look at this piece of code:
http://bakery.cakephp.org/articles/view/185
It can help you reduce the number of generated queries.
-MI
---
Remember, smart coders answer ten questions for every question they ask.
So
Did you know that if you have a field called created (DATETIME) on that
table CakePHP will automatically populate its value? The same applies for a
field called modified (DATETIME).
-MI
---
Remember, smart coders answer
That I did not know...I'll change the names of my fields. I guess it
would still be useful to know how to update fields that aren't in a
form along with the form anyway though.
On Dec 21, 4:06 pm, Mariano Iglesias [EMAIL PROTECTED]
wrote:
Did you know that if you have a field called created
Hello,
I checked with my provider and php has the curl extension.
Now this is what I made:
I wrote a PHP file on site B that connects to the db, retrieves the
announcements inserted today, outputs data in a HTML format, close the
db connection.
Then in site A i did put the code for opening
You just add them to the array of data you send to $model-save. Say instead
of:
$this-Post-save($this-data);
You can do something like:
$data = $this-data;
$data['Post']['some_field'] = 'some_value';
$this-Post-save($data);
-MI
I found the answer in the PHP 5 ChangeLog:
http://www.php.net/ChangeLog-5.php
Bug 31288 was fixed in version 5.0.4
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email
I have worked out how to populate drop down menus from an associated
model, thanks to help from other posts (much appreciated).
But I can't figure out how to use the foreign key to show a different
value from the other table, ex. I have an Events table which hasOne
Type, the 'id' of the Type is
54 matches
Mail list logo