Re: more problems with RC3 and tests

2008-10-14 Thread mark_story
PhpNut has fixed this in the SVN head, update to that if you are still having troubles. -Mark On Oct 14, 3:34 am, Christof Damian [EMAIL PROTECTED] wrote: I noticed that this is fixed no in the repository. Can't wait for RC4/final now :-) 2008/10/7 Christof Damian [EMAIL PROTECTED]: I

Re: Please explain scaffolding changes in RC3

2008-10-14 Thread mark_story
This change was done, as Scaffolds were attempting to use too many templates in addition there was the possibility for both separate admin_action.scaffold as well as action.scaffold. This was not intended as you cannot scaffold both admin and non admin actions at the same time. As for merging

Re: App::import broken in RC3

2008-10-15 Thread mark_story
I get 98 passes no fails no exceptions on both my home computer and work computer. -Mark On Oct 15, 11:31 am, Mathew [EMAIL PROTECTED] wrote: * Failed at [D:\work\TRUNK\php\cake_1.2.0\cake\tests\cases\libs \configure.test.php line 440]

Re: Setting ACL permission dynamically

2008-10-15 Thread mark_story
Adding permissions can be done through a web interface. You just need to know what actions there are in your app, and what the inherited permissions are. I can't think of any tutorial that will cover your exact use case, but there are plenty of tutorials covering how to implement an ACL

Re: Object not found! error...

2008-10-16 Thread mark_story
Also good to note that you should be building your form inputs with the cake html and form helpers if you want the forms to work, as in the tutorials. -Mark On Oct 16, 9:22 am, scs [EMAIL PROTECTED] wrote: if your using cake 1.1 like you said above than your view has the wrong extension.

Re: testAction data not resetting between tests

2008-10-16 Thread mark_story
testAction simulates a url request, there is no need to unset the controller as it doesn't get set to the test case. Should the results come back differently. Please explain more. -Mark On Oct 16, 11:40 am, [EMAIL PROTECTED] wrote: I am not sure that i understand what you are testing? I

Re: testAction data not resetting between tests

2008-10-16 Thread mark_story
anything to get fresh results. Any idea why I'm getting repeats then? Could it be caching or something? On Oct 16, 11:57 am, [EMAIL PROTECTED] wrote: Well with urls always changeing wont the results change anyways? On 10/16/2008, mark_story [EMAIL PROTECTED] wrote

Re: call store procedure in cakephp

2008-10-17 Thread mark_story
look at Model::query() You can run arbitrary SQL through that. -Mark On Oct 17, 1:31 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: i want to convert my whole system in store procedure, so that place guide me how can i call store procedure, how can i call view from mysql.

Re: using nested requestActions, from shell

2008-10-19 Thread mark_story
I wonder whether nested requestAction() calls is a good design decision. Sounds like a place for some refactoring / moving code to models. But as for turning off authComponent, couldn't you check your php_sapi_name() (http://ca.php.net/php_sapi_name) and go from there. -Mark On Oct 19, 4:09 

Re: 1.2 RC3 and Adodb

2008-10-21 Thread mark_story
You should not use the AdoDB driver for any database that does not require it. It is by far the slowest database driver. From the code you posted you are using MySQL. You should be using the native mysql dbo object. The last time I tested it, I did so against mysql and it was working. -Mark

Re: css menu helper mouseover broken

2008-10-27 Thread mark_story
I'm hoping that was a facetious post, otherwise you are going to have bigger troubles than just getting IE to behave. Try positioniseverything.net, or googling something more useful that 'it', perhaps 'IE css bug' or 'IE css hacks'. -Mark On Oct 26, 1:29 pm, rogwei [EMAIL PROTECTED] wrote:

Re: is Cakephp 1.2 faster than Code Igniter ?

2008-10-28 Thread mark_story
On Oct 27, 9:38 pm, teknoid [EMAIL PROTECTED] wrote: Here's a test... Create a file index.html in the web root of your server with the content hello world. Now take any framework and compare the speed it takes to render... the index.html framework beats them all! index.html framework is

Re: Jquery or Scriptalicious?

2008-11-03 Thread mark_story
Personally I'm a big fan of mootools. I learned it early on, and really like how it doesn't require you to 'relearn' javascript. Instead it gives you a good cross browser base, with some decent built- in animation effects. Regardless of what library you end up choosing you should learn the

