Re: What do you develop in (ide, text editor, etc.)?

2009-04-14 Thread Baz L
TextMate when at home... Notepad++ (Portable) when on the road. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this

CakePHP User Management/Auth Plugin - Define functions for AppController with code OUTSIDE the file.

2008-07-16 Thread Baz L
I'll cut to the chase: http://code.google.com/p/cakeusermanagement/ I couldn't get CakePHP's built in ACL to work in a simple to understand manner. Actually, I couldn't get it to work at all. So I built upon this: http://www.studiocanaria.com/articles/cakephp_auth_component_users_groups_permissio

Re: Auth + Custom Login + isAuthorized = Infinite Redirect Loop

2008-07-16 Thread Baz L
Nevermind everyone. I was being an idiot. My loginRedirect was to a place that required authorization. As soon as I changed it some a general controller and action that ALL loggged in users had access to, I was fine. On Jun 18, 8:46 am, Baz L <[EMAIL PROTECTED]> wrote: > I believe I&#

Re: $this->Auth->user not refreshing after edit

2008-07-16 Thread Baz L
I would avoid writing directly to the Auth's session. Again, this is generally how Authentication systems work. User information used by the application is stored in memory (session in this case). You could force a logout, but I think that you're users will find this more annoying to be logged ou

Re: View Caching with AuthComponent

2008-07-16 Thread Baz L
Simplest solution is to not cache pages that need authentication. On Jul 14, 5:46 pm, the_woodsman <[EMAIL PROTECTED]> wrote: > I know that in the cookbook there's some info on marking particular > sections of a view as  " similarly you coud just set the action as not cached in the Users > contro

Auth + Custom Login + isAuthorized = Infinite Redirect Loop

2008-06-18 Thread Baz L
ain. If I clear out the UsersController::login(), then every thing works fine. Can someone with more experiece help me out, or do I submit a ticket. Any help would be appreciated. -- Baz L Web Development 2.0 http://WebDevelopment2.com/ --~--~-~--~~~---~--~~ You rece

Re: newbie how to update a row with 2 primary keys

2008-04-17 Thread Baz
But wait... isn't food_categories with only 2 columns a HABTM table? Am I missing something here? --~--~-~--~~~---~--~~ 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@goog

Re: newbie how to update a row with 2 primary keys

2008-04-16 Thread Baz
I don't follow. This table (if we're talking about Cake standards and conventions) is a HABTM table. You don't update this manually. Also, these tables don't have primary keys. You would rather change the associated Models. So do a read on your Food table for food_id = 1 and so a Food->category_i

Re: Quick Auth component issue

2008-04-09 Thread Baz
wnloadable code sample) And see if you're missing anything. Good luck. -- Baz L Web Development 2.0 http://WebDevelopment2.com/ On Wed, Apr 9, 2008 at 1:48 PM, Antonio Labriola <[EMAIL PROTECTED]> wrote: > > Hi guys, > > Hopefully someone could have a quick answer for me

Re: Email::send() in a loop. (1.2.x.x)

2008-04-08 Thread Baz L
In the interim I guess you can just set your body manually in the loop. On Apr 8, 1:05 am, CDMoyer <[EMAIL PROTECTED]> wrote: > > Now I'm confusedCDMoyer, you posted the link to the ticket, but did you > > read it? > > > One reply says you need to reset(), the other reply says that the header

Re: Email::send() in a loop. (1.2.x.x)

2008-04-08 Thread Baz
OK, gotcha... Posting fixes here isn't going to help dude...You heed to head over to trac and submit a NEW ticket... On Tue, Apr 8, 2008 at 1:05 AM, CDMoyer <[EMAIL PROTECTED]> wrote: > > > Now I'm confusedCDMoyer, you posted the link to the ticket, but did > you > > read it? > > > > One rep

Re: SaveField creates a new blank row

2008-04-08 Thread Baz L
/viewItem/ > idItem', but in this case, cake or mySQL seem to freak out and execute > random DB saves. I 'solved' the problem just by calling my action with > this link: > > 'items/viewItem/idItem/' > > That's it, that's all it took to fix the

Re: SaveField creates a new blank row

2008-04-07 Thread Baz
I've seen people do this and I've never understood it How are we setting Item->id THEN reading??? What I've always done is: $this->Item->recursive = 0; $itemViewed = $this->Item->read(null, $idItem;); $updatedViews = $itemViewed['Item']['views'] + 1; // Why do we need this if we're using save

Re: beforeFilter on app_controller and on posts_controller?

