Re: save() not working

2011-12-18 Thread euromark
yes, if there are no validation rules than there will be always an empty result, of course. did you debug the save query? does it return FAlSE? On 18 Dez., 08:36, roundrightfarm roundrightf...@gmail.com wrote: Yes, its set to 2 On Dec 17, 11:23 pm, Geoff Douglas drdouglas...@gmail.com wrote:

Re: show id in url on function call

2011-12-18 Thread euromark
@geoff: but if he doesnt do a 301 redirect he's gonna shoot himself in the foot On 18 Dez., 08:06, Geoff Douglas drdouglas...@gmail.com wrote: The only way to change the URL in php, is by doing a redirect. In straight PHP you would set the header location. In Cake you can just do a redirect.

404 error

2011-12-18 Thread Surit
Last day I uploaded my cakephp 1.3 project in Linux server.But when i open the project it give me error 404 page not found. But when i used index.php/controllername/function name page is display. My mod_rewrite is on.I think my .htacess is not working properly. Please help me. -- Our newest

Re: 404 error

2011-12-18 Thread Sam Sherlock
The book has some notes on some setups needing htaccess needing extra bits added and other amendments - rewrite base might be part of the solution. Search the group for htaccess as this comes up often others have posted what worked for them already. - S On 18 Dec 2011 12:21, Surit

Re: Fatal error: Cannot unset string offsets in ... when displaying image in view

2011-12-18 Thread Daniel
Got it thanks. The amended code is: li?php echo $this-Html-link(__('New Image', true), array('action' = 'add', $gallery_id)); ? /li -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help

Re: Need help with model design

2011-12-18 Thread Ersin Demirtas
Thanks guys but i couldn't manage to do can some one give me a hand. On Wed, Dec 14, 2011 at 7:07 PM, Geoff Douglas drdouglas...@gmail.com wrote: Like Andras said.. Containable is what you need, it is simple and awesome! -- Our newest site for the community: CakePHP Video Tutorials

Re: Need help with model design

