Re: What is MVC?

2015-01-13 Thread Tim Dunphy
View Controller" certainly couldn't hurt! ;) Tim On Tue, Jan 13, 2015 at 6:11 AM, Gowthaman Suriya < gowthaman.sur...@gmail.com> wrote: > Hi, friends. > > Anyone can explain about this clearly?. Why did they implement MVC concept > in cakePHP?. > > Than

CakePHP Developer Miami (open position)

2014-04-20 Thread Tim Savage
[image: CakePHP Team Miami]CakePHP Developer Team Miami Open Position *The Job:* *We are on the lookout for someone who loves CakePHP and challenges themselves to always build something awesome. *You will dive ri

Re: Vaga CakePHP Rio de Janeiro

2014-04-02 Thread Tim Dunphy
Cool job! Requires a LOT of very cool knowledge and skill. But at the pay they're offering, you'd have to live in Rio's favelas (dirt poor neighborhoods). These people are asking for the sky, and offering almost nothing in return. I'd pass on this if I were you!! Sent from my iPhone > On Apr 2

Re: Our CakePHP app

2014-01-14 Thread Tim Denholm
This is a really cool idea! A couple more questions for my own interest: - Which features of CakePHP contributed the most value to your development of the app? - How long did it take you to get it to where it is today? On Tue, Jan 14, 2014 at 7:50 PM, DerekGardiner wrote: > Really co

Re: Restrict access subFolder under webroot.

2012-12-12 Thread Tim Denholm
event your users from viewing your website/application correctly. Cheers, Tim On Wed, Dec 12, 2012 at 8:33 PM, Rajib Mahmud wrote: > Dear all, > Thanks in advance. My problem is that if someone tries to put the URL like > http://test.com/css_or_js_or_otherFolder then it goes directly

Re: Cake PHP v 2.2.4 - Newbie, blog tutorial does not work?

2012-12-10 Thread Tim Denholm
Hi Paul, could you please include the contents of your PostsController.php file. Cheers On Tue, Dec 11, 2012 at 1:44 PM, Nathaniel Sumaya wrote: > If you are using IIS refer here . > Otherwise cookbook is > sufficient

Re: Listing menu items from database to layout file