2008-04-07 Thread Baz
I'm confused. I don't get why you're adding the same beforeFilter() to post_controller However, speaking in GENERAL TERMS: If you set a beforeFilter() in app_controller and also NEED a beforeFilter() in other controllers, you simply need to ensure that in that beforeFilter() you call pare

Re: Email::send() in a loop. (1.2.x.x)

2008-04-07 Thread Baz
Now I'm confusedCDMoyer, you posted the link to the ticket, but did you read it? One reply says you need to reset(), the other reply says that the header problem was fixed 6 months ago... I'm confused. --~--~-~--~~~---~--~~ You received this message because yo

Re: Loosing faith in cake

2008-04-06 Thread Baz
environments, the subject line sets the tone for the entire email. Learn to use it right. Save all the "witty" comments for the body... My 2 cents -- Baz L Web Development 2.0: Web Design, CakePHP, Javascript http://www.WebDevelopment2.com/ On Sun, Apr 6, 2008 at 11:15 AM, Joel Stein

Re: Auth component not hashing all passwords.

2008-04-04 Thread Baz
You are right that it should automatically work like you are expecting > it to, but since the automatic hashing of the password prevents you > from doing any validation on the submitted password, it is probably > preferrable to do it manually anyways. For example, a blank password > val

Re: Auth component not hashing all passwords.

2008-04-04 Thread Baz
Yes, that's what I meanthmmmph...well Do some code dumps in bin.cakephp.org I guess On Fri, Apr 4, 2008 at 1:53 PM, dw <[EMAIL PROTECTED]> wrote: > > Do you mean in the controllers? I do call parent::beforeFilter() in > each of their beforeFilter(). > > On Ap

Re: `useTable = false` and validation

2008-04-04 Thread Baz
You need to override the schema() function for the model. nice example in here... https://trac.cakephp.org/browser/branches/1.2.x.x/cake/tests/cases/libs/view/helpers/form.test.php?rev=6629 On Fri, Apr 4, 2008 at 1:24 AM, jamdown <[EMAIL PROTECTED]> wrote: > > The form comes up OK for me, but m

Re: Model find() to return object; instead of array (?)

2008-04-04 Thread Baz
Just throwing in my two cents, but I've had frequent problems with phpMyAdmin exceeding timeout limits (and once even memory limits) on a shared hosts... So, trying to compare phpMyAdmin with what you're trying to do isn't really fair. All it does are imports and exports (in terms of large process

Re: Auth component not hashing all passwords.

2008-04-04 Thread Baz
In your other models, are you calling parent::beforeFilter() in beforeFilter? On Fri, Apr 4, 2008 at 1:07 PM, dw <[EMAIL PROTECTED]> wrote: > > I have a User model, which has an admin_add function. The user's > password is being hashed just fine. I also have an admin_pw function, > with which a

Re: WAMP and CakePHP

2008-04-03 Thread Baz
If you're new, I'd try XAMPP Lite It includes everything you need, including implementation of sendmail.exe, which gives you a way to send mail through your ISP's SMTP server... On Thu, Apr 3, 2008 at 3:32 PM, bob <[EMAIL PROTECTED]> wrote: > try xampp > > On Thu, Apr 3, 2008 at 1:25 PM, Ste

Re: WAMP and CakePHP

2008-04-02 Thread Baz
Wow Ok, I think your best bet is Xampp Lite http://www.apachefriends.org/en/xampp-windows.html#646 On Wed, Apr 2, 2008 at 1:50 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I like to use InstantRails (http://rubyforge.org/frs/? > group_id=904&release_id=17517

Re: model executing INSERT instead of UPDATE - why?

2008-04-01 Thread Baz
When you do a find it needs to return into something... On Tue, Apr 1, 2008 at 6:08 PM, MarcS <[EMAIL PROTECTED]> wrote: > > I figured $this->id would be set when calling read > > thanks for the answer. > > On Apr 1, 10:44 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > > On Tue, Apr 1, 2008 at

Re: Logical organization best practice

2008-03-31 Thread Baz
Not sure this will help, but here goes: What my Cake experience has shown me is that, there was a lot of stuff that I used to do "manually" that is now made obsolete by CakePHP. I've wasted a lot of trying to to port legacy code into my Cake projects, that I later realized that I didn't need. Off

Re: Auth question in 1.2 Beta