Re: Using JQuery and Prototype in same application

2008-11-03 Thread mark_story
A better question is why? -Mark On Nov 2, 11:55 pm, si-mon [EMAIL PROTECTED] wrote: Hi all, Is there any problem in using both JQuery and Prototype in the same application? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the

Re: Jquery or Scriptalicious?

2008-11-04 Thread mark_story
On Nov 3, 3:02 pm, 703designs [EMAIL PROTECTED] wrote: 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

Re: An OO question

2008-11-04 Thread mark_story
On Oct 30, 11:04 pm, Calvin [EMAIL PROTECTED] wrote: Hi all, I am finding difficult to understand why this isn't working... ?php abstract class A { protected static $property = false; # Q1 public static function method() { # Q2 return self::$property; } } class

Re: Using JQuery and Prototype in same application

2008-11-04 Thread mark_story
$ for jquery stuff, most of the time you would be mixing them up. I would also suggest to just drop one of them. :) On Nov 4, 3:13 am, Samuel DeVore [EMAIL PROTECTED] wrote: On Mon, Nov 3, 2008 at 11:48 AM, mark_story [EMAIL PROTECTED] wrote: A better question is why? Maybe

Re: CakePHP presentation

2008-11-06 Thread mark_story
Also recently on the documentation side of things, John has been busy adding cookbook links into the doc blocks. So when you look things up on the API you can get to the related cookbook page very easily. -Mark On Nov 6, 5:22 am, soosa [EMAIL PROTECTED] wrote: Thanks a lot guys, i will take

Re: Inconsistency between displaying validation errors and validating with model.saveAll()

2008-11-07 Thread mark_story
I closed your ticket, as I didn't have any troubles with using form helper and saveAll(). Like teknoid said Model.1.field is the correct format for multi record forms. I closed the ticket with additional information. Perhaps this should be documented better? -Mark On Nov 6, 8:04 pm, Joel

Re: How to get code coverage analysis working?

2008-11-07 Thread mark_story
The blank pages are segmetation faults in apache. On osx, I had to download the 2.10dev version of xdebug from activestate before I got it working. I've yet to get it to run on a windows machine though. -Mark On Nov 5, 11:43 am, Daniel Hofstetter [EMAIL PROTECTED] wrote: Hi all, I'm trying

Re: Where to place code for writing a file in order to respect MVC?

2008-11-11 Thread mark_story
I would agree with Rob on this one. Since the iCal is not a cache or other temp file. I would make an extension based view for this. That will keep things flexible. And iCal is just a specific way of looking at the data much like HTML or CSV is. -Mark On Nov 11, 11:56 am, Rob [EMAIL

Re: Acl + Auth and now all I see is a blank page

2008-11-13 Thread mark_story
If you are getting a 'blank' as in white screen, probably a parse or other fatal error. Turn on debug to 2 to see the errors. -Mark On Nov 12, 10:40 am, Liebermann, Anja Carolin [EMAIL PROTECTED] wrote: Hello everybody, I followed this

Re: Source code of completed blog and ACL tutorial

2008-11-14 Thread mark_story
I originally posted the Acl tutorial on my site http://mark-story.com and the source is at the end of part 2. -Mark On Nov 13, 10:56 am, gfmailweb [EMAIL PROTECTED] wrote: Is there somewhere I can download the source code to a completed 1.2 Blog tutorial including the ACL portions?  That

Re: I don't like the html that the form-helper outputs

2008-11-17 Thread mark_story
How is a ul better than 'divitis'? 'listitis' uses more markup and forms are not a list like a grocery list. I don' think that making a UL improves the semantics of a form, just makes them different. However, the form helper lets you change the wrapping divs. to whatever you choose. Or you can

Re: How to bake PHP5 code?

2008-11-18 Thread mark_story
Since Cake is a PHP4 compatible framework we cannot support visibility keywords in core. However, feel free to make changes to your copy :) Currently there are no templates for Models or Controllers. So you will need to edit core files to change the output of those tasks. -Mark On Nov 18,

Re: Sanitize, weird. Class 'App' not found.