2012-12-07 Thread Tim Denholm
; 'posts', 'action' => 'tutorials'), 'options' => array('class' => 'button2') ), array('title' => 'Munkaim', 'url' => array('controller' => 'posts', 'action' => &#

Re: Listing menu items from database to layout file

2012-12-06 Thread tim
27;,'url' => array('controller' => 'users', 'action' => 'add')), ) ); print $this->Menu->render($menu); I recommend reading this for a better understanding of MVC (http://book.cakephp.org/2.0/en/cakephp-overview/understa

Re: Listing menu items from database to layout file

2012-12-06 Thread Tim Denholm
rray('controller' => 'users', 'action' => 'add')), ) ); print $this->Menu->render($menu); I recommend reading this for a better understanding of MVC ( http://book.cakephp.org/2.0/en/cakephp-overview/understanding-model-view-controller.html). It

Re: Upload a flat file into related tables

2012-09-07 Thread Tim
= "SELECT f1,f2 FROM table WHERE f1=$row[0] AND f2=$row[1]; if (yes) { prompt user if ok to load; with a form? } else { continue; } } I know that's not very Cake like. That's why I'm asking. How would you do this in Cake? Thanks, Tim On Wednesday, Septem

Upload a flat file into related tables

2012-09-05 Thread Tim
d make a upload Model? Or should I add methods to my existing Models and somehow use them from the upload Controller? And how do I do the prompting to overwrite existing records? Thanks, Tim -- You received this message because you are subscribed to the Google Groups "CakePHP" group

Paginate - conditions of linked model

2012-04-27 Thread Tim Nijssen
27;all'); I'm using CakePHP 2.1 now and I want the same result with paginator. Can someone help me to setup the controller? Thanks, Tim. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakep

Re: How To Write Programme In PHP?

2012-01-07 Thread Tim Dunphy
Best online tutorial I've found, in my humble opinion is on Tizag.com http://www.tizag.com/ Best of luck to you! tim On Wed, Dec 28, 2011 at 9:37 PM, sudarshana sampath wrote: > Hi, > > go through the PHP manual, it is the most suitable place for PHP newbie. > http://www.

Re: can't connect to db

2011-11-05 Thread Tim Dunphy
whoops! silly me! I forgot to install the php-mysql extension! I did that and now it's working. So thanks for your help! tim On Sun, Nov 6, 2011 at 12:04 AM, Andras Kende wrote: > I think you need mysql.so extension for the cake 1.3 > and pdo_mysql.so for cake 2.0 > Just paste t

Re: can't connect to db

2011-11-05 Thread Tim Dunphy
PHP Fatal error: Call to undefined function mysql_connect() in /var/www/cakephp-cakephp-73205dc/mysql.php on line 2 any thoughts? thanks! On Sat, Nov 5, 2011 at 11:48 PM, Tim Dunphy wrote: > Thanks for that! It seems that php can't find it's pdo librarries > > > [root@clo

Re: can't connect to db

2011-11-05 Thread Tim Dunphy
ie(mysql_error()); > echo "Connected to Database"; > ?> > > 'Andras Kende > http://www.kende.com > > On Nov 5, 2011, at 10:25 PM, Tim Dunphy wrote: > >> Hello and thanks for your reply.. >> >> I tried removing the port

Re: can't connect to db

2011-11-05 Thread Tim Dunphy
Hello and thanks for your reply.. I tried removing the port setting as you've suggested and moved from cake 1.3 to cake 2.0 but the result was the same! class DATABASE_CONFIG { public $default = array( 'datasource' => 'Database/Mysql', 'persistent' => fals

Connect CakePHP to REST application (Toodledo)

2010-04-11 Thread Tim
tween example.com and Toodledo expires) 4. The Key is referenced for every API call within the next 4 hours. What I don't know how to do. 2a. Submit something to another site. 2b. Properly parse the returned XML Tag td34234235234234 3. Securely store a Key & Timestamp within the session. Cheer

Re: Pizza Online Order Notification?

2009-09-16 Thread Tim
Thanks Martin - I love that ajax poll idea. It also does what Aivaras suggested to keep the session alive. Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to

Re: Pizza Online Order Notification?

2009-09-16 Thread Tim
Thanks for the replies. The IP restriction was since the employees know (or probably find out) the password. They don't want a situation where they fire somebody and they have to worry about that person logging in from home and messing with orders. The IP restriction would be an extra layer of sec

Re: Official forum for CakePHP

2009-07-10 Thread Tim
I just wish google groups didn't suck - no code formatting and no ability to edit posts. Google lets me edit excel sheets and search a billion files but I can't edit my posts? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google G

How much to donate to CakePHP???

2009-05-21 Thread Tim
I am finishing up some cake projects and I am going to donate a small amount back to the community. What is a reasonable amount to ask my company to donate for each project completed in cake? What amounts have you guys donated in the past? I assume the donations go for developer pizza parties? --

saveAll & Edit - Creates instead of Updating even with passed IDs

2009-05-18 Thread Tim
This passes the ID for the "Promotion" properly but not for the associated title and body: - $this->Promotion->id = $id; // Set the IDs so we update rows instead of creating new ones. $current = $this->Promotion->

HELP - Search & Pagination on three different models

2009-04-29 Thread Tim
I already have this and it works: $this->paginate['conditions'] = "MATCH($options) AGAINST('$search' IN BOOLEAN MODE)"; $this->set('projects', $this->paginate()); What I need now is a search page that will do the same search but on three different tables. I made a search model/view/controller an

Freelancer Wanted

2009-04-14 Thread Tim
First off - This is not a cake project. I am posting here because I respect the cake community and I would like to offer this work to someone in this community first. So please refrain from the "post somewhere else" replies. Here is the site in question: https://www.brevardcounty.com/directory/me

Pagination with Random Order?

2009-03-25 Thread Tim
So I have a list of 50 products. I need to display 5 pages of 10 products each. They need to be in random order so no product has priority. I have everything built with sorting. pagination and other options but I'm not sure how to handle this... can it be done? --~--~-~--~~---

Pagination: 'Location.Title.title' ????

2009-03-08 Thread Tim
How come this works: echo $paginator->sort('Position Title','Title.title'); but this doesn't? echo $paginator->sort('Position Location','Location.Title.title'); It just ends up linking to: http://xxx.com/positions/index/page:1/sort:Location.Title/direction:asc Is there a simple way to ge

Model Q: HABTM association the right way to go?

2009-02-26 Thread Tim
I'm not new to cake but I've never gotten into the associations and I'm a little bit confused: I have several tables: - Projects - Systems - Organizations - Volunteers - Students - Computers - Divisions and - Location Each table will be able to have a location so they all have a "location_id" f

Re: How do I use "find" to retreive data from multiple tables

2009-01-21 Thread Tim Banks
Try binding the model temporarily like this: //temporary binding to the user table to query on a user $this->Site->bindModel(array('hasOne' => array('SiteUser'))); I have used this and it works in similar situations. -Tim --~--~-~--~~~-

Sanitize Question

2008-12-19 Thread Tim
I want to sanitize the post before working with it or saving it to the database. Like this: data['Upload'] = Sanitize::clean($this->data['Upload']); ?> I have two questions: 1) Is this even necessary? Is this going to do anything for me or is it already being done? 2) After I change "<>$%$" to t

