Re: CakePHP 1.3 - Plugin asset loading - override Core.php compression rewrite

2013-11-06 Thread Jamie
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,

Re: Poll: what do you hate about CakePHP?

2013-10-13 Thread Jamie
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

Re: Where are the sites?

2013-08-18 Thread Jamie
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

Re: Double inclusion of jquery (using Html->script) leads to many problems. I suggest a solution.

2013-08-04 Thread Jamie
.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

Re: Cake 3.0

2013-05-13 Thread Jamie
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" -

Re: Cake 3.0

2013-05-11 Thread Jamie
"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

Re: Looking for a Cakephp dev to partner up with, web app 85% completed

2013-02-20 Thread Jamie
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. > > >

Re: ACL in helper

2013-01-12 Thread Jamie
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,

Re: ACL in helper

2013-01-11 Thread Jamie
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

Best practices for general checks and redirects?

2013-01-02 Thread Jamie Krasnoo
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

Re: Making database queries secure

2012-10-22 Thread Jamie
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

Re: PCRE has not been compiled with Unicode support on setup

2012-09-30 Thread Jamie
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

Re: Reserved words in CakePHP?

2012-09-29 Thread Jamie
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

Re: Fatal error with fresh installation of CakePHP 2.2 and migrated 2.0 app

2012-08-26 Thread Jamie
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

Re: Cake development feels slow and wrong

2012-08-19 Thread Jamie
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

Re: [Models] saveAll doesn't work

2012-08-01 Thread Jamie
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

Re: Modules

2012-06-21 Thread Jamie
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

Re: Using PHP's Interface as Extension Point

2012-05-31 Thread Jamie
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

Re: Events, multiple listeners, and return data

2012-05-15 Thread Jamie
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

Re: Events, multiple listeners, and return data

2012-05-14 Thread Jamie
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

Events, multiple listeners, and return data

2012-05-14 Thread Jamie Nay
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

cake-php@googlegroups.com

2012-05-07 Thread Jamie
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

Re: CakePHP 2.0 upgrade - benefit vs pain scale

2011-10-27 Thread Jamie
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

Re: legacy database, not able to set my own primary key for a view

2011-07-25 Thread Jamie
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

Re: Single Quotes

2011-06-30 Thread Jamie
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,

Re: My Model doesn't validate anything

2011-06-27 Thread Jamie
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

Re: Where should i contact right people in CakePHP.org because this security critical problem

2011-06-22 Thread Jamie
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

Re: Saving many records to the same table in a single query

2011-06-09 Thread Jamie
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

Re: Saving many records to the same table in a single query

2011-06-08 Thread Jamie
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

Re: Saving many records to the same table in a single query

2011-06-08 Thread Jamie
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

Saving many records to the same table in a single query

2011-06-07 Thread Jamie
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

Re: Cake vs other frameworks benchmarks

2011-05-20 Thread Jamie
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

Re: Cake PHP with Native PHP

2011-05-06 Thread Jamie
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

Re: Cake 1.2 problem with XML files in plugin vendors folder

2011-04-29 Thread Jamie
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

Re: Can someone explain this to me in English please

2011-04-18 Thread Jamie
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

Re: DEBUG=2: My error500 shows; DEBUG=0: I get "not found". --psybear

2011-02-24 Thread Jamie
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

Re: Containable usage will not allow population of associated model view file data. Only find('all') is working. I am doing something wrong?

2011-02-14 Thread Jamie
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

Re: Great Job on The Cookbook

2011-02-04 Thread Jamie
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

Re: Great Job on The Cookbook

2011-02-03 Thread Jamie
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

Re: SecondController extends FirstController extends AppController: not supported? --psybear

2011-02-01 Thread Jamie
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

Re: SecondController extends FirstController extends AppController: not supported? --psybear

2011-01-31 Thread Jamie
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

Re: Thinking about using Cake PHP to develop some sites

2011-01-22 Thread Jamie
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

Re: Help with CakePHP tutorial

2011-01-20 Thread Jamie
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

Re: Separating modules

2011-01-14 Thread Jamie
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

Re: Passing Variable to delete

2010-12-11 Thread Jamie
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

Re: Passing Variable to delete

2010-12-11 Thread Jamie
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

Re: Why only pass $data to view instead of model instance?

2010-11-16 Thread Jamie
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

Re: Can anyone help me understand the App class?

2010-10-13 Thread Jamie
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

Re: HABTM with an extra field (saving)