2008-03-31 Thread Baz
You should be able to do just what I said below and in the beforeFilter() of the post controller, change Auth's redirect to /posts/main...don't forget to call the parent beforeFilter though Good luck. On Mon, Mar 31, 2008 at 11:43 AM, Baz <[EMAIL PROTECTED]> wrote: >

Re: Auth question in 1.2 Beta

2008-03-31 Thread Baz
You can't have the login forms action as /posts/main I think what you may need to do is in your *other* login form, change the action /users/login (I'm assuming)... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

Re: Auth question in 1.2 Beta

2008-03-30 Thread Baz
What do you mean display the login form IN /posts/index? Is /posts/index allowed? On Sun, Mar 30, 2008 at 1:28 AM, overeat <[EMAIL PROTECTED]> wrote: > > Hello All, > > I tried to implement the Authentication with the Auth component > following the instruction in the Cookbook. But it's not work

Re: form input background color defaults to yellow?

2008-03-29 Thread Baz
When you view the page, check the source HTML and CSS just to ensure that nothing funky is going on in your code If not, then you might want to disable your Google Toolbar or just ignore the yellow. Google Toolbar has this autofill, that by default highlights fields (firstname, name, address, city

Re: how can i create forms on the fly using ajax without requiring a div container to be previously created?

2008-03-28 Thread Baz
To my knowledge, not from within CakePHP (but this is off the top of my head), because you can only do DOM element updates. You'd have to do some manual Ajax through your JS framework. To catch the ajax response and do an Append to the DOM element instead of a the Replace. Doesn't help much, I'm

Re: Reset Password Tutorial (if anyone needs it!)

2008-03-27 Thread Baz
Um??? You may have your links mixed up, there's nothing there. --~--~-~--~~~---~--~~ 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 To unsubscribe from

Re: looking for a hosting company

2008-03-27 Thread Baz
Nope, you didn't come down too hard on 1and1. But it all depends on what you're trying to do. Frankly, I haven't gotten to the point where I need a VPS yet. All I need is the right shared host to dump some stuff on. I frequently use Wordpress as an informal benchmark. Most shared hosting plans can

Re: Problems with Cake Blog tutorial preventing me from further using Cake

2008-03-23 Thread Baz
I think you missed the point or maybe I wasn't clear. I'm not disputing how people learn. I personally, learned by baking (by far the greatest learning tool I've found in CakePHP). However, you can't go from 0 to 60. Nobody said, study the entire manual. But at least read the section on setup. The

Re: Cakephp using invalid LIMIT on SQL Server

2008-03-10 Thread Baz
Have you guys tried opening a ticket? trac.cakephp.org ??? On Mon, Mar 10, 2008 at 7:23 AM, mikeejay <[EMAIL PROTECTED]> wrote: > > I can't help you, but I have the same problem as you. MSSQL and Cake > does not play along that good =( > It should be really nice if a proper MSSQL support could b

View this page "Cake Apps/Sites In The Wild"

2008-03-09 Thread Baz L
Added: http://www.3HNDesigns.com Click on http://groups.google.com/group/cake-php/web/cake-apps-sites-in-the-wild - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~~---~--~~ You received this message because you are subscribed t

Re: CookBook PDF

2008-03-09 Thread Baz
just me, but slapping my name on that document would feel morally wrong. Everyone is going to take this as a flame to someone trying to help the community. Kudos on the help, but you can't ignore the things that are simply fundamentally wrong with this attempt. -- Baz L Web Development 2.0: W

Re: CookBook PDF

2008-03-09 Thread Baz
lol Didn't even catch that.*tsk* *tsk* *tsk* On Sun, Mar 9, 2008 at 11:53 AM, R. Rajesh Jeba Anbiah < [EMAIL PROTECTED]> wrote: > > On Mar 9, 9:08 pm, koko <[EMAIL PROTECTED]> wrote: > > Hey I've printed the book for my own reading because I don't like to > > read from HTML (the look is

Re: CookBook PDF

2008-03-09 Thread Baz
Koko, I'm curious. What did you use to generate this? On Sun, Mar 9, 2008 at 11:27 AM, Greg Baker <[EMAIL PROTECTED]> wrote: > > Sorry Nate. I really didn't think my request would cause such a > burden. I didn't mean to offend anyone, I was just asking if someone > already had the cookbook in P

Re: CookBook PDF

2008-03-08 Thread Baz
;all need to recruit some more members to the team. All this talk about "community" and "team" usually makes me forget it's really just a handful of you guys working your butts off. With that said, I just wanna say to nate, phpnut, john, etc. all the hard work is MUCH APPRE

Re: Session lost after redirect

2008-03-08 Thread Baz
Damn, that sucks. On Sat, Mar 8, 2008 at 10:43 AM, Action <[EMAIL PROTECTED]> wrote: > > Also, their tech support gave me this response: > > " May I also point out that certain scripting engines that seek to > control "everything" including GPC ($_GET,$_POST, etc) sometimes take > and destroy the

Re: "Fatal error: Allowed memory size of..."

2008-03-07 Thread Baz
try to optimize, but 16 MB?? IMO, not enough. On Fri, Mar 7, 2008 at 12:41 AM, R. Rajesh Jeba Anbiah < [EMAIL PROTECTED]> wrote: > > On Mar 7, 9:01 am, Baz <[EMAIL PROTECTED]> wrote: > > Exhausting 16MB is not impossible. This topic has come up before. I > leave > >

Re: "Fatal error: Allowed memory size of..."

2008-03-06 Thread Baz
Exhausting 16MB is not impossible. This topic has come up before. I leave you with this: Out of the Box, Wordpress uses 5 MB. I run a blog that tops out at 15MB with a nice size database and a ton of plugins. So, for a project that actually DOES stuff, 16MB is simply not enough. On Thu, Mar 6, 20

Re: Checking user session in model

2008-03-06 Thread Baz
Dude, you asked the question. MVC is a nice model, but if you claim you "NEED" something that it doesn't support please understand that it's just a bunch of classes. On Thu, Mar 6, 2008 at 1:01 PM, Novice Programmer <[EMAIL PROTECTED]> wrote: > Hello Baz, > >

Re: Bindable behaviour experts?

2008-03-06 Thread Baz
You don't really supply much useful information. But, maybe you're confused: The bindable behavior doesn't dynamically bind stuff. It *restricts* you to a subset of what is already defined. In other words, you can't add new stuff. So if AssocExpense and Account are not part of original assosiatio

Re: Model->find('list') with conditions

2008-03-06 Thread Baz
Read the api: find('list', array('conditions' => 'my conditions')) On Thu, Mar 6, 2008 at 12:43 PM, Greg Baker <[EMAIL PROTECTED]> wrote: > > Anybody know how to use Model->find('list') but supply conditions to > that? > > Or > > Anybody know how to generate a similar list using another method s

Re: Baking via web

2008-03-06 Thread Baz
Think you got the URL flipped: http://codegen.devayd.com/ On Thu, Mar 6, 2008 at 7:53 AM, DanielZ <[EMAIL PROTECTED]> wrote: > > > > On 6 mar, 13:51, Greg Baker <[EMAIL PROTECTED]> wrote: > > Is it possible to run the bake script through the web? Is it strictly > > a console app? > > Hey, > > ch

Re: Checking user session in model

2008-03-06 Thread Baz
Anything is possible... But I think the general consensus is that you should not. With that said, please remember that with MVC we are still dealing with classes, member variables and methods here. There is nothing stopping you from assigning a Model member variable in your controller, based on

Re: Baking via web

2008-03-06 Thread Baz
Someone had developed a plugin that looked promising. But it wasn't well publicized and had a weird name. Makes finding it rather difficult. On Thu, Mar 6, 2008 at 8:06 AM, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > On Thu, Mar 6, 2008 at 7:51 AM, Greg Baker <[EMAIL PROTECTED]> > wrote: > > > >

Re: CakePHP bleading hedge... relayability

2008-03-05 Thread Baz
Use the pre-beta if you're worried about stability. On Wed, Mar 5, 2008 at 4:04 PM, cakeFreak <[EMAIL PROTECTED]> wrote: > > Hey guys, I'm currently using an intermidiate release in between > CakePHP 1.2-alpha and CakePHP 1.2.pre-beta. > > What about the latest version from the 1.2xxx branch

Re: Bindable with conditions. Any way to get more accurate data?

2008-03-05 Thread Baz
chained tables) > > Do you also use bindable? > > > On Mar 5, 11:19 am, Baz <[EMAIL PROTECTED]> wrote: > > Trust me, revisit the hasOne. > > > > I've been trying to do this for months (include the ugly step through > > hack). The hasOne wo

Re: Bindable with conditions. Any way to get more accurate data?

2008-03-05 Thread Baz
by the query, then do a manual > count or grab the needed data :( > > thanks for any further suggestions... > > > On Mar 4, 1:59 pm, Baz <[EMAIL PROTECTED]> wrote: > > I'm guessing User hasMany Assignements? > > > > You're looking for an IN

Re: Bug? - $form->select() doesn't populate data, but $form->input() does

2008-03-04 Thread Baz
Need to stop banging your head nate, not really good for the frontal lobes. I'm by no means a PHP expert. I also didn't think I need to debug the code to figure out the 'subtle' different between autopopulation of options vs. values. I'm telling you what I see from a beginner's standpoint. All I

Re: Bindable with conditions. Any way to get more accurate data?

2008-03-04 Thread Baz
I'm guessing User hasMany Assignements? You're looking for an INNER JOIN. Currently, CakePHP doesn't support this. You can simulate it, but binding a dummy hasOne on your User model with the Assignment. You'd need to call it something else (hasOne AssignmentDummy), and add a condition: "Assignme

Re: Bug? - $form->select() doesn't populate data, but $form->input() does

2008-03-04 Thread Baz
onfused: the $options parameter > in FormHelper::select() has no parallel in any other form field. > Since $form->select() is a base method and not a wrapper method, it > does not utilize any more magic than necessary. > > > On Mar 4, 1:17 pm, Baz <[EMAIL PROTECTED]> wrot

Re: error of memory???

2008-03-04 Thread Baz
Isn't this a PHP error? Why are we talking bout wording the error message? On Tue, Mar 4, 2008 at 10:04 AM, aranworld <[EMAIL PROTECTED]> wrote: > > Thanks for the clarification. Would this be a better way of wording > this error message? > > Unable to allocate 276481 bytes in C:\VertrigoServ

Re: Bug? - $form->select() doesn't populate data, but $form->input() does

2008-03-04 Thread Baz
his is not a bug. The non-wrapper methods > keep the magic to a necessary minimum. > > > On Mar 4, 1:56 am, Baz <[EMAIL PROTECTED]> wrote: > > Well, that's my question: > > > > Is this is bug (oversight)? $form->text, $form->checkbox both >

Re: Bug? - $form->select() doesn't populate data, but $form->input() does

2008-03-03 Thread Baz
Well, that's my question: Is this is bug (oversight)? $form->text, $form->checkbox both autofill, so should I report this? On Tue, Mar 4, 2008 at 12:34 AM, Samuel DeVore <[EMAIL PROTECTED]> wrote: > > On Mon, Mar 3, 2008 at 11:24 PM, Baz <[EMAIL PROTECTED]> wr

Re: Bug? - $form->select() doesn't populate data, but $form->input() does

2008-03-03 Thread Baz
I take it you meant: $form->select('groups')? That doesn't work either. On Tue, Mar 4, 2008 at 12:19 AM, Samuel DeVore <[EMAIL PROTECTED]> wrote: > > try groups > > > > On Mon, Mar 3, 2008 at 11:07 PM, Baz <[EMAIL PROTECTED]> wrote: > >

Bug? - $form->select() doesn't populate data, but $form->input() does

2008-03-03 Thread Baz
Stumbled onto this, hoping someone could guide me as to what is the expected behavior before I file a ticket in trac: Trying to add a select drop down list: Let's assume, we have a simple model with a belongs_to Group, he we have a group_id. //controller: $group = $this->MyModel->find('list') $t

Re: Form->select() and Form->input() inconsistency

2008-03-03 Thread Baz
Oh...lol, sorryI just re-read what he said On Mon, Mar 3, 2008 at 11:54 PM, Baz <[EMAIL PROTECTED]> wrote: > I'm gonna take a wild guess here, but I think he's talking about > autopouplation, eg: > > controller: $this->set(compact('departm

Re: Form->select() and Form->input() inconsistency

2008-03-03 Thread Baz
I'm gonna take a wild guess here, but I think he's talking about autopouplation, eg: controller: $this->set(compact('departments')); view: $form->select('department_id') as apposed to: $form->input('department_id', array('type' => 'select')); I stumbled upon this over the weekend. It took me a

Re: Model primarykey

2008-02-25 Thread Baz
u have here is that, you can add functionality that you need. If you can add it "elegantly* enough, you can submit it to the core as a patch. If not, just maintain it in your own code base. But to sit and argue with a developer isn't really doing anyone any help. -- Baz L Web Development

Re: Model primarykey

2008-02-25 Thread Baz
I sense nothing but ungratefulness. I, for one, will always appreciate the day that I stumbled onto CakePHP. My Web Development has never been the same. PS: My views and opinions do NOT reflect those of the CakePHP core team in any way. -- Baz L Web Develop

Re: Auth Component (1.2b), writing Auth.redirect to session before it is destroyed

2008-02-25 Thread Baz
->Auth->autoRedirect = true; >$this->Auth->loginRedirect = '/'; >$this->Auth->logoutRedirect = '/'; > >if (in_array(low($this->params['controller']), $this- > >publicControllers)) >{ >

Re: Model primarykey

2008-02-25 Thread Baz
You guys freak me out. I know that CakePHP is a great framework, but if this compound primary key is really that important to you, maybe you should get on the Ruby train. If the framework does not fit your needs, find one that does. I don't see what the big issue is. It's an incovinience. And it'

Re: Ruby on Rails 2.0 Removed Scaffold Generation?

2008-02-23 Thread Baz
d not removed the generator. > Check this: > http://wiki.rubyonrails.org/rails/pages/Scaffold > > Anyway changes in RoR 2.0 are big, but look at Cake 1.2 - some > tutorials from 1.1 also won't work. Every software sometimes get 'big > changes'. > > > >

Ruby on Rails 2.0 Removed Scaffold Generation?

2008-02-23 Thread Baz
Hey all, After much pressure from some of my peers and colleagues, I've decided to take a Ride on the Ruby on Rails train and see where it leads. The stupid train didn't get out of the station, that's where it leads. I was drawn to RoR for a number of reasons: 1. Been hearing about it for age

Re: Auth Component - Should authError be displayed if session times out?

2008-02-23 Thread Baz
Set what in the login? On Sat, Feb 23, 2008 at 3:02 AM, francky06l <[EMAIL PROTECTED]> wrote: > > Actually you could set this in your Login action itself (if > empty($this->data)) .. > Very simple :-) > > On Feb 22, 8:12 pm, Baz <[EMAIL PROTECTED]> wrote: > &

Re: Two things I have not seen support for in Cake (group by and inner join)

2008-02-22 Thread Baz
d continue this in trac? > https://trac.cakephp.org/ticket/4085 > > On Feb 22, 3:51 pm, Baz <[EMAIL PROTECTED]> wrote: > > Didn't I just post an alternative? > > > > On Fri, Feb 22, 2008 at 2:33 PM, rtconner <[EMAIL PROTECTED]> wrote: > > > > &g

Re: Auth Component (1.2b), writing Auth.redirect to session before it is destroyed

2008-02-22 Thread Baz
You can't make statements like "wrong page" etc, if no one has a clue as to what your setup is. At least show your Auth setup. I haven't expirenced your issues (I'm not even sure what your issues are), but there is some funny behavior when the session expires. Basically, I lose my Flash Message w

Re: Two things I have not seen support for in Cake (group by and inner join)

2008-02-22 Thread Baz
Didn't I just post an alternative? On Fri, Feb 22, 2008 at 2:33 PM, rtconner <[EMAIL PROTECTED]> wrote: > > I can't get array('type' => 'INNER') to work wither. > > On Feb 22, 12:26 pm, Baz <[EMAIL PROTECTED]> wrote: > > Maybe t

Re: Do I use component?

2008-02-22 Thread Baz
From what you're suggesting, you may need to take a long look at (Google the heck out of) render->element and RequestAction. Also, read up on caching. Anything pluggable has bee known to cause issues. But rest assured, you'll be fine. I've seen cache times of 1 minute help dramatically. Also (I be

Re: Two things I have not seen support for in Cake (group by and inner join)

2008-02-22 Thread Baz
Maybe the core developers can reveal this mystery about type => 'INNER' I haven't seen this documented any where. And as you can see in the first link sent, I didn't work for me...and there's no response. What did work, is a pseudo INNER join, which get's the job done: http://groups.google.com/g

Re: Inner Join on hasMany

2008-02-22 Thread Baz L
nside the ON ()), so the sql is like this SELECT [...] FROM `requests` AS `Request` LEFT JOIN `dates` AS `Date` ON (...) WHERE (`Date`.`id` IS NOT NULL AND (...)) You can add that through the $conditions parameter of the find method, should be simple enough. On Feb 7, 6:03 am, Baz L <[EMAIL P

Re: Auth Component - Should authError be displayed if session times out?

2008-02-22 Thread Baz
; wrote: > > Actually I can make it more simple, I will think about and post > more ... > > > On Feb 22, 7:01 pm, francky06l <[EMAIL PROTECTED]> wrote: > > I have got it working, not tested all cases ...If Baz and EchoChargen > > try, let me know problem and/

Re: Auth Component - Should authError be displayed if session times out?

2008-02-21 Thread Baz
]> wrote: > > I have made it work, the only thing I had problem was the first time > > on the page but this can be fixed with Baz approach (Cookie). > > Baz if you pass twice in befoeFilter, you can detect it by setting a > > variable (maybe static) in beforeFiler ? >

Re: Site home page question

2008-02-21 Thread Baz
I usaully have a a different layout for my home page which consists of various "elements" and the elements call "requestAction" As Sam said, there's some docs out there about that and problems with efficiency. However, CakePHP has some beautiful caching which makes this livable On Thu, Feb 21

Re: Auth Component - Should authError be displayed if session times out?

2008-02-20 Thread Baz
ed so, flash msg. not written properly. 5. Redirected to Users controller for login on fresh session with no flash. Any ideas? On Wed, Feb 20, 2008 at 5:20 PM, Baz <[EMAIL PROTECTED]> wrote: > They wanted something slightly different in that ticket. And I believe the > functionali

Re: Auth Component - Should authError be displayed if session times out?

2008-02-20 Thread Baz
They wanted something slightly different in that ticket. And I believe the functionality they wanted is already in $this->Session->valid()... I *think* my problem is that beforeFilter() is run twice: once with the invalid session, then another time for another redirect, with a new Session. So when

Re: Poking sticks in wasps' nests

2008-02-18 Thread Baz
Now look what you did, gone and got yourself stung :) Personally, I'm not an advocate of the "go look at the code" thing, thus my preference towards more descriptive doc blocks... However, with specific reference to $form->end(), it doesn't get much clearerIt does the end tag, submit tags, so

Re: Poking sticks in wasps' nests

2008-02-18 Thread Baz
Whoops...reply is a bit out of order...but you catch my drift. On Feb 18, 2008 10:31 AM, Baz <[EMAIL PROTECTED]> wrote: > Don't you just love these types of responses? > > Reading documentation goes a ways in helping your issue with point 1: > Here's the api document

Re: Poking sticks in wasps' nests

2008-02-18 Thread Baz
your boss if you're not slight efficient in it. And finally...if you don't like it, don't use it...the framework is flexible enough with respect to this (IMO). Or shoot, just don't use it period. Compared to some other frameworks I've seen, CakePHP does "enforce"

Re: How does Cakephp call header and footer and change colors, fonts?

2008-02-16 Thread Baz
Please, at least _glance_ at the manual before asking here. http://book.cakephp.org/ for 1.2 beta http://manual.cakephp.org for 1.1 On Feb 16, 2008 11:44 PM, sixs <[EMAIL PROTECTED]> wrote: > Hi, > I want to change the format of the pages in my project that I created > using Cakephp. Do I have l

Re: 1.2 Beta Auth Component, Allowing root to be public

2008-02-16 Thread Baz
I'm still not satisfied with the response to you first question about Session expiring with no Message.auth. If no one replies, I'll post to trac. On Feb 16, 2008 2:50 PM, Chris Hartjes <[EMAIL PROTECTED]> wrote: > > On Feb 16, 2008 3:48 PM, Rod D. <[EMAIL PROTECTED]> wrote: > > > > That did it.

Re: 1.2 Beta Auth Component, Allowing root to be public

2008-02-16 Thread Baz
I'm guessing your using the pages controller? Else I don't see what the problem would be. So, $this->Auth->allow('display'); should give you what you're looking for. On Feb 16, 2008 2:30 PM, Rod D. <[EMAIL PROTECTED]> wrote: > > 1.2 Beta Auth Component, Allowing root to be public > Cake: 1.2.0.6

Re: Need a forgot password tutorial

2008-02-16 Thread Baz
I have something that I'm using. I'm assuming that you are using the Auth component? On Feb 16, 2008 11:31 AM, Manu0310 <[EMAIL PROTECTED]> wrote: > > Hey does any1 have a tutorial on how to create a simple forgot > password form. > > One email form field that submits the user email, if in system

Re: Auth Component - Should authError be displayed if session times out?

2008-02-16 Thread Baz
Nice catch. Could be a bug, could someone with more experience check please? This is what I've found: I've debugged and haven't been able to find much, sorry. But this is what happens to me: - I login normally - Sit and expire the session - Try to access somewhere and get redirected to

Re: Secure installation on a shared webhost

2008-02-15 Thread Baz
You need to be more specific with your question. CakePHP isn't much different to dropping in phpBB or something, with respect to security (sort of). You follow the same basic rules: Cake sure only the appropriate files and directories are writable (/app/tmp/*), and that's it. Not much difference.

Re: Primary Keys

2008-02-14 Thread Baz
I'm curious to see some of the other responses, but here's mine. I don't think I understand what you're trying to accomplish. If you build an application in Cake, then no end user sees the resulting SQL, what the keys are shouldn't matter. What I _think_ you're saying is that OUTSIDE of Cake, you

Re: Is JQuery replacing Prototype in cake?

2008-02-14 Thread Baz
Hey, Good times! There are a lot of arguments as to which of these frameworks is better. But IMO, I think JQuery is better suited to CakePHP's uses. Just need to include the form plugin (can't live without it). Currently, I just dump a JS block at the top of my view/element when needed and make s

Re: 500 errors with Dreamhost?

2008-02-14 Thread Baz
That thread doesn't list a solution though. I'm on DreamHost using __() and have no problems. The only thing I have slightly different is that I point all my sites directly to webroot/. On Thu, Feb 14, 2008 at 8:38 AM, MattC <[EMAIL PROTECTED]> wrote: > > I think this issue has come up before.

Re: 500 errors with Dreamhost?

2008-02-14 Thread Baz
Check your permissions: /tmp etc.. And clear those folders. I've experienced weird things if I upload old tmp/cache files from local On Thu, Feb 14, 2008 at 4:54 AM, frederic bollon <[EMAIL PROTECTED]> wrote: > > I'm running CakePHP 1.1.x application on Dreamhost with the > original .htaccess w

Re: 1.2 Beta Auth Logout problems

2008-02-13 Thread Baz
g: if ($this->Auth->user()) $this->disableCache(); On Feb 13, 2008 9:13 PM, Rod D. <[EMAIL PROTECTED]> wrote: > > Baz, > Awesome. I can totally blame IE because I just updated my version of > Firefox, ran it through and everything works just like it is supposed

Re: 1.2 Beta Auth Logout problems

2008-02-13 Thread Baz
app_controller() if you don't. As, I said before. IE sucks, it caches stuff it shouldn't be. If you insist on using it for testing, on the action that should not be allowed: refresh the browser and see what happens. On Feb 13, 2008 8:04 PM, Rod D. <[EMAIL PROTECTED]> wrote: >

Re: 1.2 Beta Auth Logout problems

2008-02-13 Thread Baz
Are you in internet explorer? IE has a nasty habit of caching stuff it shouldn't. Also, you didn't look at my last response... Answer those 4 questions and i'll be able to help. On Feb 13, 2008 4:56 PM, Rod D. <[EMAIL PROTECTED]> wrote: > > Unfortunately that did not solve the problem. > I rep

Re: 1.2 Beta Auth Logout problems

2008-02-13 Thread Baz
Questions: 1. Is $this->Auth->autoRedirect = false ??? 2. In your controllers are you overriding beforeFilter? 3. If yes to 2. are you calling parent::beforeFilter()? 4. If yes to 1. are you calling ? $this->Auth->logout() ??? On Feb 13, 2008 4:36 PM, Rod D. <[EMAIL PROTECTED]> wrot

Re: UUID as primary key

2008-02-13 Thread Baz
So, what's your question? On Feb 12, 2008 4:41 PM, Aaron Shafovaloff <[EMAIL PROTECTED]> wrote: > > On this page (http://bakery.cakephp.org/articles/view/uuid-behavior) I > saw the following: > > "Last cake 1.2 build support uuid for your primary key column. You > just need have field ID with typ

Re: Total noob question (I've searched and searched).

2008-02-12 Thread Baz
So do you think the find('all'... + set::combine > approach is the best way to go about this? > > -B > > ps don't worry, i'll still donate :) > > On Feb 12, 3:51 pm, Baz <[EMAIL PROTECTED]> wrote: > > that too... > > > > On Feb 12,

Re: Total noob question (I've searched and searched).

2008-02-12 Thread Baz
that too... On Feb 12, 2008 3:31 PM, cartosys <[EMAIL PROTECTED]> wrote: > > I got it! It's in the models! Awesome: > > //model type.php > > $displayField = 'type'; > > > easy as that! > > > -B > > > > --~--~-~--~~~---~--~~ You received this message because you a

Re: Total noob question (I've searched and searched).

2008-02-12 Thread Baz
the array structure So what I have about will work for [0][UrlsUser][Type][id]If your data is different just make the strings match. Why do you need this? ->find('list') automatically setups up IDs with another field called 'title/name' (maybe some others). If not, it us

  1   2   3   4   >