Re: Security handling details - customers keep asking!!!

2008-11-27 Thread Tim
I was thinking that Cake was at least automatically sanitizing the post variables and the like. I can't believe that there isn't more info on security on the cake website. How secure are the login and ACL components? Can I rely on them to be solid? Thanks Adam! --~--~-~--~~--

Security handling details - customers keep asking!!!

2008-11-26 Thread Tim
I am looking for a webpage or something that details what security issues Cake handles. Customers ask how secure their sites are going to be and I assure them that since I'm using the CakePHP framework that their site is being built on a secure foundation. I need some details though. I looked thro

Re: How to perform find without redundant model name in results array

2008-06-17 Thread Tim Fisken
On Jun 17, 9:24 am, "b logica" <[EMAIL PROTECTED]> wrote: > On Fri, Jun 13, 2008 at 8:34 PM, Tim Fisken <[EMAIL PROTECTED]> wrote: > > this case. Odd as it might seem, it would be better, and more > > consistent, if Cake produced an array like this: > &g

Re: How to perform find without redundant model name in results array

2008-06-14 Thread Tim Fisken
On Jun 12, 12:54 pm, AD7six <[EMAIL PROTECTED]> wrote: > It's redundant only if you have no model associations unless you want > to risk for example, Post.comment being impossible to access. But shouldn't this logic also apply to associated models. Currently, if you have a post and its comments,

Re: How to use several languages in cakePHP?

2008-05-21 Thread Sliv (Tim MacAleese)
http://book.cakephp.org/view/161/localization-internationalizat On May 22, 2:42 am, Margarittka <[EMAIL PROTECTED]> wrote: > Hello! > I need to write site with support of 3 languages. Differences of parts > are only in files with constants. How can i realize this in optimum > way? --~--~-

Re: how to customize the debug output

2008-05-21 Thread Sliv (Tim MacAleese)
I just read this article: http://bakery.cakephp.org/articles/view/tidy-output-filtering I also posted a link to a code paste of mine which is a modified approach. Using this approach will bring the trailing SQL debug output into the body tag. I just wanted to post back to this thread because w

Re: General purpose page / design issues

2008-05-21 Thread Sliv (Tim MacAleese)
As for posting convention, well, google doesn't care which message you reply to in a thread and will put your post at the end of the thread as far as it displays in the web view (not sure about the email view). As for $this->renderElement, just want to point out that this has just been deprecated

Re: Playing with Cake: how to hack into Cake's core within 20 lines codes

