I think your problem can be solved by editting inflections.php, which
is located in app/config directory. To be more precisely, add niche -
niches to your $irregularPlural array like this:
$irregularPlural = array('niche' => 'niches');
It would work seamlessly then.
--~--~-~--~~---
Hello Andras,
Try to declare $uses variable inside your controller somewhat like
below.
.
.
class NichesController extends AppController {
var $name = 'Niches';
var $uses = array('Niche');
var $scaffold;
}
--~--~-~--~~~---~--~~
You receive
Ok, Ok, Ok,
I got you. But I'm just sayingI'm pretty good at reading a manual and
pasting stuff together, but when you don't know something, it's kinda hard.
And as I saidThought this was for 1.1
On that note, how do I know what version certain code is for?
--
Baz L
Day In The Life of B
Is there any way to get values from multiple fields into a select box?
After much searching, I've come to the conclusion I'm not going to
find the answer without appealing to those far wiser than myself...
Here's an old thread for reference, which discusses, w/o resolution,
exactly what I'm lo
On 7/27/07, Dave <[EMAIL PROTECTED]> wrote:
>
>
> I'm working on a Newbie's Introduction to CakePHP book and would like
> to invite anyone who would like to review it for errors or
> considerations I may have overlooked. Let me know, and I'll send you a
> PDF copy of the current edition.
Has it b
Hello,
Quick question I have the following:
niches_controller.php
Calling it by www.domain/cake/niches errors out with complaining
about missing model:
Missing Model
No class found for the Nich model.
Fatal: Create the class below in file: app/models/nich.php Etc...
But I have
niche.php
I'd like to take a look. Thanks. benhirsch AT gmail DOT com
On Jul 27, 2:14 pm, Dave <[EMAIL PROTECTED]> wrote:
> I'm working on a Newbie's Introduction to CakePHP book and would like
> to invite anyone who would like to review it for errors or
> considerations I may have overlooked. Let me know,
If someone else can learn a language not native to them, (of course I
am assuming here), I think the decent thing would be to say "Thank
you" and head on over to http://www.google.com/language_tools?hl=en
lol.
I don't know what nome, cognome and oggetto mean but, since I am
curious, I will look t
Baz, come on, you getting a bit EXTRA-lazy here.
On 27 Lug, 21:23, Baz <[EMAIL PROTECTED]> wrote:
> I saw this before, but since I'm on 1.1. It didn't work for me. Also there's
> the language barrier.
Language barrier??!
Now I give you a couple of lessons of Italian.
A) try to concentrate all
>
> Now I give you a couple of lessons of Italian.
Haha, I didn't know I was fluent in Italian - good to know : P.
-- Felix
--
My Blog: http://www.thinkingphp.org
My Business: http://www.fg-webdesign.de
cakeFreak wrote:
> Baz, come on, you getting a bit EXTRA-lazy here.
>
I usually just use the nifty isset() php function, as in:
if(isset($this->data['Contact']['email']) {
//do some stuff relevant to your ultimate goal
}
On Jul 27, 2:23 pm, Baz <[EMAIL PROTECTED]> wrote:
> I'm a bit unclear here. Since there's not ->read() or ->findAll(), how do we
> kno
I have a solution.
When a request is made apache checks if the directory exists. If it
does, it checks if index.php, index.htm or index.html exists. If they
don't, the request is forwarded to cake. And all this magic with
mod_rewrite voodoo:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME
well i tried doing that earlier on and then had to take off everything
coz it wasnt well structured. i would like to at least get the
associations sorted before baking. so the problem remaining is that of
creating the task list
>I would like the task listing to be displayed
>when a user is viewed
I wasn't saying that it is a feature that each and every application
should and must have -- just a useful modification to know about. When
I've fear-proofed my solution I'll pop it into a bakery article.
On Jul 27, 1:23 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 7/27/07, bingomanatee <[
What version would this be for?
Since I'm a newbie, I'd be a great test.
On 7/27/07, Dave <[EMAIL PROTECTED]> wrote:
>
>
> I'm working on a Newbie's Introduction to CakePHP book and would like
> to invite anyone who would like to review it for errors or
> considerations I may have overlooked. Let
On 7/27/07, bingomanatee <[EMAIL PROTECTED]> wrote:
>
> True but the convenience to the end users are also a useful metric of
> an application's efficiency. especially when (as in my case) they are
> also a developer :D
Learning to say "no" to a request is the toughest thing a developer
has to le
True but the convenience to the end users are also a useful metric of
an application's efficiency. especially when (as in my case) they are
also a developer :D
On Jul 27, 12:39 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On 7/27/07, bingomanatee <[EMAIL PROTECTED]> wrote:
>
> > as to the "bo
I might work that through -- actually I worked through the index
template and added a "Copy" link.
http://www.wonderlandlabs.com/modules/wiwimod/index.php?page=CakeDupe
as to the "borderlineosity" -- its a pretty common way to moprh new
records: pick a row that is like the new one you want, dupl
PAKHostOnline.com offered Pakistan No.1 Web Hosting, DOMAIN
Registration / Transfer, 99% UP-Time, 24/7 Technical Support at
http://www.pakhostonline.com/
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" gr
Anyone know how to turn off writing to the debug.log? I've set
define('DEBUG', 0); and just about everything else I can think of off.
Thanks!
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To po
On 7/27/07, bingomanatee <[EMAIL PROTECTED]> wrote:
> as to the "borderlineosity" -- its a pretty common way to moprh new
> records: pick a row that is like the new one you want, duplicate it
> and tweak it.
What you're talking about is the lazy way of creating new records
1) duplicate an existi
On 7/27/07, Baz <[EMAIL PROTECTED]> wrote:
>
> For a Model that has no table: does populating the $validate array
> automatically populate $this->data in the controller? Or is that only done
> when the form returns?
$this->data is populated when the form is returned.
-
Chris Hartjes
Senior Devel
I saw this before, but since I'm on 1.1. It didn't work for me. Also there's
the language barrier.
I have a general question though:
For a Model that has no table: does populating the $validate array
automatically populate $this->data in the controller? Or is that only done
when the form returns?
On 7/27/07, bingomanatee <[EMAIL PROTECTED]> wrote:
>
> I want to add "duplicate" to the scaffolding of my site; while I can
> of course envision a wholly seperate action for duplicate, I have to
> think that someone with more familiarity with Cake could help me
> "Tweak" the existing views to rep
This is the view;
VIEW: views/contacts/index.ctp
Contacts:
create('Contact', array('url'=>'/contacts'));?>
input('nom
Thats not a very open source-y answer. I was thinking it would be a
generally usefu feature for the scaffolding paradigm.
On Jul 27, 10:27 am, "Pablo Viojo" <[EMAIL PROTECTED]> wrote:
> If not an scaffolding functionality, it's time to start to write code...I
> think no one would like to help wit
Here we go with a contact form for last 1.2.0.5427alpha:
CONTROLLER: contacts_controller.php
set('title_for_layout', 'Contatti');
On 7/27/07, Baz <[EMAIL PROTECTED]> wrote:
> Now was that really necessary?
When you don't explain WHY you need something, that's a very typical
result around here.
>
> Should I just scrap 1.1? Is 1.2 suitable for a production site?
In my opinion, 1.2 is suitable for a production site but like
Now was that really necessary?
Don't get me wrong here, I'm not trying to be lazy as you seem to be
implying. But isn't the Bakery supposed to be a code repository? All I meant
was that a contact form seems like something that someone would have already
done. Isn't that the point of Cake? To stop
I'm working on a Newbie's Introduction to CakePHP book and would like
to invite anyone who would like to review it for errors or
considerations I may have overlooked. Let me know, and I'll send you a
PDF copy of the current edition.
--~--~-~--~~~---~--~~
You recei
I've been a Drupal user for about 6 Months now. I picked Drupal because it
was mentioned a few times that it was one of the most flexible. I had no
intention of switching. However, the Mambo foundation's decision to move to
CakePHP will more than likely make myself (and possible many other bakers
l
That is useful to know -- it is not a complete answer to the larger
question: if you create a new model() and save it in the
ClassRepository, use it in one context, then use it in another (or
with nested methods use it back and forth between two different
contexts) are there any predictable/unwant
If not an scaffolding functionality, it's time to start to write code...I
think no one would like to help wit h this.
--
Pablo Viojo
[EMAIL PROTECTED]
http://pviojo.net
On 7/27/07, bingomanatee <[EMAIL PROTECTED]> wrote:
>
>
> I want to add "duplicate" to the scaffolding of my site; while I can
I'm really having a solution for your problems here. You can contact me for
conditions ($$$)
Smiles...
--
Pablo Viojo
[EMAIL PROTECTED]
http://pviojo.net
On 7/27/07, Chris Hartjes <[EMAIL PROTECTED]> wrote:
>
>
> On 7/27/07, codecowboy <[EMAIL PROTECTED]> wrote:
> >
> > Can you please elabor
I found the error myself -- a bad "name" value in the ItemType model
class. sorry...
--~--~-~--~~~---~--~~
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
T
I want to add "duplicate" to the scaffolding of my site; while I can
of course envision a wholly seperate action for duplicate, I have to
think that someone with more familiarity with Cake could help me
"Tweak" the existing views to repurpose them for inserting a duplicate
record with the same val
I was just wondering whether it is possible to use the paginator
helper without a model.
In particular you can find yourself with a controller getting data in
form of arrays from a webservice (youtube, flickr etc.).
Should I build a behavihour and a model for the controller that
retrieves the we
On Jul 24, 7:25 pm, "Christian \"Jippi\" Winther" <[EMAIL PROTECTED]>
wrote:
> Why should the IRC logs be spammed onto GG ? I don't see the point in that
> :)
I'm sorry for the late follow-up. I'm not suggesting to replace your
version. But, since GG is already free, it is better to use it as a
Many thanks to Andy and Tarique for the helpful follow-up. I'll check
your suggestions sometimes later. Thanks again.
--
Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspot.com/
--~--~-~--~~~---~--~~
You received this message because you are su
On 7/27/07, Freight <[EMAIL PROTECTED]> wrote:
>
> Can I use Cake without any Session, even without Zend-Session?
>
Did you read the section in the manual about the Session Component?
http://manual.cakephp.org/chapter/session
I suggest you try this experiment:
1) go into config/core.php and co
On 7/27/07, Freight <[EMAIL PROTECTED]> wrote:
>
>
> Where is the problem exactly?
Between the ears.
T
--
=
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
=
Depending on your model recursion level, you should get Project
information associated with each Project item returned from a Category
Find request. You can use pr($this->Category->find("Category.id=2"));
to see the array of data returned by that function. If you're not
seeing any Project inform
Can I use Cake without any Session, even without Zend-Session?
On 26 Jul., 22:10, gwoo <[EMAIL PROTECTED]> wrote:
> 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 l
Where is the problem exactly?
On 27 Jul., 15:07, saritha <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> Iam unable to configure cakephp.I get confused.I have gone thru the
> manual also.pl help me in this manner.pl give your suggestions to
> configure cakephp to develope the application.And the steps n
On 7/27/07, rtanz <[EMAIL PROTECTED]> wrote:
> im not sure if this is the correct way to do things however and given
> that this is the first time i am using cake i would like to make sure
> that everything is set up well
> before i bake and continue modifying the system.
>
No, no, NO, NO!
J
On 7/27/07, codecowboy <[EMAIL PROTECTED]> wrote:
>
> Can you please elaborate. You did not ask a question.
Oh no, I think he was quite clear. He wants someone else to do his
work for him and give him all the code needed for a contact form
within a CakePHP application.
--
Chris Hartjes
Senior
Can you please elaborate. You did not ask a question.
On Jul 27, 8:39 am, Baz L <[EMAIL PROTECTED]> wrote:
> I'm really having problems here.
>
> I'm guessing someone has already developed something like this.
>
> I looked at this in the
> bakery:http://bakery.cakephp.org/articles/view/sending-
ok some more progress in getting this right, i uploaded my current db
table design at www.jpgalea.com/design.jpg and also my erm diagram at
www.jpgalea.com/erm.jpg
here are my model associations at the moment:
Listing
var $belongsTo = array('Module','Task');
Membership
var $belon
Basically what happens is you have a hierarchial content system.
Unlimited subcategories, and products under these subcategories. When
you create/edit a product you will specify a price, name, and
description. (A name and description for each language if you have
more than one turned on).
In yo
I've developed a website that uses a highly modified version of
CubeCart shopping cart software, while using Cake to develop a major
loan underwriting system for another job.
Let me tell you that I'm very excited to hear of this project as I'd
love to be able to combine the goodness of Cake into
I have two tables, "Items" and "Item Types". The Scaffolding for the
"edit" view is not displaying item type options.
I have traced the error into the fieldTypes() method: the key for the
option cluster is not matching the key output by the findAll method.
>>>
It seems to expect the data to
You could start from this the cakephp.org site. Have a look at this
http://manual.cakephp.org/appendix/blog_tutorial
http://manual.cakephp.org/appendix/blog_tutorial
saritha wrote:
> Hi all,
>
> Iam unable to configure cakephp.I get confused.I have gone thru the
> manual also.pl help me in thi
Hi all,
Iam unable to configure cakephp.I get confused.I have gone thru the
manual also.pl help me in this manner.pl give your suggestions to
configure cakephp to develope the application.And the steps needed to
do it.
Thanks,
Saritha.
--~--~-~--~~~---~--~~
You
On 7/27/07, savagekabbage <[EMAIL PROTECTED]> wrote:
>
>
>
> The reason I wanted to go with database storage instead of flat file
> is because of the user who may want to have 20 different product
> templates for a large site. This just seemed easier to handle if the
> templates were stored in the
Hey guys, thanks for the feedback!
I'm still not 100% sure i"m going to go database stored templates.
Consider this:
Right now there are three main 'content types':
- Static Pages
- Category Views
- Product Views
This means there will be a minimum of 4 templates if you include one
for the ou
I'm really having problems here.
I'm guessing someone has already developed something like this.
I looked at this in the bakery:
http://bakery.cakephp.org/articles/view/sending-email-with-phpmailer
But it seems a bit incomplete.
I started with Cake about a month ago. Anyway, anyone who can off
>From within Drake, you can call any drupal api function. I believe you
may even be able to use "global $USER;" to get user information (I have
not tried this -- we use a small modification to Drake that stores
pertinent user information in the session before activating the Cake
dispatcher).
Maybe your behavior test doesn't return at all? I made that mistake
once. Void is not true.
On 27 Juli, 06:10, Grant Cox <[EMAIL PROTECTED]> wrote:
> It runs the beforeSave() function, which your model can implement if
> you want to check what is about to be saved, and either modify the
> data be
I'm not a CakePHP superuser but I try to stay clear of using
PagesController.
What happens if you create the views manually?
On a sidenote, when I have more than one Model that use Categories I
altered my Categories model like this:
CREATE TABLE `categories` (
`id` int(10) unsigned NOT NULL au
that makes sense however it does not really solve my problem, cause i
still need to display other task information such days_allowed,
task_order, task_complete, created, modified. These are still left out
with the model you provided. They are related to a particular user
within a particular module
> > > If you really want web based editing - take the approach which some
> > > popular
> > > CMSs take - read and write to files...
> >
> > is it really so bad? why not save to the database, then use cake built
> > in cache to speed things up?
> >
> > I ask as I have a project that requires simi
After digging quite a bit in the AuthComponent source, I think I've
found the problem. There are still some things I don't understand, so
please feel free to correct me where I might be wrong. For example,
identify() gets called twice in a login, but I can't figure where does
the second call come
I would tend to agree with AD and Tarique. Storing template in a
database which would then be cached as files, does seem crazy.
However, I would also point out that allowing public editing of views
(stored in a database, or a file system) seems to be asking for
trouble. I would put some pretty he
On Jul 27, 12:10 pm, "Jon Bennett" <[EMAIL PROTECTED]> wrote:
> > > SMS's main audience will not necessarily be CakePHP developers as all
> > > of the templates will be database stored.
>
> > I don't get the connection between the two - if you are storing the
> > templates in database just so t
On 7/27/07, Jon Bennett <[EMAIL PROTECTED]> wrote:
>
>
> is it really so bad? why not save to the database, then use cake built
> in cache to speed things up?
Why do you need to use a database to you cache? Besides I am not saying
storing templates in database will slow down things - just make
I thought AuthComponent handled user login and logout on its own,
validating username/password pairs and thus I saw no reason to use a
validLogin function on the model as you did.
But: AuthComponent won't log me in with an invalid password for a
given username, but what is freaking me out is that
> > SMS's main audience will not necessarily be CakePHP developers as all
> > of the templates will be database stored.
>
> I don't get the connection between the two - if you are storing the
> templates in database just so that they can be easily editable by users I
> would say please think agai
I've been reading up about drake, looks good. But im wondering if
there is a way to get login information from drupal in a secure way,
you mentioned on March 8, 2007 2:30 pm that you might be adding "new
Drake callables so you can get information such as: current user log
in, etc.".
Has this happ
I'm not sure if it was me doing something wrong, but I found an
annoying side-effect of this.
If you want to dynamically bind associations, binding occurs on the
entire model - which is shared.
So if you have:
class Company extends AppModel {
var $hasOne = array(
'Logo' => array('className'
On 7/27/07, AD7six <[EMAIL PROTECTED]> wrote:
>
>
> Damn. I misunderstood what you meant slightly. But I still don't like
> copying cake's logic into the app to achieve it ;).
Ah! I misunderstood you as well may be future code will have a better
way
T
--
=
On 7/27/07, AD7six <[EMAIL PROTECTED]> wrote:
> On Jul 27, 9:11 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> > On 7/27/07, AD7six <[EMAIL PROTECTED]> wrote:
> >
> > > That's a lot of code ;), do you have an example of when you would want
> > > to attach a 'new' behavior to a model as oppose
On Jul 27, 9:11 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 7/27/07, AD7six <[EMAIL PROTECTED]> wrote:
>
> > That's a lot of code ;), do you have an example of when you would want
> > to attach a 'new' behavior to a model as opposed to turn a behavior
> > that the model has on and off
On Jul 27, 9:11 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 7/27/07, AD7six <[EMAIL PROTECTED]> wrote:
>
> > That's a lot of code ;), do you have an example of when you would want
> > to attach a 'new' behavior to a model as opposed to turn a behavior
> > that the model has on and off
On 7/27/07, AD7six <[EMAIL PROTECTED]> wrote:
> That's a lot of code ;), do you have an example of when you would want
> to attach a 'new' behavior to a model as opposed to turn a behavior
> that the model has on and off?
Yes - conditional post processing of uploaded image files depending on
met
On Jul 27, 8:54 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote:
> On 7/27/07, R. Rajesh Jeba Anbiah <[EMAIL PROTECTED]> wrote:
>
>
>
> > Say, if Model has two methods, Model::add() and Model::save() and a
> > "foo" behavior is added to the "Model". Currently the foo behavior is
> > getting tri
75 matches
Mail list logo