Re: Form Generation using form helper ..Form data not getting stored to DB.

2008-02-03 Thread MrTufty
You don't mention which version you're using, but I'm going to assume 1.2 because of the $form code. Really, we need to see your controller code to figure this out, but it should be something like this: ... in users_controller.php function register() { if(!empty($this->data)) { if($thi

Re: HTML Helper - flash support

2008-02-03 Thread MrTufty
Unlikely. My theory on this, others may disagree, is that Flash is better added by the theory of progressive enhancement. That's why I use jQuery plus the jQuery Flash plugin to handle it at the client side. I'm pretty sure other libraries have similar solutions. Steve On Feb 1, 11:00 pm, Ata A

Re: Quick Question about links

2008-02-01 Thread MrTufty
It's not a stupid question... makes perfect sense! Try this: link(__($post['Category']['title'], true), array('controller' => 'posts', 'action' => 'category', $post['Category']['id'])); ?> The only difference from your method is that $post['Category']['id'] isn't getting appended directly to th

Complete Account Management

2008-01-30 Thread MrTufty
Hi all, I'm at the latter stages of a big-ish CakePHP 1.2 project now (it's an online wine store with a bespoke shopping cart system, entirely developed by myself - which probably means it's full of bugs since I haven't had time to write full tests for the thing). One of the requirements is for

Re: Routing Question how to use Router::connect('/') with session_id?

2008-01-28 Thread MrTufty
I might not be understanding this properly - but WHY would you want to stick session IDs in the URL? It's just about the worst thing you could ever do for SEO. Steve On Jan 28, 12:38 pm, sanemat <[EMAIL PROTECTED]> wrote: > I am wordering how to get url to work: > /?CAKEPHP=session_id > > Here i

Re: Redirect leaves old URL

2008-01-24 Thread MrTufty
Why does everyone keep beating the dead horse of a wiki? We had one before, when I first got into Cake. Guess what? It wasn't very effective. Outdated articles providing poor solutions to problems that didn't need to be solved. I prefer the Bakery, these groups and the various articles written on

Re: tutorial with picture please.!!

2008-01-23 Thread MrTufty
Why would a tutorial with pictures help? If Cake was actually a CMS or something I could understand it, but it's not - it's a programming framework. As such an illustrated tutorial wouldn't be all that useful. Check out the screencasts, that's probably as much of a step by step illustrated tutori

Re: Connecting Two HABTM Tables

2008-01-22 Thread MrTufty
It does, but you still need a model for the link. If I remember correctly anyway. I think Danielle is correct here though. Your database structure is overcomplicated a little - you could achieve the same goal by having: Size:- id size shortCode Colour:- id colour Style:- id style description

Re: Auth Component encrypting password before validation.

2008-01-18 Thread MrTufty
djiize, thanks for the code sample. That's effectively what my own code was doing, except (for some stupid reason) I'd neglected to load the User model to get the hashPasswords function (in the theory that it would be loaded by the Auth component anyway, I think). I'm with nate on this one (not b

Re: Only one register within a given set can be flagged: possible?

2008-01-18 Thread MrTufty
Spot on, that's how I would do it. Avoids the expensive (and non- scaling by table size) updateAll. This way when you change the default image, you only have one field in one record to change, rather than 1 field in N records where N might possibly be a very big number. Steve On Jan 18, 7:13 pm,

Re: i don't know why

2008-01-18 Thread MrTufty
Indeed AD. I was just being picky, because we see so many requests for help here which don't give us any clues at all (and in most cases are a _demand_ for help rather than a request). Steve On Jan 18, 9:08 am, AD7six <[EMAIL PROTECTED]> wrote: > On Jan 18, 10:03 am, MrTufty <

Re: Auth Component encrypting password before validation.

2008-01-18 Thread MrTufty
What he said ;) I've been working with overriding hashPasswords to provide a randomly salted sha256 implementation, but my brains leaked out of my ears (that'll teach me to code at 3am). Steve On Jan 18, 11:30 am, djiize <[EMAIL PROTECTED]> wrote: > You can already choose your hashing method, s