2008-11-18 Thread mark_story
If you are using 1.1 there is no App class and as such you must use uses() -Mark On Nov 18, 3:10 am, Louie Miranda [EMAIL PROTECTED] wrote: ?php App::import('Sanitize'); class CatalogsController extends AppController { *Fatal error*: Class 'App' not found in *

Re: Access control via custom component vs. ACL

2008-11-18 Thread mark_story
initialize() - before beforeFilter() startup() - after beforeFilter() -Mark On Nov 17, 8:01 pm, validkeys [EMAIL PROTECTED] wrote: Hey Guys, I have a kind of complicated app and I don't think that the ACL would have worked for me. So I created a component to control access. So far, it

Re: How to get code coverage analysis working?

2008-11-19 Thread mark_story
To resurrect this thread code coverage was broken for me on my new computer. But by changing line 115 of /cake/tests/lib/ code_coverage_manager.php to xdebug_start_code_coverage(XDEBUG_CC_UNUSED); it started to work! Hope it solves someone else's issues too -Mark On Nov 9, 12:09 am, Dr.

Re: Mambo on CakePHP brainstorm

2008-11-19 Thread mark_story
For me a clean API that is easy to use is something that I would want in a CMS. Many of the popular CMS have very complicated API's or multiple API's which are confusing. As for theming, keep it simple. I'm not familiar with the mambo code base, but I despise non PHP templates. It just makes

Re: General ACL Question

2008-11-19 Thread mark_story
This can be done with the ACL but you need to do the check manually. It may seem like a good idea to have an ACL tree that looks like controller/action/id but that is setting yourself up for an epic fail. If you ever need to add an action you need to copy all the record nodes and set new

Re: General ACL Question

2008-11-20 Thread mark_story
-checkRows($dataRows, $userData) or SuperAcl-checkRow($row, $userData) As long as you set some sort of convention it should work well. -Mark Thanks, bye me. On Nov 20, 5:28 am, mark_story [EMAIL PROTECTED] wrote: This can be done with the ACL but you need to do the check manually. It may

Re: General ACL Question

2008-11-21 Thread mark_story
that it is generally not necessary to use the ACL Component to protect items at a record level. Usually just using an author_id field will be enough. -Aran On Nov 20, 6:18 am, mark_story [EMAIL PROTECTED] wrote: On Nov 20, 4:23 am, eMarcus [EMAIL PROTECTED] wrote: Hi Mark, Thanks

Re: ACL/tree problem rc3

2008-11-24 Thread mark_story
You can also use TreeBehavior-recover() to recover a corrupted tree. As for your LOCK TABLES I would look inside Tree Behavior itself. On Nov 24, 8:23 am, Rob [EMAIL PROTECTED] wrote: i came up with solution to the issue described above, thou i need help with cake-wise implementation.

Re: calling exit() after redirect STILL redirects

2008-11-25 Thread mark_story
There is no $this-exit() function. Perhaps you are thinking of $this- _stop()? Also in 1.2 there is no need to manually call exit(). It is called automatically by redirect(). Your redirect call seems suspect as well. I would just use $this- redirect('/users/login'); Of course it is always

Re: A new cakesite...

2008-11-25 Thread mark_story
Many have tried this and it has not been historically successful. In the land of forums there is this group, as well as many language specific groups. There is also already http://www.cakephpforum.net/ and others. In addition there is the bakery and the cookbook. The cookbook is more

Re: CakePHP Unit Test Model Woes :(

2008-11-26 Thread mark_story
Your fixture name needs to be 'app.user'. Also you only need to manually load fixtures is you have var $autoFixtures set to false. -Mark On Nov 25, 5:04 pm, MattC [EMAIL PROTECTED] wrote: This may or may not fix your problem but: 1) You test db should be empty.  The framework will

Re: CakePHP Unit Test Model Woes :(

2008-11-26 Thread mark_story
PROTECTED] wrote: mark_story: thanks - i've changed fixture to 'app.user' removed $this-loadFixtures. valikeys: thanks - i've removed the redundant App::import. Test now is: ?php class UserTestCase extends CakeTestCase {         var $fixtures = array( 'app.user' );         function setUp

Re: What you people use: Browser based automated tests or Cake's Inbuilt lib?

2008-11-27 Thread mark_story
I think selenium and the built in test suite have different goals in some respects. Outside of CakeWebTestCase there is very little support for browser-esque testing. The focus of the core test suite is on functional and unit testing of objects and not on web testing. I think you almost need to

Re: Self contained css in Cake's default app

2008-11-29 Thread mark_story
Could just not use the generic css on an already started app? -Mark On Nov 29, 2:52 pm, Federico Rinaldi [EMAIL PROTECTED] wrote: Hi guys, I just wanted to ask what do you think about the css that comes by default in a cake's application. As far as I can tell it is very helpfull as it

Re: Performance crash moving to 1.2 from 1.1?

2008-12-08 Thread mark_story
Well testing times in debug mode is not really representative of performance. The debug mode in 1.2 is purposefully more heavy than in 1.1. It does a lot more work each request. I would try some benchmarks with debug off. Apache AB can help in this area. -Mark On Dec 8, 9:19 am, [EMAIL

Re: Performance crash moving to 1.2 from 1.1?

2008-12-09 Thread mark_story
Saying it is slower, without any indication as to how or why is not really helpful. Running your application with debug 0 will always be slow. As for 1.2 being slower than 1.1 that is entirely possible. However, it does so much more as well. If raw performance was your only concern you would

Re: Model name Folder clashing with internal cake Folder object. Why no namespaces?

2008-12-09 Thread mark_story
There are no namespaces in PHP at this time sorry. Class prefixes are ugly and annoying to use. You can find a list of classes used by cake at http://api.cakephp.org -Mark On Dec 8, 5:04 pm, bitchain [EMAIL PROTECTED] wrote: Hi guys, Just started out with Cake today and enjoying it so far.

Re: Getting simpletest to work with test DB

2008-12-11 Thread mark_story
How are your fixtures setup? Are you using imports? Are you initializing your models in setup() or startTest()? Are you using ClassRegistry::init() or are you use new Model()? -Mark On Dec 10, 2:33 pm, Ed Howland [EMAIL PROTECTED] wrote: Hi, I've got simpletest installed but now I am having

Re: Getting simpletest to work with test DB

2008-12-11 Thread mark_story
, mark_story [EMAIL PROTECTED] wrote: How are your fixtures setup? Are you using imports? Are you initializing your models in setup() or startTest()? Are you using ClassRegistry::init() or are you use new Model()? Hey Mark, (i) Fixtures Setup (comments and wihitespaces stripped out

Re: Getting simpletest to work with test DB

2008-12-11 Thread mark_story
Should be fixed now! :) On Dec 11, 11:10 am, Marcus rik...@gmail.com wrote: On Dec 11, 5:01 pm, Ed Howland ed.howl...@gmail.com wrote: Same problem here. The error message Database table not found appeared with changeset 7870 of CakePHP. So an earlier changeset might work for me?

Re: A newbie question (I'm unable to find it answered)

2008-12-12 Thread mark_story
Perhaps try editing the model data in afterFind(). Or changing it before its saved in beforeSave(). Both of these methods would be in your models. -Mark On Dec 12, 2:52 pm, ark0n3 nicolabeg...@gmail.com wrote: Hi I'm sorry to bother you with some newbye question, but I'm really unable to

Re: Getting simpletest to work with test DB

2008-12-13 Thread mark_story
Ed, looks like those fails are on the schema and containable classes, not the model. And as you found out bake doesn't search through every related model to add fixtures from. It only goes one level deep, you need to manually add all the missing fixtures. -Mark On Dec 12, 5:53 pm, Ed Howland

Re: saveAll() and HABTM

2008-12-15 Thread mark_story
Try a recent svn checkout of the 1.2 branch. It should be fixed there. -Mark On Dec 15, 3:31 pm, WebbedIT p...@webbedit.co.uk wrote: Anyone?  I have done searching of this group and it seems there was a bug in 1.2 that was fixed ... so I guess I'm doing something wrong but if the array is

Re: API Documentation Question

2008-12-15 Thread mark_story
If you click on a class you should get a list of its methods and their parameters. For example, http://api.cakephp.org/class_controller.html#903188d3de83bd65c78bb676f61b3039 should take you to Controller::redirect(). And the API is generated off of the source code, so it would be very similar

Re: Model from file list (scanned folder) [new to CakePHP]

2008-12-16 Thread mark_story
Problem with scanning your filesystem, is that if you are doing it on a high traffic site you will cause a lot of disk IO which can lead to load issues. Caching to the database will prevent thrashing the disk. -Mark On Dec 16, 4:11 am, r4zv4n razvanbra...@gmail.com wrote: Thanks for the

Re: Very slow response times with CakePHP

2008-12-16 Thread mark_story
Are the tmp folders world writable? is debug off? Is it on a taxed server? Is the slowdown in the queries? -Mark On Dec 16, 9:09 am, GeneSys bernhard.bo...@gmail.com wrote: Hey Folks! So I'm using CakePHP for a couple of months now. The company I am working at asked me to write a new web

Re: Very slow response times with CakePHP

2008-12-17 Thread mark_story
convinced that it is cake alone that makes the app so slow. What I will do next is to add a blank controller and profile the scripts by use of XDebug. Maybe I'm getting to the root of all evil that way ;) Thanks for your ideas Mark! Bernhard On Dec 17, 5:57 am, mark_story mark.st...@gmail.com

Re: Controlling automatic weight increment.

2008-12-18 Thread mark_story
HABTM is not relation you are looking for I think, I usually model this with a table_1 hasMany joinTable, table_2 hasMany joinTable, and joinTable belongsTo both table_1 and table_2. -Mark On Dec 18, 3:16 am, Colin co...@itnavigate.com.au wrote: Hi All, I have a model for HABTM like so: id

Re: Overkill for a starter project?

2008-12-18 Thread mark_story
A small project is the perfect place to learn a new tool. There is less to learn with a small project, so it works as a good introductory project. Sure you could do it faster with a finished project, but that's not the point :) I started learning cake by building a monster app, and I wished way

Re: Naming-conventions for plugins (new go at old topic)

2008-12-19 Thread mark_story
If you go with the $useDbConfig you can always have multiple database connections connect to the same database and just implement different prefixes. This gets around the need for multiple databases. var $pizza = array( 'driver' = 'mysql', 'connect' =

Re: With debug 0 routes stop working and all pages not found

2008-12-19 Thread mark_story
Well you did put the debug off, so all nice error messages turn into 404's. Wouldn't be a good idea to leave all the nice errors so an site visitor/attacker could see your mistakes :) -Mark On Dec 19, 5:52 pm, RyOnLife ryan.mckil...@gmail.com wrote: Go figure. 3 hours of trying and the moment

Re: Auth.php redirect - Undefined variable redir

2008-12-22 Thread mark_story
Please open a ticket in trac :) http://trac.cakephp.org -Mark On Dec 22, 12:44 pm, codershop coders...@gmail.com wrote: I am using revision 7949, on the branchhttps://svn.cakephp.org/repo/branches/1.2.x.x In revision 7930 the return command was removed from line 676.  This causes the

Re: Auth in CakePHP RC4

2008-12-23 Thread mark_story
$this-Auth-allow('users:index') This will never work as Auth doesn't accept this format. Also make sure that if you overloaded your beforeFilter() in your sub classes of AppController that parent::beforeFilter() is called. As far as I know Auth::allow() is working correctly. -Mark On Dec 22,

Re: Suggest a better brilliant tutorial for implementing ACL with Auth in Cakephp

2008-12-23 Thread mark_story
Both my tutorial and the book tutorial are mostly the same, because I wrote both of them.. Chad you are either missing a node for the controller/action or the user. If you make your users from mysql prompt this will definately happen. If you jump ahead on the tutorial and make users before you

Re: findCount different then find('count')

2008-12-30 Thread mark_story
Yes this is correct. You need the conditions key, all the new style calls require there to be a conditions key if you want to include conditions. -Mark On Dec 30, 6:45 am, jason m ippatsu.ya...@gmail.com wrote: i think it should be return $this-find('count', array('conditions'=$conditions));

Re: API

2009-01-03 Thread mark_story
Steven, if you could give some concrete examples perhaps we could improve the doc blocks :) -Mark On Jan 3, 11:36 am, Steven Wright rhythmicde...@gmail.com wrote: Not one really specific thing. In general the Cookbook does not seem to answer my questions so I find myself going to look at the

Re: API

2009-01-03 Thread mark_story
Its not bitching if you are willing to point out where the problems are and perhaps offer some solutions to those problems. That's called contributing in my books. As for the API it is automatically generated via doxygen. But just because it is auto generated means it should be poor. So

Re: Auth Broken.

2009-01-04 Thread mark_story
gearvOsh is correct in addition, when you have a public action isAuthorized is never called. Why would it? you are visiting a public url. -Mark On Jan 4, 1:14 am, Matt Williamson dawsdes...@gmail.com wrote: Hey Guys, I am trying to use the Auth component, but I'm pretty sure there's some

Re: Calling methods that are within HABTM Join Models

2009-01-08 Thread mark_story
need to define a with key and include the name of the Join model. It was a bug that auto loaded the model in the past for you. -Mark On Jan 8, 6:17 pm, bunwich bunw...@gmail.com wrote: Hi, I've been playing with 1.2 final and was having problems calling -find ('all') on a HABTM join table.

Re: Moving from Drupal to CakePHP and Need suggestions.

2009-01-09 Thread mark_story
On Jan 9, 1:56 pm, CakeAddict rno...@gmail.com wrote: Hello all, I recently found CakePHP and I'm in the process of moving my site from Drupal to CakePHP and I need your help. My goal: == Converthttps://www.egengine.com/v01to a CakePHP application(s). First question? Do I need to

Re: Multiple forms per page, field IDs need to be unique

2009-01-12 Thread mark_story
specify the id attribute? -Mark On Jan 12, 6:05 am, Chris Hawes m...@chrishawes.net wrote: Hello, I'm currently working on an e-commerce application. On the product pages, I am generating a form to add products to the cart. As such, each page can contain several forms. I've created a

Re: testing/fixtures: load different records on demand

2009-01-12 Thread mark_story
Currently fixtures are not that sophisticated. You get all or nothing. One solution is to do what websta* suggested and have two fixtures, or modify the fixture. But currently fixtures are pretty unaware with regards to how many records they have / are inserting. -Mark On Jan 12, 3:49 pm,

Re: Bake scripts without shell access

2009-01-15 Thread mark_story
Most non-shared hosting companies do provide a shell. You can sometimes get a Java client with applications like cPanel or Plesk as well. If you are just running bake and such most people will run that locally. If you write shells that you need to run remotely like maintenance scripts etc.

Re: A new discussion about controllers which extend another-controller-other-than-AppController

2009-01-16 Thread mark_story
You components are missing because __mergeVars() which does the variable merging only works with AppController / PluginAppController. In all other situations related to inheritance you will need to redeclare the components, uses and helpers. -Mark On Jan 16, 10:14 am, caminante

Re: CakePHP for commercial use

2009-01-19 Thread mark_story
Oracle Apex is a very different type of solution from CakePHP. It seems that Apex is a web interface for building applications, while CakePHP is a programming framework. One requires no programming the other requires much more. If you are comparing these two solutions, I think you need to

Re: Testing a controller method

2009-01-19 Thread mark_story
You don't test private methods. You test your public interface, and by testing your public interface your implementation is also tested. As far as testing controllers I wrote a somewhat lenghty post on it http://mark-story.com/posts/view/testing-cakephp-controllers-the-hard-way As for testing

Re: baking cakephp on MAC OS

2009-01-19 Thread mark_story
It has less to do with your path and more to do with your PHP is knocking on a door, and nobody is home. You need to find out where your mysql.sock is, and configure PHP to knock on that door instead. -Mark On Jan 19, 2:46 pm, bookme rarockthewo...@gmail.com wrote: Thanks for your

Re: baking cakephp on MAC OS

2009-01-19 Thread mark_story
Also since you are on macos check which php you are using. I bet you are using the stock Apple PHP which php Should give you the path to the PHP that is the cli default. -Mark On Jan 19, 3:36 pm, leo ponton@gmail.com wrote: If you're using XAMPP, I don't think it's a php/mysql config

Re: App::import fail to load Component for imported controller

2009-01-20 Thread mark_story
Controllers are not intended to be 'utility' I think you're going about things the wrong way. Components are intended to be 'utility classes' and components can have components. Realistically the only time you should be manually constructing a controller is for unit testing. Outside of that

Re: Trying to update a controller from a different model...

2009-01-21 Thread mark_story
Dude, you only waited 2hrs. Chill out. This is a mailing list, if you need insta-help use IRC. -Mark On Jan 20, 9:25 pm, Parris presid...@parrisstudios.com wrote: come on... someone has to know the answer to this... are you all just using request action or something along those lines?

Re: Anyone built a forum system yet?

2009-01-21 Thread mark_story
Couldn't you just compare dates? Compare the last time the person logged in with that of all the most recent posts. Then in the session all you need to do is track which ones have been read, and unhighlight those in the view. I don't think there is really a need to store this in the database.

Re: Which editor for Mac OS X?

2009-01-23 Thread mark_story
Believe me the $50 for textmate is some of the best $50 I ever spent. But you are looking for a free, fast, good editor. Normally you only get to pick two. Perhaps you should checkout text wrangler. Its free and fast, and mostly good. -Mark On Jan 23, 10:41 am, leo ponton@gmail.com wrote:

Re: Help w/ DebugKit - no toolbar

2009-01-26 Thread mark_story
You are using a scaffold. This is not going to work as far as I know. At least I never tried to use debugKit with a scaffold. Scaffolds require their own view class and it is highly probably that the view class from the scaffold is replacing the debug view. Which will result in no toolbar.

Re: What is automated and what is not?

2009-01-26 Thread mark_story
This is not an appropriate function for a framework. Implementing these types of features at the framework level leads to excessive bloat. All the tools you need are already in core. You just have to put them together :) There are number of tutorials and sample applications around if you

Re: Help w/ DebugKit - no toolbar

2009-01-27 Thread mark_story
That's strange, debug kit should add its own CSS into the head of the document. And it should be capturing the sql log as well. Not sure why this is happening. I haven't been able to get that to occur for me, so I don't really know what is wrong. -Mark On Jan 26, 9:04 pm, Ben

Re: Shouldn't saveAll remove associated records as well?

2009-01-27 Thread mark_story
On Jan 26, 6:10 am, Jelmer goo...@spininhetweb.nl wrote: Hi all, I use saveAll to save a 'wordset' and it's associated words. In fact, when reading the record (recursively), I create an extra field in the wordSet model that contains the associated words, seperated by a newline, for easy

Re: CakePHP / MIT License - Cake free for bundling with my application?

2009-01-28 Thread mark_story
Yes. As long as the copyrights remain in the files you can do whatever you wish with the files. Bundling them in a commercial app is fine. Check out http://en.wikipedia.org/wiki/MIT_License and http://www.opensource.org/licenses/mit-license.php -Mark On Jan 27, 10:36 am, Arne-Kolja Bachstein

Re: nice new API layout

2009-01-28 Thread mark_story
On Jan 28, 1:30 am, Marcelo Andrade mfandr...@gmail.com wrote: On Tue, Jan 27, 2009 at 6:02 PM, brian bally.z...@gmail.com wrote: The API pages were just changed minutes ago (I know, because I was requesting something as it was changing) and it's a huge improvement, IMHO. Mad props and

Re: svn or git?

2009-01-28 Thread mark_story
You should be able to install both SVN and Git with ease through MacPorts. That's how I installed them, was pretty easy. -Mark On Jan 28, 7:09 am, leo ponton@gmail.com wrote: Should I be using one rather than the other? Will CakePHP eventually migrate to GIT? Here I didn't mean

Re: Model::saveAll() fails with validate = first and belongsTo associations

2009-01-30 Thread mark_story
This has been fixed in the svn head. :) -Mark On Jan 30, 7:11 am, Papagurana maas.tors...@googlemail.com wrote: Hello, I recently updated from RC2 to 1.2.1.8004 and I've got problems when doing a saveAll with two new datasets. Example: 1. Model Profile belongsTo User 2.

