Redirecting to a different controller view in Cakephp

2013-03-07 Thread Victor Musvibe
I have to 2 models that are related ItQuery and ItQueryComment. When a user adds a ItQuery other users should be able to comment on it. What i am trying to achieve is when other users add comments on a query they should be redirect to the view of the query not the index page for the

Re: Begginer's Lesson learned! [Solved] Authentication Tutorial

2013-03-07 Thread Lorant Koszegi
Got the same problem, one ; missing. The post was really helpful, i knew to look for a small mistake. Cheers, mate! vineri, 21 decembrie 2012, 13:36:21 UTC+1, OxfordRob a scris: Thank you to jsundquist , crush, sams and cricket over the last few days for helping me with my Authentication

Re: any oAuth Provider implementations for Cake or PHP

2013-03-07 Thread Jo Warson
Shukuboy, Did you find more information on this? I am also working on a oAuth provider for a cakephp api. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups

Re: Redirecting to a different controller view in Cakephp

2013-03-07 Thread Jerome Walitzek
Hi, i solve the problem with following $this-redirect(array('controller' = 'posts', 'action'='view',$this-Post-id)); Am Donnerstag, 7. März 2013 11:32:47 UTC+1 schrieb Victor Musvibe: I have to 2 models that are related ItQuery and ItQueryComment. When a user adds a ItQuery other users

Re: Redirecting to a different controller view in Cakephp

2013-03-07 Thread Victor Musvibe
Hi I solved it by doing this $this-request-data['ItQueryComment']['it_query_id'] On Thu, Mar 7, 2013 at 1:42 PM, Jerome Walitzek jerome.walit...@t-online.de wrote: Hi, i solve the problem with following $this-redirect(array('controller' = 'posts', 'action'='view',$this-Post-id)); Am

How to hide id input and give it a value in cakephp

2013-03-07 Thread Victor Musvibe
I have 2 models that are related and what i would like to do is in my add view i would like to set the id field as a hidden field so that it doesnt show on my add view, when i set it to hidden the form doesn't submit. Is there a way of passing the id value as a hidden field? here is my add

Re: Saving AJAX Checkboxes

