What about putting symlinks in the main application's webroot that point to
the plugin assets? Then the assets are still technically in the plugin
folder structure, but are served from the 'real' webroot (and thus you can
take advantage of that).
On Wednesday, November 6, 2013 2:25:36 PM UTC-8,
I didn't resurrect the thread, but, while I do agree with you that the
documentation is far better than it was in 2009, I find that a lot of
advanced features and usage aren't documented. The book is fantastic as a
general introduction to Cake and its most common features, but I find
myself loo
If you're just going to troll, take it somewhere else.
On Saturday, August 17, 2013 2:16:06 PM UTC-7, advantage+ wrote:
>
> Just a curiosity question.
>
>
>
> So many people are part of the Cake group yet we never see any actual work.
>
>
>
> No hey check out my site I did this, very little sh
.html#HtmlHelper::script
For whatever reason, the css() method doesn't have the same option (may the
checking is done automatically?), but that'll solve the script problem
anyway.
- Jamie
On Sunday, August 4, 2013 10:35:58 AM UTC-7, glk wrote:
>
> Hello all, I've got more
gt;
>
>
> *From:* cake...@googlegroups.com [mailto:
> cake...@googlegroups.com ] *On Behalf Of *Jamie
> *Sent:* Sunday, May 12, 2013 3:33 AM
> *To:* cake...@googlegroups.com
> *Subject:* Re: Cake 3.0
>
>
>
> "If not it's your code that sucks" -
"If not it's your code that sucks" - that's a little harsh, don't you
think? Sure doesn't reflect well on the professionalism of CakeDC.
Upgrading from 1.3 to 2.0 is time consuming and tedious, especially for
large projects. The upgrade shell helps but by no means does all the work.
Going from
Do you know that you just shared your source code with the entire list?
Perhaps you should take this to private emails...
On Wednesday, February 20, 2013 1:52:08 AM UTC-8, Neil Berrow wrote:
>
> Ok, I will send it across, if you can setup a dev server for testing we
> can get things going.
>
>
>
enu that
> contains one or many links - typically s into a . I want to be sure
> that the current user has permissions for 'this' action before adding the
> .
>
> Jeremy Burns
> Class Outfit
>
> http://www.classoutfit.com
>
> On 12 Jan 2013, at 03:19:45,
Do you mean that you want to use check the user's permissions inside your
plugin's helper? In that case, I would write another helper that you can
use to check all of the ACL permissions.
On Thursday, January 10, 2013 9:21:54 PM UTC-8, Jeremy Burns wrote:
>
> I have a Navigation plugin that cont
need to be redirected to
the controller to set their store up.
Jamie
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to
The best way to secure your update and insert queries? Use the proper model
interface, i.e. save(), saveAll(), etc.
On Monday, October 22, 2012 6:22:54 AM UTC-7, Daniel wrote:
>
> I do some custom database queries using some values derived from a call to
> find. I think I should make these more
http://lmgtfy.com/?q=PCRE+has+not+been+compiled+with+Unicode+support
On Sunday, September 30, 2012 2:06:26 PM UTC-7, Chris wrote:
>
> hi guys,... I have on 1.3 setup :
>
> PCRE has not been compiled with Unicode support
>
> where do I have to add -enable-unicode-properties
>
--
Like Us on Fac
You may find this enlightening:
http://php.net/manual/en/function.list.php
On Friday, September 28, 2012 8:55:25 AM UTC-7, Brad Giessing wrote:
>
> I created a function called list() in a controller and it freaked out. I
> guess it doesn't like that, either.
>
> On Wednesday, April 15, 2009 5:22
That's too bad, I was enjoying you replying to yourself as you gradually
worked through the problem. :)
Remember, in Cake 2 the file names need to match the class names. So if
your helper is "HelperfnsHelper", your file needs to be
"HelperfnsHelper.php", not &quo
fan of a lot of change between versions, you
probably won't like 3 for a lot of different reasons. :)
- Jamie
On Saturday, August 18, 2012 4:08:55 AM UTC-7, Raffaele Sgarro wrote:
>
> I don't consider myself a Cake developer. I did a simple app (blog alike
> with a gallery and
Did you look at the clear-as-day MySQL error you were given?
"SQLSTATE[23502]: Not null violation: 7 ERROR: null value in column "body"
violates not-null constraint"
You are entering in a null value into the "body" column which does not
allow null values. So either change the table so that "bod
f you know what you're doing and you're careful, that's
not a sin either.
Remember, at the end of the day, the code works for you - not the other way
around.
- Jamie
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP
ou want to
gather the items, you'd broadcast an event. You'd have listeners in
each plugin that would listen for the broadcast and return the items
you want.
- Jamie
On May 31, 9:53 am, Vinicius Dusso wrote:
> Sure, I know I'm able to use Interfaces where I want to. I just want to
Yes, it certainly helps to understand your reasoning.
On May 14, 9:50 pm, José Lorenzo wrote:
> If you think about it, collecting return values is actually the edge case:
>
> A save operation has a single result wich is data to be saved
>
> A redirect operation has a single result, the URL to red
Thanks. Just curious - why is the result data overwritten in this way?
For me, at least, using the event system to get information from
multiple listeners (as in my situation) was one of the first uses I
thought of, especially since it can replace a bunch of custom stuff I
had written previously. I
if ($result !== null) {
$event->result = $result;
}
continue;
}
I would expect $event->result to be a multidimensional array, but nope,
it just gets overwritten. Has anyone else come across this issue? Am I
just missing a really obvious way t
Yup, it seems basically to be abandoned. Too bad - it had potential to
be a really useful site.
On May 4, 10:29 am, Xoubaman wrote:
> When I found that there is such a way to ask for help, I start to use it
> and answer the questions I know how to, moving my "help activity" from this
> group to Q
My experience - I'm in the middle of doing my first upgrade. The
application that I'm upgrading is quite mature (started as 1.2, then
upgraded to 1.3, now going to 2.0) and has 22 plugins, for a total of
85 controllers, 75 models, and a ton of other stuff (components,
behaviors, helpers, view files
Way to not read the first post, like, at all. It's always a good idea
to read a post before replying. :)
Anyway, that's strange. Model::read() uses $this->primaryKey to
generate the condition. Can you show us your Site model class?
On Jul 25, 12:41 pm, Jens Dittrich wrote:
> CakePHP follows conv
You could, you know, use htmlspecialchars() - that's all h() is. Not
the end of the world, and it certainly makes the code more clear ("h"?
wtf is "h"?).
On Jun 30, 1:44 pm, euromark wrote:
> some convenience functions do make sense to get rid of
> but not h()
> -1 from me
>
> On 30 Jun., 22:32,
Why would you tell him to use allowEmpty instead of required? They
perform two different functions. required = true won't let you save
the model without the key being present, while allowEmpty controls
whether you can save with the value of that field being empty or not.
On Jun 26, 8:57 am, euroma
Wow, seriously? That's very irresponsible of the developers. If you
can install a stock CakePHP and expose database login credentials just
by turning on debug, that needs to be addressed in the core.
On Jun 21, 10:22 am, Miles J wrote:
> I have brought this problem up before. Last time, the Cake
On Jun 9, 12:02 am, AD7six wrote:
> On Jun 8, 11:44 pm, Jamie wrote:
>
>
>
>
>
>
>
>
>
> > On Jun 8, 8:05 am, AD7six wrote:
>
> > > On Jun 8, 3:23 pm, Jamie wrote:
>
> > > > On Jun 8, 1:07 am, AD7six wrote:
>
> > &g
On Jun 8, 8:05 am, AD7six wrote:
> On Jun 8, 3:23 pm, Jamie wrote:
>
>
>
>
>
>
>
>
>
> > On Jun 8, 1:07 am, AD7six wrote:
>
> > > On Jun 8, 12:19 am, Jamie wrote:
>
> > > > I posted this in the CakePHP core discussion group whe
On Jun 8, 1:07 am, AD7six wrote:
> On Jun 8, 12:19 am, Jamie wrote:
>
> > I posted this in the CakePHP core discussion group where it was
> > completely ignored (isn't it supposed to be a place to get input on
> > core code decisions?), but maybe someone here is i
in one of my projects, so
I'll probably be writing my own version of the function in any case
(which I'll be happy to share of course!).
- Jamie
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakep
Plus the concessions required for PHP 4, such as not being able to
'lazy load' objects (e.g. associated models) on demand.
On May 20, 12:02 am, Miles J wrote:
> The automagic is the slow part in my opinion.
>
> On May 19, 1:08 am, "Bogdan I. Bursuc"
> wrote:
>
>
>
>
>
>
>
> > Plus there is the f
Cake doesn't change the way PHP works - it's still just PHP. It just
introduces an architecture on top of PHP for you to write your
applications. But anything that can be done in PHP can be done in
Cake, since they're the same thing.
On May 6, 1:44 am, Chathu wrote:
> Hi!,
> I'm developing some s
Hi Levi,
Ignore the trolls. They won't survive I'd you don't feed them. :)
Unfortunately. in version 1.2 you can only serve plugin img, CSS, and
JS files, and only from folders with those names. There's much more
freedom in 1.3. Each plugin has its own webroot folder.
- Ja
You only need to set a prefix as explicitly false if the page with the
link has that prefix defined as true.
- Jamie
On Apr 18, 8:21 am, "Krissy Masters"
wrote:
> One thing I was going to ask in regard to the admin routing.
> You have 3 different routes prefixed, admin, manage
Just curious, why the "--psybear" at the end of your message subjects?
Google does put in your name and email address for you. ;)
On Feb 24, 8:59 am, Joshua Muheim wrote:
> According to the following article, this seems to be the normal CakePHP-way.
>
> http://nuts-and-bolts-of-cakephp.com/2008/0
y_id',
'plan_type_id',
'plan_detail_note_id'),
Notice how there's only one closing parenthesis at the end? You're
missing one. You need two: one to close the array of fields and one to
close the PlanType array. So, that's throwing off
Those have been around for a while - definitely not new with this
redesign. And I'm sure they'd take them down if you donated enough
money. ;)
On Feb 4, 1:02 pm, huoxito wrote:
> i know it might be necessary but the google ads kind of sucks
--
Our newest site for the community: CakePHP Video Tu
I agree - the new cookbook looks fantastic. Great job to all involved.
On Feb 3, 8:59 am, cricket wrote:
> On Thu, Feb 3, 2011 at 5:27 AM, keymaster wrote:
> > I just went through the new cookbook.
>
> > It looks great.
>
> > A few cross browser problems:
>
> > IE7, FF 3.0 - left navigation tabl
controllers beyond the AppController
relationship isn't really in the docs and not the "official" way to do
things, there probably hasn't been much impetus to change the
behavior.
Again, just me throwing a guess out there, but it does make sense (I
think).
- Jamie
On Feb
Yeah, if you want to have an indeterminate depth of nested controllers
(which is fine), and you want to use Cake's component merging stuff,
then as far as I can tell you'll have to implement your own version of
Controller::__mergeVars() in your AppController class.
- Jamie
On Jan 3
Ahh, the weekly "can Cake handle my X views/hits/visitors" question.
Yes it can. Now go develop. ;)
- Jamie
On Jan 22, 7:25 am, elija wrote:
> The sites are potentially going to be busy with millions of page views
> a month (one has 1/2 million pages a month and is looking
ntroller AND using "data" in your view.
- Jamie
On Jan 20, 8:47 am, tacoparty wrote:
> Thanks, I'll look for some more recent basic tutorials. I commented on
> the site but nobody responded. I at least have CakePHP installed and
> working, so that's a start.
>
&g
You should probably read the plugins section of the Cookbook:
http://book.cakephp.org/view//Plugins
- Jamie
On Jan 14, 6:27 am, earth wrote:
> Hello,
>
> I would like to create a cakePHP application having different modules
> like - Events, Poll, etc.
> Each module will hav
ugh a redundant check isn't the end of the world!).
- Jamie
On Dec 11, 4:07 pm, "Dave Maharaj" wrote:
> What im trying to say is take site/some/action/id for example
>
> Nothing to do with checking if it’s a valid id nothing to do with saving.
>
> Can a user add
Cake's DB layer (i.e. DboSource and its children) sanitizes everything
before passing it to your database.
- Jamie
On Dec 11, 6:29 am, "Dave Maharaj" wrote:
> When passing an id / slug thru a url for delete is there any security
> precautions to add?
>
> Examp
No - the point of MVC is really to separate the manipulation of model
data from the view through the use of a controller. There's nothing
wrong with reading data from a model in a view, unless you like
needless overhead. Lots of respected frameworks do it (like the Zend
Framework).
On Nov 16, 10:5
PHP4 allows class methods to be treated as static methods as long as
$this isn't referenced. Yup, it's silly. Once the PHP5-only version of
Cake is released, all of that stuff will (hopefully!) disappear. It's
not a very good practice to use the static operator (::) in PHP4, but
it
Your HABTM join table needs a primary key, namely "id". That's what
the model code is searching for and not finding.
-Jamie
On Oct 8, 11:31 pm, jwerd wrote:
> I have an issue where my HABTM save isn't quite working. I mean it
> is, but it's throwing a few notic
anipulating it (the controller). You're just displaying it. That's
what the view is for... displaying data. Passing it through the
controller and assigning it another variable is just a waste of
resources.
Yes, it is still just layout logic. You're not doing anything with the
data
orry about is my blog, especially when there's a ton of
paying work that needs to come first.
- Jamie
On Sep 11, 7:46 pm, "j.blotus" wrote:
> I have been programming in nothing but CakePHP for the last year, and
> I wanted to start a little blog just to share some of my obs
You should use xdebug - it will show you where your bottlenecks are.
Extremely useful:
http://www.xdebug.org/
Also see Matt Curry's Cake-specific post about it:
http://www.pseudocoder.com/archives/2007/04/24/how-to-really-use-xdebug-to-speed-up-your-app/
- Jamie
On Sep 8, 9:08 am, ious
ith Lithium. The
articles you quote - especially the second one on debuggable.com - are
out of date.
The main difference between Lithium and CakePHP, aside from being two
completely separate frameworks, is that Lithium requires PHP 5.3 since
it uses namespaces. CakePHP supports 5.3, but doesn't use a
At the risk of sounding cheeky: "fix" it by ignoring it. It's not the
end of the world. It's an invalid tag as far as the (X)HTML standard
is concerned. The only way to get rid of the error is to get rid of
the tag.
It won't affect the way your site looks.
- Jamie
On
You need to specify that the website field is allowed to be empty
(specifying required => false isn't enough):
'website' => array(
'rule' => 'url',
'required' => false,
'allowEmpty' => true,
'message
Zend focuses on extendability and configuration, while CakePHP focuses
on convention and rapid deployment. They each have their strengths and
weaknesses. If you want complete control over directory structure, MVC
operation, included libraries, and all of that stuff, then Zend is a
perfectly good ch
The best thing to do is to get rid of your admin_add functions and
just use admin_edit for everything. Making a route to direct 'add' to
'edit' is just lazy. ;)
On Jul 16, 7:40 am, Dunhamzzz wrote:
> Hi
>
> In order to not have to duplicate my add and edit forms I have
> attempted to route all t
In CakePHP, model class names don't end with "Model". So your model
class should just be "Category", not "CategoryModel".
- Jamie
On May 27, 12:36 pm, mwaterous wrote:
> I'm a recent convert from CodeIgniter to CakePHP, and up until now I
> haven
dd in schedule_id conditions in,
say, your AppModel::beforeFind() function:
function beforeFind($queryData) {
// Check $queryData['conditions'] array for schedule_id, add it if
it's not already there.
// Loop through $queryData['contain'] and add the condition to each
contai
nd-in-php4
Basically, a call to srand() in Security::cipher() causes all
subsequent calls to rand(), array_rand(), etc. to use the same seed
and thus generate the same results. To fix, you'll either need to
upgrade to 1.3 (strongly recommended), or follow the fix outlined at
the top of that ticke
Oops, meant to say AppModel and Model at the end there.
On May 11, 11:08 pm, Jamie wrote:
> I wrote a CMS with CakePHP that uses much the same architecture.
> There's a common core that's used by about 30 sites. The classes all
> have a "Cms" prefix - CmsAppCont
loading a
parent class. And Cake already makes good use of inheritance - our
AppController extends Controller, after all, it doesn't $actsAs
Controller.
- Jamie
On May 11, 9:02 am, AD7six wrote:
> On May 11, 5:30 pm, keymaster wrote:
>
>
>
>
>
> > > PS additional app
that the web designers - who aren't really Cake
experts - can link to something easily.
But like you said, Jeremy, it's also a good idea to do data formatting
in the model. Either approach works. It's just personal preference.
- Jamie
On May 7, 12:36 am, Jeremy Burns wrote:
aybe
you should first submit a ticket to Lighthouse (
http://cakephp.lighthouseapp.com
) for some feedback from the core development team. To be honest, I
found the structure of returned data a bit odd when I was starting out
with Cake as well, so you're not the only one.
- Jamie
On May 7,
How does one become a reviewer? I'd like to help out.
- Jamie
On May 6, 1:30 am, ADmad wrote:
> [1] "from what i see your helper outputs a nested list which can be
> achieved with HtmlHelper::nestedList or AD7six's TreeHelper behavior
> which has lot more features..
On May 1, 1:21 pm, AD7six wrote:
> On May 1, 10:19 pm, Jamie wrote:
>
>
>
>
>
> > On May 1, 1:17 pm, AD7six wrote:
>
> > > On May 1, 10:13 pm, Jamie wrote:
>
> > > > On May 1, 12:46 pm, AD7six wrote:
>
> > > > > On May 1,
On May 1, 1:17 pm, AD7six wrote:
> On May 1, 10:13 pm, Jamie wrote:
>
>
>
>
>
> > On May 1, 12:46 pm, AD7six wrote:
>
> > > On May 1, 9:36 pm, Jamie wrote:
>
> > > > I read the whole thread. I'm not sure how that changes my post.
&g
On May 1, 12:46 pm, AD7six wrote:
> On May 1, 9:36 pm, Jamie wrote:
>
> > I read the whole thread. I'm not sure how that changes my post.
>
> > I was just explaining to the original poster why subfolders didn't
> > automatically work
>
> I would su
:
> On May 1, 9:12 pm, Jamie wrote:
>
> > Because Cake doesn't follow the Zend/PEAR class naming convention, the
> > only way to make subfolders work, really, is by manually adding each
> > subfolder's path with App::build. Because class and file names don'
php" file for the UsersController class, we'd have
"controller/users.php" with the "Controller_Users" class. Then
subfolders would be a kick in the pants - "controller/user/group.php"
for Controller_User_Group, etc. But that's just my wishful
think
tion helps me visualize the structure of the page, hunt down
and layout bugs, etc.
- Jamie
On Apr 23, 6:24 am, Ed Propsner wrote:
> >@AD7six
>
> If the page was truly static then no, I suppose there would be no need to
> write an entire page with Cake, what would be the point?
&g
ut what to do with it, and then output the
results. Not terribly efficient, especially if all you want is
"".
Like you just said, your file size nearly tripled. You can generate an
entire website with CakePHP's helpers, sure, but you'll sure take a
hit in the efficiency department
If you want the dev team's "answer" for why multiple validation
doesn't with with HABTM, then read the Lighthouse ticket I submitted:
http://cakephp.lighthouseapp.com/projects/42648/tickets/400-validation-of-habtm-data-needed
Mark Story basically just says this:
"You can always validate join tab
Textmate. It's worth it.
On Apr 18, 9:14 pm, Bryan Lim wrote:
> Hi all,
>
> mac users, which ide are you using to develop cakephp? to compile and
> to debug?
>
> I search the group here and realised this discussion is dated back to
> 2009. So, I want to know if there's any changes?
>
> thanks,
>
Or even better, the superior Authsome component:
http://debuggable.com/posts/cakephp-authsome-debuggable-s-xmas-gift:4b34b4e6-9ca4-4673-bea6-4776cbdd56cb
On Apr 7, 10:42 am, Miles J wrote:
> All of these examples are wrong. You should be using the Auth
> component, and in turn doing:
>
> $this-
Not to sound unhelpful, but if you can do it in PHP then you can do it
in CakePHP.
On Mar 31, 9:46 pm, Bankai wrote:
> - Export results of a database table to excel
> - Have an autosave feature like google docs into my web app
> - Whats the best javascript framework (jquery, mootools, prototype,
7;Person']['birthday']) where "$formatter"
is FormatterHelper and getAge() is a function that takes a date and
converts it to an age. For helpers:
http://book.cakephp.org/view/1095/Helpers
Hope that helps.
- Jamie
On Mar 30, 8:31 pm, paws_galuten wrote:
> I'm
hat's why your belongsTo relation is happening in
the same way - a left join. This, I think, is one of those "it's a
feature, not a bug" situations. ;)
On Mar 25, 11:52 am, Jamie wrote:
> The blank hasOne array (with all of the empty keys) has always struck
> me as the mo
The blank hasOne array (with all of the empty keys) has always struck
me as the most counter-intuitive thing ever. An empty relation should
be completely empty. If this is now the case with belongsTo (I haven't
tested), then that seems to be a step backwards.
On Mar 24, 4:19 pm, RobertMeisner wr
Mike - this looks really slick. Awesome work. I'm definitely going to
be incorporating this into a couple of upcoming projects.
On Mar 15, 6:12 pm, Mike wrote:
> If your looking for a shoppingcart plugin for CakePHP that is
> distributed under the MIT License, here you
> go...http://code.google.
rage user -
you know, the kind who calls their browser "the internet", enters URLs
into Google instead of the browser bar, etc. - might be a little
scared of your method.
- Jamie
On Mar 10, 8:15 pm, Yura Linnyk wrote:
> Hello fellow bakers,
>
> I've just baked a
the fact to
convert the fields manually.
- Jamie
On Mar 10, 11:52 pm, "#2Will" wrote:
> Hi,
> I have a model with the expandable behaviour from debuggable, and its
> working great to add meta data to my content rows.
>
> When I add related content via a habtm relationship, the
is pretty thin, which might reflect its current state.
I'm excited for a PHP5-only version of the core.
- Jamie
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to th
If you want to compare another use of Zend_Search_Lucene and CakePHP,
I wrote a datasource a little while ago. It may give you some ideas:
http://jamienay.com/2010/01/zend_search_lucene-datasource-for-cakephp/
On Feb 13, 9:19 pm, Zoltan wrote:
> Ended up finding this code from the source to the
wraps the session data inside a model.
On Jan 27, 11:07 pm, the_guru wrote:
> @Jamie,
>
> Its not wrong , its just not best practice and fall out of palce for
> MVC design pattern i guess.
>
> On Jan 26, 3:45 am, Jamie wrote:
>
> > You don't need to import a c
the next week or so; I'll gladly share my results once I'm done.
- Jamie
On Jan 24, 10:31 am, Lorenzo Bettini wrote:
> Hi
>
> I found
>
> http://book.cakephp.org/view/735/Generating-and-using-Schema-files
>
> which is cool to migrate database schemas with cake conso
Fair enough. In that case, why the 'alpha' designation? What does that
mean for CakePHP, and how does it differ from 'beta'? If the alpha
release is so stable and has been publicly released, then I can't
figure out why it's called alpha and not beta.
On Jan 12, 11:02 am, "Larry E. Masters aka PhpN
Good to know. The 'alpha' designation has been scaring me off, since
many (most?) developers use alpha to denote closed testing of not-yet-
totally-stable code. So, I was going to wait until at least beta to
adopt the new version. But maybe I'll try it out on an isolated
branch.
it's still in alpha I'm not convinced of its stability just
yet.
- Jamie
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" grou
ution also looks pretty cool, especially since his is geared
towards custom hooks rather than just hooking on to existing
controller callbacks.
- Jamie
On Dec 18, 4:53 am, Aargh wrote:
> I would like to know if there is any official (or at least supported /
> under development) mechanism that
Oops - I guess I need to retract this. It looks like the layout file
is working within the plugin's folder (I got some bad info from
another developer working on the same project). But the error message
for a missing layout is still misleading. :)
On Nov 17, 10:53 am, Jamie wrote:
> Vi
View files for plugin controller actions are within each plugin's
directory. Right? For example, the view file for the 'details' action
of a products plugin might be here:
/app/plugins/products/views/products/details.ctp
One would expect that layout files for a plugin would also be within /
app/p
;all', array('contain' => array('Image')));
Or, if you're paginating, just set 'contain' as one of the paginate
options
$this->paginate = array('contain' => array('Image'));
$properties = $this->paginate();
- Jamie
On Oct
$this->redirect($this->referer());
}
}
If I need extra functionality for a certian controller I can just
define admin_edit() in that individual controller. But most of the
time, it works just fine.
Anyway, hope this helps you decide.
- Jamie
On Oct 20, 8:28
:
"SELECT (`Statistic`.`a` - `StartImport` FROM reports..."
It's getting to Startimport and then just chopping off everything
afterwards. This is happening in DboSource::fields(), but obviously I
don't want to start hacking away at such a core function.
So my que
just won't be able to make any custom code for
your contact_emails table.
As Miles mentioned, however, less files isn't always best, and while
you can run an app this way (i.e. letting Cake instantiate AppModel on
the fly), you really should make all of your model files.
- Jamie
On Oct 1
Well, it might be a bit of a band-aid, but I threw this just after
line 61 of the AutoLoginComponent (in startup()):
srand();
And that seems to be fixing my seeding problems.
- Jamie
On Oct 1, 2:05 pm, Jamie wrote:
> Sorry for dragging up an old thread, but I'm having thissam
urity::cipher()
- Security::cipher() line 183 calls srand()
And that's it... I think.
That said, I'm not sure how to go about fixing the issue. So maybe
I'll just use mt_rand() for now. ;)
- Jamie
On Aug 4, 6:03 pm, Miles J wrote:
> Not necessarily, but ive been having this
Javascript capabilities.
- Jamie
On Sep 18, 6:04 am, Ernesto wrote:
> Hello.
>
> Supplier hasMany Product
>
> 1st step:
> - user chooses the Supplier
>
> 2nd step:
> - only products supplied by Supplier selected in step 1 are loaded in
> a select
> - use chooses
Seriously? Nobody has experience with TreeBehavior's scope option?
On Sep 15, 1:45 pm, Jamie wrote:
> I'm having an issue with Cake'sTreebehavior, specifically setting ascope.
> I've created a dynamic navigation system so that clients can
> manage navigation l
1 - 100 of 140 matches
Mail list logo