Re: DebugKit for 1.2 Final throws error

2009-02-01 Thread mark_story
I'm not sure, I've never tried moving the app folder in conjunction with DebugKit. Currently, DebugKit doesn't directly include View (it uses App::import() ), so I don't really know how that error is being raised. Perhaps try the head revision? Its available on both thechaw.com and github.com.

Re: Top 10 Framework

2009-02-02 Thread mark_story
Oh noes! honestly, I only care about making the best framework we can. Every frameowkr On Feb 1, 7:11 pm, yusuf widi wmo...@gmail.com wrote: Hi guyz... i got this somewhere on the net... http://www.phpframeworks.com/top-10-php-frameworks/ Why they put cake php on the fifth place? i dont

Re: Top 10 Framework

2009-02-02 Thread mark_story
Wow I'm a total tard. Way to press cancel, instead of send on that last message. Let this be a lesson to all on how not to use gmail.. Anyways, might as well finish that thought. What I was trying to say, was that is that people love comparisons and top ten lists. If you can itemize and

Re: Different performance between 1.1 and 1.2

2008-05-29 Thread mark_story
On May 28, 12:58 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: With debug=2 the queries are exaclty equal except for the DESCRIBE operation on the joinTable. Perhaps it'is a my feeling. Exist a instrument for evalute the time loading of a scripts? Is it possible to use eAccelarator with