2008-05-21 Thread Sliv (Tim MacAleese)
Just remember that there is an inline comment before that line that says "DO NOT EDIT BELOW THIS LINE". Probably not there arbitrarily, so ignore at your own risk ;) On May 20, 12:27 pm, RainChen <[EMAIL PROTECTED]> wrote: > Some times I want to add some methods or common attributes to all > Cak

Re: Admin Routing Problem

2008-05-21 Thread Sliv (Tim MacAleese)
If you're using the Auth component with admin routing, you might want to review this recent ticket to see if it applies to you: https://trac.cakephp.org/ticket/4708 On May 20, 2:54 pm, "Joel K." <[EMAIL PROTECTED]> wrote: > Hello, > > I'm using admin routing for a personal site that I'm building

Re: oracle connection

2008-05-21 Thread Sliv (Tim MacAleese)
Do you mean it says "your database configuration file is NOT present"? If it's present, then what does it say about being able to connect to your database? On May 20, 3:15 pm, Valerio <[EMAIL PROTECTED]> wrote: > Hi, I'm a new cakephp developer... I'm trying to connect to an Oracle > db but it

Re: A couple thoughts? Your suggestions?

2008-05-21 Thread Sliv (Tim MacAleese)
You may want to consider submitting enhancement tickets for 2.0 (enhancements are closed for 1.1 and 1.2). However, I would offer one tiny bit of advice: Don't say "framework X has this, so I think cake should have it", because that is going to get you nowhere fast. Instead, just say "I think c

Re: Fatal error: Class 'Behavior' not found in console.php line 65

2008-05-21 Thread Sliv (Tim MacAleese)
Or does it still say 6311 even on the latest, I don't know so I'll just get more coffee :/ --~--~-~--~~~---~--~~ 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.c

Re: Fatal error: Class 'Behavior' not found in console.php line 65

2008-05-21 Thread Sliv (Tim MacAleese)
I haven't seen that myself, but I noticed 1.2.0.6311 You might want to try updating to SVN 6991+ Maybe something was fixed in the 680 revisions to the core since the version you're using :P --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: Implementing Cake alongside/within an existing application

2008-05-21 Thread Sliv (Tim MacAleese)
Two projects that come to mind which you will probably want to review: Drake (drupal with cake) http://dev.sypad.com/projects/drake/ Jake (Joomla with cake) http://dev.sypad.com/projects/jake/ On May 21, 5:55 am, boyracerr <[EMAIL PROTECTED]> wrote: > I've recently been brought in on a project

Re: Drop down values problem

2008-05-21 Thread Sliv (Tim MacAleese)
Based on your question, I strongly suggest you use bake to generate a basic foundation of code to get you started: http://book.cakephp.org/view/113/code-generation-with-bake On May 21, 8:03 am, vishal <[EMAIL PROTECTED]> wrote: > Hi friends, > I am new on this forum.can anybody he

Re: new error

2008-05-20 Thread Sliv (Tim MacAleese)
Looks like your tmp folder isn't writeable by your web server On May 20, 3:12 am, Raistlin Majere <[EMAIL PROTECTED]> wrote: > I am getting: > > Warning: file_put_contents(/home/emmettbr/public_html/CakePHP/ > opinionsofamateurs/tmp/cache/models/ > default_emmettbr_toreadandtowrite_list) [functio

Re: file handling from cake

2008-05-20 Thread Sliv (Tim MacAleese)
Have a look at the File class: http://api.cakephp.org/1.2/class_file.html On May 20, 6:35 am, oana <[EMAIL PROTECTED]> wrote: > Hello everyone, > > I would like to know iwhat would be the way to follow if i want to > create a file from within a cakephp page. > > The situation is like this: i ha

Re: fieldset display:none inserted within $form->create

