Re: link helper question

2011-03-12 Thread cricket
On Sat, Mar 12, 2011 at 11:03 PM, Ryan Schmidt wrote: > > On Mar 12, 2011, at 03:46, heohni wrote: > >> As this is the details page of a member, can I open somehow just the >> view template without the surrounding default.ctp? > > You would need to give this view a different layout, then -- one th

Re: Weird Observation

2011-03-12 Thread cricket
On Sat, Mar 12, 2011 at 11:00 PM, Ryan Schmidt wrote: > On Mar 12, 2011, at 15:17, cricket wrote: >> On Sat, Mar 12, 2011 at 3:39 PM, Krissy Masters wrote: >>> Ok well that was simple enough, >>> Forced 301 redirect to http://domain or https://domain >> >> OK, since we're on this subject ... Does

Re: run cakephp shell on remote host

2011-03-12 Thread Ryan Schmidt
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 explain. > > I am hosting with a remote host, they provide cronjob support in > cpanel but no direct SSH support. In cpanel, I can setup the frequency > by some d

run cakephp shell on remote host

2011-03-12 Thread Tan Cheng
Hi everyone, I need your help again. I know this is a stupid question, just need someone to help me explain. I am hosting with a remote host, they provide cronjob support in cpanel but no direct SSH support. In cpanel, I can setup the frequency by some dropdown menu, and there is a text input are

Re: link helper question

2011-03-12 Thread Ryan Schmidt
On Mar 12, 2011, at 03:46, heohni wrote: > As this is the details page of a member, can I open somehow just the > view template without the surrounding default.ctp? You would need to give this view a different layout, then -- one that basically does nothing other than echo $content_for_layout a

Re: Weird Observation

2011-03-12 Thread Ryan Schmidt
On Mar 12, 2011, at 15:17, cricket wrote: > On Sat, Mar 12, 2011 at 3:39 PM, Krissy Masters wrote: >> Ok well that was simple enough, >> Forced 301 redirect to http://domain or https://domain > > OK, since we're on this subject ... Does anyone know if there are any > issues with doing it this way.

Re: table row pay_unique_ident get identified as PayUniqueent?

2011-03-12 Thread Tilen Majerle
or just $offest = strtolower(substr($field, -3)) == '_id'; -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/3/12 cricket > On Sat, Mar 12, 2011 at 12:12 AM, Ryan Schmidt > wrote: > > > > On Mar 9, 2011, at 09:29, Tilen Majerle wrote: > > > >> because of _id, if you connect 2 models, the

Re: table row pay_unique_ident get identified as PayUniqueent?

2011-03-12 Thread cricket
On Sat, Mar 12, 2011 at 12:12 AM, Ryan Schmidt wrote: > > On Mar 9, 2011, at 09:29, Tilen Majerle wrote: > >> because of _id, if you connect 2 models, then they are connected with >> modelalias_id in other controller so like that >> >> POST model (hasMany Comment) >> posts table: >> >> id, >> tit

Re: image upload via iphone app

2011-03-12 Thread cricket
On Sat, Mar 12, 2011 at 2:38 PM, Foroct wrote: > I kicked this around for a few days and I still cant make it work. > > My model is "Recipe" and it is using the plugin > var $actsAs = array('Media.Transfer', 'Media.Generator', > 'Media.Coupler'); > When I upload using a form everything is perfect.

RE: SSL Help

2011-03-12 Thread Krissy Masters
Ok sorry for all the SSL questions. I am not sure if its because I am on nginx. but all tips / guides / cookbook show function forceSSL() { $this->redirect('https://' . env('SERVER_NAME') . $this->here); } All that did was loop me never ending error. So after debugging server variable

Re: Weird Observation

2011-03-12 Thread cricket
On Sat, Mar 12, 2011 at 3:39 PM, Krissy Masters wrote: > Ok well that was simple enough, > Forced 301 redirect to http://domain or https://domain OK, since we're on this subject ... Does anyone know if there are any issues with doing it this way. ie. stripping the www subdomain, rather than addin

RE: Weird Observation

2011-03-12 Thread Krissy Masters
Ok well that was simple enough, Forced 301 redirect to http://domain or https://domain but now something new :o I send myself an email forgot my password so I get the email with Hello Krissy Forgot your password. Click here https://domain.com/password/change/sadf465sdf456asdf654sd/wer87wer897

RE: Weird Observation

2011-03-12 Thread Krissy Masters
Right. On a new nginx server (new to me) so I am just now getting to figure out that issue to force remove www and just keep everything http || https. Any insight on that would be great :) But all the same thanks for the tip. K -- Our newest site for the community: CakePHP Video Tutorials ht

Re: Documentation changes

2011-03-12 Thread cricket
On Sat, Mar 12, 2011 at 12:48 PM, mark_story wrote: > In the 1.3.7 release announcement, we announced the possible move to > sphinx + git for documentation.  The following experiments have turned > up promising results, and the temporary repository contains functional > documentation, that still n

Re: Weird Observation