Re: Use models/views object from other controllers/models/views ?

2008-07-04 Thread mark_story
On Jul 4, 11:46 am, FluF [EMAIL PROTECTED] wrote: This is what i'm trying to do class FooController extends AppController{ var $name = Foo; var $useTable = false; }; class Foo extends AppModel{ var $name = Foo; var $useTable = false; private $text = ; public function

Re: ACL in Cake 1.2

2008-07-07 Thread mark_story
parentNode is required for AclBehavior to work, I just posted the first of two articles on using Auth and Acl to my site, should check it out if that is what you are using the Acl for. http://mark-story.com/Posts/view/auth-and-acl-an-end-to-end-tutorial-pt-1 -Mark On Jul 7, 10:40 am,

Re: Documentation

2008-07-09 Thread mark_story
On Jun 24, 5:33 pm, floob [EMAIL PROTECTED] wrote: I've been going at cake for a bit over one month, and I've developed a love/hate relationship with it. I apologize if this is a rant ... cake documentation is a touchy subject for me, and I believe my experiences may help you.

Re: Basic help with render() function

2008-07-09 Thread mark_story
On Jul 8, 4:37 pm, Sir Tabs [EMAIL PROTECTED] wrote: Two simple questions, with hopefully easy answers: 1) The render() function and it's paramaters --- I've been reading forums, snippets of code, this group and the API, and I still get