2011-12-18 Thread Ersin Demirtas
Thank you very much, I got it! On Wed, Dec 14, 2011 at 4:45 AM, Andras Kende and...@kende.com wrote: Ersin, You could do 2 queries: $event = $this-Event-find('first', array('conditions' = array('Event.id' = $id))); $comments = $this-Event-Comment-find('all', array('conditions' =

Re: save() not working

2011-12-18 Thread roundrightfarm
this is a cron job script which has no view, so it is expected that the screen would be blank when i run it for testing. The only way I know it is not working properly is that there are no new records in the database table. Here is all the relevant code again. I simplified the naming of the

Re: save() not working

2011-12-18 Thread roundrightfarm
When I debug the save query, I get the same blank layout with no message, and nothing in error.log or debug.log, but no new records in the table. On Dec 18, 2:35 am, euromark dereurom...@googlemail.com wrote: yes, if there are no validation rules than there will be always an empty result, of

Re: save() not working

2011-12-18 Thread roundrightfarm
I figured it out. I was not thoroughly resetting my database records to allow for proper testing so I was running the foreach on an empty array. Sorry to have wasted your time. On Dec 18, 8:28 am, roundrightfarm roundrightf...@gmail.com wrote: When I debug the save query, I get the same blank

CakeDC: Should we group categories plugin with tags plugin ?

2011-12-18 Thread Điển vũ
Should we group *categories *plugin with *tags *plugin ? Tags Plugins https://github.com/CakeDC/tags and Categories Pluginshttps://github.com/CakeDC/categories I know a little about drupal ( i don't use it in long time), they used * term* for tags and even categories, menu. And i see tags and

Re: CakeDC: Should we group categories plugin with tags plugin ?

2011-12-18 Thread Thiago Belem
I agree, that's how WordPress works too.. Everything (instead Posts) is a taxonomy (term). :) Abs, -- ***Thiago Belem* Desenvolvedor Rio de Janeiro - RJ - Brasil +55 (21) 8865.9250 thiagobelem.net cont...@thiagobelem.net *Skype / gTalk **»* thiago.belem.web *LinkedIn* *»*

Re: I am looking for a good oAuth 2.0 component that will work in cakePHP 2.0.4

2011-12-18 Thread Salines
Thanks -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to

Re: CakeDC: Should we group categories plugin with tags plugin ?

2011-12-18 Thread AD7six
On Dec 18, 8:32 pm, Điển vũ meotimdi...@gmail.com wrote: Should we When you say we who are you referring to/what do you mean? AD -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help

Using encryption to verify parameters

2011-12-18 Thread Daniel
I am thinking of encrypting all parameters (in the URL) along with a secret key, so they cannot easily be faked. However I do not know which encryption to use or what is a good way to do this. Any ideas? Thanks. -- Our newest site for the community: CakePHP Video Tutorials

Re: Using encryption to verify parameters

2011-12-18 Thread euromark
what? seriously? I heard a lot of crazy things in my life - but that tops them all^^ On 18 Dez., 23:55, Daniel danwgr...@gmail.com wrote: I am thinking of encrypting all parameters (in the URL) along with a secret key, so they cannot easily be faked.  However I do not know which encryption to

Re: Using encryption to verify parameters

2011-12-18 Thread Tilen Majerle
hahahah mark hahah :) :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2011/12/19 euromark dereurom...@googlemail.com what? seriously? I heard a lot of crazy things in my life - but that tops them all^^ On 18 Dez., 23:55, Daniel danwgr...@gmail.com wrote: I am thinking of encrypting

Re: Using encryption to verify parameters

2011-12-18 Thread Daniel
On Dec 18, 11:20 pm, euromark dereurom...@googlemail.com wrote: what? seriously? I heard a lot of crazy things in my life - but that tops them all^^ Sarcastic B*d -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions

Cakephp 2.0.4 Stable - Scaffold Problem

2011-12-18 Thread gloop
Hello, i try to use Scaffold, but i get a blank page: ?php class Comment extends AppModel { } ? ?php class CommentsController extends AppController { public $scaffold = true; } ? try to open: http://localhost/domain/comments Something wrong?

Wich command use in cakePHP 2.X similar to Dispatcher::baseUrl()?

2011-12-18 Thread Lucas Simon Rodrigues Magalhaes
i don't find in cake book http://stackoverflow.com/questions/8555607/wich-command-use-in-cakephp-2-x-similar-to-dispatcherbaseurl -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others

Re: Using encryption to verify parameters

2011-12-18 Thread euromark
well, you might wanna try to explain why you wanna do that all actions = the complete application? or only for specific actions? before you start cussing around. because I cannot think of a sane reason - expect maybe making your own life more complicated. there is reason why no one went down that

Re: Cakephp 2.0.4 Stable - Scaffold Problem

2011-12-18 Thread Thiago Belem
Based on documentationhttp://book.cakephp.org/2.0/en/controllers/scaffolding.html, you use just: public $scaffold; If you give some value to it, cake will use this value as prefixhttp://book.cakephp.org/2.0/en/controllers/scaffolding.html#creating-a-simple-admin-interface-with-scaffolding .

any oAuth Provider implementations for Cake or PHP

2011-12-18 Thread Shukuboy
Hi everyone, I need to integrate an oAuth Provider in my website, which allows my mobile apps (and other third party applications) to use the services of the website by means of a 2-legged oAuth authentication. Has anyone come across a good implementation of oAuth providers in Cake or PHP ?

Re: show id in url on function call

2011-12-18 Thread Geoff Douglas
I agree. meinstream, make sure you set the second param to 301, if you want google and the like to take note of the new urls. Controller Code: $this-redirect(mixed $url, integer $status, boolean $exit) * * -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: Using encryption to verify parameters

2011-12-18 Thread Geoff Douglas
The accounting web application Freshbooks does this. Every link inside the application uses an long encrypted string, instead of a url path. Once the url hits the app, it's decrypted and routed. Thus securing the urls from users eyes... I agree that this adds a genuine level of security, even

how to check specific field value in controller

2011-12-18 Thread ahmed fakher
i have comments function,i have field in comments table that called status i want to check this specific field value if it is equal to 0 or not...i want to know how to check field value in the contoller..i write wrong code..someone help me please to correct this code function admin_publish

Re: Using encryption to verify parameters

2011-12-18 Thread José Lorenzo
I think the reasons for doing this are very narrow. But if you are absolutely positive that you need to do it, then the best way would be to not encrypt the url at all! Encryption can be broken with some level of effort. My suggestion would be to create urls like tinyurl does, store the params

Re: schema shell for cakephp 2 - migrate new tables?

2011-12-18 Thread José Lorenzo
Use the migrations plugin, it is a more complete solution. https://github.com/CakeDC/migrations/tree/2.0 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP

Re: Lightbox form CakePHP 2.0

2011-12-18 Thread stefanski
In case you wonder abput how to clse the lightbox, after the form is processed successfully, this is how i implemented it: in any ajax-popup-controller controller action: if ($form_processed_sucessfully) { $this-render(null, 'ajax', '/ajax_refresh'); } views/ajax_refresh.ctp: script

Re: Cakephp 2.0.4 Stable - Scaffold Problem

2011-12-18 Thread gloop
Sorry i tested something, but the problem is still excisting with public $scraffold; Blank page. Kind Regards On 19 Dez., 01:45, Thiago Belem cont...@thiagobelem.net wrote: Based on documentationhttp://book.cakephp.org/2.0/en/controllers/scaffolding.html, you use just: public $scaffold;