2011-03-12 Thread euromark
a quick note: it is not a good thing to have both plain and www access to your site redirect from domain.com to www.domain.com (301) On 12 Mrz., 20:06, "Krissy Masters" wrote: > Not even sure how to ask this question. > > Building forgot password function and it was working. > Then today go back

Re: image upload via iphone app

2011-03-12 Thread Foroct
I kicked this around for a few days and I still cant make it work. My model is "Recipe" and it is using the plugin var $actsAs = array('Media.Transfer', 'Media.Generator', 'Media.Coupler'); When I upload using a form everything is perfect. >From my app, I'm sending the photo (via XHR) to this con

Weird Observation

2011-03-12 Thread Krissy Masters
Not even sure how to ask this question. Building forgot password function and it was working. Then today go back to fix up the view and noticed it no longer works, testing looking thru the code all looks good no changes since last version, shit on it revert back to older working version same thin

Re: SSL Help

2011-03-12 Thread Shinya Koizumi
in order to support SSL do i have to change anything on my program? I thought we only need to deal on system level. Install and change apache config On Fri, Mar 11, 2011 at 9:57 PM, Krissy Masters wrote: > Thanks everyone. > > @Jeremy Will give this a shot. Found a SSL component I guess pre-your

Documentation changes

2011-03-12 Thread mark_story
In the 1.3.7 release announcement, we announced the possible move to sphinx + git for documentation. The following experiments have turned up promising results, and the temporary repository contains functional documentation, that still needs some improvement. One of the improvements that needs to

Re: Auto Increment A Field

2011-03-12 Thread nurvzy
$this->Product->id = 40; $this->Product->saveField('vote', $this->Product->field('vote') + 1); Nick On Mar 12, 9:36 am, "Krissy Masters" wrote: > $this->Product->updateAll(array('Product.vote'=>'Product.vote+1'), > array('Product.id'=>40)); > > So we are updating Product ID = 40 where the vote i

Re: Problem with selecting associative model data

2011-03-12 Thread John Andersen
How does you find statement look like? Are you using the Containable behaviour? Enjoy, John On Mar 12, 1:33 pm, heohni wrote: > Hi, > > I have the following structure: > > Member belongsTo Agent > Member hasMany Payment > > Payment belongsTo Agentprovision > Payment belongsTo Member > > Agent

RE: Auto Increment A Field

2011-03-12 Thread Krissy Masters
$this->Product->updateAll(array('Product.vote'=>'Product.vote+1'), array('Product.id'=>40)); So we are updating Product ID = 40 where the vote is vote + 1 increment basically what the above is saying. Original article: http://nuts-and-bolts-of-cakephp.com/2008/05/22/incrementing-a-field-in-cake

Invitation to connect on LinkedIn

2011-03-12 Thread Anas 21st
LinkedIn I'd like to add you to my professional network on LinkedIn. - Anas Anas 21st Php programer & Developer at 21st Century Software Nagpur Area, India Confirm that you know Anas 21st https://www.linkedin.com/e/-9d0odf-gl6r5dx9-64/isd/2491687258/JGKOxWkx/ -- (c) 2011,

Auto Increment A Field

2011-03-12 Thread tubiz
Please I would like to know how to increment a field in my database table once an action is viewed. I have a view field in my lyrics table and i want the field to be incremented by one once a visitor click to read a lyrics. I would like to know how this can be implemented. -- Our newest site f

Problem with selecting associative model data

2011-03-12 Thread heohni
Hi, I have the following structure: Member belongsTo Agent Member hasMany Payment Payment belongsTo Agentprovision Payment belongsTo Member Agent hasMany Agentprovision Agent hasMany Member Agentprovision belongsTo Agent Agentprovision belongsTo Payment In my Agent Controller I want to no sel

Re: link helper question

2011-03-12 Thread heohni
Thanks a lot!! On 12 Mrz., 10:49, Tilen Majerle wrote: > print $this->Html->link(__('Details', true), >     array( >         'plugin' => 'yourplugin', //otherwise null >         'controller' => 'members', >         'action' => 'view', >         $bankstatement['Paymentdetails']['Member']['id'] >  

Re: link helper question

2011-03-12 Thread Tilen Majerle
print $this->Html->link(__('Details', true), array( 'plugin' => 'yourplugin', //otherwise null 'controller' => 'members', 'action' => 'view', $bankstatement['Paymentdetails']['Member']['id'] ), array( 'target' => '_blank' ) ); -- Lep pozdrav,

link helper question

2011-03-12 Thread heohni
Hi, I have this link: Html->link(__('Details', true), array('target'=>'_blank', 'controller' => 'members', 'action' => 'view/'.$bankstatement['Paymentdetails']['Member']['id'])); ?> Its performing this link: http://localhost/ProjectX/members/view/5/target:_blank What do I have done worng? I just

Re: CakePHP set::combine(). Need a numeric array transformed into an associative array.

2011-03-12 Thread ShadowCross
Set::combine() transforms your original array into Array ( [path1] => [path2] ... ) so $combine = Set::combine($this->data,'{n}.{n}.Tree.id','{n}. {n}.Tree.name'); would result in Array ( [1] => Pine, [2] => Birch, [24] => Cherrywood ... ) Which is nothing like what you originally i