Re: Which is the best hosting server for CakePHP?
Another suggestion is www.servint.net. I've been with them for a few years and they have been pretty good to me. Cheers Gonzalo On Thu, Jul 1, 2010 at 4:52 AM, cricket zijn.digi...@gmail.com wrote: On Wed, Jun 30, 2010 at 5:44 AM, jodator joda...@gmail.com wrote: I have similar thoughts on VPS after switching to one. It's not as easy as shared hosting, but you can find tons of tutorials online. Btw, Big THX for the linode.com link. I was searching a affordable VPS in US and these one is just sweet! +++ on VPS. I went that route almost ten years ago and can't imagine using shared hosting again. Of course, you need to be comfortable managing a server but there are a lot of control panels available that (more or less) do a half-way decent job. (Personally, I avoid them, though) Having a VPS means installing what you need, when you need it, without a lot of useless junk that's never used except by someone exploiting some security hole. And you can also install Cake globally (eg. in /usr/share/php, /var/lib/php, etc.) and create symlinks so as to quickly switch between Cake versions. I'll recommend johncompanies.com, which was one of the first to offer VPS in the US. Their support is EXCELLENT. They obviously know what they're doing and are prompt (REALLY prompt) and pleasant to deal with. They didn't just jump on the VPS bandwagon last month. They also run rsync.net for offsite backups. Also, A2Hosting.com has some pretty decent VPS packages. I've currently got 5 servers between those two, running between one and eight sites on each. I might check out linode.com, though, for my next server (good to spread things around a bit). Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: CakePHP Gigya Social Network Plugin
On Sat, May 29, 2010 at 7:44 PM, WebbedIT p...@webbedit.co.uk wrote: I'd be really interested in knowing more info about your plugin and your experiences of gigya as I am about to launch a website for charities/not-for-profits which I want to be fully integrated with all of the big Social Networks and it's a lot of work to code for each API (I've only managed Twitter so far, well I have facebook and then they released their new Graph API). My project: http://localcause.org.uk Could we have a chat sometime when it's convenient for you? I'm in the UK. Paul, Looking good. Found a bug when you deny Twitter access to an account. It shows some text saying that I've denied access, and I clicked on the hyperlinked LocalCause text which had a URL similar to http://localcause.org.uk/users/twitterConfirm?denied=some string here, and a nasty fatal error page came up: *Notice* (8): Undefined variable: twitter [*APP/controllers/users_controller.php*, line *374*] Code UsersController::twitterConfirm() - APP/controllers/users_controller.php, line 374 Object::dispatchMethod() - CORE/cake/libs/object.php, line 116 Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 227 Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 194 [main] - APP/webroot/index.php, line 88 *Fatal error*: Call to a member function get_accountVerify_credentials() on a non-object in */home/localcause/domains/ localcause.org.uk/public_html/app/controllers/users_controller.php* on line *374* - Gonzalo Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Change __() default behavior
On Tue, Mar 23, 2010 at 12:44 PM, xtraorange xtraora...@gmail.com wrote: Howdy all, This should be a quick one: Is there any way, without editing the cake core (so that upgrades are easy), to switch the default behavior of __() from by default echoing, to by default returning? I find that 99% of the time, I don't want it to echo, and it's annoying to add the true parameter in there every single time. What about creating a new function like ___() that calls __() with the true parameter? Regards Gonzalo Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en To unsubscribe from this group, send email to cake-php+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: Does CakePHP require a change of document root?
On Sun, Nov 29, 2009 at 10:36 PM, MissYeh miss...@gmail.com wrote: I am having trouble installing Cake on a webhosting company one.com server. Installed it a few times on with other hosting providers without problems. After contacting one.com helpdesk I received this answer: Quote: I am afraid you cannot install CakePHP. This is not supported by our servers at all. It is not blocked, but this requires a change of document root, which is not possible. Is it true that Cake really requires it? Evidently they don't know much about CakePHP. Do they support mod_rewrite and .htaccess override? The following link might be useful: http://book.cakephp.org/view/333/A-Note-on-mod_rewrite - Gonzalo Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: cakephp.org hacked?
On Wed, Nov 4, 2009 at 9:50 AM, on24 on2...@gmail.com wrote: Hmmm, I just don't like this funny theme. My first thought was CakePHP gone?! Too bad. Let's check Code Igniter then. Serious things like frameworks should not try to be funny. I really can't promote a halloween framework to my colleagues. haha, you've GOT to be kidding us! - GS --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cake Hosting - Who is the best?
On Sun, Nov 1, 2009 at 10:44 PM, Jon Bennett jmbenn...@gmail.com wrote: There are good guides on setting up your own mailserver as well. I set up my mailserver using postfix and simply forward all mail to my main gmail account. I have gmail set up so that when I reply, gmail logs into my site's mailserver to send. Works like a charm. I wonder why you've done it that way though. If you're going to send through gmail, why not use their mailservers (and excellent anti-spam filtering!) for free? http://www.google.com/apps/intl/en/group/index.html [..snip..] I'm still wondering how (let alone why) you can configure Gmail to relay via another SMTP server!? - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cake Hosting - Who is the best?
On Mon, Nov 2, 2009 at 9:03 AM, CharlesTMunger ryan.dy...@gmail.com wrote: Get smtp set up on your site, then, inside of a normal gmail account, go to settings - accounts and import - send mail from another address. Type in your name and server info. Click reply form same address email was sent to. On your server, forward incoming mails to your gmail account. Voila. Oh, this is what you meant. Ok, but this has nothing to do with you having a SMTP server set-up. It doesn't actually connect to your SMTP server; it just changes the From address to be one of your (verified) email addresses. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cake Hosting - Who is the best?
On Mon, Nov 2, 2009 at 12:45 PM, Gonzalo Servat gser...@gmail.com wrote: On Mon, Nov 2, 2009 at 9:03 AM, CharlesTMunger ryan.dy...@gmail.comwrote: Get smtp set up on your site, then, inside of a normal gmail account, go to settings - accounts and import - send mail from another address. Type in your name and server info. Click reply form same address email was sent to. On your server, forward incoming mails to your gmail account. Voila. Oh, this is what you meant. Ok, but this has nothing to do with you having a SMTP server set-up. It doesn't actually connect to your SMTP server; it just changes the From address to be one of your (verified) email addresses. My apologies Charles. I just had a look and last time I set this up, you couldn't choose whether to use Gmail or your own SMTP servers. Good stuff! - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Google Bot deleting my database entries!
On Tue, Oct 27, 2009 at 8:36 AM, audioworld audiowo...@gmail.com wrote: Hello Andreas, thanks for checking, but as you can see from the app_controller above, I think I implemented the authentication properly. what you see at the link is just the index action, but when you klick on an add action: http://doidata.net/contributor_roles/add there is the correct error message: your are not allowed to acces this page so it is still unclear to me how the delete action can be used without authentication... When I go to http://doidata.net/ goog_1256542933757 contributor_roles/delete/999http://doidata.net/contributor_roles/delete/999, it shows the correct Not Authorized page and redirects me. It's possible that while it does the redirect, the delete action still executes as there is no 'exit()' after the $this-flash() call. Try printing something in the delete function of your contributor_roles controller and go to it while not logged in. Does it print anything out? If so, then you're displaying the flash message but it's still executing before the redirect takes place. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Is it assumed that you should know PHP well before starting with Cake or can you disregard this fact?
On Sun, Oct 18, 2009 at 8:52 AM, Anna T eul.li...@yahoo.com wrote: [..snip..] So for short: Is it assumed that you should know PHP well before starting with Cake or can you disregard this fact? Thank you in advance. Hi Anna. I think you'll find most people will give you the same answer: CakePHP is a PHP framework. This means that it gives you the means to build a maintainable website in much less time than if you did it by writing raw PHP, but you have to know your way around PHP. I would suggest reading some tutorials/books on PHP first (lots of documentation on php.net to get you started), as well as OOP and MVC if you're not familiar with these concepts, then diving into CakePHP. Good luck! - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: can someone explain me why this was changed?
On Fri, Oct 16, 2009 at 12:19 AM, Martin Radosta martinrado...@gmail.comwrote: Check this mark-story commit: http://code.cakephp.org/commits/view/332f6add6a97bdf738f8d1d71106834c82a46dc7#highlight specialy this line (710): if (in_array($options['type'], array('date', 'datetime'))) { was changed by this line (710): if ($options['type'] === 'date' || $options['type'] === 'datetime') { [..snip..] Perhaps Mark made the change to check on the type? Then again, this can be achieved by specifying 'true' as the third argument to in_array() so yeah, not sure why the change was made (unless he didn't know about the optional third argument to in_array()) - GS --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: showEmpty?
On Sun, Oct 4, 2009 at 7:21 AM, gimperdan...@gmail.com gimperdan...@gmail.com wrote: [..snip..] This is what I have: echo $form-select('State', array('NJ' = New Jersey', 'NY' = 'New York')); I want to remove the empty option of this select box. According to the API I need to add $showEmpty = false to the code above.. but where do I add it? I tried in several different locations and it won't work. The function's arguments are: select($fieldName, $options = array(), $selected = null, $attributes = array(), $showEmpty = '') You only supplied the first and second arguments so if you want to keep the defaults for the rest except for $showEmpty, you'd need to do something like the following: echo $form-select('State', array('NJ' = 'New Jersey', 'NY' = 'New York'), null, array(), false) (notice I kept the defaults null and array() for the arguments between $options and $showEmpty) - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Using a page outside of CakePHP
On Sat, Oct 3, 2009 at 1:01 PM, Josh K joshkrae...@gmail.com wrote: Is it possible to use a page outside of a CakePHP application? All but two pages of my Cake app require authentication. I have two public forms that submit data to the application. You could stick the pages in your /app/webroot/. Any files in there are not processed by CakePHP. HTH. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Im dumb...help!
On Mon, Sep 28, 2009 at 8:05 AM, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: When I test it out I know there is no data for either. So in the view: ?php if (!empty($user['Post']) || !empty($user['Favorite']['id'])) ? h1Dummy title/h1 If info this should show up ?php endif ? But sure enough in the view: Dummy Title If info this should show up What's the output of: var_dump($user) ? - GS --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Help selecting email
On Mon, Aug 17, 2009 at 11:59 AM, Dave Maharaj :: WidePixels.com d...@widepixels.com wrote: I keep getting an sql error when selecting an email in my query. function __resetInfo($slug, $email, $token) { $params = array( 'conditions' = array('User.slug' = $slug), 'fields' = array('User.email' = $email, 'User.slug' = $slug, 'User.reset' = $token), 'contain' = false ); [..snip..] Hrm, the conditions looks right, but the fields argument should be an array of fields to return? Sounds like you're mixing conditions in fields. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Bad Design? Using another controller's view
On Mon, May 11, 2009 at 2:00 PM, jwerd lamerh...@gmail.com wrote: And this is considered good design in that sense? On May 11, 10:41 am, brian bally.z...@gmail.com wrote: I'm not sure I follow all that but it seems like what you want to do can be accomplished like so: $this-render('contents_comments/the_view_you_want'); What about using elements? - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Auth components
On Sun, Apr 12, 2009 at 3:52 AM, gimmebucks sapew...@gmail.com wrote: I want the system to display : You are not authorized to access that location. But not You are not authorized to access that location. 1 Please help. Just like brian said, remove the echo. Instead of: echo $session-flash('auth'); .. try: $session-flash('auth'); You're seeing the additional 1 because the flash() function returns a boolean which indicates the result of the call to the flash() method. The printing of the error message itself is done automatically inside the flash() function so you don't need to echo the result out. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: My first CakePHP website launched
On Sun, Mar 15, 2009 at 3:44 PM, Davy davyvandenbr...@gmail.com wrote: Hi, I've just launched my first CakePHP website: http://www.davyvandenbremt.be/ Something very simple though. Question: What is the best way to check in a layout if you're on the homepage? Nice design. You could check $this-params['controller'] and $this-params['action'] to see where you're at. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: My first CakePHP website launched
On Sun, Mar 15, 2009 at 6:25 PM, Davy davyvandenbr...@gmail.com wrote: Thanks for your answers. I am doing this right now. But suppose I want to change the homepage. I then have to change the route + my checks? In that case, maybe there are better ways, but what Miles suggested is probably OK ($this-currentPage = 'homepage'; in the view). You can then check $this-currentPage to see where you're at. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: My first CakePHP website launched
On Sun, Mar 15, 2009 at 6:33 PM, Davy davyvandenbr...@gmail.com wrote: OK. Thx. Another thing. Does cake have a concept of severity for flash messages (or any other)? I mean, sometimes you want the message to be an alert, sometimes an error, ... Drupal has such a thing... http://api.drupal.org/api/function/drupal_set_message/6 You could use the 2nd parameter to setFlash() as a way to set different types of error msgs. Example: $this-Session-setFlash('Success!', 'flash_success'); $this-Session-setFlash('Problem adding user', 'flash_error'); .. then you just create your 'flash_success' and 'flash_error' layouts. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Why we cann't use Auth component in AppController?
On Wed, Mar 4, 2009 at 1:33 PM, joshua josh...@gmail.com wrote: Thanks for your reply. I do all the auth allow/deny in app controller. Did that means we shouldn't do auth in app controller? Might be a good idea to show your app_controller.php code where you initialize the Auth stuff. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Call Functions of another controller.
On Wed, Mar 4, 2009 at 4:33 PM, Max Granados gatt...@gmail.com wrote: Hello Everyone! I want to now if someone knows how to call a function from another controller, I have already tried $results = $this-WhateverModelIs-TheModelIWantToCall- thefunctionIwanttocall($passeddata); but cake sends me this notice: Notice: Undefined property: WhateverModelIs::$TheModelIWantToCall Makes sense. You're trying to call a related model to WhateverModells when your message states you're trying to call a function from another *controller* (I'm confused). You might be able to use requestAction() but it depends on what you're trying achieve (requestAction() is not always recommended, as it can affect performance when abused) - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Brain sprain
On Tue, Mar 3, 2009 at 6:55 PM, RhythmicDevil rhythmicde...@gmail.comwrote: [..snip..] If the device_id is empty I want to send the user back to the 'view' view (I have to change that name) populated with the Subscriber's data. For some reason I cant figure out how to do that in a simple way. Because each call to a view is separate request the data does not persist. Would someone be so kind as to point out the obvious to me? Maybe this is what you want: http://api.cakephp.org/class/controller#method-ControllersetAction - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Big Problem with 1:1 Association
On Sat, Feb 28, 2009 at 10:49 AM, GetIT david.bruen...@t-online.de wrote: [..snip..] But if I save the data only the thing belonging to the client are saved. The data from the progress is not saved. Why? I may be leading you onto the wrong path, but as far as I know you need to call save() on $this-Client-Progress as well (ie. $this-Client-Progress-save()). BTW, does it make sense that a patient can only ever have 0 or 1 progress? - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Big Problem with 1:1 Association
On Sat, Feb 28, 2009 at 11:06 AM, Gonzalo Servat gser...@gmail.com wrote: On Sat, Feb 28, 2009 at 10:49 AM, GetIT david.bruen...@t-online.dewrote: [..snip..] But if I save the data only the thing belonging to the client are saved. The data from the progress is not saved. Why? I may be leading you onto the wrong path, but as far as I know you need to call save() on $this-Client-Progress as well (ie. $this-Client-Progress-save()). Ahhh, I was right! See: http://book.cakephp.org/view/84/Saving-Related-Model-Data-hasOne-hasMany-belongsTo - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: What do you develop in (ide, text editor, etc.)?
On Sat, Feb 28, 2009 at 8:06 PM, Mauricio Morales maomora...@gmail.comwrote: I just downloaded Netbeans for PHP 6.5 and it's great. I've been using Eclipse for a long but I think you can enjoy Netbeans (open source and works in linux, mac, windows). http://www.netbeans.org/features/php/ I second this. NetBeans for PHP 6.5 is excellent! I've stopped using Eclipse myself. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Ajax without the Helper
On Tue, Feb 24, 2009 at 4:22 AM, inna inna@gmail.com wrote: Hi, I'm a long time web designer who has just started looking into cakePHP, unfortunately i'm stuck and need help with an issue that for the life of me I cannot find an answer to. I'm trying to migrate my old ajax code from my existing website, I have read the cakephp documentations but cannot find an answer. I'm trying to get my old scripts working without using the built in helper for now. Literally copied and pasted it should work. Just a simple window pop up script. I've referenced my js scripts on the default.ctp layout, I have referenced my css, I have checked if the tags are pointing to the right classes, everything SHOULD be working right now. Cake doesn't throw an exception but it doesnt let me use my scripts either... Does it handle files differently? Do I need to change a configuration somewhere? Help! Thank you in advance. Hi Inna, Can you provide the URL? - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: AppController methods
On Fri, Feb 20, 2009 at 11:14 AM, Martin Westin martin.westin...@gmail.comwrote: No need for all that :) Maybe, but it was a great reply :-) kaushik: since AppController extends Controller, you're probably looking for what methods you can use from that file. Check http://api.cakephp.org. The file you're interested in is cake/libs/controller/controller.php. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Variables in strings and I18n
On Mon, Feb 16, 2009 at 5:23 AM, Miles J mileswjohn...@gmail.com wrote: I do __($var) all the time, just make sure the value of var exists in default.po. $var = 'name'; msgid name msgstr Name I'm not sure I follow your example. You're basically saying add the translation manually for 'name' to the .po file. Am I right? If so, it doesn't solve my problem as the next time I do a cake i18n extract, it will create a .pot file *without* the dynamic keys like name and poEdit will complain saying it is an obsolete key as it only exists in the .po file and not the .pot file, and it will remove the translation from the po file. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Variables in strings and I18n
On Mon, Feb 16, 2009 at 9:26 AM, AD7six andydawso...@gmail.com wrote: IMO you'd be better off using __d('stuff', $xyz) - that way your 'manual' entries are in a seperate po(t?) file to the file cake extract writes to. See http://api.cakephp.org/file/basics.php#function-__d Thanks AD. That does help. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Variables in strings and I18n
On Mon, Feb 16, 2009 at 9:26 AM, AD7six andydawso...@gmail.com wrote: IMO you'd be better off using __d('stuff', $xyz) - that way your 'manual' entries are in a seperate po(t?) file to the file cake extract writes to. See http://api.cakephp.org/file/basics.php#function-__d Actually, AD, what you suggested is good for places where I used to call __(), but there are some methods in CakePHP's source that call __() (like the FormHelper::inputs() method .. not sure what function does the call, but at some point it calls __() on the column names). Since I have no way of controlling those, I'm not sure how I could maintain a set of translations for the column names and have CakePHP respect them when doing an extract. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Variables in strings and I18n
On Mon, Feb 16, 2009 at 11:36 AM, AD7six andydawso...@gmail.com wrote: [..snip..] There are very few uses of __() in the core/form helper. The one you're referring to is: http://api.cakephp.org/view_source/form-helper/#line-460 I would recommend extending the core where it doesn't fit your needs e.g. http://trac.assembla.com/mi/browser/branches/base/views/helpers/mi_form.php#L59 The mi_i18n and mi_extract tasks generate the po file that helper method looks for - but it's just an example, generate and use po files however suits you best. Excellent. Thanks a lot! - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Variables in strings and I18n
Hi All, I normally use __('string here') in my views, however in one particular case it just made sense to use a foreach so I ended up with something like: __($type); Of course cake i18n extract doesn't like that, and I don't mind adding them manually as it's a special one-off case, but how? I can't just edit the .pot file since the next time I run cake extract it will just overwrite my changes (even if I tell it to merge). Editing the .po file directly doesn't work either since poEdit will just say they are obsolete strings as they don't exist in the .pot file. Another situation one may face is when you use $form-inputs(), CakePHP wraps the name of each field in the model with __() so basically if I have a column called 'name', it will lookup 'Name' in the translation file. This is another case where adding strings manually comes in handy (and CakePHP not overwriting the .pot file and clearing them!) Any ideas? Thanks! Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: International validation messages in a contact form
On Mon, Feb 9, 2009 at 9:33 PM, ohcibi i...@dwgadf.de wrote: Hi everybody, i have set up a Contact-Model like this: http://paste.pocoo.org/show/103359/ (according to http://snook.ca/archives/cakephp/contact_form_cakephp/). i want to provide international validation messages so i output the form-fields like this: http://paste.pocoo.org/show/103365/ .. however the error-messages are still some default-ones... does anybody know why this could be? Just like Gwoo said, here is an example that might work (untested code): var $validate = array( 'name' = array( 'minlength' = array( 'rule' = array('minLength', 1) ) ), 'email' = array( 'minlength' = array( 'rule' = array('minLength', 1), 'last' = true ), 'valid' = array( 'rule' = 'email' ) ), 'message' = array( 'minlength' = array( 'rule' = array('minLength', 1) ) ) ); .. and your view: echo $form-input('Contact.name',array( 'error' = array( 'minlength' = __('Please enter your name',true) ))); echo $form-input('Contact.email',array( 'error' = array( 'minlength' = __('Please enter your Email address',true), 'valid' = __('Please enter a valid Email address',true) ))); echo $form-input('Contact.message',array( 'error' = array( 'minlength' = __('Please don\'t send blank messages',true) ))); Also, I thought it would be worth mentioning that if you don't want to specify the error messages in the view, you can also set them in your beforeValidate() function. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: PHP mail() function not working in 1.1.19.6305
On Mon, Feb 9, 2009 at 2:58 PM, peterhf peter.f...@sbcglobal.net wrote: Why not update to 1.2? This is plan B, the client doesn't want to upgrade at this time. What error message do you have? None! And debug is set to 3. This might actually be related to the sendmail wrapper (provided the mail function is enabled in php.ini). I had this exact problem just recently on a cPanel server and after looking the apache log, I found an error message saying sendmail couldn't be called directly, or something along those lines. If you *are* running cPanel, you have to turn off the following setting in exim: Track email origin through X-Source email headers. This setting causes the sendmail binary to be wrapped by a Perl script which tracks the email origin before calling the real sendmail binary. If you're not using cPanel, you might still want to check if the path to sendmail is a wrapper or a real sendmail (or equivalent) binary. If it is wrapped, try either changing the path to sendmail in php.ini to the real sendmail binary *or* renaming the wrapper and placing the real sendmail binary in its place. Good luck. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: How to login with username only ?
On Thu, Feb 5, 2009 at 11:49 PM, datgs giangson...@gmail.com wrote: Hi everybody, I've had to rewrite code in AuthComponent class to login with username only. Was it the best way for my purpose. Is there any way without changing the code in AuthComponent. I had to do this as I wanted a site that was protected by lots of unique codes (ie. usernames) but no passwords. The way I did it was by doing the following in my users_controller.php: function beforeFilter() { parent::beforeFilter(); $this-Auth-fields['password'] = 'username'; $this-Auth-authenticate = $this-User; } .. and in my user.php model: function hashPasswords( $data ) { return $data; } The hashPasswords() function basically returns the password as is (in clear-text) so that I can lookup the code in my users table. I just have a username column and no password column. I doubt this is the ideal way to do it, but it works for me. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: How to login with username only ?
On Fri, Feb 6, 2009 at 1:18 AM, Son Dat Giang giangson...@gmail.com wrote: Many thanks to Servat and Weldon for giving me easier ways to solve my problem. You're welcome. Have you got any experience about LdapUser SSO ? SSO very little ... and some LdapUser experience. Err, where did you get LdapUser from? I think there are a couple going around. I helped write the C * U D (Read was already done) for one of them. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Calling $html-css() from inside an element
On Tue, Jan 27, 2009 at 12:51 PM, RichardAtHome richardath...@gmail.comwrote: Try it from a layout. ...but your question is about calling it from inside an element :-S ... or do you mean an element that's linked from a layout and not a view? Right! An element called from a layout that has a call to $html-css() in it (with inline set to false). Like I said, the way I fixed it was by creating a helper which I call from the element to add the custom CSS file and called from the layout inside the head/head section to print it out. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: behaving the CakePHP 1.2 way
On Tue, Jan 27, 2009 at 8:26 PM, Delirium tremens pedbe...@gmail.comwrote: CakePHP 1.2 is encrypting passwords before validating them. CakePHP 1.2 is trying to make us behave in a different way. Are you behaving the CakePHP 1.2 way? What are you doing now that you are not allowed to validate passwords? I take it you're talking about the AuthComponent? If so, yes it hashes passwords automagically so you basically just store the hashed password in your DB. If you don't want that, you can do something like this: $this-Auth-authenticate = $this-User; // or whatever ... Inside the User model, you could have: function hashPasswords( $data ) { return $data; } Instead of hashing the password, it just returns it unmodified (clear text). - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Calling $html-css() from inside an element
On Mon, Jan 26, 2009 at 9:24 AM, RichardAtHome richardath...@gmail.comwrote: Syntax should be: echo $html-css( 'right_column', array( 'media' = 'screen' ), null, false ); Not if you're using the last parameter as false. It just adds it to an array which later gets printed in the $scripts_for_layout section so there's no need to print it out. That wasn't the problem though. After speaking with AD7six, basically what happens is that the head scripts section is already processed by the time it gets to the elements in the layout so I can't use that array unless I want to re-work the order in which things are processed in CakePHP (which would surely break lots of other stuff). What I had to do was create a head helper (AD7six's suggestion) which I would call to add CSS (from the element) and later get the CSS (from the layout in the head section). If anyone wants to see an example of how to include a custom CSS file from an element, let me know and I'll do a quick blog on it. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Calling $html-css() from inside an element
On Mon, Jan 26, 2009 at 12:17 PM, RichardAtHome richardath...@gmail.comwrote: Sorry AD7six, just tried it in an element and the code IS injected into the header: view.ctp ?php echo $this-element(test) ? elements\test.ctp ?php echo $html-css(test, array(), null, false) ? I'm using the latest stable build of Cake Try it from a layout. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Calling $html-css() from inside an element
Hi All, I never had the need to do this, but I've come across a situation where it comes in handy. I'd like to add a stylesheet for inclusion in head/head from an element. This is because the element I'm including is called right_column.ctp and the CSS to-be-included modifies a few of the styles on the main page to accomodate for it. There are probably better ways of doing this, and I'd love to hear your suggestions and ways of doing this, but for the time being I'd like to find out why I can't include a stylesheet from an element. My code looks like this: $html-css( 'right_column', null, array( 'media' = 'screen' ), false ); I started looking into cake/libs/view/view.php and it looks like the layout is rendered before the elements which explains why it doesn't work ($this-__scripts is empty at the time that the layout is being rendered). Anyone? Thanks! Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Solution for static page with no pages in URL
On Tue, Jan 20, 2009 at 4:00 PM, Jon Bennett jmbenn...@gmail.com wrote: Hi Leo, Router::connect('/pages/*', array('controller' = 'pages', 'action' = 'display')); It's the above route he's trying to avoid. He wants to have: Router::connect('/*', array('controller' = 'pages', 'action'= 'display')); but you can't do that unless you create a route for all your controllers/actions, as this overrides them all. Hence the need to create a route for each page via the component. Thank you, Jon. That's exactly right. I can't imagine we are the only ones who want this sort of functionality !? I would much rather think about implementing some sort of default route functionality into the Router class. The current quick-and-dirty solution by Jesse isn't too bad, I guess. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Solution for static page with no pages in URL
On Tue, Jan 20, 2009 at 4:39 PM, teknoid teknoid.cake...@gmail.com wrote: This is a simple solution, that I prefer. I ensure that all links to static pages point to .html file So our link: www.example.com/pages/about_us Becomes: www.example.com/about_us.html (i.e. echo $thml-link('About Us', '/ about_us.html'); ) Then a single route takes care of the rest (for any static page on your site): Router::connect('/(.*).html', array('controller' = 'pages', 'action' = 'display')); Nice. Thanks teknoid :) - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Anyone built a forum system yet?
On Tue, Jan 20, 2009 at 10:10 PM, Miles J mileswjohn...@gmail.com wrote: Yes but id rather listen to them, they know what they're talking about. One was even part of the Zend Team and has been doing this since PHP3. My current system is based on the session and not storing it in db. An answer like i rather listen to them, they know what they're talking about is probably not the best answer you want to give if you want to keep the thread going trying to figure out different ways to keep track of thread read count. You're basically saying that the guys here are a bunch of amateurs, the zend guys are the shit. Just because they were part of the Zend Team does not make them any more qualified than the guys who replied to this thread. What you could do, however, is find out what their method is to keep a thread seen count and share it with us. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Solution for static page with no pages in URL
On Mon, Jan 19, 2009 at 6:09 PM, Jesse jesseainsk...@gmail.com wrote: Thanks both of you for your input. All my mod_rewrite stuff is working properly. I was looking for a way to circumvent putting a Router::connect for each static page I have. Some of my sites have 100-150 static pages. I'm looking for a way to dynamically build the routes for all the pages. My script I wrote does work, I was just looking for input from others on ways to optimize my code a little, or to make sure I was using best practices. I think what would be nice is a way to set a default route so that if all standard routing fails, go off into a default route which would check if the requested page exists in app/views/pages in which case it would call the pages controller. If it doesn't exist, it could go on with the standard page not found procedure. Has anyone done this before or has a better solution in mind? - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Solution for static page with no pages in URL
On Mon, Jan 19, 2009 at 6:48 PM, leo ponton@gmail.com wrote: Are your static pages html or PHP? Either way, why can't you just put them in webroot? They only need to be inside the cake structure if they're cake files. That means I can't take advantage of the CakePHP helpers and such ... besides, if they go in webroot, that means the layout won't apply so I think they need to go through CakePHP in my case. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Solution for static page with no pages in URL
On Mon, Jan 19, 2009 at 7:21 PM, leo ponton@gmail.com wrote: Ahh..you didn't say that. Seems to me all you need to do is put the pages in ..er.. pages and make sure that the pages route is last in the routes.php file. That way everything that has a home will find it and the rest falls through to pages. No lookup for page names needed. You might even be able to do a Router::connect('/*',.. This isn't quite what I need as it makes any request for /controller/action also go to the pages controller (which is great for static pages but not if you have some non-static pages in controllers). If you managed to do it, I'd love to see your solution. - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Overkill for a starter project?
On Thu, Dec 18, 2008 at 4:06 PM, thatsgreat2345 thatsgreat2...@gmail.comwrote: Don't reinvent the wheel, just use wordpress, or joomla or some other CMS / Blogging that is already made. Keep in mind the original poster said he/she is interested in learning CakePHP. The OP also asked: my question is will CakePHP make this type of task easier if I spend the time now learning it on this project? Or are teh benefits really for larger-scale projects? I think a blog is probably a good way to start learning CakePHP. You will see the true potential and benefits of the framework when working on large scale projects, but you have to start somewhere. Since you have to do the blog for someone anyway, you may as well do it with CakePHP as it's a good excuse to start looking at the framework which will surely sell itself and ensure you will keep it in mind for future projects. Good luck! - Gonzalo --~--~-~--~~~---~--~~ 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: jQuery helper....
On Mon, Dec 8, 2008 at 10:47 AM, Marcus Silva [EMAIL PROTECTED]wrote: Does anyone know if anyone has written a jQuery helper? Really need one to add similar features found here: http://ui.jquery.com/demos to a site. Any hints/help will be greatly appreciated. Many thanks in advance. As per the talk Felix gave at the CakeFest which just finished last week, I believe he mentioned that a helper is on its way to do basic tasks, but to do more complicated things with jQuery you need to write the JS. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: basics.php in CakePHP
On Thu, Dec 4, 2008 at 7:48 AM, krishna [EMAIL PROTECTED]wrote: Hi Cake Bakers, I happen to see the basics.php in CakePHP. Found some interesting and very useful functions. Want to place a small note on it. 1. Basic units of time defined. 2. Functions related to array manipulations. 3. Functions related to string manipulations. Can u use these functions instead of PHP's direct functions. Yes. basics.php is included by bootstrap.php which means it's available everywhere. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Manage App's CSS/Scripts
On Mon, Nov 17, 2008 at 12:28 PM, i_Am_ToO_SeXy [EMAIL PROTECTED] wrote: Hello. CakePHP is driving me mad. I can't figure out a smart way to manage CSS and Javascript inside my app. .. and you believe CakePHP is the culprit? This is my goal: - Having one (or many) CSS files common to all views In your layout. - Having one (or many) Javascript files common to all views In your layout. - Having the ability to add view-specific CSS or Javascript You could check the existance of controller_action.css/js and depending on the outcome, include them. For example: users_login.css (controller = users, action = login) See the following article: http://bakery.cakephp.org/articles/view/some-ideas-to-organize-your-css-files-and-autoload-them-in-cakephp - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Manage App's CSS/Scripts
On Mon, Nov 17, 2008 at 1:07 PM, Gonzalo Servat [EMAIL PROTECTED] wrote: [..snip..] See the following article: http://bakery.cakephp.org/articles/view/some-ideas-to-organize-your-css-files-and-autoload-them-in-cakephp This might help too: http://developingwithstyle.com/2007/01/16/whats-new-in-cakephp-asset-sharing/ - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re:
On Thu, Nov 6, 2008 at 1:03 PM, Scott McLaughlin [EMAIL PROTECTED]wrote: unsubscribe As you can see on every single post that hits the list, the way to unsubscribe is: To unsubscribe from this group, send email to [EMAIL PROTECTED][EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Politics aside.....
On Tue, Oct 28, 2008 at 1:33 PM, Walker Hamilton [EMAIL PROTECTED]wrote: I just thought I'd let the cakePHP community know that cakePHP is powering a site and a utility service at the Barack Obama website. I built both of these. Here's the site: http://radar.barackobama.com/ The utility service isn't anything to look at, but let's just say, it's provided some much needed plumbing for our infrastructure. Very nice! Nice work. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Forum instead of Mailing List?
On Tue, Oct 28, 2008 at 8:45 PM, 703designs [EMAIL PROTECTED] wrote: Just an idea. I think that the Bakery's in a good position right now (as the heart of the Cake community), and that the CakePHP knowledge base and its usability would improve if discussions took place in a regular web forum rather than on a mailing list. Thoughts? This subject must come up at least half a dozen times on a few of the mailing lists I'm on. There are many arguments against the idea and few in favor. Anyway, the best balance between the two is using the mailing list as we do now and if you really like the forum idea, you can use the forum-like interface Nabble: http://www.nabble.com/CakePHP-f16511.html - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: How to print query...
On Wed, Oct 22, 2008 at 8:51 AM, xelios [EMAIL PROTECTED] wrote: Following is the out put of my error: / */ Warning (512): SQL Error: 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'addStar' at line 1 [CORE\cake\libs\model \datasources\dbo_source.php, line 521] Code | Context $sql= addStar $error = 1064: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'addStar' at line 1 $out= null [..snip..] From reading the log, it looks like the query executed is just 'addStar' ?? - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: cakePHP CMS
On Mon, Oct 20, 2008 at 11:46 AM, WAQAR AZIZ [EMAIL PROTECTED]wrote: I want a well-developed CMS , that fully supports cakePHP 1.1 / 1.2 That's nice. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: cakePHP CMS
On Mon, Oct 20, 2008 at 5:53 PM, Predominant [EMAIL PROTECTED] wrote: Hi Waqar Aziz, Its a shame we get idiots responding on the list and not helping. Take a look at Wildflower. Thats the only one that I am currently aware of, and its got some great features. Wildflower CMS: http://wf.klevo.sk/ I don't recall insulting anyone. Any reason why you feel you have the right to? Just for the record, had Waqar asked his question differently showing he made at least some attempt to do a little research of his own, or at least pointed out what features he is looking for, he would have probably received normal responses. What you're doing is basically feeding the bad habit that people like Waqar have that resort to the mailing list as the first resource when looking for answers. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: startpage with different layout
On Wed, Oct 15, 2008 at 9:41 AM, nomex [EMAIL PROTECTED] wrote: hey, i want to make a startpage with completly different layout from the other pages. i found some infos to change the layout with $this-layout = 'xyz_layout'; but i don't know how to implement this function in the home controller! thx for your help! You can do as ORCC said OR if you have a home controller and you don't want to do the change of layout in the template, you can do it in the action: function index() { $this-layout = 'xyz_layout'; } If your home page uses the pages controller, you'll probably want to do as ORCC said. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Yet another site powered by Cakephp
On Sat, Oct 11, 2008 at 4:28 AM, Sayhello [EMAIL PROTECTED] wrote: Hello all, Just wanted to introduce yet another site built with CakePHP 1.2 RC3 - www.sayhello.me. Sayhello is a new classified ads site to help you buy and sell. We are initially launching in the Los Angeles market. Check it out. Any suggestions and feedback are welcome. Hi, Congrats on your new site. One thing I've noticed: if I'm browsing through the categories, say Cell Phones, and there are no listings in the category, then it shows me a link that reads Get noticed. Be the first. When I click on it, it shows me a listing of categories to pick from. I was thinking it might be best if it automatically selects the category from where I clicked on the link (in this case, Cell Phones). You might also want to think about allowing multiple categories. If I'm selling a cell phone, I might want the phone to be in Electronics and Cell Phones. Good luck! - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Access $this-Session from a model
On Thu, Oct 9, 2008 at 10:41 AM, Liebermann, Anja Carolin [EMAIL PROTECTED] wrote: Hi all, Now that I have placed a function in my model rather than in my controller to avoid requestAction I have a new problem: The function gets data from my session. In the controller the following works: $user = $this-Session-read('User'); When I place this code in my model method I get the error message: Undefined variable: Session [APP\models\text.php, line 95] So I tried to avoid this by using the function like that: App::import('Model', 'Session'); $Session = new Session() $user = $Session-read('User'); This causes: Fatal error: Class 'Session' not found in... Questions: Is it possible to use Session data in my model? If yes which syntax is correct? Some people will probably jump in and say you shouldn't be reading session data from the model (breaks MVC, etc). Maybe you can send it as an argument to the model function? If you insist, I think you want: App::import('Model', 'CakeSession'); $session = new CakeSession(); .. but I'm not 100% sure. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: $this-
On Sun, Oct 5, 2008 at 10:38 PM, mattocrocop [EMAIL PROTECTED] wrote: Thanks to all the guys who offered help. I found this great video series for beginners to OOP. http://www.killerphp.com/tutorials/object-oriented-php/index.php The last minute or so of Build Objects in PHP - Part I and the bulk of Part II offer a decent enough description of the meaning of $this, and the of -. Thanks Matt for writing back. I'm sure beginners to OOP will appreciate the link. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Database design for local information specific site
On Thu, Oct 2, 2008 at 5:13 PM, ORCC [EMAIL PROTECTED] wrote: [..snip..] Id City_Id Property Value 11 greeting HELLO 22 greeting HOLA 33 greeting CIAO 41 contact[EMAIL PROTECTED] 52 contact[EMAIL PROTECTED] 63contact[EMAIL PROTECTED] Instead of the above table, it might be an idea to create a properties table with: Id Property 1 greeting 2 contact 3 .. and a HABTM table: city_id property_id value 1 1 HELLO 1 2 [EMAIL PROTECTED] 2 1 HOLA 2 2 [EMAIL PROTECTED] etc ... - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: pushing my luck -- complete pm system?
On Tue, Sep 30, 2008 at 1:26 PM, rocket [EMAIL PROTECTED] wrote: I'm about to write a PM system for users... but why invent the wheel? Anyone know of a good prebuilt cake pm system, or a vendor I can use? * What does PM stand for? Your abbreviation search returned 164 meanings* Which one of the 164 does your PM stand for? - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: sending mail through google server using EMail component
On Tue, Sep 30, 2008 at 10:10 PM, Zoltan [EMAIL PROTECTED] wrote: [..snip..] The settings I'm using are: function send( $subject = 'General', $msg ){ $this-Email-from= '[EMAIL PROTECTED]'; $this-Email-to = 'Zoltan [EMAIL PROTECTED]'; $this-Email-subject = $subject; $this-Email-replyTo = '[EMAIL PROTECTED]'; /* SMTP Options */ $this-Email-smtpOptions = array( 'host' = 'smtp.googlemail.com', 'username'= '[EMAIL PROTECTED], 'password'= 'PASSWORD'; /* Set delivery method */ $this-Email-delivery = 'smtp'; /* Do not pass any args to send() */ $this-Email-send($msg); I've tried these with other smtp accounts with no problems, but with Google the connection just seems to hang with a server time-out. Anyone have any luck with Google's server? Hi, I believe you need to use SSL with Google's mail server (not a plaintext port 25 connection). I don't think the built-in email component supports SSL so you might want to check out the SwiftMailer component (pay attention to the $smtpType variable): http://bakery.cakephp.org/articles/view/improved-swiftmailer-component - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: HtmlHelper::mailto
On Sat, Sep 13, 2008 at 1:15 PM, 703designs [EMAIL PROTECTED] wrote: It looks like the capability's there ( http://api.cakephp.org/html_8php-source.html#l00047 ), but invoking the method from a page view throws this error: Warning (512): Method HtmlHelper::mailto does not exist [CORE/cake/ libs/view/helper.php, line 148] What needs to be done to enable the mailto option? You probably want the TextHelper::autoLinkEmails() function. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: mistake in a generated query
On Thu, Sep 11, 2008 at 3:58 PM, Mark [EMAIL PROTECTED] wrote: Not sure, but check your hasOne, hasMany, belongsTo etc stuff... make sure there are no typos there. Also check the name of the class .. ie. make sure you don't have a: class Statu extends AppModel { } ... in app/models/status.php - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Mail server
On Tue, Sep 9, 2008 at 10:44 AM, bartez [EMAIL PROTECTED] wrote: Hey all, Anyone know anything about integrating email onto a server, as in send AND receive mail using smtp and POP3? This isn't related to CakePHP, bartez. There are plenty of HOWTOs on the subject (here's one: http://www.linuxmail.info) - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: missing view
On Mon, Sep 8, 2008 at 1:27 PM, gabriel [EMAIL PROTECTED] wrote: Hi, I am new to cake and are really frustrated with the basics. I have created a default.thml in layouts, with the code ?PHP echo $content_for_layout; ?, then I created a test.thtml in pages, I point the server to it and get a missing view error - anyone any ideas? If you're using CakePHP 1.2, you probably want test.tpl and default.tpl, unless you changed the extension in the config. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: what does __() mean?
On Mon, Sep 8, 2008 at 4:00 PM, Action [EMAIL PROTECTED] wrote: The bake console generated the following code: $this-Session-setFlash(__('The User has been saved', true)); what does the __() mean? Look at the function in cake/basics.php: Returns a translated string if one is found, or the submitted message if not found. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: cake and Stored Procedures
On Mon, Sep 8, 2008 at 5:59 PM, Car For Sale Sign forsalesticker.com@ gmail.com wrote: Hi - I am considering using Cake and Stored procedures for a new app that I am going to write. Does anyone have any suggestions on using SPs with cake. I'm not sure I have the right answer for you but, until somebody else replies with a better answer, I believe if you use the mysqli driver (not mysql) and the query contains call in it, it should work. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: cake and Stored Procedures
On Mon, Sep 8, 2008 at 6:30 PM, Gonzalo Servat [EMAIL PROTECTED] wrote: I'm not sure I have the right answer for you but, until somebody else replies with a better answer, I believe if you use the mysqli driver (not mysql) and the query contains call in it, it should work. Looking into it a little bit more, it looks like you can call your stored procedure from a model: class YourModel extends AppModel { . . function procedureName() { $this-execute( call sqlprocname() ); --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: cake and Stored Procedures
Oops, pressed send by accident: On Mon, Sep 8, 2008 at 6:52 PM, Gonzalo Servat [EMAIL PROTECTED] wrote: On Mon, Sep 8, 2008 at 6:30 PM, Gonzalo Servat [EMAIL PROTECTED] wrote: I'm not sure I have the right answer for you but, until somebody else replies with a better answer, I believe if you use the mysqli driver (not mysql) and the query contains call in it, it should work. Looking into it a little bit more, I think this is how you call your procedure: class YourModel extends AppModel { . . function procedureName() { return $this-execute( call sqlprocname() ); } } ... and from a controller: $results = $this-YourModel-procedureName(); - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: send mail
On Wed, Sep 3, 2008 at 7:32 PM, Wayne Fay [EMAIL PROTECTED] wrote: Google for cakephp email send for numerous examples. Emailing the group for this is just pure laziness. This is like the 5th or 6th email Ranju has sent clearly showing he is here to waste everyone's time. He even emailed me directly to ask me for Forgot Password code! I think it's probably a good idea to ignore his emails requesting someone else to do his work and only reply to the ones that have specific questions whose answers are not easily found on public resources. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: problem with Starting CAKE
On Fri, Aug 29, 2008 at 6:22 PM, Sabrina Akter [EMAIL PROTECTED] wrote: thanks SCS. i am working locally. its now showing: CakePHP: the rapid development php framework http://cakephp.org/ Release Notes for CakePHP 1.2.0.7296 RC2.i hope its ok now. https://trac.cakephp.org/wiki/notes/1.2.x.x Code function checkSessionKey() {if (Configure::read('Security.salt') == 'DYhG93b0qyJfIxfs2guVoUubWwvniR2G0FgaC9mi') { trigger_error(__('Please change the value of \'Security.salt\' in app/config/core.php to a salt value specific to your application', true), E_USER_NOTICE); [..snip..] As the error message says, you'll want to change the value of the Security.salt setting in app/config/core.php to something of your liking. If you leave it as the default, CakePHP will keep complaining. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: How do you specify custom properties in a CakePHP model?
On Thu, Aug 28, 2008 at 6:39 PM, mattcamuto [EMAIL PROTECTED] wrote: hi sam i think i made things even more confusing in my post. I am just ttrying to accomplish plain ajax in multiple pages. Suppose I have 3 pages a.html b.html c.html And they all in some form have an 'Article' model in them. I want to rate the article (i.e. /Article/rate/article_id/rating) for instance on any of these pages and then update a DIV on any of those pages. [..snip..] This is like taking thread hijacking to a new level! Matt, didn't you just start a different thread on a totally different subject to what trustfundbaby was asking about? - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: How do you specify custom properties in a CakePHP model?
On Thu, Aug 28, 2008 at 6:55 PM, mattcamuto [EMAIL PROTECTED] wrote: i fully apologize. i started writing the email to somebody else, this email came through and i accidently cut-n-paste to the wrong window. i am totally sorry, did not mean to hijack anything I really don't think you offended anyone unless you got someone in a delicate mood. I thought the sudden change of subject was pretty funny!! - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Configure::write
On Tue, Jul 15, 2008 at 4:02 PM, kik [EMAIL PROTECTED] wrote: [..snip..] ... As far as I understand when you use Configure::write it's storing a data in the config file and the data is permanently stored. Nope. As far as I know, Configure::write() 'writes' the variable into the Configure instance. But when I try to get the data from another controller or even another action of the same controller I'm not able to read the value. If you are expecting to write in one call then read in another call, then you probably want to use sessions for that. It seems that I'm able to get the value only from the same action that writes to Configure. Does this mean that Configure::write does not store the information permanently? For instance I have an action: As above, that's correct. It does not store information permanently. I will be thankfrul if someone explains to me how this works! Thank you in advance for any suggestions! This is my understanding of the Configure class. Group: If I gave any wrong info, please feel free to correct me. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: CAKE PHP on BLUEHOST servers
On Sun, Jul 13, 2008 at 6:08 PM, JBMGT [EMAIL PROTECTED] wrote: HI, We have moved from one webhosting company to another one and now the site doesnt come up. It has been built in the CAKE PHP framework and I am hoping that someone with CAKE PHP experience on a BlueHost enviromnet can hint us what to look at. [..snip..] Just a word of advice: it's pretty much impossible for anybody to help you unless you provide more information (eg. what actually happens? cakephp version? error messages? anything in apache logs?). If you show the results of the investigating you've done with your technical friends it may avoid suggestions that you've already done. Ensure that you have the 'debug' setting in app/config/core.php set to at least 1. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Cookies in CakePHP
On Tue, Jun 10, 2008 at 2:49 PM, Stinkbug [EMAIL PROTECTED] wrote: I'm still looking for an answer on this if anyone knows what the problem is. I would personally try following the path to the __write() call in the cookie.php component and sticking in debugging statements using print/debug to see where it may have failed. Try printing $_COOKIE as well to see if the cookie goes in. Sorry, I don't have any other ideas apart from that but since nobody had replied to you, I thought I'd suggest something that may help you in troubleshooting. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: CakePHP with PBX System.. Is it doable?
On Fri, Jun 6, 2008 at 1:49 AM, Reza Muhammad [EMAIL PROTECTED] wrote: Hi, Actually, they haven't purchased the PBX system yet. I have the position to choose which PBX system i want to use since my concern is compatibility on Unix-based environment. I've looked at Asterisk, but was lost. Does Asterisk support PSTN calls? Is the procedure to connect PBX machine to Asterisk's installed PC? Yes, we're kinda going OT now but Asterisk does support PSTN calls (otherwise it'd make a pretty lousy PBX). It's a pretty big topic given the amount of hardware options so I recommend taking a read of the Asterisk - The Future of Telephonyhttp://books.google.com/books?id=vtQxJ3oSm64Cdq=asterisk+future+of+telephonypg=PP1ots=LVW7J2Lm75sig=wwcKJ8-ZwezB9AzbJXWf6BT5wAQhl=enprev=http://www.google.com.ar/search%3Fhl%3Den%26q%3Dasterisk%2Bfuture%2Bof%2Btelephony%26btnG%3DGoogle%2B%25E6%25A4%259C%25E7%25B4%25A2%26lr%3Dsa=Xoi=printct=titlecad=one-book-with-thumbnail#PPP1,M1and also signing up to the Asterisk-users Mailing List http://www.asterisk.org/support/mailing-lists. There are other options, like FreeSWITCH http://www.freeswitch.org, however Asterisk is the oldest and most well-known open source telephony engine around. Good luck! - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: CakePHP with PBX System.. Is it doable?
On Thu, Jun 5, 2008 at 2:37 PM, Reza Muhammad [EMAIL PROTECTED] wrote: Hi guys, I was just assigned to a project building a hotel management system, and I would like to use CakePHP. Most of the requirements are pretty standards, but there is one thing I'm not familiar with. I am supposed to be able to track calls from each rooms that is using PSTN through PBX. There will be no VoIP calls. I have got no clue whether it is doable or not. My questions are: 1. Can data packets from calls be captured using PHP? 2. Or do I have to use another software for the PBX to save data to the database (hopefully to MySQL, or other open source RDBMS software), then collect the data from that server's database? Does anyone have some experience on this problem? Do you mind to share your thoughts on this? Is there such software to do #2? What are they using as a PBX? I would suggest looking into whether you can hook up to it somehow and fetch data from it (maybe via serial port or something ... even better if it has a way to fetch data over TCP/IP). If it uses some sort of RDBMS that Linux can talk to, then great. Failing that I don't see how you'll be able to achieve point 1. Another option, if there is no way to get call accounting data from the PBX, is to look into replacing the PBX with something like FreeSWITCH or Asterisk. I'm sure it's not easy to convince them to replace an expensive PBX they just purchased over Asterisk but, since I don't know the situation, I'm throwing the idea out there. Good luck. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Need a lightbox type app
On Thu, May 29, 2008 at 2:37 PM, Chris Hartjes [EMAIL PROTECTED] wrote: On Thu, May 29, 2008 at 1:34 PM, Kyle Decot [EMAIL PROTECTED] wrote: Thanks, but I forgot to mention that it has to use prototype/ scriptaculous --~--~-~--~~~---~--~~ Found the perfect solution for you, the URL is kind of long so I put it through TinyURL: http://tinyurl.com/6orb8o Haha, only by reading this email and knowing it came from Chris, I almost knew instantly where it was going to lead me ;-) - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Hidden field in Form helper
On Wed, May 21, 2008 at 1:44 PM, Travis [EMAIL PROTECTED] wrote: Is there a way to set the value attribute of a hidden in field in the Form helper? Thanks! print $form-hidden( 'Model.name', array( 'value' = 'whatever' ) ); Is this what you're talking about? - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Does CakePHP 1.2 Email SMTP suport TLS/SSL?
On Sun, May 18, 2008 at 4:05 AM, scientist [EMAIL PROTECTED] wrote: I am sending mail using delivery option 'smtp' but it is not sending any mail. Also I couldn't find any way to tell the component to use TLS because my server supports only encrypted communication. Hi, If you look at the source code for the email.php component, you'll find that when you send an email using the SMTP method, it does so by connecting to the SMTP server and performing a standard cleartext conversation which means it does not support TLS (AFAIK). If you wanted to add TLS support, one option is to download the Swift Mailer class (which has support for TLS) and modifying the email.php component to use it. Hope this helps. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: What Happened to the Cakephp.org domain?
On Mon, May 5, 2008 at 12:44 AM, Joel Perras [EMAIL PROTECTED] wrote: Cakephp.org and all subdomains seem to be redirecting to a standard GoDaddy 'parked' page. Anyone know why or what happened? Until about a minute ago one of the 2 cakephp.org nameservers was responding with a different IP address for 'www.cakephp.org'. They now both reply with the right IP address so it should work fine (you'll have to wait until the DNS cache expires for it to resolve properly if you don't have control over your DNS server) - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
First release of LDAP Data Source Class (full CRUD)
Hi All, As I had mentioned on the list before, I started working on extending euphrate's LDAP data source class so that it handles the C, U and D in CRUD. I've finished the first version of it. It works fine for me (tm) so I thought I'd share it with the world and see how others go with it. This is probably my first contribution that I feel will be used by others (at least I hope so). I feel good about contributing back to a project like CakePHP that has saved me so many hours of work and taught me plenty of stuff (reading through well-written code is a good exercise). I'd like to take this opportunity to thank the entire CakePHP squad for this simply amazing framework. See the following link to the post I made on the LDAP data source: http://memdump.wordpress.com/2008/04/26/ldap-data-source-now-with-full-crud/ Enjoy! - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: First release of LDAP Data Source Class (full CRUD)
On Sat, Apr 26, 2008 at 3:25 PM, BrendonKoz [EMAIL PROTECTED] wrote: Might I suggest that you submit this as a Bakery article as well? A followup to the original, perhaps? A blog entry can get lost, at least with the Bakery the chances are slimmer. :) I'd love to, and I even tried to, but the bakery forgot password system is broken and it doesn't send me the unique string to reset my pass (I actually know my pass, but it doesn't accept it) How are Bakery issues normally reported? In trac? - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
C(R)UD for LDAP Data Source
Hi All, Has anyone been working on extending euphrate's work ( http://bakery.cakephp.org/articles/view/ldap-datasource-for-cakephp) on the LDAP data source to also cover creating, updating and deleting entries from LDAP ? I started to look at it yesterday and it's certainly not as easy as doing it with a DB (given how different LDAP schemas are to a database table). Euphrate's work is certainly useful to read from LDAP and to get me started, but I'm just wondering if anyone has been working on it. Thanks! - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: C(R)UD for LDAP Data Source
On Mon, Apr 21, 2008 at 3:23 PM, Gonzalo Servat [EMAIL PROTECTED] wrote: Hi All, Has anyone been working on extending euphrate's work ( http://bakery.cakephp.org/articles/view/ldap-datasource-for-cakephp) on the LDAP data source to also cover creating, updating and deleting entries from LDAP ? I started to look at it yesterday and it's certainly not as easy as doing it with a DB (given how different LDAP schemas are to a database table). Euphrate's work is certainly useful to read from LDAP and to get me started, but I'm just wondering if anyone has been working on it. Bad form to reply to my own post. I know. Anyway, I started working on this and managed to get a not-ready-for-public-viewing modified version of the ldap_source.php so that I can actually create new entries in LDAP using $this-Model-save( $this-data ). I just wanted to find out if anyone would be interested in seeing the progress as I go. - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: $data always empty - Please HELP!
On Sat, Apr 19, 2008 at 9:31 PM, Matias Veleda [EMAIL PROTECTED] wrote: Hey guys, I'm new to CakePHP. I followed the instructions in the manual, the example case and everytime I want to update my databaser from a form my $data is always empty, what am I doing wrong? It's like nothing happens when I press submit button. Sorry my english, I'm from Argentina. Hope someone can help me soon cuz I need to solve this urgently! ES Hola Matias, Desde donde estas tratando de ver el contenido de $data ? En el controller tendrias que fijate en $this-data, y si queres ver el contenido desde un Model tendrias que pasar $this-data como argumento. Suerte! /ES EN Hi Matias, Where are you trying to look at the content of $data from? If it's from a controller you'd have to look into $this-data, and if you want to look at the content from a Model you'd have to pass $this-data as an argument. Good luck! /EN - Gonzalo --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Problem with widget in opera.
On Sun, Apr 20, 2008 at 2:46 PM, lekshmi [EMAIL PROTECTED] wrote: lekshmi wrote: Hi, I am using cake php helper for creating widget. it uses document.write method. It is working in IE and MOZILLA. But not working in OPERA. The code used is $event = New text; $data = EOD $event EOD; //$data = $event; // Output JavaScript code to write the data printf('document.write(unescape(%s));', rawurlencode($data)) Have you looked at the JavaScript console in Opera? (Tools Advanced JavaScript console) - Gonzalo --~--~-~--~~~---~--~~ 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, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Leadership issues....
On Wed, Apr 16, 2008 at 1:37 PM, b logica [EMAIL PROTECTED] wrote: ruh-roh! No, this doesn't bode well at all. Dudes, I hope this gets sorted out. It'd be a shame for this project to collapse. I think p14r put it best: [Uh oh. I see another Joomla brewing here. ]. Suggestion: take this off IRC. It's a terrible mode of communication WRT arguments (though it can certainly be entertaining). If you read what nate, gwoo, et al have been saying in regards to this topic, you'll find the project is not about to collapse. In fact, the conflict started because they want to make CakePHP even better and get releases out quicker. It's simply a matter of them coming to an agreement with the lead developer (PhpNut). - Gonzalo --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: redirect and Cannot modify header information
On Tue, Apr 15, 2008 at 12:59 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: [snip] 2) The execution of this code on Unix server with PHP version 5.2.5, System HP-UX frl4 B.11.11 U 9000/800 generate the following error: Warning (2): Cannot modify header information - headers already sent by (output started at /opt/hpws/apache/htdocs/cake/app/ app_controller.php:75) [CORE/cake/libs/controller/controller.php, line 546] header - [internal], line ?? Controller::redirect() - CORE/cake/libs/controller/controller.php, line 546 PlansController::add() - APP/controllers/plans_controller.php, line 165 Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 268 Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 240 [main] - APP/webroot/index.php, line 84 I do not really manage to understand why I have this error; somebody can help me on this subject? Hi, I had a similar issue to this recently. I had pasted some code from a page into a app/models/ file and it kept sending a blank character/line which meant headers were already sent out (you can verify this by using something like curl to look at the HTTP headers; you'll find you'll receive a 200 OK instead of a moved status message like 301). Try backing up your app_controller.php and starting with a fresh new one. Start to copy code back until it breaks the redirect. Just an idea. - Gonzalo --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Model find() to return object; instead of array (?)
On Thu, Apr 3, 2008 at 2:13 PM, R. Rajesh Jeba Anbiah [EMAIL PROTECTED] wrote: BTW, whenever you reply here with your remarks, I thought of asking do you really use CakePHP? SCNR Chris helps out a lot in the CakePHP community (written articles, mailing list, etc). He has that grumpy attitude, sure, but he knows CakePHP quite well. Your comment is only asking for trouble and not the way to motivate people to reply to your question (except to throw some back). - Gonzalo --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: best practices: dev and production environments
On Jan 28, 2008 12:40 PM, Matias Lespiau [EMAIL PROTECTED] wrote: Question: how do you manage and deploy DB changes? I hadn't solved this on linux yet, but if you work with some mysql program like mysqlfront on win, you can check the logs and save every alteration to you database, save them to a text file, and run them on production. There's also DBDesigner4 (from fabFORCE.net) that allows you to visually design your (MySQL) database and saves the model as a XML file (which you could commit to SVN). From memory, you can just ask it to connect to a different DB and it tells you what it would have to change on it (and apply changes to it if you wish). - Gonzalo --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: How to test that adatabase table exists ?
On Jan 18, 2008 6:39 PM, foxmask [EMAIL PROTECTED] wrote: Good evening, I would like to test if my database table exists or not If no, i will display a message to suggest to install the software If yes, i will Route::connect() to the main page of the software. I digged on the Model::Schema() but i dunno how to use it nor if it's the well way to do the trick. Another way to do it is to use $this-Model-loadInfo(). According to the function description: Returns an array of table metadata (column names and types) from the database. So perhaps try with: if( $this-ModelName-loadInfo() ) { // table exists } else { // table doesn't exist } Come to think of it, it may return an empty array which could mean the table exists but has no columns defined, so try it out and see what the function returns in all 3 cases (table exists and columns defined, table exists and no columns defined, table doesn't exist). HTH, Gonzalo --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: What is {n}?
On Jan 17, 2008 2:26 PM, Raistlin Majere [EMAIL PROTECTED] wrote: I meant {n}, not (n). This was discussed very recently on the list. I've searched the archives for you: http://groups.google.com/group/cake-php/browse_thread/thread/1b0b0fa943a96e66/4e29a489b61da82d?lnk=gstq=%7Bn%7D#4e29a489b61da82d Next time you can do it yourself at: http://groups.google.com/group/cake-php - Gonzalo --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: How to set the default value of a textarea?
On Dec 18, 2007 9:30 PM, peterhf [EMAIL PROTECTED] wrote: In an html textarea object, the default value is set between the begin tag and the end tag, i.e. textareadefault value/textarea. How does one set the default value of $html-textarea(...)? $html-extarea() does not recognize a 'value' attribute in the html attribute array. Peter, What version of Cake are you using? At least on 1.1.15, inside the textarea() function in the libs/view/helpers/html.php file, if you set the 'value' key in the $htmlAttributes array, it should be set as the value between the textarea tags (unless you've created a app/config/tags.ini.php file in which case you'd need to make sure the last %s is between the textarea tags) - Gonzalo --~--~-~--~~~---~--~~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---