@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');
--~--~-~--~~
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 bec
which version of Cake?
--~--~-~--~~~---~--~~
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]
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 unsubsc
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 PRO
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" g
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 cake
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'
i would say performance and flexibility are the biggest concerns. Xml
is nicely structured and the tree could work easily with ACL, but if
you had a 100 records it might slow things down. Also, managing 100
records in an xml file may be annoying.
That said, you could run some tests. I would creat
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 emai
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 [EM
$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 c
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 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 beca
what is $this->reg()
?
--~--~-~--~~~---~--~~
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
search cli dispatcher.
--~--~-~--~~~---~--~~
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]
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 pos
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 th
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 unsu
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
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 a
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"
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 t
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 mess
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 cake-php@g
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]
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.
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
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 PR
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 op
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.
--
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 Configure::write('App.baseUrl',
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.
--~--~-~--~~
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. T
$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
@Ismael
Then why are you still on this list? Or why even bother responding?
I think the expression is "if you dont have something nice to say,
dont say it at all"
@Troy
http://ahsanity.wordpress.com/2007/08/29/cakephp-12-the-romance-continues/
http://www.cakephp.org/files/OCPHP.pdf
--~--~--
nope thats all 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 PROTECTE
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
/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.co
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 f
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 r
The default is for a New record. This is not arbitrary as it follows
the defaults used by create() and other methods.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send ema
I wrote a message to the google group for enhancements about a 3
months ago that asked for the feature to moderate "Pages" and "Files".
Still nothing. So, unfortunately we are stuck policing this this stuff
on our own for now. Thanks for putting in the effort Christopher. It
is much appreciated. B
http://www.google.com/search?q=getters%20and%20setters%20are
%20evil&sourceid=mozilla2&ie=utf-8&oe=utf-8">getters and setters are
evil.
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, sen
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, sen
@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 enha
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 m
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 PRO
ok, i had to dig a bit deeper
http://groups.google.com/group/cake-php/browse_thread/thread/fc7ef676f60ab03/81270d96a20cb44e?lnk=gst&q=gwoo+objects&rnum=4#81270d96a20cb44e
--~--~-~--~~~---~--~~
You received this message because you are subscribed to th
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 unsubscri
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
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
--~--~-~--~---
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"
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 g
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 PROTECT
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 [EMA
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 [EMA
You have not provided enough information for anyone to help. You need
to say what you are expecting, show the results of that. Pasting core
code is not of any help without that information.
--~--~-~--~~~---~--~~
You received this message because you are subscribed t
you need to call $categories->constructClasses();
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send em
Can you find a changeset that modified the behavior?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send
The documentation is not correct.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PR
Sorry, this is not a real bug. We missed the post to the group, so
thank you for following the rules. Your usage for $form->create is not
correct. It should be $form->create('CoreUser', array('url' =>
array('controller'=>'CoreUsers', 'action'=>'login')));
--~--~-~--~~~-
The Auth component denies all actions by default.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send em
reading the comment on the ticket thoroughly would provide the
solution"You can set autoRedirect = false, then handle the
redirect in the login action"
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" gro
$this->passedArgs is available in the view. just pr($this->passedArgs)
and see what you get.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.
I did not take too much time to go through the site, but I really like
the idea and how it is coming together. Maybe I could get a ride share
for me an my surfboard to NZ from CA...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Go
Sanitize was never required to prevent sql injection as the dbo layer
handles that already by correctly escaping values. If you want to use
Sanitize make sure you App::import('Sanitize')
--~--~-~--~~~---~--~~
You received this message because you are subscribed to t
I guess I am having a hard time understanding exactly what you expect
to happen. Initially, I thought you wanted the login to always
redirect to the same location. This would be solved with autoRedirect
= false and handling it in the login action. Maybe you could provide a
better example, with som
No, only the owner of the copyright can change the license. Depending
on the size of the changes you make, you may or may not be able to
claim ownership in the copyright. By my estimation, you would have to
substantially change more than 50% of every class. That means
modifying the logic not just
in that case use $this->data['Question']['survey_id'] = $this-
>passedArgs['survey_id']; in your controller method
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to
Nate,
You should stick to coding and leave the licensing questions to the
people who actually know what they are talking about.
Please see my previous message to learn a little about intellectual
property issues.
Sincerely,
Garrett J. Woodworth
JD/MBA 2005 Fordham University
--~--~-~--~-
On Oct 23, 11:50 pm, benjam <[EMAIL PROTECTED]> wrote:
> On Oct 22, 4:07 pm, Gwoo <[EMAIL PROTECTED]> wrote:
>
> > If you
> > think your changes are that great, you should really think again.
>
> really? damn, I didn't know that the Cake devs we
On Oct 24, 1:30 am, Nate <[EMAIL PROTECTED]> wrote:
> You need to chill,
Just wanted to give you a taste of your own medicine ;)
Sorry if it sounded harsh. I was just trying to make it clear that
someone cannot change the license.
--~--~-~--~~~---~--~~
You recei
You do not need to make any changes to the Cake the core in order to
handle this. It should be as simple as creating controllers for the
various pass thru applications and using include to get the output
from those applications. Good luck.
--~--~-~--~~~---~--~~
You
#cakephp on irc.freenode.net is the place to report.
We are working on the problem. Should be back up very soon.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to c
We are working on fix. Should be back up soon.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email
you can use Debugger::output('txt')
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL
Actually, it is not simple because it would be wrong to use a
component in the view. This is why you cannot find the information in
the docs. If you need some data you can set it in the beforeRender
callback.
--~--~-~--~~~---~--~~
You received this message because y
Turn off E_STRICT.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" 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
The focus right now is on finalizing 1.2 and we'd like to keep it that
way until there is an official "stable" release.
At that point the roadmap for 1.3 and 2.0 will be discussed and put
into place. The basics are there and anyone is free to contribute
ideas in the form of RFC or enhancement tic
The DBO layer handles proper escaping of your data to prevent SQL
injection. You do not need to use Sanitize unless you are doing
something out of the ordinary.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP
You may want to try setting Security.level to medium in config/core.php
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe fr
> Current Code::
> return $this->find(
> 'all',
> array(
> 'conditions'=>array(
> 'DATE(Post.date)' => '>= '.$date,
> 'DA
http://live.cakephp.org/shows/view/4
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-
majna,
very close. syntax is slight different
App::import('Core', 'Xml');
$wordpress = new XML('http://wordpres_rss_url_here);
pr($wordpress->toArray());
//notice toArray instead of Set::reverse()
--~--~-~--~~~---~--~~
You received this message because you are su
Cake 1.1 did not have a console :) Try 1.2
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
oel Perras has put in a great amount of work and coding
CakePHP in TextMate just got a lot easier thanks to him. For all
these great resources and more, head on over to the downloads[12]
page.
We hope you enjoy the big present and the few goodies. Have a great
holiday season.
- Gwoo, Nate, PhpN
mod_rewrite needs to be enabled and AllowOverride All in the httpd.conf
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe fr
1 - 100 of 609 matches
Mail list logo