2008-05-20 Thread Sliv (Tim MacAleese)
You mean the fieldset? That's by design. There's no elegant override afaik. On May 20, 1:13 am, Brian Rojas <[EMAIL PROTECTED]> wrote: > I use the $form->create method in 1.2 like so: > > create(null,array('url' => array('controller' => > 'pages', 'action' => 'contact'), 'id' => 'ContactMiniFor

Re: Making Paginator first sort direction DESC

2008-05-20 Thread Tim W
t direction to be desc instead of asc. On May 8, 12:35 am, Tim W <[EMAIL PROTECTED]> wrote: > Thanks Marcin. > > I don't think i've been entirely clear. I can easily set the sort > order programmatically, but when the user first clicks on a link to > sort a column i

Re: Working 1.2 Auth with "remember me" feature

2008-05-14 Thread Tim W
Here's an updated function to support the good Dr Lecter's idea of resetting the cookie each time the user logs in. I'm fairly sure it works... function loginFromCookie() { $cookie = $this->Cookie->read('Auth.User'); if (!is_null($cookie)) { if ($this->Auth->login($cookie)) { //

Re: Working 1.2 Auth with "remember me" feature

2008-05-13 Thread Tim W
-for-cakephp > > Basically the same functionality as yours (+ the extra "continuous > remembering"), but I don't have a working example with all the views > etc. > > HTH someone too ;-) > > On May 13, 12:42 pm, Tim W <[EMAIL PROTECTED]> wrote: > &g

Working 1.2 Auth with "remember me" feature

2008-05-13 Thread Tim W
Cake 1.2 Auth is still pretty badly documented, but between a half dozen articles I managed to get it all working. None tell the full story though, and I don't fully understand it, but I have working code I thought i'd share. I may post a bakery article if I get time. For now this should help some

Re: Accessing views from Cake - problem with array nesting

2008-05-10 Thread Tim W
ssage- > From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim W > Sent: 10. maj 2008 16:03 > To: CakePHP > Subject: Accessing views from Cake - problem with array nesting > > Hi all, > > I've just spent a hour or so tracking down an issue befor

Re: Accessing views from Cake - problem with array nesting (with workaround or solution)

2008-05-10 Thread Tim W
[id] => 11 [added_by_user_id] => 1 Once it's written out like this the problem and solution becomes obvious(my excuse is it's 2am) - change $image['ModelName'] to $image[0] Hope this helps someone out, and maybe someone will work out a patch one day. Cheers Tim On

Accessing views from Cake - problem with array nesting

2008-05-10 Thread Tim W
ation or workarounds? I don't like to change the cake core as it makes upgrading more difficult - i'm on version 1.2.0.6311 beta. Thanks Tim --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP"

View this page "CakePHP Unofficial Resources"

2008-05-09 Thread Sliv (Tim MacAleese)
-Added links to free virtual appliances for developing with CakePHP -Alphabetized, categorized, formatting cleanup Click on http://groups.google.com/group/cake-php/web/cakephp-unofficial-resources - or copy & paste it into your browser's address bar if that doesn't work. --~--~-~--~~

Re: OT: Shitty Community

2008-05-08 Thread Sliv (Tim MacAleese)
He got all the responses because he's trolling. I for one, have finished feeding it. --~--~-~--~~~---~--~~ 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

Re: Getting Cake build version?

2008-05-08 Thread Sliv (Tim MacAleese)
Neither of those methods tell you the exact revision, though, just the last release version. --~--~-~--~~~---~--~~ 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

Re: Getting Cake build version?

2008-05-08 Thread Sliv (Tim MacAleese)
My personal thought is you should keep your app and your cake core separate - then you can just delete the core and replace it with a fresh update without touching your app. The http://book.cakephp.org installation section explains how to keep them separate. I'm not aware of a simple way to chec

Re: What kind of authentication script?, tutorial? do you use?

2008-05-08 Thread Sliv (Tim MacAleese)
I started off a long time ago trying othAuth, obAuth, (can't remember all the different names, but I tried several). The problem I ran into is that you are then stuck if you upgrade your core and whatever script you chose happens to break because it used overrides or hacks or whatever. Or, the s

OT: JQuery Group > CakePHP Group

2008-05-08 Thread Sliv (Tim MacAleese)
... --~--~-~--~~~---~--~~ 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 group, send email to [EMAIL PROTECTED] For more options, vis

Re: OT: Shitty Community

2008-05-08 Thread Sliv (Tim MacAleese)
kumbayah. > > How about we try to be polite even if the other person isn't? That > goes for both sides. > > -- John --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email t

Re: OT: Shitty Community

2008-05-08 Thread Sliv (Tim MacAleese)
I have to agree with Gwoo, I haven't seen any replies that weren't appropriate to the post being replied to. If you write a post that shows you haven't read the welcome blurb posted on the group front page that tells you to search first before asking, and links to the wiki pages with a ton of inf

Re: 1.2 Documentation has made amazing progress

2008-05-08 Thread Sliv (Tim MacAleese)
Yes, indeed, I use it a lot too - maybe at some point there will be a way to mirror it to contributed servers so it doesn't get too slow due to the size and number of people using it :P --~--~-~--~~~---~--~~ You received this message because you are subscribed to t

Re: Something on the top of CakePHP

2008-05-08 Thread Sliv (Tim MacAleese)
An example further to Chris' point is a recent discussion I had with Nate - I ran into an issue where I passed an IP address through built- in IP validation then used ip2long to convert it so I could store it in a MySQL signed INT. I noticed that an IP written like 255.255.255.011 would pass vali

Re: One more 5875->6311 migration question

2008-05-07 Thread Sliv (Tim MacAleese)
At last, an opportunity to paste a link to Chris' new about page kitteh! http://www.littlehart.net/atthekeyboard/about/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send ema

Re: adv routing questions ....i think

2008-05-07 Thread Sliv (Tim MacAleese)
> 3. wait for this to be fixed in cake core? I don't think that will happen unless: 1) It doesn't break something the Core Devs are concerned about (like backwards compatibility or something) 2) A ticket was opened with a test case, a patch and a good argument This is just my speculation, of co

Re: adv routing questions ....i think

2008-05-07 Thread Sliv (Tim MacAleese)
params['url']['url'] == > 2. some routes + controller magic - (can you explain more on this > Tim?) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to t

Re: AJAX updating a field.

2008-05-07 Thread Sliv (Tim MacAleese)
Well the first thing that seems wrong is your vote method is setting ajaxVote to 555 no matter what. Maybe you want to set that to the passed value instead... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP

Re: Is the documentation at book.cakephp.org open source?

2008-05-07 Thread Sliv (Tim MacAleese)
It's my understanding that part of the idea behind the cookbook submission process was to migrate the "flood" of documentation tickets away from trac. Unless you're talking about a separate trac repo/site. > Would the trac model work? --~--~-~--~~~---~--~~ You rec

Re: RSS feeds : Something is wrong with Thunderbird

2008-05-07 Thread Sliv (Tim MacAleese)
Have you run this through a feed validator like http://validator.w3.org/feed/ It might flag something... --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php

Re: Warning message infecting thumbnail images occasionally

2008-05-07 Thread Sliv (Tim MacAleese)
post code here http://bin.cakephp.org and then post the URL to the group. --~--~-~--~~~---~--~~ 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

Re: adv routing questions ....i think

2008-05-07 Thread Sliv (Tim MacAleese)
If you look here: https://trac.cakephp.org/ticket/3567 You'll see Gwoo stating that you can organize your code into folders, but the URL will not change. I gather this means you may want to try either unique controllers, or a combination of routes and method logic in your controllers to handle t

Re: Is the documentation at book.cakephp.org open source?

2008-05-07 Thread Sliv (Tim MacAleese)
I gather the overall feeling is just that feedback be provided on all submissions, whether negative or positive, so submitters know the deal. I myself have made some contributions, some reject, some approved, some into the void of no response. Personally, I don't care whether something is approv

Re: RSS feeds : Something is wrong with Thunderbird

2008-05-07 Thread Sliv (Tim MacAleese)
I think your subject is the answer? :P --~--~-~--~~~---~--~~ 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 group, send email to [EM

Re: Something on the top of CakePHP

2008-05-07 Thread Sliv (Tim MacAleese)
What I still don't understand, is all the people that make these huge plans that involve massive amounts of work, yet I don't see these people doing arguably way less work to write test cases and patches for bugs/enhancements. Is it because these people only want to develop if they're in total co

Re: Making Paginator first sort direction DESC

2008-05-07 Thread Tim W
d with the cake source, or doing it myself, I just wondered if there was a way built in, since it'd probably be a pretty common thing to try to do. If not i'll add it and see if I can work out how to submit a change request. Cheers Tim On May 7, 10:33 pm, "Marcin Domanski"

Re: Making Paginator first sort direction DESC

2008-05-07 Thread Tim W
Thanks for the suggestion, but unfortunately it didn't work for me. SQL Error: 1054: Unknown column 'DESC' in 'order clause' I'll spend some time to work this out at some point, i'll post when I do, unless someone's worked it out already and can tell me.

Making Paginator first sort direction DESC

2008-05-06 Thread Tim W
t be possible, but I haven't worked it out. Does anyone know if this is possible? Thanks TIm --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@g

Re: Models getting lost on same page reload

2008-04-10 Thread Tim
Why did the baker have brown hands? Because he kneeded a pooh! --~--~-~--~~~---~--~~ 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 thi

Models getting lost on same page reload

2008-04-10 Thread Tim
I am including these models in my controller: "var $uses = array('Contractor','User','Address','Phone');" and everything works fine until the page reloads after the form was submitted. On reload the page seems to lose the added models and gives me errors: "Notice (8): Undefined index: User [APP/

Re: 1.2 validation - may be blank, but if filled in must be a decimal

2008-03-28 Thread Tim W
Ah that's even better, thank you grrigri, you've made my life a little easier :-) Tim On Mar 28, 10:40 pm, grigri <[EMAIL PROTECTED]> wrote: > All validation entries have an `allowEmpty` parameter that says > whether the field must be filled in or not. An empty field will

Re: 1.2 custom validation methods for multiple fields

2008-03-28 Thread Tim W
echo ''; // Sample code to invalidate one field and make validation fail $this->invalidate('field_Name', 'messageKey'); // messageKey can be the error message or the key to the error message in the messages array (see 1.2 validation documentation) re

1.2 custom validation methods for multiple fields

2008-03-28 Thread Tim W
rk out how to access multiple pieces of data from the method. Thanks Tim --~--~-~--~~~---~--~~ 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 u

Re: 1.2 validation - may be blank, but if filled in must be a decimal

2008-03-28 Thread Tim W
t wrote my own since it was trivial and quicker. I'm still interested to hear a better way to do this, if one exists :) Tim On Mar 28, 8:56 pm, Tim W <[EMAIL PROTECTED]> wrote: > Hi all, > > I have some data that's optional, but if it's filled in it must be a > dec

1.2 validation - may be blank, but if filled in must be a decimal

2008-03-28 Thread Tim W
t in validation code. Thanks Tim --~--~-~--~~~---~--~~ 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 this group, send email to [

Cake core code infinite loop/recursive rendering issue

2008-02-18 Thread Tim W
es it than just adding a flag. if ($layout && $this->autoLayout) { // view.php line 347 $out = $this->renderLayout($out, $layout); I'm using Cake 1.2.0.6311-beta on Windows XP with the WAMP stack (PHP 5.2.5, mySql 5.0.45, Apache 2.2.6). Any thoughts or help would be appreciat

Re: Auth 1.2 - login only if user state = activated?

2008-02-15 Thread Tim W
I just tried it and it works perfectly, thank you Grigri. And wow, quick replies! :) On Feb 15, 11:51 pm, grigri <[EMAIL PROTECTED]> wrote: > Just set $this->Auth->userScope = array('User.state_id' => WHATEVER); > in your controller's beforeFilter callback. &g

Re: Auth 1.2 - login only if user state = activated?

2008-02-15 Thread Tim W
That sound easy, i'll give it ago, thanks Grigri :) On Feb 15, 11:51 pm, grigri <[EMAIL PROTECTED]> wrote: > Just set $this->Auth->userScope = array('User.state_id' => WHATEVER); > in your controller's beforeFilter callback. > > On Feb 15, 10:43 am

Re: Auth 1.2 - login only if user state = activated?

2008-02-15 Thread Tim W
uot;Dardo Sordi Bogado" <[EMAIL PROTECTED]> wrote: > Use AuthComponent::$userScope = array() // accepts conditions in the > same way that Model::findAll() > > On Fri, Feb 15, 2008 at 8:43 AM, Tim W <[EMAIL PROTECTED]> wrote: > > > Hi all, > > > My use

Auth 1.2 - login only if user state = activated?

2008-02-15 Thread Tim W
nditions is a null parameter) 77: $data = $model->find(array_merge($find, $conditions), null, null, -1); If I could work out how to pass a condition in that would do the job. Has anyone done it? Thanks Tim --~--~-~--~~~---~--~~ You received this message beca

Re: AppModel retaining previous insert ID

2008-02-06 Thread Tim W
Thanks Samuel, I didn't think to check if there was a create type method, cheers :) On Feb 7, 3:00 pm, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > I usually use $this->ModelName->create(); > > On Feb 6, 2008 5:50 PM, Tim W <[EMAIL PROTECTED]> wrote: &g

AppModel retaining previous insert ID

2008-02-06 Thread Tim W
fixed the issue, and made the model do an insert instead of an update. This feels like a hack though, and I don't like hacks, they often come back to bite you later. Does anyone know why the model's retaining this ID value, and why it's picking it up from the previous insert when it&#

Re: Controller without model/table possible?

2008-02-05 Thread Tim Wild
Thanks Daniel, it's so obvious once it's been pointed out! Daniel Hofstetter wrote: > Hi Tim, > > >> Is it possible to have a controller that doesn't map directly to a >> model or database table? I want an admin section for my website where >> I c

Re: Cake 1.2 Auth component redirecting to a weird path

2008-02-05 Thread Tim W
I'm sorry you've gone past what I know, sorry I couldn't be of more help. I've found having a good debugger really, really helps track down issues. Good luck! On Feb 6, 10:58 am, Arne-Kolja Bachstein <[EMAIL PROTECTED]> wrote: > Hi Tim, > > I added it, but it

Re: Cake 1.2 Auth component redirecting to a weird path

2008-02-05 Thread Tim W
7;t work you'll have me stumped, someone with more than 2 days experience with auth might have to help! On Feb 6, 10:48 am, Arne-Kolja Bachstein <[EMAIL PROTECTED]> wrote: > Hi Tim, > > here it is: > > --- > function beforeFilter() > { >

Re: menu and css problem with path

2008-02-05 Thread Tim W
Can you post the exact source code that generates the section in question, as well as the code generated by Cake? In your web browser you'll have to choose "view source" and copy and paste it out. On Feb 6, 10:26 am, redcom <[EMAIL PROTECTED]> wrote: > hello > i have the following problem. > i ha

Re: Cake 1.2 Auth component redirecting to a weird path

2008-02-05 Thread Tim W
Can you post your AppController beforeFilter method? On Feb 6, 9:55 am, Arne-Kolja Bachstein <[EMAIL PROTECTED]> wrote: > Hi there, > > I've got a slight problem with my Auth component atm. It always > redirects me to a specific but really weird URL when successfully > logging in. The URL is the

Controller without model/table possible?

2008-02-05 Thread Tim W
Hi all, Is it possible to have a controller that doesn't map directly to a model or database table? I want an admin section for my website where I can edit users and other models, it'll hook into existing models rather than having its own. T

Re: Auth in 1.2 - get current user?

2008-02-05 Thread Tim W
Do you have sample vode for those Andy? I've also been banging my head against 1.2 Auth for about 3 days and i'm tempted to rip it out and write my own - which I expect to take about 2 hours. On Feb 5, 11:08 pm, AD7six <[EMAIL PROTECTED]> wrote: > > 2. When refresh a exprired auth page , it'll ju

  1   2   >