How to do what in CakePHP?
Thomas
On Jan 8, 7:46 am, mona wrote:
> I have code of my controller in which i use normal php codes to fetch
> data from a database and update counter how to do this in cakephp
>
> class EntriesController extends AppController
> {
> var $name = 'Entries';
>
(/users/login). It looks a bit complicated since you
> can decide that Auth should use the model Account (or anything you
> like) and in that case the default login action would be /accounts/
> login.
> You can override this by calling: $this->Auth->loginAction = '/
> anyt
lt User model. You need to create that yourself. Set
> that up however you'd like and then add login, logout, etc. methods
> for the Auth component.
>
> I'll leave it to someone else to go over the benefits of Auth.
>
> On Wed, Jan 7, 2009 at 11:35 AM, 703designs wrot
I just began working with the Auth component, and I would like to know
what it provides for me and what I will have to provide on my own.
When I'm used to the process of defining my own models, etc. it's
somewhat disorienting to simply add a $form->create(), inputs(), and
end() to create a login p
Yea, I'm not involved enough to know for sure what's of the highest
priority, but I'm assuming we're in feature freeze right now, so I
figured that these other 285 are probably for 1.3.
Thomas
On Dec 17, 10:06 am, Adriano Varoli Piazza wrote:
> On 17 dic, 13:02, Adriano Varoli Piazza wrote:
>
https://trac.cakephp.org/ticket/5895
If not, what does? I'd like to help out in any way possible to tie up
any loose ends to help push through to a final 1.2 release which will
no doubt be a boost for the project.
Thomas
--~--~-~--~~~---~--~~
You received this mes
I'd recommend giving them a non-blog tutorial for a few reasons:
* Shows more thought and attention to detail
* Are you guys developing blogs? The walkthrough should show how the
framework can be relevant to your business. If this is for a local
user group, they'll all soon discover the blog tutor
I'd love MooTools if they chose to namespace the library to a MOO or
similar object and not change basic prototypes (even String is
modified!). Unfortunately, it's hard to trust if you're running it
around other scripts. I wonder how much Moo's performance has these
dirty tricks to thank...if it d
hell lot of people learning jQuery, not JavaScript
> these days. Every allegedly javascript developer should, at least, read the
> ECMA-262.
> Gabriel Gilini
>
> www.usosim.com.br
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
>
> On Sun, Nov 2, 2008 at 10:08 PM, 703designs <[E
I'm not sure what you mean by that. jQuery is written in JavaScript
(not like MochiKit, which tries to make JavaScript look like Python).
On Oct 31, 2:43 pm, "Gabriel Gilini" <[EMAIL PROTECTED]> wrote:
> The right answers is: learn real javascript
> Yes, the learning curve with jQuery is way lowe
I'd like to pass any recommended source code (missing controller,
etc.) from Cake through highlight_string(). How can I customize this
output beyond simple styling?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Cak
YUI? Slow, bloated, but pretty. Dojo done wrong.
On Nov 1, 5:55 am, frederic bollon <[EMAIL PROTECTED]> wrote:
> And what do you think about YUI ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To p
Router::connect('portfolio/*', array('controller' => 'port_items'));
How do I pass the "*" to PortItemsController::*()? I considered using
call_user_function on the controller from the index($method) method
with the "*" as $method, but I'd rather direct the request straight to
the * method.
--~-
I agree in most cases. JavaScript code should be unobtrusive and only
be written once, especially when already using a framework (like
jQuery). I can almost see the value in generating widgets, but really
the only thing that Cake should do is provide utility scripts and use
naming conventions (For
jQuery is lighter and better engineered. It's becoming the runaway
favorite amongst web developers right now.
On Oct 30, 8:00 pm, jjh <[EMAIL PROTECTED]> wrote:
> Personally, I use jQuery because I like the lightweight library.
> cakePHP does have Helper that works together with Prototype which c
Has anyone tried adapting CakePHP to work with something like GTK, or
even Cocoa? The rapid development of Cake would be an interesting mix
with a GUI toolkit.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP"
gt; provide them:
> - subscribe for future updates to a particular thread
> - include inline formatted code into a post
> - subforums.
>
> On Oct 29, 10:42 am, AD7six <[EMAIL PROTECTED]> wrote:
>
> > On Oct 28, 11:45 pm, 703designs <[EMAIL PROTECTED]> wrote:
>
&
You're using a POST method for your form, so you can retrieve the data
from $this->data on the controller side. Why would you want POST data
in a URL? That's what GET requests are for.
Thomas
On Oct 28, 6:43 pm, "R. Davila" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Sorry, but it didn't work.
>
> This
Just an idea. I think that the Bakery's in a good position right now
(as the heart of the Cake community), and that the CakePHP knowledge
base and its usability would improve if discussions took place in a
regular web forum rather than on a mailing list. Thoughts?
--~--~-~--~~-
What's the word on Yii? I can't find much about it from third-party
sources, but it looks like an interesting project.
Thomas
On Oct 27, 12:44 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> I know I am faster in CakePHP 1.2 than in Codeigniter... ;)
>
> sorry, couldn't resist.
>
> On Oct 2
Ah, that unexpectedly turned up in my php.ini. Thanks!
On Oct 27, 6:56 pm, Gwoo <[EMAIL PROTECTED]> wrote:
> Turn off E_STRICT.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group,
On the initial homepage in a new Cake install, I get a number of
errors: http://pastebin.com/m7b5a3393
I know I shouldn't suppress errors, but short of editing core files,
what should I do?
--~--~-~--~~~---~--~~
You received this message because you are subscribed
te etc) is not good. Why the tests are a problem for you ?
> can't you rm them if you dont need them ? i can't see where is the
> problem.
> --
> Marcin Domanskihttp://kabturek.info
>
> On Tue, Oct 7, 2008 at 6:45 AM, 703designs <[EMAIL PROTECTED]> wrote:
>
> >
gt; as well as the ability for people to verify (or more commonly to
> > verify the absence of) bugs.
>
> > On Oct 6, 2:05 pm, 703designs <[EMAIL PROTECTED]> wrote:
> > > Ah, that makes sense. I'm pretty sure that Nate's suggestion was
> > > uncalled for,
Ah, that makes sense. I'm pretty sure that Nate's suggestion was
uncalled for, but he's helped me enough with Cake stuff over the last
year that I know it's in good spirit.
Here's a question: Why are the tests included? Why not make them a
separate download? I mean, yes, if they're distributed to
It's...getting...bigger. Compare the archive sizes from 1.1.x to 1.2
RC3. Sure, it's no Zend Framework, but let's try to keep the framework
light and simple if possible. A web framework and simplicity may seem
like oil and water at times, but a concerted effort to limit the core
is important. Opin
up to you to decide.
> Either you make sure that the form submits to the right action (see
> $form->create() options), or that the action renders the appropriate
> view when it's done. What works better for you I don't know.
>
> On 18 Sep 2008, at 23:18, 703designs wro
Note that each ['validate'] key also has a normal ['message'] defined,
saying that the field in question is required.
On Sep 18, 9:29 am, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote:
> On 18 Sep 2008, at 21:50, 703designs wrote:
>
> > I got fu
evant mail logic in there.
So should I move this logic into index() and force the form to use
that method? Or force a render of the index view and find some way to
pass in the validation errors?
Thanks for the help!
On Sep 18, 9:29 am, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote
p on
the form (repopulating fields)? This is not very well-documented, or
if it is, I had difficulty finding an answer.
On Sep 18, 4:44 am, "David C. Zentgraf" <[EMAIL PROTECTED]> wrote:
> Are you looking for
> this?http://book.cakephp.org/view/410/Validating-Data-from-the-Cont
How can I check if the data is valid before trying to send the mail
out? Validation errors are falling into the "email failed" condition,
and validation errors aren't reported to the user.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to
a matter of extending or copying HtmlHelper?
On Sep 13, 12:24 pm, "Gonzalo Servat" <[EMAIL PROTECTED]> wrote:
> On Sat, Sep 13, 2008 at 1:15 PM, 703designs <[EMAIL PROTECTED]> wrote:
>
> > It looks like the capability's there (
> >http://api.cakephp.org/ht
I wouldn't want to transform addresses in a table, and it
looks like the capability is already there.
On Sep 13, 12:24 pm, "Gonzalo Servat" <[EMAIL PROTECTED]> wrote:
> On Sat, Sep 13, 2008 at 1:15 PM, 703designs <[EMAIL PROTECTED]> wrote:
>
> > It looks like t
It looks like the capability's there (
http://api.cakephp.org/html_8php-source.html#l00047
), but invoking the method from a page view throws this error:
Warning (512): Method HtmlHelper::mailto does not exist [CORE/cake/
libs/view/helper.php, line 148]
What needs to be done to enable the mailt
pefully you can see how
> that works):
>
> Router::connect(’/(.*).html’, array(’controller’ => ‘pages’, ‘action’
> => ‘display’));
>
> On Sep 13, 9:22 am, 703designs <[EMAIL PROTECTED]> wrote:
>
> > The CakePHP docs don't go into very many details about how
The CakePHP docs don't go into very many details about how to use
CakePHP in conjunction with a static website. I'm building a light CRM
app that will be behind my mostly static company site, but I want to
keep these static pages in the Cake system so that templates are
shared and I have access to
The clumsy way is to replace all < with <, and possibly all > with
>. If you are going to echo this data with substitutions (using
double rather than single quotes) then you also will have to make sure
to escape any special characters, e.g. $.
On Jun 23, 12:04 pm, Kyle Decot <[EMAIL PROTECTED]> w
What did you change it to?
I think it's always a good idea to follow up with your solution so
that others can learn from your experiences.
On Jun 11, 6:22 am, Reza Muhammad <[EMAIL PROTECTED]> wrote:
> Thanks Grant. Yeah, it turned out that i only needed to change my
> validation rule.
>
> Good d
A release candidate is expected soon. I read that a beta is due soon
as well, but that wouldn't make much sense (a beta was released on
January 1st). From the RC, it's only a matter of time. Last Saturday
was 1.2's feature freeze, so we're getting very close.
On May 28, 10:22 pm, "Chris Hartjes"
roller.php:
>
> On Wed, May 28, 2008 at 2:44 PM, 703designs <[EMAIL PROTECTED]> wrote:
>
> > You mention putting putting the auth component in app_controller.php.
> > From the manual, "The AppController class can be defined in /app/
> > app_controller.php and it sh
is a standard CakePHP library." How do I
configure AppController without removing existing functionality? My
PHP OOP is rusty.
On May 28, 1:25 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Wed, May 28, 2008 at 1:22 PM, 703designs <[EMAIL PROTECTED]> wrote:
>
>
28, 1:13 pm, John David Anderson <[EMAIL PROTECTED]>
wrote:
> On May 28, 2008, at 10:57 AM, 703designs wrote:
>
>
>
>
>
> > I'm working with Cake right now, and I thought that ACL was my answer
> > to this question, but it seems that Cake's ACL (ACL in gen
I'm working with Cake right now, and I thought that ACL was my answer
to this question, but it seems that Cake's ACL (ACL in general, I
suppose) only deals with roles, etc:
"It should be noted that ACL is *not* a system that is meant to
authenticate users. You should already have a way to store u
I want to keep up with development and progressively upgrade my
installation to the latest nightly a couple times a week. What do I
need to do to upgrade in this way? Also, is there a place I can look
to see a changelog of sorts for nightly builds (commit messages, etc.)?
--~--~-~--~~-
Nevermind, that's automatically managed.
On Apr 18, 4:05 pm, 703designs <[EMAIL PROTECTED]> wrote:
> OK, great. Also, how do I assign a value to $form->hidden? I'd like to
> update the "created" time of my tasks to NOW()...
>
> On Apr 18, 3:51 pm, "
OK, great. Also, how do I assign a value to $form->hidden? I'd like to
update the "created" time of my tasks to NOW()...
On Apr 18, 3:51 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:
> $form->input('field', array('type'=>
->input() on a text-type column,
> it calls $form->textarea().
>
> On Apr 18, 3:19 pm, 703designs <[EMAIL PROTECTED]> wrote:
>
> > I'm having trouble with one inconsistency I've found while building a
> > small app. $form->input accepts a 'label'
I'm having trouble with one inconsistency I've found while building a
small app. $form->input accepts a 'label' key in the options array,
but $form->textarea doesn't. Why is this? Is there another key that
will work like input's "label"?
--~--~-~--~~~---~--~~
You re
Never mind again, things are up and running well.
On Apr 18, 1:36 pm, 703designs <[EMAIL PROTECTED]> wrote:
> Never mind the first two questions; I was able to turn off SQL output
> by setting debug to 1, and I made my own copy of default.ctp as a new
> template, choosing to re
Never mind the first two questions; I was able to turn off SQL output
by setting debug to 1, and I made my own copy of default.ctp as a new
template, choosing to remove the header and footer regions.
On Apr 18, 1:22 pm, 703designs <[EMAIL PROTECTED]> wrote:
> First, I've begun b
First, I've begun building my own pages for a small To Do list app,
which I'm making while following the old blog tutorial, in the Beta.
How do I get rid of the CakePHP header bar? And how can I turn off the
SQL query debug message at the bottom?
Finally, I did figure this out before, but I've fo
I fiddled with 1.2beta a couple months ago, and I remember that it was
very different from the current stable branch of Cake. Does anyone
have an idea as to when 1.2 will be released stable? It's been in beta
for over four months now, and I think that building my new site over
the old stable would
Can someone please tell this neophyte who gwoo, PhpNut, and _nate_ are
in this project? This would definitely help me to understand the
significance of this little argument.
On Apr 16, 2:18 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> Hate to be the one to post it here but it has to be don
I have yet to find a resource explaining how to use the bake.php
script, or even precisely what does. Can anyone provide links and/or
pointers? I'd like to bake an app...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
I recommend that, first off, you have these prerequisites:
* Solid PHP skills, including a basic understanding of using OOP
(object-oriented programming) in PHP
* MySQL skills
* A basic understanding of what an MVC framework is
With that foundation, I recommend that you begin with, in the
follow
What are good practices for configuring a test database, as defined in
database.php.default's second array? I know that it is unnecessary,
but is it advised to have a test db?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google G
I'm publishing a blog using Blogger (yes, I could make a CakePHP blog
first, but my focus is on the task at hand, and Blogger is a good
tool) so that others can learn from my experience.
Here's a link: http://cakephprecipe.blogspot.com/
I'm posting here not to advertise for the blog, but to hope
I'm building my first site in CakePHP. It will involve a few different
sections that users will need to log in to post on, and I'm uncertain
about in which order I should be developing the site. This is the
first large-scale web app I've ever built; all prior PHP experience
has been for brief task
Can someone help me out? I'd like to build a forum using CakePHP. I'll
end up documenting my efforts in a tutorial at some point.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group
Where can I go for 1.2 tutorials and documentation? Not to be a
whiner, but 1.18's seems sparse enough to me.
On Dec 12, 3:22 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> On Dec 12, 2007 1:15 PM, Chris Hartjes <[EMAIL PROTECTED]> wrote:
>
>
>
> >
ec 12, 2007 1:15 PM, Chris Hartjes <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Dec 12, 2007 2:21 PM, 703designs <[EMAIL PROTECTED]> wrote:
>
> > > One specific question I have: If I go forward with Cake, should I use
> > > the stable 1.18, or go with the
One specific question I have: If I go forward with Cake, should I use
the stable 1.18, or go with the PreBeta?
On Dec 12, 2:14 pm, 703designs <[EMAIL PROTECTED]> wrote:
> Right now, I'm sitting on a gold mine athttp://www.cssforums.org/
>
> I feel that this site can serio
Right now, I'm sitting on a gold mine at http://www.cssforums.org/
I feel that this site can seriously take off with a little effort (I'm
an XHTML and CSS expert) but I really haven't had the time. It's a
top-10 result on google for a "css forums" search. I'd really like to
remake the entire site
Just want to say that I adore this framework. When I launch a
successful site with Cake, I will donate $100 of my first $500 made,
and that's my word.
On Dec 11, 10:15 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Dec 11, 2007 10:11 PM, 703designs <[EMAIL PROT
>
> > *It says..*
>
> > > returns "Missing View: Fatal: Confirm you have
> > > created the file : /Users/myusername/Sites
>
> > > > /CakeBlog/app/views/posts/
> > > > index.thtml"
>
> > Create a index.thtml on /app/views/p
ed to http://localhost/
Thomas
703 Designs
On Dec 11, 9:55 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> sounds like you do not have allow override set to true in your apache
> config file
>
> Sam D
>
> On Dec 11, 2007 7:45 PM, 703designs <[EMAIL PROTECTED]
I've been plugging along with the little 15 minute blog tutorial, and
I can't even view my Posts view. Here's what happens:
http://localhost/ works fine
http://localhost/posts returns "Missing View: Fatal: Confirm you have
created the file : /Users/myusername/Sites/CakeBlog/app/views/posts/
index
67 matches
Mail list logo