I don't understand english in audio records so it can be useful to
release the script of the recording in text
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to
How about a FAQ? Since that is exactly what these are. Like the 20
most common problems \ questions.
--~--~-~--~~~---~--~~
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@
On Sep 8, 2006, at 6:23 PM, Chris Hartjes wrote:
> Nate, is there someplace on the CakePHP web site that info could go or
> should I simple add a blog posting and drive traffic there instead? :)
How about I base a chapter in the manual off of your blog post? :)
-- John
--~--~-~--~
Use the standard way of setting a variable in a PHP Class, if you want
to say, set a variable in one method of a class and retrieve it in
another.
Class SomethingController extends AppController{
function a(){
$this->myVar = "whee";
$this->b();
}
function b(){
e
Maybe is better to work with newer code
I try to give you my solution.
I use cakephp 1.1.7
I create the table. (see tutorial)
I configure config/database.php (see tutorial)
I copy the files in section "Installing FCKeditor" (see tutorial)
*** use the folder /vendor/ in the root.
I use bake.php to
The simple answer is you don't. Set()'ing a variable in the controller
doesn't give you access to it in other parts of the controller, but it
will show up as $myVar in the view.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Goo
I was wondering what kind of interest is out there to get an audio
recording of my presentation "What can PHP Learn from Ruby on Rails?"
up on the web. I've been thinking about recording it, but just have
to get my hands on a decent microphone.
--
Chris Hartjes
"The greatest inefficiencies com
On 9/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> That's okay Rnady, Chris doesn't like me either. Although I have to
> agree, debugging is pretty basic to CakePHP and setting it usually
> shows what is going on to generate the SQL and reveals pretty quickly
> where problems lie.
It's
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;
Thanks!
--~--~-~--~~~-
On 9/8/06 7:09 PM, "Daniel Jewett" wrote this well considered message:
OK, I think I found the answer here:
http://docs.info.apple.com/article.html?artnum=301457
Now if I can get fixed...
Dan J.
--~--~-~--~~~---~--~~
You received this message because you are
Hello all,
Hanging off the side of 'on topic' this is.
Have cake talking to MySQL just fine on my MacBookPro. I was moving a
project to my Desktop which is running Tiger Server, and I installed the
5.0.x package for MySQL.
I'm getting a socket error from Cake because the Unix socket for MySQL
nate, that helps a lot. Based on the url you gave me
http://site.com/posts/list/5/9 you're saying that it would be in an
array(5, 9) and that to get that I would do something like
$this->params['pass'][0] to get 5 and $this->params['pass'][1] to get
9?
If that's correct then that's pretty easy. I
[EMAIL PROTECTED] wrote:
> That's okay Rnady, Chris doesn't like me either. Although I have to
> agree, debugging is pretty basic to CakePHP and setting it usually
> shows what is going on to generate the SQL and reveals pretty quickly
> where problems lie.
>
> http://manual.cakephp.org/chapter/c
Hey Tony.
Yeah, your IRC issue sounds like an anal IT thing. Here's a quick
rundown of grabbing _GET and _POST data. Pretty much anything GET or
POST-related that you could want to know will be in $this->params. In
fact, doing an array-dump of that should give you a pretty good lay of
the land
I install jfkEditor with wiki tutorial effect that, to the
tutorials:online_editor-fckeditor
All is ok if jfkEditor is install in "http://localhost/app/";
When I install it in "http;//localhost/fckEditor/", I have this
problem...
When I initialise $oFCKeditor->BasePath (in edit.thtml) with "/js/"
That's okay Rnady, Chris doesn't like me either. Although I have to
agree, debugging is pretty basic to CakePHP and setting it usually
shows what is going on to generate the SQL and reveals pretty quickly
where problems lie.
http://manual.cakephp.org/chapter/configuration
The explanation of the
Like the pagination inclusion. That is pretty sweet. The really
awesome thing is anytime you guys add new functionality to CakePHP you
don't add it strictly. It is always very flexible, user friendly, and
super easy to use. I LOVE IT!
--~--~-~--~~~---~--~~
You
Is your security set to high? I think if you set it to high that it
does indeed create a new session id for each transaction. Not quite
sure how it works, but I do know that it takes quite a bit more for
your security on high than on medium. Also, not quite certain what the
mechanism is for cle
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 coming to the cakeapp. Also, if the user
logged in cake-app a
i think you can use something like $this->params[pass] or $this->params[url]
set define('DEBUG', 3); in your config/core.php and you can see them
printed out when you run the script.
Tony wrote:
> Yes my IT department is COMPLETELY anal. It's so bad I can't even have
> a localhost. And yes I me
$this->here also seems to hold the info as well.
Tony wrote:
> Yes my IT department is COMPLETELY anal. It's so bad I can't even have
> a localhost. And yes I meant to say "down" and not "done". LOL!
>
> I'm getting this error:
> Connection to irc://irc.freenode.org reset. Reconnecting in 30 seco
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 using the scaffolding to view the a
Yes my IT department is COMPLETELY anal. It's so bad I can't even have
a localhost. And yes I meant to say "down" and not "done". LOL!
I'm getting this error:
Connection to irc://irc.freenode.org reset. Reconnecting in 30 seconds.
Would that be an IT being anal thing.
Ha ha ha... I dont' think
I teach my kids that there is no such thing as a stupid question, only
stupid answers. Did I give a stupid answer? You thought I did, so
you're probably right. I'm a big boy and can handle being told that I
was rude to somebody, regardless of what I may think. I thought I was
providing answers
I assume you mean "down" not "done," and no, it shouldn't be. You're
IT people don't happen to be anal about firewall security do they?
Because that could cause an issue, although the Java IRC client at
http://irc.cakephp.org/ should still allow you to get in.
One additional note on URLs: as of
Thank you. I am looking into that snippet now. Does anyone know
whether or not it is easy to integrate the pear datagrid tool into
cake?
Thank you,
codecowboy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
I was just using Chatzilla and then I tried the cakephp irc page and
both disconnected me to the server. It's been such a freaking long time
since I have used IRC that I'm totally rusty here.
Is the server done?
--~--~-~--~~~---~--~~
You received this message bec
Thank you, but I do not see any where on that page or site where they
demo dragging an option element out of a select menu.
Thanks,
Codecowboy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To p
That was it. Thank you jonlb!
Rnady
--~--~-~--~~~---~--~~
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 [EMA
On OSX, check out Colloquy (http://colloquy.info/) - works well, free.
On Windows, I'm using HydraIRC (http://www.hydrairc.com/) - works, free,
not as pretty as colloquy, but I have yet to find a single Windows app
that comes close in elegance to even a crappy OSX app... sigh.. I miss
my Mac!
Chris Hartjes wrote:
> Step #1: make sure you have your app in SQL debugging mode by making
> sure DEBUG is set to 2 in your core.php config file.
> Step #2: Look at the SQL output it generates and make sure the queries
> are actually pulling the information you are expecting
> Step #3: add a 'd
John,
That would be great to join into IRC but what client should I use for
IRC, is there one that is free?
And yeah I know my set up sucks. It's not so much mine but one of those
things that IT set up and I'm looking at it going "WTF?" I wanted it a
much better way but they insisted that it be
Hey AD7six,
How do I grab the params from a url using cake?
Here's what my database looks like:
++
+ LevelID < - (Item id for conent)
+ ParentLevelID <- (holds an ID from LevelID that will be the parent of
the child level)
+ Level <- (what level it is i.e 1, 2, 3, 4,
On Sep 8, 2006, at 11:42 AM, Tony wrote:
>
> I'm new to Cake so I'm a bit confused on a few things after reading
> part of the documentation. We are a PHP shop and I'm a big fan of the
> homegrown framework so I turned to Cake and I like what I'm seeing.
>
> First off, how do I format and access
Hi Codecowboy,
The problem with pulling data from more than one table, is that if it
triggers more than one sql statement you can´t apply a sort to it.
This means that with the execption of belongsTo HasOne sorting queries
becomes "difficult".
What you describe is a grid sorting rather than pagi
Hi Tony,
You can most likely use what ever url you like :). The last example
below (named paramters) is native to cake 1.2 but you can do it quite
easily with cake 1.1.7:
Assuming controller modules and action show, you can use any of the
following:
Modules/Show?level=2&parentLevelId=24&lev
I'm new to Cake so I'm a bit confused on a few things after reading
part of the documentation. We are a PHP shop and I'm a big fan of the
homegrown framework so I turned to Cake and I like what I'm seeing.
First off, how do I format and access multiple url params? For example
in normal PHP we do
rnady wrote:
> [EMAIL PROTECTED] wrote:
> > Use the associations. Then you can return it with
> > $data['Importance']['importance'].
> >
> > I would imagine this could be quickly accomplished with a belongsTo
> > association.
> >
> > http://manual.cakephp.org/chapter/models
>
> Thanks for your r
On 9/8/06, rnady <[EMAIL PROTECTED]> wrote:
>
>
> After adding the belongsTo in my importance model and
> $data['Importance']['importance'] in my view.thtml I get this error:
> Notice: Undefined index: importance in
> N:\www\cake\app\views\items\view.thtml on line 5
> What am I doing wrong?
>
(I
Sohei Okamoto wrote:
> I haven't tried this yet, but I think this is what you are looking for.
> http://wiki.cakephp.org/tutorials:pagination
>
> It looks promising.
>
> Sohei
Thanks Sohei, but we have already looked into that it doesn't seem to
work. We are looking for a pagination tool that t
Well, Cake 2 doesn't technically exist yet, but I'm actually putting a
large site into production on Cake 1.2 over this weekend. In fact,
many of the additions an improvements to 1.2 the past couple weeks have
been extracted directly from the project.
I've written about some of those new feature
[EMAIL PROTECTED] wrote:
> Use the associations. Then you can return it with
> $data['Importance']['importance'].
>
> I would imagine this could be quickly accomplished with a belongsTo
> association.
>
> http://manual.cakephp.org/chapter/models
Thanks for your response.I know this should be sim
Hi,
While playing around with session data in database, I found out that,
whenever I open the website, at least two session records are added to
the table. And after a while, the number of records are huge.
Is it a bug or a feature.?
cheers
[\/]
--~--~-~--~~~---~--
You can try just doing
$variable =& new $Model;
inside your component. This will create a reference to the model for
you without relying on the controller.
Bryan
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "C
Use the associations. Then you can return it with
$data['Importance']['importance'].
I would imagine this could be quickly accomplished with a belongsTo
association.
http://manual.cakephp.org/chapter/models
--~--~-~--~~~---~--~~
You received this message becaus
As far as a flowchart of graphic, I put one together a while ago, and
you can find it here:
http://cake.process141.com/files/layers_of_cake.pdf, but it is
extremely simplified. I put together another, more detailed version as
part of a series of CakePHP "cheatsheets," but it has not been released
It seems that the consensus is to put the blocks into elements and if
they have data use a requestAction inside the element that returns a
data array containing whatever information you need. There are lots of
other ways to skin this cat, depending on your situation and how many
blocks you are ta
On 9/8/06, mathaios <[EMAIL PROTECTED]> wrote:
>
> Thank you very much! I deleted the files and now i see the data with
> debug to 0.
> Now i will investigate why the files are not updated.
>
> Regards
Troy's solution showed you the answer to your question: DEBUG 0
caches some of the output of y
[EMAIL PROTECTED] wrote:
> Delete all files in your tmp/cache/models. Sounds like for some reason
> your cache for models is not recreating. If you made a change to the
> tables with your debug at 0 you have to clear those out. Although, at
> DEBUG > 0 it should have reset them. So, perhaps y
> function index(){
> $this->set('Schools',
> "$this->FindStateCode->ConvertedStateName");
> }
Try this
function index(){
$this->set('Schools', $this->FindStateCode->ConvertedStateName);
}
;-)
--~--~-~--~~~---~--~~
You received this messa
I am very new to CakePHP and I'm pretty sure there is a simple answer
to this problem but i have failed to find it.
I am creating a todo list application in which the user can enter the
name of the item for the list and then select the importance of the
item. So I have two models: Item and Import
Delete all files in your tmp/cache/models. Sounds like for some reason
your cache for models is not recreating. If you made a change to the
tables with your debug at 0 you have to clear those out. Although, at
DEBUG > 0 it should have reset them. So, perhaps your server isn't
letting CakePHP u
sorry for my bad english...
with "DEBUG" to 0 some data in the table in the view is not displayed
(some table cells are empty).
with DEBUG to 1 or more the data is normally displayed in the table
cells ("reappears")...
I hope this to be a little bit clearer...
--~--~-~--~~---
http://demo.script.aculo.us/shop
codecowboy wrote:
> I am trying to create a select box that I can drag elements out of and
> drop into another select box.
>
> Does anyone know how to do this?
>
> Thank you
>
>
> >
>
>
--~--~-~--~~~---~--~~
You received this me
D'oh! Turns out to be some mistake of my own (what else ;) ). In my
AppController, I do $this->uses[] ='User', for the use of global
authentication. So when plugincontroller->constructClasses is called,
the uses-array is not empty and it doesn't automatically add the model
named after the control
Define 'reappears' ? How do you test for data presence ?
On 9/8/06, mathaios <[EMAIL PROTECTED]> wrote:
>
> Hi to all,
>
> I hope very much someone can enlight me on this issue, I'm becoming mad
> trying to figure out wath is happening.
> The problem is, in a view generated by the bake script, so
Hi to all,
I hope very much someone can enlight me on this issue, I'm becoming mad
trying to figure out wath is happening.
The problem is, in a view generated by the bake script, some data is
not visible, but is present in the database. Now, if I set DEBUG from 0
to 1 in core.php the data reappea
thanks ^^
Dom.
--~--~-~--~~~---~--~~
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 mo
Same message?
Object id #7->ConvertedStateName
I am at a loss...
--~--~-~--~~~---~--~~
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->requestAction('/controller/myaction',array('mydata'=>$myarray));
then in function myaction()
{
$mydata = $this->params['mydata'];
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To pos
try this
class FindStateCodeComponent extends Object
{
var $ConvertedStateCode = null;
var $ConvertedStateName = null;
function startup(&$controller)
{
$this->controller = & $controller;
$this->ConvertedStateCode = 'foo';
$this->ConvertedStateName = 'Bar';
$this->requestAction('/controller/myaction',array('mydata'=>$myarray));
then in function myaction()
{
$mydata = $this->params['mydata'];
}
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To pos
Hello,
I have tried for hours, and am just not crasping the docs...
Here is my componet: (just basic for testing)
class FindStateCodeComponent extends Object
{
var $ConvertedStateCode = null;
var $ConvertedStateName = null;
var $controller = true;
function doFoo()
{
Hi,
How to enter a array parameter in a requestAction ?
Regards,
Dom.
--~--~-~--~~~---~--~~
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 unsubscri
The model is nothing more than:
the file is called guestbook_post.php. Scaffolding does indeed work,
but only when I state
var $uses = array('GuestbookPost'); in the controller...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the G
In that case the answer lies in the name of the model it´s looking for
- what is it? The problem or mistake will probably turn out to be
somthing regarding camel cased names.
Cheers,
AD7six
--~--~-~--~~~---~--~~
You received this message because you are subscrib
Hi,
I am facing some problems with FCKeditor.
I am trying to display the editor in my html page and I followed the
steps described in
http://wiki.cakephp.org/tutorials:online_editor-fckeditor
I have used the same code that they given.
After changing the basepath in thtml file , I could able to
The Inflector does it's work properly:
Inflector::singularize('GuestbookPosts'); echoes 'GuestbookPost', so
the modelname can be found via the controller's name..
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
Hi AD7six,
Yes, I know that this isn't necessary, but I just followed the
instructions in the manual, saying: "While it isn't required, it is
recommended that you name your plugin controllers something relatively
unique in order to avoid namespace conflicts with parent applications".
(I can imagi
Is anyone out there using Cake 1.2 or Cake 2? What are the developers
currently developing?
If you are using Cake 1.2, what are the major differences from 1.1?
Just curious to see if being on the bleeding edge of CakePHP is worth
it. I used to love working with CakePHP in RC mode. Seeing the n
Hi 2000Man,
I assume you know that it isn´t necessary to have your controller and
model named after the plugin?
With a controller named "GuestbookPostsController" in a plugin named
"Guestbook" you are going to get urls like this:
/Guestbook/GuestbookPosts/Add.
If you named your controller simpl
I have only been using this MVC logic since I picked up CakePHP back in
November. So, now I am wanting to get away from, yes this code works,
to yes this code is nicely and well written. So, I am looking for
these little things like a method of a controller should do it's job
and not reference o
requestAction opinion: Use requestAction when necessary don't try to
make inter-controller calls.
Hi Troy,
Regarding a graphic: I looked at creating a more detailed one, but
didn´t find the time to comple it yet. So my attempt to chip something
pretty back to Cake failed :). There were a couple
Don't you love AJAX and IE? I had problems when I didn't use the
RequestHandler component. If I remember correctly it detects ajax
calls and makes sure the result passed back is UTF-8. Because if it
isn't then that can screw up IE.
Also, I have found that something in scriptaculous / CakePHP /
Rather than quote myself, Google is everybody's friend:
http://groups.google.com/group/cake-php/browse_thread/thread/63689f6171aa5cf3/27b15a01b48a2acb?lnk=gst&q=AD7six&rnum=1
RequestAction is simulating a url - so I wouldn't expect it to work
with _ methods. If you wanted to protect a method such
RequestAction returns the rendered view template if I'm correct ...
I'm not sure but I think that a direct call to a controller method
doesn't auto-render the template ?
On 9/8/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> This kind of falls along the other conversation I was trying to ha
This kind of falls along the other conversation I was trying to have.
Couldn't you then make a call to a underscored method? So, you
couldn't call /controller/_method, but you could do
$this->controller->_method()??
I would like to know whether the direct call or a requestAction is the
"correct"
LOL! Funny Nate. It had been so long since I got under the hood of
CakePHP I was looking for a refresher. I think someone like Graham
Bird had a graphic showing what actually happens when an URL is
requested in a CakePHP app??
--~--~-~--~~~---~--~~
You received
I must absolutely lost my mind when I wrote above posts. I'm really
sorry, I wish I could delete them.
Correct is:
$Route->connect('/guestbook/*', array(
'controller' => 'guestbook_posts',
'action' => 'index'
));
in case You're not using CakePHP ADMIN routes and
$Route->connect('/:admi
Hi Dear
Members,
FOLLOWING R THE NEW
JOBS POSTED THIS WEEK (WEEKLY NEWSLETTER) :
Job Title
Job Posted By
.NET Professionals
Adventures
Recruiter
Naukriguru
singapore based jobs available
era recruitants p. ltd.
Sorry for typo, correct is
'controller' => 'guestbook',
--~--~-~--~~~---~--~~
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
> 3. How can I set a kind of default route, so when I go to
> http://mysite/guestbook, I can see, for example, the action "index" of
> my guestbookpostscontroller?
$Route->connect('/:admin/guestbook/*', array(
'controller' => 'guest_book',
'action' => 'index'
));
or
$Route->connect('/:a
Hi there,
I was trying to create a guestbook-plugin, to get to know the
pluginsystem a little better. The plugin itself works: Cake can find it
and I can call the different actions (via
mysite/guestbook/guestbookPosts/index, for example). I got three
questions though, and couldn't find the answer
83 matches
Mail list logo