feature
--~--~-~--~~~---~--~~
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 options,
Several people voiced opinions about plugins and in an effort to make
them more flexible we added the functionality to access models across
plugins and the main application in the current 1.2 branch. Use the
dot notation Plugin.Model to access models in the plugin and Model
to access the models
We moved to a new server and there is an issue with the build script.
We have to run it by hand right now, which we try to do on a regular
basis. We are hoping to have the problem resolved shortly, but to be
honest its not high on the priority list right now.
Newbies should probably start with
@mascheon
Looking at the tests it appears this is covered. Check your revision
and whether the bug was fixed. Also, checkbox does not provide a label
or a wrapper div so passing that stuff as false will cause the extra
attributes.
@Mr-Yellow
Coming soon to a beta near you and as of 5994 in the
Quoting the intro of the plugins section of the manual, CakePHP
allows you to set up a combination of controllers, models, and views
and release them as a packaged application plugin that others can use
in their CakePHP applications...Package it as a CakePHP plugin so you
can pop it into other
This is all about you isnt it?
--~--~-~--~~~---~--~~
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
why are passing a path?
--~--~-~--~~~---~--~~
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]
Enums will not be supported, and are not really supported in 1.2
anyway. We are also not going near YAML. Luckily, if you like that
there are some other libraries available.
You can generate snapshots of your database, which are like versions.
But, if you are using svn you don't really need
your pagination component probably has some whitespace after the
closing tag ?.
--~--~-~--~~~---~--~~
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
Try setting your Security.level to medium in core.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 group,
run 'cake schema help' from the command line.
--~--~-~--~~~---~--~~
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
high renews the session every request, giving the stored values a new
session id. This makes it extremely hard to highjack session data. The
consequence is that if something is changed your sessions may stop
working. Setting to medium stops the renew functionality. This leaves
you slightly more
The SchemaShell handles full schema versioning.
run: cake schema help
--~--~-~--~~~---~--~~
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
Oh, maybe the htaccess files were removed or if you moved files around
the htaccess files were missed because they are hidden. Anyway, glad
to hear its working with a freshly baked project.
--~--~-~--~~~---~--~~
You received this message because you are
are you accessing it with http://localhost/quick_notes?
--~--~-~--~~~---~--~~
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,
Create a forum plugin.
--~--~-~--~~~---~--~~
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]
Yes. cache() is being replaced by Cache::write(), Cache::read(),
Cache::delete(), Cache::clear(); You can set new configurations like
Cache::config('myConfig', array('engine'= 'Memcache')); and then
reference them on a per method, like Cache::write($key, $data,
'myConfig'); or for all methods
You seem to be over thinking things. Controller and Model names are
CamelCased, So QuickNotesController, var $name = 'QuickNotes',
accessible via http://localhost/cake/quick_notes. This would expect by
default a model of QuickNote in models/quick_note.php, with var $name
= 'QuickNote' and
This is related to AllowOveride None, when it should be All or
mod_rewrite not being enabled.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
You should look at the example in the Manual. It does not use
__construct(), it uses beforeFilter. The reason for this is the
components are not loaded in the constructor of the Controller.
http://manual.cakephp.org/appendix/simple_user_auth
--~--~-~--~~~---~--~~
yeah, some changes were made for the line endings on the different OS.
Could you write a test case. The File tests are pretty easy to follow.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post
You will see the belongTo and hasOne.
If you dont want anything use $this-User-recursive = -1;
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
rather than hack your define, you could also add
Configure::write('App.base', 'reviews); to your core.php
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
it wasnt me...I suspect a google group error.
--~--~-~--~~~---~--~~
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
Sorry for the confusion. An announcement will be made when the release
is available.
--~--~-~--~~~---~--~~
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
this is integrated into the AuthComponent already.
function beforeFilter() {
$this-Auth-authorize = array('model' = 'User');
}
then put this in the User model for instance.
function isAuthorized($user, $controller, $action) {
//do some checks
return false;
}
if you want to do it
what version of cake are you using?
--~--~-~--~~~---~--~~
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
did you try looking at the /app/config/core.php in the latest nightly?
--~--~-~--~~~---~--~~
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
could be a problem with the nightly
--~--~-~--~~~---~--~~
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
once you add var $scaffold you should not do anything else.
--~--~-~--~~~---~--~~
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
UML
--~--~-~--~~~---~--~~
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 options,
what does phpinfo() show?
--~--~-~--~~~---~--~~
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
review the release annoucnments. and then just copy your app alongside
the new cake directory.
There are no documents on it cause it is really that simple.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP
Yeah, hopefully. But in reality, there are already a lot of people
using the 1.2 branch which currently stands at 5750. There have been
enough changes to new features since the last release revision to
warrant an update. Also, it was a good excuse to use the new layout
have you searched this group?
--~--~-~--~~~---~--~~
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
ok, i had to dig a bit deeper
http://groups.google.com/group/cake-php/browse_thread/thread/fc7ef676f60ab03/81270d96a20cb44e?lnk=gstq=gwoo+objectsrnum=4#81270d96a20cb44e
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
function beforeRender() {
$this-data = Set::reverse($this-data);
}
--~--~-~--~~~---~--~~
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
do a search in this group for setSource
--~--~-~--~~~---~--~~
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
a href=http://www.google.com/search?q=getters%20and%20setters%20are
%20evilsourceid=mozilla2ie=utf-8oe=utf-8getters and setters are
evil./a
Cake Conventions are below and allow us to make the change to access
modifiers when the time is right.
var $__private
var $_protected
var $public
copy app_controller.php to /app/app_controller.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 group, send
copy app_controller.php to /app/app_controller.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 group, send
@Wayne
good try, but that is perhaps one of the worst ideas I have seen in a
while
@Joel
using the router is the proper way to achieve your goes. But obviously
you could end up with a lot of routes and who really wants to write a
new route every time you add an action.
That said, there is an
use beforeFitler
--~--~-~--~~~---~--~~
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
make your own view class.
then set $this-view = 'MyCustomClass';
in your 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
/app/views/my_custom_view.php
$this-view = 'MyCustomView';
MyCustomView extends View
--~--~-~--~~~---~--~~
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
There is nothing special about the Doxyfile used to generate the API.
--~--~-~--~~~---~--~~
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
feel free to disagree, but here is what I know...
1) phpnut has never built the API with doxygen
2) I sent him the Doxyfile
3) I build the API
given those three things, it leads me to believe that my initial
statement was indeed true.
--~--~-~--~~~---~--~~
You
Joel Moss also wrote a migrations that integrates with 1.2.
http://joelmoss.info/switchboard/blog/2583:Migrations_v33
One of the best things about Cake is how easy it is to drop these
third party packages into vendors.
The Cake 1.2 core has a alpha version of the CakeSchema that John
refers to.
$this-Acl-Aro-findByParentId()
--~--~-~--~~~---~--~~
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
Baz,
You are more than welcome and we really appreciate your kind remarks.
I added your RSS feed. Keep up the blogging.
And, thank you for being a valuable part of the community.
Bake on.
--~--~-~--~~~---~--~~
You received this message because you are subscribed
Im happy to see you found my OCPHP presentation. I tried to sum up
most of the features for 1.2, but the presentation was already 2 hours
long, so I left some things out. Great article. Thanks for putting it
together. It may find its way to the cakephp.org homepage soon.
this is not the way to set the base in 1.2.
If you are using the current nightly, you can set
Configure::write('App.base', '/path/to/index'): in your core.php
Cake will use this path without doing anything tricky. If you want to
make your app more portable, then use
Session Key?
--~--~-~--~~~---~--~~
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
The difference is this: Debugger
the debugger class is used on the default homepage. I have made
changes to the latest 1.2 so the white page does not happen. But with
Debug 0 and the default homepage in previous 1.2 revisions, you will
see a white page, since the Debugger will not be loaded.
You you want to check on based on the action then you should use the
controller based auth. Model based auth gets the action based on how
the action is mapped to the CRUD. So, in the model that is all you
deal with, create, read, update, delete.
var $helpers = array('Cache');
--~--~-~--~~~---~--~~
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
svn update
--~--~-~--~~~---~--~~
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
the Auth component is not moving anymore
--~--~-~--~~~---~--~~
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
http://cakephp.org/screencasts
there is one for Setting up the console.
Once it is setup properly just run cake bake help for more
information.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To
what more do you need?
--~--~-~--~~~---~--~~
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]
There are two reasons to avoid $uses and loadModel in your code.
1. performance:
Extra memory will be consummed if you have var $uses and the
association in your model.
loadModel simply checks if the class exists and includes it if it does
not, so the overhead here is minimal. But then you need
I would suggest using the console as I have it setup in the
screencasts. This allows you to do everything from the current working
directory, which in most cases is the app. From there you can figure
out relative paths.
--~--~-~--~~~---~--~~
You received this
it would be $this-ResumeCredit-id
and if there is no record found then saveField will do an insert.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
Add Zend to your vendors directory. Write your own SessionComponent.
use vendor('Zend/Session', 'Zend/Auth'); or whatever the path to the
libs are. Create the methods you need like read, write, destroy.
--~--~-~--~~~---~--~~
You received this message because you
the code in rdBloggery is pretty ancient. Been a little busy to update
it.
The pagination in rdBloggery is different from 1.2 though they may
look similar.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP
You could also have a look here:
http://manual.cakephp.org/chapter/scaffolding
--~--~-~--~~~---~--~~
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
you should use Model::invalidate() in beforeValidate. Otherwise use
beforeSave and return false if you need to stop execution.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group,
http://cakephp.org/screencasts
I did two screencasts on setting up the console in 1.2. One is for
*nix and the other windows.
Check them out.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post
On Jul 6, 2:42 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hi there,
Regarding ObserveField()? What can it observe?
For example, can observeField() observe DIVs without forms in them?
no. you need a form field.
Perhaps I'm missing something. And I know we've discussed this ad
This is from the Bakery code.
$this-set('parents', $this-Category-generateList(null, null , null,
null, null,'{n}.ParentCat.name'));
The last param is the what you want to group on and will have that
label.
--~--~-~--~~~---~--~~
You received this message
please search for things like this. Configure::write('debug', 0);
--~--~-~--~~~---~--~~
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
http://manual.cakephp.org/chapters/caching
--~--~-~--~~~---~--~~
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
did you look?
--~--~-~--~~~---~--~~
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
$this-data is also available in your view in Cake 1.2. It is a copy
of $this-data that is in the controller.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
There is nothing different in Cake 1.1 and Cake 1.2 with regards to
dispatch.
Did you uncomment line 42 in core.php?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email
your php cli needs to support mssql.
--~--~-~--~~~---~--~~
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
The TohDoh done by Crazylegs is really well done. I would not waste my
time on a two year old tutorial that was not that well written to
begin with.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
if you moved /cake anywhere other than where it was in the downloaded
package you need to change the CAKE_CORE_INCLUDE_PATH in the /app/
webroot/index.php
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP
Nothing Cake does would affect the file system access. The mostly
likely cause of the error is permissions.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
FLAME ON
um how about register_globals off
do you know how php works? $db is a temp variable in the model and
various other classes. It is not a global var.
Geesh, how about you sit back for a second and think about your
problem before getting all up in a huff about it.
FLAME OFF
you dont need to sanitize. I can see the beforeFilter being about 4
lines of code max. Seems pretty painless to me
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email
Data is escaped properly when it is inserted into the db which
prevents sql injection. You then escape output so to remove unexpected/
malicious output.
1. function beforeFilter() {
2. if(isset($this-params['form']['json'])) {
3. $this-data = json_decode($this-params['form']
If you do not have mod_rewrite AND you have do NOT have your
DocumentRoot set to the webroot, you are opening the door to your
code. This is a security risk and should NEVER be used in a production
environment.
--~--~-~--~~~---~--~~
You received this message
in php5 short tags are disabled by default. You need to change the
php.ini.
--~--~-~--~~~---~--~~
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
there is an enhancement ticket 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 to
do you have any code to show?
--~--~-~--~~~---~--~~
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
@Mech7
You are using the helper incorrectly.
if you use $form-input() then you add the option for the error
message.
if you are using the individual form helper methods like textarea
echo $form-textarea('field');
echo $form-error('field', 'Error in field');
For setting up the new console check out the screencasts.
http://cakephp.org/screencasts
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
Suggestions are more than welcome. If you have an idea for better gui,
put together a mock up and submit it as an enhancement to trac.
https://trac.cakephp.org
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
set $this-data['Product']['status_id'] in your 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
you probably have some extraneous whitspace in code.
--~--~-~--~~~---~--~~
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,
Probably need to change startup to initialize
--~--~-~--~~~---~--~~
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
looks like your vendor library is using a function that does not exist
on your other servers php install
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
Components help out controllers with common business logic, so first
intialize, then modify in beforeFilter, then startup some automagic.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to
Some of you may have already seen the Grumpy Canuck's screencast on
running the interactive console. I just posted two more on setting up
your environment to run the Cake Console Shells.
There is one for windoze and one for *nix. They are not streaming but
luckily the files are small.
setSource
--~--~-~--~~~---~--~~
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
you would put a class that extends DataSource in /app/models/
datasources
then create a connection in database.php that can be used.
you could use the xml class to get the web service.
here is a datasource I started on for imap. never completed beyond
making the initial connection, but it
All associations except HABTM can work across database. You need
useDbConfig. There are a few threads on this group that explain it.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this
does the Product model exist?
--~--~-~--~~~---~--~~
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
use the RequestHandler component with ajax and the layout will be set
automatically
--~--~-~--~~~---~--~~
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
201 - 300 of 516 matches
Mail list logo