2010-10-09 Thread Jamie
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

Re: How do I use Configure (or other classes for that matter) in the layout?

2010-09-16 Thread Jamie
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

Re: Starting a programming blog, should I use CakePHP or wordpress?

2010-09-12 Thread Jamie
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

Re: RAM overload

2010-09-08 Thread Jamie
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

Re: CakePHP future

2010-09-04 Thread Jamie
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

Re: W3C Validation

2010-08-04 Thread Jamie
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

Re: An empty URL gets validated wrongly by the URL validator

2010-08-04 Thread Jamie
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&#x

Re: How to appreciate cakePHP - try the Zend Framework quickstart

2010-07-31 Thread Jamie
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

Re: Re-writing all admin_add actions to admin_edit in 1.3

2010-07-17 Thread Jamie
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

Re: Scaffolding with model causes class not found error

2010-05-27 Thread Jamie
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&#

Re: How can I consolidate conditions that I will use for every find?

2010-05-22 Thread Jamie
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

Re: array_rand not working!

2010-05-18 Thread Jamie
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

Re: Limitations to plugins for app modularity - are there any left in cake 1.3?

2010-05-11 Thread Jamie
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

Re: Limitations to plugins for app modularity - are there any left in cake 1.3?

2010-05-11 Thread Jamie
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

Re: Custom functions in model?

2010-05-07 Thread Jamie
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:

Re: Model data structure inconsistent?

2010-05-07 Thread Jamie
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,

Re: Bakery...arrogance or plain lack of attention

2010-05-06 Thread Jamie
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..

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-01 Thread Jamie
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,

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-01 Thread Jamie
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

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-01 Thread Jamie
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

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-01 Thread Jamie
: > 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'

Re: v1.3 App::Objects not finding controllers in app/controllers/subfolders

2010-05-01 Thread Jamie
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

Re: Where to draw the line?

2010-04-23 Thread Jamie
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

Re: Where to draw the line?

2010-04-22 Thread Jamie
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

Re: 'multiple' validation rule

2010-04-22 Thread Jamie
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

Re: mac users, which ide are you using to develop cakephp?

2010-04-20 Thread Jamie
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, >

Re: displaying login details

2010-04-07 Thread Jamie
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-

Re: Can I do the following with cakephp?

2010-04-01 Thread Jamie
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,

Re: Retrieving objects from the DB instead of arrays

2010-03-30 Thread Jamie
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

Re: Empty relation belongsto 1.3

2010-03-25 Thread Jamie
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

Re: Empty relation belongsto 1.3

2010-03-25 Thread Jamie
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

Re: Kaching: CakePHP Shopping Cart Framework Plugin

2010-03-16 Thread Jamie
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.

Re: Concept of seamless registration

2010-03-13 Thread Jamie
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

Re: Expandable Behaviour Data not available when record obtained via habtm

2010-03-11 Thread Jamie
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

Version 2 - on the map?

2010-02-24 Thread Jamie
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

Re: getting Zend Lucene running in CakePHP 1.3

2010-02-13 Thread Jamie
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

Re: now Using Session on my model

2010-01-28 Thread Jamie
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

Re: using CakeSchema from the app

2010-01-24 Thread Jamie
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

Re: 1.3 on a production server?

2010-01-12 Thread Jamie
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

Re: 1.3 on a production server?

2010-01-12 Thread Jamie
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.

1.3 on a production server?

2010-01-11 Thread Jamie
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

Re: Plugin callbacks and controller hooks

2009-12-18 Thread Jamie
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

Re: Plugin views vs. plugin layouts - inconsistencies in folder paths?

2009-11-17 Thread Jamie
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

Plugin views vs. plugin layouts - inconsistencies in folder paths?

2009-11-17 Thread Jamie
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

Re: Associated models in paginate results...

2009-10-20 Thread Jamie
;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

Re: Admin Controller

2009-10-20 Thread Jamie
$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 

Find queries, select fields, and arithmetic: possible DboSource bug?

2009-10-20 Thread Jamie
: "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

Re: Models, Tables, and Database Normalization

2009-10-19 Thread Jamie
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

Re: shuffle(), rand(), etc always returning same number

2009-10-01 Thread Jamie
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

Re: shuffle(), rand(), etc always returning same number

2009-10-01 Thread Jamie
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

Re: Looking for inspiration (multi-step data add)

2009-09-18 Thread Jamie
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

Re: Tree behavior scope bug?

2009-09-16 Thread Jamie
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   2   >