Re: i don't know why

2008-01-18 Thread MrTufty
You're not telling us anything about your specific situation, so it's unlikely anyone is going to be particularly helpful. Some things that would help: What version of Cake are you using? What environment are you running it in? Windows? Linux? Where do you have it installed? With that informati

Re: Problem with Plugins > Controller Missing?

2008-01-17 Thread MrTufty
The problem here is the mismatch between the name of the plugin and the default controller name. For this to work, you need to rename contents_controller.php to content_controller.php (and obviously amend the class name within that). Additionally the views/contents/ folder needs to be renamed. T

Re: using configuration file

2008-01-10 Thread MrTufty
It depends how many configuration settings you need to store. Personally, I'm just adding to the bottom of app/config/core.php - seems to work fairly effectively. Others have used a model and component in order to store configuration settings in the database. I haven't tried this yet. Steve On

Re: Using model objects in the controllers

2008-01-07 Thread MrTufty
Deane, I have to disagree with your opinion that the business logic belongs in the controllers. From my understanding of MVC best practices, specifically "Fat models, skinny controllers" - the models should be responsible for the business logic, not the controllers. The controllers are pretty muc

Re: Way to Store Subscribers to Post-Threads

2007-12-21 Thread MrTufty
An alternative way which might scale better would be to have your posts table, your users table, and a posts_users table, joined using a hasAndBelongsToMany association. That way you don't get those comma- separated values, which are a complete bitch to deal with if you ever want to access them us

RequestAction + Plugin = Apache Crash

2007-12-21 Thread MrTufty
Hi guys, Found a strange issue in the current SVN (I'm using branches, so I'm currently on r6179). In my default layout I use 2 requestAction calls to pull in data for elements. This works 100% fine, in the main part of the app. I use a plugin to handle the backend administration of the site, b

Re: want to call function in default ctp from app model

2007-12-18 Thread MrTufty
e how to use request action in view for calling function in > app_controller > and app_controller to model > and my view file is default.ctp > > because for calling request action i need controller name > > and for calling function in app controller i need model name > >

Re: Got Cake installed ok but can't see any apps

2007-12-17 Thread MrTufty
9 times out of 10, if not 99 out of 100, just putting the Cake files into your webroot will work perfectly, with the exception of mod_rewrite issues. I don't really understand where the problem is coming from in this case, but it's more likely to be an issue with your Apache configuration than wit

Re: want to call function in default ctp from app model

2007-12-17 Thread MrTufty
It looks like you haven't really studied the whole MVC, separation of concerns thing. You shouldn't be calling functions in the model from the view. You shouldn't even be calling controller functions from the view. In short, the controller queries the model and then sends the information on to the

Re: form->create() ::: how can use onSubmit in form->create()

2007-12-15 Thread MrTufty
It WAS a huge disaster. I got involved with Cake at that point, and I almost gave it up because of the huge inaccuracies present in the Wiki. At any given point there were 3 or 4 suggestions on how to do each task, and 3 of them would be wrong somewhere along the line - but of course you wouldn't

Re: RequestAction parameters

