Re: Add items to category

2013-05-16 Thread Lilit
I already solved it in another way Thanks anyway:) -- View this message in context: http://cakephp.1045679.n5.nabble.com/Add-items-to-category-tp5714898p5714939.html Sent from the CakePHP mailing list archive at Nabble.com. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on

Re: Research about frameworks

2013-05-16 Thread AD7six
On Wednesday, 15 May 2013 03:28:46 UTC+2, Fabio Schunig wrote: Hello! I'm doing a research about frameworks for PHP. Currently, I'm researching the frameworks Zend, CakePHP, CodeIgniter, Yii and Symfony. I'm new in the subject, and I'm reading a lot of tutorials and manuals. The

Issue with asscoaited, containable and afterFind

2013-05-16 Thread veganista
I'm having an issue where using a find in an afterFind callback is messing up my original contain. *Short Story *When using this from my Note model: $job = $this-Job-find('first', array( 'conditions' = array('Job.id' = $data['Note']['job_id']), 'contain' = array('Assignee',

Re: How to send Email in Cakephp

2013-05-16 Thread Santosh Verma
how to use mulltiple dropdown list,checkbox ,radio buttons in cake-php in registration page? On Wednesday, 14 September 2011 22:11:21 UTC+5:30, tubiz wrote: Please I have a register action in my user controller how do i send a mail to a user after he has successfully registered and his

Re: How to send Email in Cakephp

2013-05-16 Thread raj kumar Pustela
hi Santhos, follow below process UsersController: in add method You have to copy past same as.. Step 1: /** * add method * * @return void */ public function add() { if ($this-request-is('post')) { $this-User-create(); if ($this-User-save($this-request-data)) {

Edit Page Not Populating Data

2013-05-16 Thread Karl Smith
I am trying to populate fields in my edit action. I have been struggling with this for a full day now and can't seem to wrap my head around it. Here is what Ive got. The model is Declination which belongsTo Policy. Policy hasMany Declination. With that said, the edit action does contain the

Re: Edit Page Not Populating Data

2013-05-16 Thread Karl Smith
Also here is my controller /** * edit function. * * @access public * @param mixed $id (default: null) * @return void */ public function edit($id = null) { if (!empty($this-data)) { $this-Declination-create(); if ($this-Declination-saveAll($this-data['Declination'])) {

I have 405 html files (help)... what is the proper convention location for these files?

2013-05-16 Thread glk
Hello All, I have help documentation in html, png files located in a single folder... Created by another. Where should these files be located within the site's app folder. A folder within /View/Pages are as separate folder /View/Help? If this Help were in PDF format, where (by convention)

Re: I have 405 html files (help)... what is the proper convention location for these files?

2013-05-16 Thread André Luis
If it´s all in HTML and you dont want to have much work, you can put inside the webroot folder, OR you can put inside another folder in your public_html folder but with a .htaccess file with RewriteEngine OFF, both way will be accessible... for example...

Re: I have 405 html files (help)... what is the proper convention location for these files?

2013-05-16 Thread glk
Andre, I thought webroot was my public_html folder as far as Cake was concerned!? I would like to keep the html OUT of the public folders, so if I understand you correctly I can place the folder as /app/docs/doc1.html and then have htaccess in that folder to stop the RewriteEngine? Your

Re: I have 405 html files (help)... what is the proper convention location for these files?

2013-05-16 Thread André Luis
Well, usually most users put the files online as it comes from cakephp website, just unzip the files and when upload to server, uploads all file to the public_html folder, and this folder will have the .htaccess that redirects every request to app/webroot, BUT if you create another folder in

Re: I have 405 html files (help)... what is the proper convention location for these files?

2013-05-16 Thread glk
Andre, Thank you for a great explanation... I'm using xampp and have my VirtualHost DocumentRoot pointed at my /app/webroot, so essentially I have Cake in private folders and my webroot is my public_html. This works great for my testing, and I just assumed that the folders such as

Re: I have 405 html files (help)... what is the proper convention location for these files?

2013-05-16 Thread André Luis
I dont know if it will work, but try to put this line in .htaccess of webroot´s folder... RewriteRule ^/docs/(.*)^ /path/to/docs/$1 [L] * BEFORE other rules... Em quinta-feira, 16 de maio de 2013 17h16min20s UTC-3, glk escreveu: Andre, Thank you for a great explanation... I'm using xampp

Re: I have 405 html files (help)... what is the proper convention location for these files?

2013-05-16 Thread André Luis
Wow, now i´ve understanded... Em quinta-feira, 16 de maio de 2013 12h16min18s UTC-3, glk escreveu: Hello All, I have help documentation in html, png files located in a single folder... Created by another. Where should these files be located within the site's app folder. A folder

Re: I have 405 html files (help)... what is the proper convention location for these files?

2013-05-16 Thread glk
Wow! I'm sorry I won't be able to try this out today But thanks! Maybe I'll actually learn how to communicate everything the first time some day. I'll let you know either way! Thanks again! Greg -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter

Re: I have 405 html files (help)... what is the proper convention location for these files?

2013-05-16 Thread André Luis
Sorry, i saw it now, the correct is: RewriteRule ^/docs/(.*)$ /path/to/docs/$1 [L] I changed a character, i think this will work... Em quinta-feira, 16 de maio de 2013 18h13min50s UTC-3, glk escreveu: Wow! I'm sorry I won't be able to try this out today But thanks! Maybe I'll actually

How to use Cache Helper and execute UPDATE query on every URL request?

2013-05-16 Thread Salines
Hi, I use the Cache Helper, to cache my views, but now I need to implement a simple UPDATE query in my view() action. When I use the cached views, CakePHP skip actions in the the controller? I want to record the number of hits on each article! Can someone point me in the right direction?