Re: Test Suite and session

2008-07-10 Thread mark_story
Fixtures are used to make database tables. If you are planning on using database sessions this will work well. However, as to making a Session Object. I'm not sure what you are trying to accomplish, if you need examples of testing Session Classes in Cake, there are many core tests for each of

Re: Basic help with render() function

2008-07-10 Thread mark_story
On Jul 9, 11:44 am, mark_story [EMAIL PROTECTED] wrote: On Jul 8, 4:37 pm, Sir Tabs [EMAIL PROTECTED] wrote: Two simple questions, with hopefully easy answers: 1) The render() function and it's paramaters --- I've been reading

Re: Basic help with render() function

2008-07-11 Thread mark_story
On Jul 10, 12:52 pm, Sir Tabs [EMAIL PROTECTED] wrote: Now I think I have the feel for the process: each action that is called attempts, through automagic, to render the screen with it's particular view file. If I use Ajax to call the particular action, and use the 'update' option and specify

Re: ajax-link after ajax.updater

2008-07-11 Thread mark_story
This is a javascript problem and has nothing to do with cake. Basically when your HTML response is injected into the page, the script tags are not parsed and evaled. There is an option to turn on scriptEval or parseScripts for this somewhere in prototype. I don't know prototype well enough to

Re: Cake 1.2 App::import(vendor) isn't finding the file

2008-07-11 Thread mark_story
On Jul 11, 11:07 am, NOSLOW [EMAIL PROTECTED] wrote: I think the second paramter, PHPBB_Login, should be all lower case just to get the file to load. Then when instantiating the class PHPBB_Login, keep the case as it's defined inside the file. Based on the examples

Re: Global data

2008-07-16 Thread mark_story
Global variables in general are the spawn of satan. However both constants and using Configure::write('var', $value) are excellent replacements as they prevent the collisions and spaghetti code that globals can help create. http://book.cakephp.org/view/39/configuration -Mark

Re: About the findById method and it's returns

2008-07-16 Thread mark_story
Try setting $this-Order-recursive = 2 before doing the find. Since order doesn't directly relate to Shop it doesn't come up in the find results with default settings. -Mark On Jul 16, 5:42 am, iWorm [EMAIL PROTECTED] wrote: snip --~--~-~--~~~---~--~~ You

  1   2   3   4   5   6   >