Case sensitivity in LIKE searches

2011-03-13 Thread heohni
Hi, SELECT .. FROM `members` AS `Member` WHERE `Member`.`email` LIKE '%Hans%' When I search for Hans, I find a entry, if I search for hans I dont find a result. Is this because of the UTF-8? Is there any trick to search and find the results in both cases? -- Our newest site for the

CakePHP License

2011-03-13 Thread Chris DB
If I use CakePHP framework to my simple commercially project proposed, lets say online registration, do I pay a license fee for CakePHP framework and how much is the cost. Cost for support and consultation. Chris DB. -- Our newest site for the community: CakePHP Video Tutorials

How to load content on a specific area of the page with ajax

2011-03-13 Thread Chris
I have a single post I want to load for my website. I made a controller function function homeview(){ $this-ParentcornerPost-recursive = -1; $this-set('posts',$this-ParentcornerPost- find('first',array(null,null,'date DESC')));

User specific Routing

2011-03-13 Thread Özgür Demir
Hi there, I have a routing question. My website should display content depending on a username. I can achieve this using something like: www.mysite.com/controller/action/username:peter i can then just show all information specific to user: peter. however this is quite complex to remember for

Re: Case sensitivity in LIKE searches

2011-03-13 Thread euromark
you should be using utf8_unicode_ci (ci stands for case ins.) then it should be no problem and the search is always ci! On 13 Mrz., 14:16, heohni heidi.anselstet...@consultingteam.de wrote: Hi, SELECT .. FROM `members` AS `Member` WHERE `Member`.`email` LIKE '%Hans%' When I search for

Re: image upload via iphone app

2011-03-13 Thread Foroct
The XHR file upload using PHP to move my file to a set location and save it works well. Really easy as I described earlier, no work around needed. The phone app simply bypasses the view (its there but is a blank file) and the action is handled by the controller. Again the issue is trying to use

Having trouble with $this-layout

2011-03-13 Thread heohni
Hi, function searchMember($id = null){ $this-layout = 'blank'; $this-set('members', $member); } Is not loading the template I created under /views/layouts/blank.ctp Do I miss anything here? Because I wonder as here

Re: run cakephp shell on remote host

2011-03-13 Thread Tan Cheng
Thanks Ryan, Always a life saver. That's exactly what I want to know. -David On Mar 13, 12:40 am, Ryan Schmidt google-2...@ryandesign.com wrote: On Mar 12, 2011, at 22:21, Tan Cheng wrote: I need your help again. I know this is a stupid question, just need someone to help me

Re: Having trouble with $this-layout

2011-03-13 Thread cricket
On Sun, Mar 13, 2011 at 12:29 PM, heohni heidi.anselstet...@consultingteam.de wrote: Hi, function searchMember($id = null){ $this-layout = 'blank'; $this-set('members', $member); } Is not loading the template I created under /views/layouts/blank.ctp Do I miss anything here? Because I

Re: User specific Routing

2011-03-13 Thread cricket
On Sun, Mar 13, 2011 at 8:33 AM, Özgür Demir oet...@googlemail.com wrote: Hi there, I have a routing question. My website should display content depending on a username. I can achieve this using something like: www.mysite.com/controller/action/username:peter i can then just show all

Re: How to load content on a specific area of the page with ajax

2011-03-13 Thread cricket
On Sat, Mar 12, 2011 at 6:39 PM, Chris theswimmingf...@gmail.com wrote: I have a single post I want to load for my website. I made a controller function        function homeview(){        $this-ParentcornerPost-recursive = -1;        $this-set('posts',$this-ParentcornerPost-

Re: Auto Increment A Field

2011-03-13 Thread Ryan Schmidt
Nick, that code has a race condition. Two different users looking at the page at the same time could cause the count to be incremented by only one total, when you want the count to be incremented by one for each user. The method Krissy showed is atomic and does not have this problem. On Mar

Re: Auto Increment A Field

2011-03-13 Thread euromark
nice catch :) i guess thats true additionally, updateAll() doesnt trigger any callbacks like beforeSave() or afterSave(). probably a good thing in this case, as well On 13 Mrz., 23:06, Ryan Schmidt google-2...@ryandesign.com wrote: Nick, that code has a race condition. Two different users

Re: image upload via iphone app

2011-03-13 Thread David Persson
Hi Foroct, I'd need a little more information in order to help you. What does $this-data['media'] looks like *before* you hand it over to -transfer()? var_dump($this-data['media'])? Also provide var_dump($this-params['form']. Also check var_dump($this-Recipe-Behaviors-Transfer-runtime);

session not saved in app controller

2011-03-13 Thread cake-learner
I set up my app object in both beforeFilter and afterFilter callback functions class AppController extends Controller{ var $myAppObj; var $components = array(Site , Notification, Auth, Mailer, Session); function beforeFilter(){ $this - myAppObj = unserailize( $this - Session -

Re: How to load content on a specific area of the page with ajax

2011-03-13 Thread Dr. Loboto
You should include prototype.js lib yourself as said on http://book.cakephp.org/#!/view/1358/AJAX On Mar 13, 5:39 am, Chris theswimmingf...@gmail.com wrote: I have a single post I want to load for my website. I made a controller function         function homeview(){