2013-03-07 Thread Jerome Walitzek
Hi there, at the moment i have still no success and the same problem. I have created a new views. Everything works fine. But still the same problem that only the event.id will stored into the table. the location_id will not stored. Any ideas ? *EventLocationsController.php* function add($id

Re: How to hide id input and give it a value in cakephp

2013-03-07 Thread euromark
If you feel the need to crosspost all over the www, it would be nice to link those other posts - like http://stackoverflow.com/questions/15269787/how-to-hide-id-input-and-give-it-a-value-in-cakephp this way people can take a look there if the answer might already be answered and avoid giving

Re: How to hide id input and give it a value in cakephp

2013-03-07 Thread Victor Musvibe
Thanks will keep that in mind next time i post a question On Thu, Mar 7, 2013 at 2:35 PM, euromark dereurom...@gmail.com wrote: If you feel the need to crosspost all over the www, it would be nice to link those other posts - like

Re: How can I use CakePHP on Heroku without getting logged out everytime I do an update?

2013-03-07 Thread Simon Males
Actually database session is a good suggestion, if you stuck on Heroku. On Mon, Mar 4, 2013 at 5:36 PM, majna majna...@gmail.com wrote: Instead of Memcache you should use Memcached that supports Heroku SASL auth. i.e https://github.com/kamisama/CakePHP-Memcached-Engine - extend this

Re: Cakephp 2.3.x Sending Files and forcing the download of a mp4 file

2013-03-07 Thread Simon Males
It's just an example of a model retrieving an array which contains a filename. So you don't need it. It's essentially a placeholder for you own code. On Tue, Mar 5, 2013 at 4:15 AM, Evan Jenkins evanhjenk...@gmail.com wrote: I'm using cakephp 2.3.1 I want to force download a mp4 file per

Re: any oAuth Provider implementations for Cake or PHP

2013-03-07 Thread Simon Males
Does this help? https://github.com/thomseddon/cakephp-oauth-server On Thu, Mar 7, 2013 at 4:52 PM, Jo Warson j...@cleardigital.be wrote: Shukuboy, Did you find more information on this? I am also working on a oAuth provider for a cakephp api. -- Like Us on FaceBook

Re: 3.0: a peek into CakePHP's future

2013-03-07 Thread Nematullah Atef
Dear Jose Lorenoz, thanks for detail, i would like to express i am new in PHP i want to start work in CakePHP with best interest but i am not able to start i installed but not able to go ahead i have knowledge of PHP but how can i do? could you send me the link of Video to find somewhere if

Re: 3.0: a peek into CakePHP's future

2013-03-07 Thread Nematullah Atef
Dear Jose Lorenoz, thanks for detail, i would like to express i am new in PHP i want to start work in CakePHP with best interest but i am not able to start i installed but not able to go ahead i have knowledge of PHP but how can i do? could you send me the link of Video to find somewhere if

Re: 3.0: a peek into CakePHP's future

2013-03-07 Thread Nematullah Atef
Dear Jose Lorenoz, thanks for detail, i would like to express i am new in PHP i want to start work in CakePHP with best interest but i am not able to start i installed but not able to go ahead i have knowledge of PHP but how can i do? could you send me the link of Video to find somewhere if

Re: Content blocks via controller

2013-03-07 Thread André Luis
Nothing? Em quinta-feira, 23 de agosto de 2012 14h19min07s UTC-3, André Luis escreveu: I will explain a little bit better... I need to create a content block to use in my layout, for example... echo $this-fetch('my_custom_content'); BUT, the data for this my_custom_content comes from a

Re: How to hide id input and give it a value in cakephp

2013-03-07 Thread Ersin Demirtas
Try passing attribute with input echo $ this- Form- input ('it_query_id', array ('type' = 'hidden') ); On 7 Mar 2013 11:59, Victor Musvibe jaahvi...@gmail.com wrote: I have 2 models that are related and what i would like to do is in my add view i would like to set the id field as a hidden field

REST routes without mod_rewrite

2013-03-07 Thread Mauricio Tellez
Hi, my client's web server don't has mod_rewrite enable, so I installed cake without mod_rewrite, everything work fine but REST routing. I made some test at my developing server and with mod_rewrite enable a GET request to http://localhost/Morrallas/1 is mapped to MorrallasController's view

my project folder name is not taking in to url

2013-03-07 Thread pprajapati
my project folder name like freeprint is not taking in to cake php urls. it show me like http://localhost/pages/home; instead of http://localhost/freeprint/pages/home;. Can any one let me know on urgent basis because my site is live and its creating issue for me. Looking for your kind support.

Problem with form

2013-03-07 Thread Lenyn Alcántara
Hi, How solve this problem? This code: echo $this-Form-create('Post'); echo $this-Form-input('title'); echo $this-Form-input('body', array('rows' = '3')); echo $this-Form-end('Save Post'); Generate this html code: form id=PostAddForm accept-charset=utf-8 method=post

APC caching integer value 0 returns false on read

2013-03-07 Thread Richard
I'm having a problem with APC caching engine, when trying to cache the integer value 0 it returns as false when read back out? ?php Cache::write('stats', 0); Cache::read('stats'); // returns false? This is on cake 2.3.1 / php 5.4 -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us

ajax call content in dialog box without remoteFunction

2013-03-07 Thread Chris
hi guys,... can anyone help please ,... how can I call content from another page into a dialog box without remoteFunction,... any other way,...? script type=text/javascript ?php echo $ajax-remoteFunction(array('url' = array('controller' = 'photo_comment', 'action' = 'report_spam/',

Re: Problem with form

2013-03-07 Thread Lenyn Alcántara
Problem solved, making a VHost and un Fully Quality Domain using hosts file. Greetz! El jueves, 7 de marzo de 2013 09:00:57 UTC-4:30, Lenyn Alcántara escribió: Hi, How solve this problem? This code: echo $this-Form-create('Post'); echo $this-Form-input('title'); echo