2007-12-15 Thread MrTufty
One tip to avoid error messages like this would be to change the definition of your function to: function index($username = null) { That way if a username is not passed, it doesn't break. BUT, that doesn't solve your problem, which appears to be that the username isn't being set at all - have y

Re: Selection jump function / menu

2007-12-13 Thread MrTufty
That's exactly how I'd do it too. With the exception that I'd put the code in via a touch of jQuery in the view instead, but that's a matter of style. Tufty On Dec 13, 9:02 am, francky06l <[EMAIL PROTECTED]> wrote: > You could set your text field as an hidden field at first. Then > handling "on

Re: 2 Models 1 Layout

2007-12-13 Thread MrTufty
At a guess, I'd say that your /posts/index action isn't returning the data correctly. This is roughly what it should look like: excuse the dodgy formatting. class PostsController extends AppController { ... snipped ... function index() { $posts = $this->Post->findAll(); if(isse

Re: Help please for ultra-beginner

2007-12-12 Thread MrTufty
Yes, you can do it that way too. But if you set up the associations, you don't NEED to change $uses to include Ugroup, as it will automatically be included based on it's association with the User model. On Dec 12, 9:22 am, avairet <[EMAIL PROTECTED]> wrote: > Hello, > > My cake knowledge is limit

Re: Only able to view home page

2007-12-12 Thread MrTufty
This is almost certainly a .htaccess issue. I suspect by default either mod_rewrite is not turned on, or the rule for it is AllowOverride None. In the first instance, turn mod_rewrite on (ask your host for information on how to do that, as it will vary). In the second instance, change AllowOverri

Re: Help please for ultra-beginner

2007-12-12 Thread MrTufty
The error message you're getting tells you what the problem is... on line 34, you're referring to $this->Ugroup->findByUgroupid(). This would be fine, except that you haven't told cake to give you access to Ugroup in this way. I'm assuming you have a model for Ugroup, and that it's associated wit

Re: Cake 1.2 isUnique validation

2007-11-30 Thread MrTufty
Good solutions Richard, nice one. You may want to look into specifying the 'on' part of the validation rule, which allows you to set whether the validation is done on creating a new record, or updating an existing one. I'm not sure how, if at all, that would tie into the code you've provided here

Re: Cake 1.2 isUnique validation

2007-11-29 Thread MrTufty
And is entirely wrong... well, no, it'll work, but it doesn't take advantage of CakePHP 1.2 validation. The IBM tutorials are good, but outdated now. Richard, as you suspect, you're not supposed to be referencing isUnique in a rule. But, you don't need to use it in the controller. Here's how you'

Re: Everyone's Favourite... Auth

2007-11-23 Thread MrTufty
rote: > On Nov 23, 2007 6:50 PM, MrTufty <[EMAIL PROTECTED]> wrote: > > > > > I'm trying to implement a remember me function - I initially thought > > Chris' most recent post on the subject would help me out, but perhaps > > I'm just not understanding ho

Everyone's Favourite... Auth

2007-11-23 Thread MrTufty
Hi everyone, I'm having problems... and I'm hoping that with the meeting of minds we have going on here, someone can point out where I'm going wrong. I'm using 1.2 to build several sites at the moment - it's definitely my framework of choice, for pretty much every site I build, personal and for

Re: Disabling cake on a subdomain for Joomla

2007-11-12 Thread MrTufty
Install Joomla into a folder in app/webroot/, then point your subdomain at that. I've successfully done this for phpBB (although user database integration is an entirely different beast). On Nov 11, 4:26 pm, chogi <[EMAIL PROTECTED]> wrote: > Hey all, > > Got a quick question. I got cake running

Re: Clean Cake 1.1 sigfaults apache2

2007-11-07 Thread MrTufty
I've seen this happen myself - do you have anything like Zend Accelerator installed? I can't think what was causing it on my test system (it was months ago, before I migrated to the fertile grounds of 1.2 development). On Nov 7, 2:22 pm, MaxDao <[EMAIL PROTECTED]> wrote: > Ok, I tried, it. In mod

Re: Read M S Doc using php from linux and windows

2007-11-07 Thread MrTufty
I suggest you do some research on that thing commonly called the internet... On Nov 7, 10:27 am, "NAREN KUMAR" <[EMAIL PROTECTED]> wrote: > hi, > > iam new to this group. > > i need code to Read MS WORD document and stores in string from linux > system as well as from windows > > thanking u

Re: banging my head for last two days to find the blank line in RSS output

2007-11-07 Thread MrTufty
Skipping the ?> is actually something the Zend Framework people require if you submit code to them - it's in their coding style guide. Seems to work, but I couldn't get the habit - I hated not having balanced elements! On Nov 7, 11:21 am, bingo <[EMAIL PROTECTED]> wrote: > hi Richard, > > oh Cool

Re: Missing controller - naming error

2007-11-03 Thread MrTufty
For the var $name, as far as I'm aware, you can't have a space in it. So var $name = 'Quick Notes' would be wrong. It will (probably) fix your problem if you change the above to var $name = 'QuickNotes'; On Nov 3, 2:14 pm, Sabot <[EMAIL PROTECTED]> wrote: > Hello bakers, I'm new to cake and try

Re: Can i have url like domain/username

2007-10-31 Thread MrTufty
All things are possible with CakePHP. Well, almost - it won't make your dinner for you or anything. You need to look into custom routes, which you can set up in /app/ config/routes.php - that's about as much as I can tell you, because I'm not 100% experienced with that aspect of Cake myself yet.

Re: Variable error

2007-10-30 Thread MrTufty
Pos, Really, you shouldn't have posted this here as it's a general PHP question, not related to CakePHP at all. But the thing you're doing wrong here is simple. Where you have: echo var1; echo var2; You should have: echo $var1; echo $var2; Variables need to be prefixed with $ wherever they a

Re: The forbidden hack? | An attempt to redesign Cake View handling

2007-09-11 Thread MrTufty
On first glance, it sounds like you're trying to accomplish something similar to Django's templating system. Now, I like that system - with blocks that may or may not be replaced, being able to extend blocks, and putting content in multiple places. I've tried to implement something similar myself,

Re: AuthComponent - Alternate ways to hash passwords?

2007-09-07 Thread MrTufty
ead the record using the id (not comparing > password), ans store the User record in session. > > Hope this helps > > On Sep 6, 1:33 pm, MrTufty <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > Just a quick question - I've searched, but found nothing definit

AuthComponent - Alternate ways to hash passwords?

2007-09-06 Thread MrTufty
Hi all, Just a quick question - I've searched, but found nothing definitive. I'm building my site with Cake and I've decided to use the built-in ACL/Auth stuff rather than write my own (mostly because I'm sure you're all a lot smarter than I am, and if it works for you, then it'll probably work

Re: Model Save bug? (CakePHP 1.2 & MySQL)

2007-09-04 Thread MrTufty
I doubt it's a bug with Cake... if you have fields specifically set to be unique in the database, then nothing Cake can do should allow NON- unique fields. Seems very strange. I would imagine that the records that appear to be non-unique actually are unique, but probably with hidden characters or

Re: wrong coding in layout variables from beforeRender function

2007-09-04 Thread MrTufty
Anna, Do you also have the line: echo $html->charset('UTF-8'); in your layout, as suggested above? The commands you say you have in your layout don't get parsed by the browser, whereas the tag which is inserted by $html->charset(); does. This could account for your problems, if not. Hope this

Re: Newbie: Split form accross three views ?

2007-08-21 Thread MrTufty
It's possible to do anything with Cake that you can with standard PHP and then some. Depending on how you wanted it to work, you could use $_POST, or $_SESSION as you say. $_POST would just involve having a bunch of hidden fields that you store the information from the earlier steps into. I don

Re: How can I updated table using checkboxes and button

2007-08-16 Thread MrTufty
Or, not. You should be able to figure this one out for yourself with minimal work. What, you want us to write your code for you now? Steve On Aug 16, 9:02 am, nirmal <[EMAIL PROTECTED]> wrote: > Please give me an example with code. > :) > > On Aug 14, 11:20 pm, Ketan Patel <[EMAIL PROTECTED]> w

Re: One Install, Multiple Apps

2007-08-14 Thread MrTufty
Shawn, As Ketan says, you've slightly misunderstood how Cake's URLs map to controllers. In your case: /news/edit/1 would point to (unless using routing to achieve a different result): News Controller > Edit Action > Parameter 1 (whether that's an article, or an item, or whatever) /poll/edit/1 w

Re: CakePHP+SMF (again?)

2007-08-08 Thread MrTufty
For the record, I think you've gone a very much more complicated way around this than was necessary - I may be wrong, depending on exactly what you're trying to achieve, but wouldn't it have been simpler to hook into the SMF login/logout scripts from within your Cake apps? That way you would still

Re: html->submit() does not exists?

2007-06-15 Thread MrTufty
ation-... > > Also how do i use the form helper without it generating all sorts of > html i don't need like div wrappers 0_o > > On 15 jun, 08:28, MrTufty <[EMAIL PROTECTED]> wrote: > > > Actually, your var $validate line there should go in your model. > > Typ

Re: html->submit() does not exists?

2007-06-14 Thread MrTufty
Actually, your var $validate line there should go in your model. Typo? :) As for the other stuff, check the links provided :) On Jun 14, 7:50 pm, Mech7 <[EMAIL PROTECTED]> wrote: > Thanks i found what goes in my controller± > > // Validator > var $validate = array('title' => array('rule'

Re: How to display a session timeout message to the user

2007-06-06 Thread MrTufty
There's no way to do that with the built-in Session component in Cake. At least, not directly. You'll find that your solution will involve a User model, and probably some work with the beforeFilter in AppController. The concept would be to store some form of timestamp in the session, if it's older

Re: Member Methods in Views

2007-06-06 Thread MrTufty
To weigh in on this one, presumably this limitation will go away once Cake starts returning objects instead of arrays, which (last I checked) was still slated for 2.0? From my point of view it's not a big deal, it's a nice-to-have rather than a must-have. Chris is definitely correct - if you can'

Re: dynamic connection according environment

2007-06-05 Thread MrTufty
The easiest technique I've seen used an additional to the database.php in app/config, which sets the DB config based on the host. There's some code floating around somewhere, but I can't remember where the link was at the moment. Perhaps someone else knows what I'm talking about! On Jun 5, 3:34 a

Re: Dynamically Create a Model and Bind it to a Table?

2007-05-31 Thread MrTufty
>From everything I've picked up and learned over the years I've been developing, the sort of solution you're suggesting is a definite OMG what the hell are you doing? situation. If you're having to deal with items that may have different information specified, why not do something a little differ

Re: how scalable is this framework

2007-05-21 Thread MrTufty
Amen. I came from Symfony to CakePHP. Everything about Cake is so much smoother than Symfony. From the lack of YAML to the lack of Propel, everything fits so much better. For me it's the speed of development that counts. I've recently finished a site for work using the 1.2 version which took less

Re: session serialize handler

2007-05-15 Thread MrTufty
Jyrgen, I still don't understand why you feel the need to override Cake's internal session handling in favour of your own. It's simple, ok. If you want to read the existing session just use $this->Session->read('User.username'); or $session- >read('User.username'); in the view. Obviously this wo

Re: Advanced Installation

2007-05-11 Thread MrTufty
It's ok guys, I was being stupid. Fixed it now, I just needed to pay more attention to the error output PHP was giving me - it was looking in entirely the wrong folders for my config files! On May 11, 7:33 am, MrTufty <[EMAIL PROTECTED]> wrote: > Hi guys, > > I know I

Advanced Installation

2007-05-10 Thread MrTufty
Hi guys, I know I'm probably being really really thick, but I can't get my head around something. I've been using Cake for months now - on my own site, and also for sites at work. All the sites at work are set up as just standard installations, with the files unpacked inside htdocs. They work fi

Re: Pagination - rendering the counter differently

2007-04-04 Thread MrTufty
27;t > > support it. But the work has been done for you. If you copy /cake/libs/ > > view/helpers/paginator.php to /app/views/helpers/paginator.php and > > apply the patch from this ticket:https://trac.cakephp.org/ticket/2202 > > , then you can use the new pageNumbers function l

Pagination - rendering the counter differently

2007-04-03 Thread MrTufty
Hi all, I've been developing a few sites in Cake for internal use, to demonstrate its power to my bosses. I'm using 1.2, and the Pagination helper quite a lot (for some reason they want all the content to fit on an 800x600 screen, so I have a LOT of multiple page sections). Currently, the helpe

Re: Newbie questions

2007-03-27 Thread MrTufty
If you're not sure how to manage the layout structure yet, the last thing you need is medium/advanced tutorials. Cake is very simple to learn the basics of, and extremely powerful once you've gotten your head around the conventions. To be able to help, you'll need to say which version you're pre

Re: CakePHP/SWFObject/Multiple Files

2007-03-12 Thread MrTufty
; I have'nt had any and have always been setting the base param. > > I put my swf's inside a folder in webroot called 'flash' > > then I set a javascript variable with $this->webroot eg > > var strBase = 'webroot); ?>'; > > - S > > On

Re: Fetching rows one by one

2007-03-09 Thread MrTufty
Nope, they definitely don't mean stored procedures. Cookxyz's answer would seem to be the most appropriate for what you're trying to do, in this case. It's how I'd do it, and it does avoid having several thousand records in memory at once... it may not be the optimal way in this case but we don't

CakePHP/SWFObject/Multiple Files

2007-03-09 Thread MrTufty
Hi guys... I'm having a few issues, and I was hoping one of the more experienced/ knowledgeable people here could help me out. On the website I'm currently developing, we have a Flash-based location map showing all our clients sites. This Flash file is made up of multiple movies, which each get

Re: 1.2 apache error (WAMP)

2007-02-19 Thread MrTufty
In this case, I reckon the problem is the same one I had with Vertrigo - sounds like the Zend Accelerator problem that caused my Apache to crash every time I tried to access a Cake 1.2 site. Simple solution, just disable the Accelerator. On Feb 19, 2:08 pm, "nate" <[EMAIL PROTECTED]> wrote: > Eas

Ajax form question

2007-02-09 Thread MrTufty
Hi guys, thought I'd throw this out here because I simply can't get my head around it. I currently have user authentication working on my site, after my problems the other day with validation. I'm happy with the way that works, except for one thing. In the header of my site I have a couple of li

Re: More 1.2 validation

2007-02-08 Thread MrTufty
> > Remember, smart coders answer ten questions for every question they ask. > So be smart, be cool, and share your knowledge. > > BAKE ON! > > blog:http://www.MarianoIglesias.com.ar > > -Mensaje original- > De: cake-php@googlegroups.com [mailto:[EMAIL PROTE

Re: More 1.2 validation

2007-02-08 Thread MrTufty
uot;."; } if ($params['message']) { $this->model->validationErrors[$this->name][$fieldName][] = $params['message']; } } $this->errorCount++; return false; } That p

Re: More 1.2 validation

2007-02-08 Thread MrTufty
Damn, I didn't pick that one up either. Will bug fix that later on. A possible modification would be to add an extra parameter to each function specifying whether or not to output the message - but that might make things more complicated than they need to be. When I get this sorted out and worki

Re: More 1.2 validation

2007-02-08 Thread MrTufty
True, I'd not considered that part of the hackiness either. For now, I've gone ahead and done it. The solution isn't perfect - other tweaks will need to be made to the other functions in the Error helper, for instance - but it does appear to work. Here's my code: //error.php - modelErrors() fun

Re: More 1.2 validation

2007-02-08 Thread MrTufty
I'll take that as a challenge then :) The workaround would be quite effective, but not ideal as you say... One thing I considered, although it's probably not optimal, is to store the messages in another slightly deeper array. So when assigning the error messages, I'd use: $this->model->validat

Re: More 1.2 validation

2007-02-08 Thread MrTufty
Excellent! Thank you Marcel, you've been a star; my code now works as expected and I can get on with developing the other parts of my system now. I second the call that this level of functionality should be added to the core - it's so useful. Potentially in time the current validation class might

Re: Routes, pages and controllers

2007-02-08 Thread MrTufty
easier way to do it though. On Feb 8, 10:07 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi > > Thanks for your reply. I did actually try that, and it worked for the > specified controller action, but then it didn't work for other > actions. For example, site

Re: More 1.2 validation

2007-02-08 Thread MrTufty
Thanks again :) I'm still having a few problems, the ErrorHelper provided uses a method of the HTML Helper which doesn't appear to exist - it outputs by using $html->contentTag(), which doesn't work. I've looked through the HTML Helper itself and it seems to be using output in the format of $this

Re: More 1.2 validation

2007-02-08 Thread MrTufty
but that would cause other problems down the road, I'm sure. Can you advise me on which bits I need to rename/change/delete to make this work correctly? Thanks! :) On Feb 7, 11:23 pm, "MrTufty" <[EMAIL PROTECTED]> wrote: > Hi Marcel - > > THAT is exactly the sort

Re: Routes, pages and controllers

2007-02-08 Thread MrTufty
I _think_, if you're going to make this work the way you expect it to, you should specify the other controllers in routes above the final routing. So in your example you'd have: $Route->connect('/members', array('controller' => 'members')); Or something along those lines... On Feb 8, 8:54 am,

Re: More 1.2 validation

2007-02-07 Thread MrTufty
Hi Marcel - THAT is exactly the sort of helpful answer I was hoping for. Fantastic bit of code, I think I'll be making use of it until such time as the Cake core includes something comparable. I've bookmarked the page in question, and courtesy of the Foxmarks extension for Firefox, I'll check it

Re: More 1.2 validation

2007-02-07 Thread MrTufty
Thanks Tarique, will take a look later on. I was hoping to avoid having to use anything not in the core code, purely for stability later on. But if it's required... then that's what I'll do :) On Feb 7, 3:55 pm, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrot

More 1.2 validation

2007-02-07 Thread MrTufty
Hi guys... it seems like every time I come on here, I'm posting about validation. Probably because, at least to me, it's one of the most confusing parts of the framework. I'm trying to use the new methods of validation from the 1.2 code (current SVN version as of today), and I'm hitting brick wal

Re: Fatal error: Failed opening required 'cake\bootstrap.php'

2007-01-30 Thread MrTufty
Something you should be aware of: Cake 1.2 has an issue with Vertrigo where Apache will crash. To be fair it's not Cake's fault, it's an incompatibility between the Zend Accelerator version and the version of PHP they've included. Just disable it in your php.ini (for Vertrigo's purposes, this is l

Re: Weird stuff

2006-12-30 Thread MrTufty
I tried EasyPHP, and also XAMPP. Vertrigo is my favourite, because although some files get installed in the webroot, they're optional and can be safely deleted. I noticed that most of the other environments install phpMyAdmin into the webroot, or create an admin/ folder in there to hold their ow

Re: Weird stuff

2006-12-30 Thread MrTufty
Hi gwoo, guess your response came in here before my other ones did. Adding the trailing slash makes no difference, still crashes in the same way. It looks like it's entirely Zend's fault in this case... they are meant to be working on an updated version of the Optimizer which fixes it, but no re

Re: Weird stuff

2006-12-30 Thread MrTufty
This may help answer some of the questions - a lot of people have seen this issue on the Zend forums. http://www.zend.com/forums/index.php?t=msg&th=2529&start=0&S=794daedd3f5ff2312185b52703a0f86a At least now I know it's not just me going crazy, and that it's not just Cake that is affected (my

Re: Weird stuff

2006-12-30 Thread MrTufty
And it has. Thanks everyone for trying to help. I wish I'd thought of checking the Windows Error Log sooner instead of looking in Apache's own log files... would have figured this out before I'd even posted :) It still doesn't make any sense why there would be an incompatibility between Zend Op

Re: Weird stuff

2006-12-30 Thread MrTufty
Ah... I've just checked in the Windows Error Log under MMC, it's highlighting an error with the Zend Optimizer DLL that's included. Will try and disable that, see if that solves the problem... --~--~-~--~~~---~--~~ You received this message because you are subscr

Re: Weird stuff

2006-12-30 Thread MrTufty
gwoo - this is the error that I get: http://www.alltheusualsuspects.co.uk/users/orry/cake-vertrigo-error.png I think Apache, or possibly a PHP module, is wiping it out even before Apache can write to the error log. I get this error consistently with both of the 1.2 versions I've tried so far,

Re: Weird stuff

2006-12-30 Thread MrTufty
Best information I can provide is that I'm running on a default installation of VertrigoServ 2.14 (http://vertrigo.sf.net), using the below versions of the components: Apache 2.0.59 PHP 5.2.0 MySQL 5.0.27 SQLite 3.3.8 PhpMyAdmin 2.9.1.1 ZendOptimizer 3.2.0 SQLiteManager 1.2.0 Cake itself is ins

Re: Weird stuff

2006-12-29 Thread MrTufty
And the latest SVN 4230 also crashes in the same way... just tested now. Any ideas? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com

Re: Weird stuff

2006-12-29 Thread MrTufty
DJ Spark contacted me off-list, advising me to check the Apache error logs - unfortunately in this case, it didn't help at all. When Apache is crashing here, it's crashing badly enough so that nothing is written to the log file. I'm now testing 4205 and 4206 side-by-side, in different folders. 4

Weird stuff

2006-12-29 Thread MrTufty
Ok, I know 1.2 isn't out yet, and there's no rush. But I've run into a small issue, and I was just wondering if anyone else had seen it before reporting it on Trac. I'm running a local test server using Vertrigo 2.14 - I've been using this version, and older, quite successfully for the past few

Re: Convincing my company to use Cake

2006-10-24 Thread MrTufty
I could just do that yeah - I will have to look into it some more :) But yes, the IonCube tools do allow for the copyright notices to be left unencrypted, as I thought. The client is more likely to sue us if they manage to break something. --~--~-~--~~~---~--~~

Re: Convincing my company to use Cake

2006-10-17 Thread MrTufty
Ok. I believe the IonCube tools allow for copyright notices to be left unencoded anyway, I'd have to check the documentation to be sure but I'm sure it mentioned something along those lines. On Oct 17, 3:51 pm, "nate" <[EMAIL PROTECTED]> wrote: > I'll ask gwoo to weigh in here, since he's the IP

Re: Convincing my company to use Cake

2006-10-17 Thread MrTufty
You're telling me... I've been pushing the need since I started here to finish up a couple of other projects that are nearly ready to go online... trouble is this client takes up so much of our time, with us being only a small team, that we don't really get chance to tackle anything else. I'll be

Re: Convincing my company to use Cake

2006-10-17 Thread MrTufty
Sadly, not my decision to make... although that checksum idea might not be a bad one for future reference, I'll put that forward to the directors. I don't think we'll be dumping them though, they really are our main client at the moment and their business is worth a huge amount. Plus they'd probab

Re: ajax to update form fields?

2006-10-17 Thread MrTufty
This wouldn't strictly speaking be Ajax, at least not the way I would do it. I'd trap the onchange event in the select tag: Then have some javascript code to automatically select the other options. You COULD do it with Ajax (and this just occurred to me while writing this post) by putti

Re: Convincing my company to use Cake

2006-10-17 Thread MrTufty
This might unfortunately be a sticking point. We're in a position with one of our clients where we simply can't trust them not to tamper with the code we've written for them. This would be ok, but anything that goes wrong with it they blame us for even when it's their fault. So, we use IonCube En

Re: Convincing my company to use Cake

2006-10-17 Thread MrTufty
Luckily, I've been using Cake myself for the past couple of months - so I'm about as much as we're likely to need for the moment :) The other options are: keep doing things the same way they've always been done here (we have a function library, but the functions it includes are pretty specific to

Convincing my company to use Cake

2006-10-17 Thread MrTufty
Hi guys, I'm working as a web developer now, and I've been trying to convince the directors of the company that using some open-source libraries to build our sites would be a good move. I've almost managed to convince them that having a template engine is a good idea - with demonstrations of what

Re: Cake error: Warning: Unknown: 1 result set(s) not freed

2006-09-24 Thread MrTufty
In this case, as far as I can tell, it's actually because Vertrigo doesn't come with the PHP CLI. You just need to install it separately, as I mentioned in an email reply to TWIOF before. I've not used the bake script for quite some time so I've never noticed the lack. --~--~-~--~~--

Re: Cake error: Warning: Unknown: 1 result set(s) not freed

2006-09-21 Thread MrTufty
You could also try Vertrigo http://vertrigo.sourceforge.net - I've been using it happily for the last several months and find it very easy to configure and use. Doesn't seem to get in the way as much as some of the other WAMP servers. --~--~-~--~~~---~--~~ You rec

  1   2   >