I'll be giving a presentation on Cake at NYPHP on September 26th. You
can check out http://nyphp.org for the full details. And if I haven't
shamelessly self-promoted my blog enough, you can also read about it at
http://cake.insertdesignhere.com/posts/view/9
NickCarlson wrote:
If I do the following in my controller:
$this-set('myVar', 2006);
How would I access the value of myVar from within my controller?
For example, for debugging purposes, I just want to write the following
code within my controller,
echo $myVar;
It is very annoying
Okay fine ;-)
It's on my to-do list for Cake 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@googlegroups.com
To unsubscribe from this group, send
On 9/11/06, nate [EMAIL PROTECTED] wrote:
Okay fine ;-)It's on my to-do list for Cake 1.2.This is not on any todo list, this will not be added. If you need to debug a var that is set for the view, do it in the view where the code should be tested anyway since it is view output, or debug() like
Eeeh, it's too early in the morning...
Yeah, my mistake, Nut is correct on this one. You can access any view
vars you set as $this-_viewVars[$varName]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP
AD7six, thank you very much for your answer and quick response. Problem
solved.
Have a great day! : )
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
But why provide an 'awkward' alternative to retrieve a template var
you set on a controller , but not a simple get('xxx') function ? I
must admit I also searched for this function instinctively a few times
...
You're probably gonna smack me with a very logical reason now ey ;)
On 9/11/06, nate
Controller::_viewVars is treated as a protected object property.
Accessing proctected properties within a class or child of the class is
perfectly legal, and I'm not a big fan of adding extra pointless
getters and setters. The only reason there's a set( ) method for it is
because it provides
I'd like to know something about ajax and cake, with the $ajax helper
and the tutorial in grahambird's site, i can update just one DIV... but
I need to update more than one, does someone know how?
Note: forgive my english, I'm Colombian
--~--~-~--~~~---~--~~
You
Nate, I'm a relatively new user of Cake and a big fan. I'm looking to
hearing you speak this month at the NYPHP meeting.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send
If I'm not wrong, ACL uses Modified Pre-Order Tree Traversal (taken
from http://wiki.cakephp.org/docs:acl:introduction)
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send
Ok tnx for the explanation :)
Reason I searched for that function was that I had split some
controller logic into a couple of reusable methods, and at a certain
point I needed to now the decision of method X inside method Y.
Of course there were plenty other solutions, but looking for a way to
On 9/11/06, Aaron Santiago [EMAIL PROTECTED] wrote:
I'd like to know something about ajax and cake, with the $ajax helper
and the tutorial in grahambird's site, i can update just one DIV... but
I need to update more than one, does someone know how?
Note: forgive my english, I'm Colombian
Hi
It is possible, I think that nate has talked about it in the list
before, try searching the list at googlegroups if you can't find it
I'll try to find the reference later today
Sam D
On 9/11/06, Chris Hartjes [EMAIL PROTECTED] wrote:
On 9/11/06, Aaron Santiago [EMAIL PROTECTED] wrote:
I have a model and I save some data through a form in the according
table.
The problem is that when I go to the link that regards the function
that retrieves
the data from the database and just presents them, the new data are not
shown,
even though they exist in the database. Only when i refresh
On 9/11/06, zipman [EMAIL PROTECTED] wrote:
I have a model and I save some data through a form in the according
table.
The problem is that when I go to the link that regards the function
that retrieves
the data from the database and just presents them, the new data are not
shown,
even
Bumps for you. I would be very interested to know how to do this as
well.
--~--~-~--~~~---~--~~
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
bump
Brian French wrote:
I am having trouble associating the multiple models i have with each other.
I have a 'User' that hasOne 'Fan','Artist','Venue','Promoter'.
The 'User' also hasAndBelongsToMany of the same ones (like he can
subscribe to them as well as be one/all of them).
I am
On 9/8/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi,
I have a PHPBB forum and CAKE application. phpBB is installed within a
folder inside cake. cake and phpbb have database sessions.
I am trying to unify login process so that users logging in from phpbb
dont need to login again when
On 9/8/06, Brian French [EMAIL PROTECTED] wrote:
I am having trouble associating the multiple models i have with each other.
I have a 'User' that hasOne 'Fan','Artist','Venue','Promoter'.
The 'User' also hasAndBelongsToMany of the same ones (like he can
subscribe to them as well as be
Yes, you can update mutliple divs in a single request.
Check out the following threads for some details on how to do it:
http://groups.google.com/group/cake-php/browse_thread/thread/64187c8a41e8750f/cf10b929a33db24e?#cf10b929a33db24e
It would mainly be for the view. in the controller i would call the
requestAction and assign the output to a view variable using set():
$this-set('someBlock',$this-requestAction('Controllers/_Method',array('foo'='bar')));
// i think this is right. correct me if im wrong
or (refering to the
see Nate is THE MAN and cake is the BOMB
On 9/11/06, nate [EMAIL PROTECTED] wrote:
Yes, you can update mutliple divs in a single request.
Check out the following threads for some details on how to do it:
On 9/11/06, nate [EMAIL PROTECTED] wrote:
Yes, you can update mutliple divs in a single request.
Check out the following threads for some details on how to do it:
http://groups.google.com/group/cake-php/browse_thread/thread/64187c8a41e8750f/cf10b929a33db24e?#cf10b929a33db24e
Thanks for the reply.
But what if I am in production level? (for me it doesn't work even when
debug=1).
Should i change the permissions for the folder models so that it is not
writeable?(That works)
Isn't there any property in any file, that doesn't allow cache for
models?
Samuel DeVore wrote:
see Nate is THE MAN and cake is the BOMB
Thanks, just be sure not to shout that on an airplane. I'm sure I
would quickly find myself hauled away in handcuffs.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
Hi zipman,
are you sending cache headers with your files? If you get a different
result when you access a link from when you press F5 (or equivalent)
surely that indicates that your browser is taking the page results from
it's cache.
So: what exactly are you doing ;), how can this be reproduced
Scaffolding can display this for you, it's a great tool!
You can view the output here: http://www.myclubbersguide.com/users
It contains the queries being used as well as the print_r() of the
object(s).
The code for the models was in the first email/post in this thread. As
far as i understand
I have CustomersController and i have in it
var $uses = array('Customer','CreditPackage');
so that it uses CreditPackage Model too.
I have the following function
function giveCredits($customer_id,$credit_package_id)
{
$credits=$this-CreditPackage-find(id=.$credit_package_id,array('credits'));
Hi Brian,
I took a peek at your link: I donĀ“t quite understand what the problem
is, can you elaborate?
The sql at the foot of the page shows that sql queries are being
executed for your associations. If you look at the user test you can
see that there are results for each association type.
Hi zipman, there's an undocumented feature that allows you to
completely disable Cake's caching by adding this:
define(DISABLE_CACHE, true);
to app/config/core.php. However, this is only recommended in the most
extreme unusual cases, as your application will take quite a
performance hit for
Yes,that's the case. I get different results when i access a link
than when i press F5.
When i set /app/tmp/cache/models folder not to be writeable i have no
problem.
But even my browser( firefox) is the problem(I'm using a plugin through
which I disable cache) how can i surpass this ,so that no
This is a new business from USA, Many drivers used MPG-CAP to save more
than 20% of gasoline and Diesel fuel in USA and Canada, you can see the
websites here:
http://biz.yahoo.com/prnews/060614/dcw024.html?.v=62
http://www.todaystmj4.com/VideoPlayer/video.aspx?fs=081706_10pm_GasPillSavings
Hi.
I'm new in these things, so I need to download install files from repository
in Cake forge, but they seem to be damaged.
anybody can help me?
thanks-- ... lo esencial es invisible a los ojos ...
--~--~-~--~~~---~--~~
You received this message because you
Try making a donation ;-)
Just kidding, it should work fine with or without (but seriously, make
a donation haha).
I just checked the zip file and it seems fine. Do you ever have issues
like this when downloading files?
--~--~-~--~~~---~--~~
You received
I should have elaborated more. When you view that link then go to view a
particular user:
http://www.myclubbersguide.com/users/view/6
The associations dont seem to be working and i am now getting a php error.
(i have a view method in the users controller, but i commented it out so
the
S...no one has been able to answer my question about the roles,
having two fields (role1_id and role2_id) that relate to the roles
table. I guess what I'm trying to ask is how do you over ride
scaffolding in this situation. Is there documentation that shows me
what I need to do?
Zipman,
I was having the same problem and determined it was the browser doing
the caching. The only way I was able to overcome this was by adding
?ms= + new Date().getTime() to my action links. This is some
javascript that simply tacks a unique timestamp to the link to ensure
it is never
Is there a way of doing a redirect from my controller which preserves
the form data? Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
Hello.
I am still trying to figure out the best way to design with cake. In
general almost all my pages have mixed blocks from different
controllers on each page. (like CNN) So elements are really something
that I would like to use! It is nice that I can create very small
modules and final put
Use could use Sessions.
Tim wrote:
Is there a way of doing a redirect from my controller which preserves
the form data? Thanks.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to
If any of you are getting errors with the ACM plugin regarding the
Session component ($Session), take a look at
https://trac.cakephp.org/ticket/1091 - apply this to your
libs/controller/controller.php file, and it should work!
--~--~-~--~~~---~--~~
You received
That's more of an HTTP question, and the answer is not really. As
Brian said, you could use sessions, i.e. $this-Session-write('Form',
$this-data);
I suppose another option would be to use requestAction to return a
different action from a different controller.
Heh, I had this issue too: was copy/pasting the URL from inside
Cakeforge to use with wget, and was wondering why it was corrupted!
Maybe I should submit a ticket? ;)
--
Chris Lamb, Cambs, UK WWW: http://chris-lamb.co.uk
Q. Why is top posting bad?
44 matches
Mail list logo