CAKEPHP PDF File Download Problem MAC PC Safari Browser.
Dear All, CAKEPHP Download Problem IN MAC PC Safari Browser : Currently My PDF File Possible to download by Mozilla, IE, Safari from windows. When i download pdf file from MAC Pc Safari Browser then facing problem. When i download pdf file from mac safari browser then add extra extension .html with pdf file name. I need to download only .pdf extension file. Example : myfile.pdf.html Please Give me Suggestion and Solutions. -- Regards, *Mohammad Arif Hossen Software Engineer at Japan Bangladesh IT(JABA IT)* **Cell: +88 01714355911 Blog : www.arifhossen.wordpress.com -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
Re: Pagination Problem
Thank you very much On Thu, Aug 12, 2010 at 11:32 AM, Andras Kende and...@kende.com wrote: Try something like: $this-paginate = array( 'conditions' = array(Project.id = $ProjectIdArray), 'limit' = 20 ); $projects = $this-paginate('Project'); // debugging in controller ;-) // print_r($projects); $this-set(compact('projects')); then add the paginator links in the view ( http://book.cakephp.org/view/1233/Pagination-in-Views) Andras Kende http://www.kende.com On Aug 12, 2010, at 12:24 AM, arif hossen wrote: Dear All, I need pagination below query : $projectTable = $this-Project-findAllById($ProjectIdArray); Please give me suggestion.. -- Regards, Mohammad Arif Hossen Software Enginner at Epsilon Consulting and Development Services(ECDS) www.ecds-tech.com www.arifhossen.wordpress.com Cell: +88 01714355911 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en -- Regards, Mohammad Arif Hossen Software Enginner at Epsilon Consulting and Development Services(ECDS) www.ecds-tech.com www.arifhossen.wordpress.com Cell: +88 01714355911 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Pagination Problem
Dear All, I need pagination below query : $projectTable = $this-Project-findAllById($ProjectIdArray); Please give me suggestion.. -- Regards, Mohammad Arif Hossen Software Enginner at Epsilon Consulting and Development Services(ECDS) www.ecds-tech.com www.arifhossen.wordpress.com Cell: +88 01714355911 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Fatal error: Call to undefined method ThemeView::RenderElement()
Dear Experts, I need help. i got below this problem when i have added renderElement in my layout. I have also keep my file into views/elements folder. After add this file below error occurs. *Fatal error*: Call to undefined method ThemeView::RenderElement() in * /opt/lampp/htdocs/arifhossen_rural/app/views/layouts/default.ctp* on line * 72* Pls help how i can solve this error -- Regards, Mohammad Arif Hossen Software Enginner at Epsilon Consulting and Development Services(ECDS) www.ecds-tech.com www.arifhossen.wordpress.com +88 01714355911 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Error when running cakephp
Dear, Change your security salt value: Give some value in security salt as your wish. Configure::write('Security. salt', 'abcxyzfIxfs2guVo'); On Wed, Jun 16, 2010 at 4:30 PM, John Andersen j.andersen...@gmail.comwrote: Check that you have not deleted the quotes around your constants!!! Your code should contain something similar as this: [code] Configure::write('Security.salt', 'UubWwvniR2G0FgaC9miDYhG93b0qyJfIxfs2guVo'); [/code] Enjoy, John On Jun 16, 12:12 pm, Abrão Ximenes abraoxime...@gmail.com wrote: How to fix the following problems? : *Notice* (8) javascript:void(0);: Use of undefined constant ‘Security - assumed '‘Security' [*APP/config/core.php*, line *203*] *Notice* (8) javascript:void(0);: Use of undefined constant salt’ - assumed 'salt’' [*APP/config/core.php*, line *203*] *Notice* (8) javascript:void(0);: Use of undefined constant ‘UubWwvniR2G0FgaC9miDYhG93b0qyJfIxfs2guVo’ - assumed '‘UubWwvniR2G0FgaC9miDYhG93b0qyJfIxfs2guVo’' [*APP/config/core.php*, line *203*] *Notice* (1024) javascript:void(0);: Please change the value of 'Security.cipherSeed' in app/config/core.php to a numeric (digits only) seed value specific to your application [*CORE/cake/libs/debugger.php*, line *688*] Thanks Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en -- Regards, Mohammad Arif Hossen Software Enginner at Epsilon Consulting and Development Services(ECDS) www.ecds-tech.com www.arifhossen.wordpress.com +88 01714355911 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: How i can increase session time in cakephp,
Thank you Marcelo, my session stay only few second or few minutes no stable time. I have set session security level high and set 260, but session time out certainly . i don't know why occurs this . On Mon, Jun 14, 2010 at 6:22 PM, Marcelo F Andrade mfandr...@gmail.comwrote: On Mon, Jun 14, 2010 at 8:15 AM, arif hossen arifhossen2...@gmail.com wrote: Dear Experts, How i can increase session time in cakephp, You can change Security.level in app/config/core.php and there is a Session.timeout entry too. Atts. -- MARCELO F ANDRADE Belem, Amazonia, Brazil I took the red pill Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en -- Regards, Mohammad Arif Hossen Software Enginner at Epsilon Consulting and Development Services(ECDS) www.ecds-tech.com www.arifhossen.wordpress.com +88 01714355911 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
How i can generate default.po file for bengali language by console.
Dear Experts, i18n script ans default.po file How i can generate default.po file for bengali language . Pls give me instruction. -- Regards, Mohammad Arif Hossen Software Enginner at Epsilon Consulting and Development Services(ECDS) www.ecds-tech.com www.arifhossen.wordpress.com +88 01714355911 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Database Connection from another pc by IP Address.
Dear All, I need cakephp database connection from another PC , Now currently i use lampp, I need database connection from another pc. Pls help me. How i can connect database from another pc in my lampp server. -- Regards, Mohammad Arif Hossen Software Enginner at Epsilon Consulting and Development Services(ECDS) www.ecds-tech.com +88 01714355911 Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: cakephp html link problem
Please use this code : I hope your problem will solve by this code. ?php echo $html-link('Login', array('controller'='users','action'=' login ')); ? On Mon, Oct 26, 2009 at 3:27 PM, gautam lakum lakum7...@gmail.com wrote: I am new to cakePHP. I have used the last and newer both versions. In new version I am facing problem with generating html link using $html- link The link as output is currect. But with the link title, I am also getting the link as text that I have applied. Look below e.g. ?php echo $html-link(Login,'/users/login'); ? The output should be just Login as text and when someone clicks in that link then it should open login form. But I am getting output like Login (/cakeproject/users/login) as text and rest of the output is OK. So give me the solution for this. How to get link title only Login but not Login (/cakeproject/users/ login). I want to remove (/cakeproject/users/login) text from link title. Thank you. -- Regards, Mohammad Arif Hossen Software Enginner Epsilon Consulting and Development Services(ECDS) www.ecds-tech.com +88 01714355911 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
How I can integrate cakephp into Joomla.
Dear All, Please help me. How i can integrate cakephp into Joomla . -- Regards, Mohammad Arif Hossen Software Enginner Epsilon Consulting and Development Services(ECDS) www.ecds-tech.com +88 01714355911 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
popup resizable off in Mozilla Browser
Dear All, Please help me. How i can off popup resizable in Mozilla Browser. -- Regards, Mohammad Arif Hossen Software Enginner Epsilon Consulting and Development Services(ECDS) www.ecds-tech.com +88 01714355911 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
How to use PHP to delete cookies when browser is close.
Dear all , Please help me. How to use CAKEPHP to delete cookies when browser is close. -- Regards, Mohammad Arif Hossen Software Enginner Epsilon Consulting and Development Services(ECDS) www.ecds-tech.com +88 01714355911 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
After Save data no redirect to another page.
Please help me. After Save data no redirect to another page. it is cakeconfig any problem? such as : function add() { if(!empty($this-data)) { if($this-User-save($this-data)) { $this-redirect(array('action'='index')); } } } but no redirect to index page: page show white screen.What kinds of problem is it? Please give solution . -- Regards, Mohammad Arif Hossen Software Enginner Epsilon Consulting and Development Services(ECDS) www.ecds-tech.com +88 01714355911 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
How i can use after properties in textarea.
Dear all, How i can use after properties in textarea. such as :below textfield after properties echo $form-input('name',array('label'='name','after'='Must be 6 character')); i need used it textarea field. -- Regards, Mohammad Arif Hossen Web Developer United Group International(UGIBD) www.ugibd.net Mobile no: +88 01714355911 Mobile no: +88 01922110308 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Default values in select lists
You can use below code cakephp format. ?php echo $html-input('listname',array('options'=$mylist,'Selected'='Please select a value)); ? On 8/11/09, jburns jeremybu...@me.com wrote: How can I add a blank value (something like Please select a value) to the top of a select list when using $this-Xxxx-Yyyy-find ('list'); instead of defaulting to the first value in the list? -- Regards, Mohammad Arif Hossen Web Developer United Group International(UGIBD) www.ugibd.net Mobile no: +88 01714355911 Mobile no: +88 01922110308 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Email Validation in cakephp
Dear All, Please help me. Cakephp Email validation Get email address only .com .org etc But When email address enter such below: i...@a.co.uk not expect cakephp Error message appears say :not valid email address. How i can solve this email validation. -- Regards, Mohammad Arif Hossen Web Developer United Group International(UGIBD) www.ugibd.net Mobile no: +88 01714355911 Mobile no: +88 01922110308 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Fatal error: Class 'User' not found in PROJECT_HOME/cake/libs/class_registry.php on line 140
You have mistake class name your class name below : ?php class User extends AppModel{ var $name = 'User'; } ? On Sun, Aug 9, 2009 at 3:19 AM, free ruserious...@gmail.com wrote: It happens when I write a very simple page script. I just create the a model, controller and view just as the Cake tutorial say, related codes: - app/models/user.php ?php class UserModel extends AppModel{ var $name = 'User'; } ? app/controllers/users_controller.php - ?php class UsersController extends AppController { var $name = 'Users'; function register(){} } ? app/views/users/register.ctp --- html headtitleJust a test page/title/head body h1Test/h1 /body /html every is so simple, but when i input the url: http://mysite.com/users/register, I just got this error: Fatal error: Class 'User' not found in /home/free/dev/webc/trunk/cake/ libs/class_registry.php on line 140 I don't know what's wrong with this, or it's my fault any advice appreciated, thanks -- Regards, Mohammad Arif Hossen Web Developer United Group International(UGIBD) www.ugibd.net Mobile no: +88 01714355911 Mobile no: +88 01922110308 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: setFlash and redirect problem
You can follow below code: $this-Sesssion-setFlash(__('Bill was sent by e-mail successfully', true)); $this-redirect(array('controller' = 'controllername','action'='actionname')); On Thu, Aug 6, 2009 at 6:32 AM, Eddy Josafat eddyjosa...@gmail.com wrote: Thanks for advice. It was a typo: notificación instead of notificacion. Sorry for wasting your time! On Jul 30, 5:12 pm, Dr. Loboto drlob...@gmail.com wrote: Error before redirect causes blank page. Turn debug on and look at this error. On Jul 29, 10:29 pm, Eddy Josafat eddyjosa...@gmail.com wrote: I have same problem and I don't use any translation. $this-Session-setFlash('Contraseña modificada', 'notificación'); $this-redirect(array('controller' = 'gestion', 'action' = 'display', 'inicio')); I get a blank page and no redirect with previous code. If I comment the line that sets the flash message it works fine. In another place of my app, if I create a new record, flash + redirect works perfectly: function nueva() { if (!empty($this-data)) { // Guardar fichero y almacenar url si se ha subido una imagen $url = $this-_url_uploaded_file($this-data['Document'] ['submittedfile']); if ($url) { $this-data['Noticia']['url_imagen'] = $url; } // $url if ($this-Noticia-save($this-data)) { $this-Session-setFlash('Noticia guardada con éxito', 'notificacion'); $this-redirect(array('action' = 'listado')); } else { $this-Session-setFlash('No ha podido almacenarse la noticia', 'error'); } // $this-Documento-save($this-data) } // !empty($this-data) } but when I'm doing editing an existing record: function editar($id = null) { $this-Noticia-id = $id; if (empty($this-data)) { $this-data = $this-Noticia-read(); } else { $url = $this-_url_uploaded_file($this-data['Document'] ['submittedfile']); if ($url) { // Borrar el anterior $noticia = $this-Noticia-read(); if ( $noticia['Noticia']['url_imagen'] != $url ) { @unlink($noticia['Noticia']['url_imagen']); } $this-data['Noticia']['url_imagen'] = $url; } if ($this-Noticia-save($this-data)) { $this-Session-setFlash('Noticia modificada', 'notificación'); $this-redirect(array('action' = 'listado')); } else { $this-Session-setFlash('No ha podido almacenarse la noticia', 'error'); } } } flash + redirect causes a blank page. What's the matter aobut flash messages and redirects? -- Regards, Mohammad Arif Hossen Web Developer United Group International(UGIBD) www.ugibd.net Mobile no: +88 01714355911 Mobile no: +88 01922110308 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
After graph create page will redirect to another page.
Dear All, Please help me. I Create a graph by cakephp.My problem is when graph create then a message appears say: The image http://localhost/auctionsite/postauctions/analysispdf/24.Could be displayed because it contains error. But my graph already created ,Now i want to not show this image in this page and not show above message. I would like redirect to another page after graph create. -- Regards, Mohammad Arif Hossen Web Developer United Group International(UGIBD) www.ugibd.net Mobile no: +88 01714355911 Mobile no: +88 01922110308 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: error database table missing
Please send your controller code: otherwise check properly anywhere you have used this model for query. On Sun, Aug 2, 2009 at 4:56 AM, Dr. Loboto drlob...@gmail.com wrote: Check model filename and every your access to this model for misspellings. On Aug 1, 11:08 pm, pete123456 lumot...@gmail.com wrote: hi, i have a simple view and controller and im doing useTable=false, but i still get the error Database table missing. anyone knows why? thanks pete class Administration extends AppModel { var $name = 'Administration'; var $useTable = false;} -- View this message in context: http://www.nabble.com/error-database-table-missing-tp24770374p2477037... Sent from the CakePHP mailing list archive at Nabble.com. -- Regards, Mohammad Arif Hossen Web Developer United Group International(UGIBD) www.ugibd.net Mobile no: +88 01714355911 Mobile no: +88 01922110308 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: help needed
You can follow cakephp Convention below link: http://book.cakephp.org/view/24/Model-and-Database-Conventions On Wed, Aug 5, 2009 at 11:22 PM, mridulesh kumar mridu2...@gmail.comwrote: i have added all the tables from the .sql file databse is also set On Aug 6, 12:38 am, Hols Kay hol...@googlemail.com wrote: You need to create a database table for Photos - if it's a third-party application then there should be an SQL file somewhere that you need to import into MySQL. On Aug 5, 6:19 pm, mridulesh kumar mridu2...@gmail.com wrote: iam running a php application thts based on cake php frame work...on running the script iam getting a message as follows: 1) Missing Database Table No Database table for model Photo (expected focikic_photos), create it first. Notice: If you want to customize this error message, create app/views/ errors/missing_table.ctp 2)0 query took ms Nr Query Error AffectedNum. rows Took (ms) whats the reason for this?..which of the file am supposed to edit in order to fix this issue. mridulesh -- Dear Mr.Rayhan, Regards, Mohammad Arif Hossen Web Developer United Group International(UGIBD) www.ugibd.net Mobile no: +88 01714355911 Mobile no: +88 01922110308 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Session time out automatically
Dear All, How i can set session time in cakphp.Because my site session time out automatically .I can not understanding ,how i will solve it. .Please give me suggestion Regards, Mohammad Arif Hossen Web Developer United Group International(UGIBD) www.ugibd.net Mobile no: +88 01714355911 Mobile no: +88 01922110308 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Order of models in $uses
Please use this code: function index() { $this-Dashboard-recursive = 0; $this-set('dashboards', $this-paginate($this-Dashboard)); } On Tue, Jun 23, 2009 at 9:34 PM, DavidH djhollingwo...@gmail.com wrote: Thanks for your help Brian, I'm going to try that now. Regards David On Jun 23, 4:16 pm, brian bally.z...@gmail.com wrote: On Tue, Jun 23, 2009 at 11:10 AM, brianbally.z...@gmail.com wrote: I think the main model has to be first. Have a look at Controller::constructClasses(). Specifically, this line: $modelClassName = $uses[0]; Then have a look at paginate(). I think the problem is that you're not passing the model name in your call. If that's empty, Cake will use $this-modelClass, which, in constructClasses(), is assigned the value of $modelClassName (eg. $uses[0]). So, it should be fine to do: $this-set('dashboards', $this-paginate('Dashboard')); -- Dear Mr.Rayhan, Regards, Mohammad Arif Hossen Junior Web Developer United Group International(UGIBD) www.ugibd.net Mobile no: +88 01714355911 Mobile no: +88 01922110308 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
controller function call from cakephp helper class.
Please help me. How i can call controller function from cakephp helper class. -- Regards, Mohammad Arif Hossen Junior Web Developer United Group International(UGIBD) Mobile: +88 01714355911 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: notEmpty rule is not responding.
Please apply this code for your problem slove. var $validate = array( 'name' = array( 'rule' = VALID_NOT_EMPTY, 'allowEmpty' =false, 'required' = true, 'message'='Name field can not be empty.' ) ); On Wed, May 13, 2009 at 3:53 PM, cbhan gotob...@gmail.com wrote: I am using cake_1.2.2.8120 ,notEmpty rule is not responding. // model code: var $validate = array( 'name' = array( 'rule' = 'notEmpty', 'required' = true, 'message'='Name field can not be empty.' ) ); //view code ?php /** * Class and Function List: * Function list: * Classes list: */ echo $form-create(array( 'enctype' = 'multipart/form-data' )); ? table tr tdOrganization Name*/td td?php echo $form-input('name', array( 'label' ='' )); ? ...and so no Please help! -- Regards, Mohammad Arif Hossen Junior Web Developer United Group International(UGIBD) Mobile: +88 01714355911 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: ClassRegistry::init('ModelName') problem
you can use : $uses variable for include another model in your current model. $uses = array('modelnameA','modelnameB'); 2009/5/11 Faza f...@ansi.pl Hi all, I've run into a weird problem. I have two models, not directly related, but I need data from model A to modify model B find results using ModelB::afterFind(); In model B, i use this: $myModelA = ClassRegistry::init('ModelA'); this returns no error. but when I do $values = $myModelA-findById($valid_id_from_somewhere) CakePHP fails to load page, but shows no errors. Anybody have a clue? thanks in advance... -- Jacek -- Regards, Mohammad Arif Hossen Junior Web Developer United Group International(UGIBD) Mobile: +88 01714355911 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: confirm message
I think it is good solution for your error correction .Please follow this code: ?php echo $html-link(__('Delete', true), array('action'='delete', $user['User']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $user['User']['id'])); ? On Mon, May 11, 2009 at 3:37 AM, paulos nikolo paulitosthe...@gmail.comwrote: Ty you help me in most important part...After your solution there was an error and i found it.the complete is: ?php echo $html-link($html-image(delete.png,array(alt=Delete,title=Delete)),$html-url(array(controller=users,action=delete,$user['User']['id'])),array(),Are you sure to delete user?,false);? Ty again m8! 2009/5/10 Kyle Decot kdec...@gmail.com Try this: echo $html-link($html-image(delete.png,array (alt=Delete,title=Delete)),$html-url(array (controller=users,action=delete)),array(),Are you sure to delete user?,false); On May 10, 2:09 pm, paulos nikolo paulitosthe...@gmail.com wrote: I tried to use html-link as you said but i can't make it work.I wonder what is the solution. 2009/5/10 Enrique enrique.jaco...@gmail.com The url array is only that: an URL array, i.e. there is no confirm parameter here. What I would do is putting the image in a $html-link() and use it's confirm parameter and disable the HTML escape (to output the image tag correctly). Maybe there is another way, looking at the cake HTML helper source code often helps (how the parameters are passed through) ;-) On 10 Mai, 14:13, Paulos23 paulitosthe...@gmail.com wrote: Hi peeps, Well i am creating some nice crud functionality and i use some images.All working perfect but i have problem with the delete action coz i want a confirm message to appear when user tries to delete.What am i doing wrong?Here is my example code: ?php echo $html-image(delete.png, array(alt = Delete,title=Delete,'url' = array('controller' = 'users', 'action' = 'delete',$user['User']['id'],array(),Are you sure to delete user? )));? The action works fine but no message displayed! Any help would be nice. Ty in advance! -- Regards, Mohammad Arif Hossen Junior Web Developer United Group International(UGIBD) Mobile: +88 01714355911 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Limit $paginate-numbers()
I think its: $this-paginate = array('limit' = 10); Thanks On Thu, May 7, 2009 at 1:45 AM, Stu greenmushroo...@gmail.com wrote: Wait, did you mean the number of results displayed by page? If so : $paginate = array('limit'=3); Cheers -- Regards, Mohammad Arif Hossen Junior Web Developer United Group International(UGIBD) Mobile: +88 01714355911 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Setting ALT text in TextImageHelper
You can use this code for image tag for alt text in cakephp view . ?php echo $html-image($imagepath.blankimage.jpg, array('alt' = 'No Image', 'width'= 130,'height' = 110)); ? On Thu, May 7, 2009 at 8:35 AM, Turgs timb@gmail.com wrote: Hello I'm using the TextImage helper. When setting the ALT text for the image tag, the helper replaces my text content with the alt text.. So the alt text shows instead. I've tried looking at why without any success. To use the helper, I'm doing this: ?php /* this generates an image using GD and returns the * image HTML produced by HtmlHelper's * image function. * * @param $text * @param $padding_around_text * @param $filename * @param $html_attributes */ $this-TextImage-image('content', 0, 'image1', array('alt' = 'alt- text')); ? Any help would be excellent. The helper code is available at: http://bakery.cakephp.org/articles/view/textimage-helper Cheers Turgs -- Regards, Mohammad Arif Hossen Junior Web Developer United Group International(UGIBD) Mobile: +88 01714355911 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: validation help
I think it should be: ?php class Category extends AppModel { var $name = 'Category'; var $validate = array( 'category' = array( 'rule' = 'alphaNumeric', 'required' = true, 'allowEmpty'=false ) ); } ? On Thu, May 7, 2009 at 7:57 AM, Dr. Loboto drlob...@gmail.com wrote: Output $this-data in controller and check actual data you try to save. On May 7, 5:35 am, matalina matal...@gmail.com wrote: I have tried various combinations for validation still nothing is working. This is my last attempt and it's still not validating an empty field, I still get an empty database value (new id no content - instead of an error message) ?php class Category extends AppModel { var $name = 'Category'; var $validate = array( 'category' = array( 'rule' = 'alphaNumeric', 'required' = true ) ); } ? On May 6, 1:03 pm, matalina matal...@gmail.com wrote: I followed along with the blog tutorial and got that working with out a problem. Now I'm modifying the blog tutorial for my own purposes since the basic technique was the same for this particular part of the project but now the fields are not validating. When I had it as notEmpty it still posted an empty entry to the database. And with it alphaNumeric it's still posting an empty entry. Can I get some help? Model: ?php class Category extends AppModel { var $name = 'Category'; var $validate = array( 'category' = 'alphaNumeric' ); } ? Controller: ?php class CategoriesController extends AppController { var $name = 'Categories'; function index() { $this-set('categories', $this-Category-find('all')); } function add() { if (!empty($this-data)) { if ($this-Category-save($this-data)) { $this-Session-setFlash('Your category has been saved.'); $this-redirect(array('action' = 'index')); } } } function edit($id = null) { $this-Category-id = $id; if (empty($this-data)) { $this-data = $this-Category-read(); } else { if ($this-Category-save($this-data)) { $this-Session-setFlash('Your category has been updated.'); $this-redirect(array('action' = 'index')); } } } function delete($id) { $this-Category-del($id); $this-Session-setFlash('The category with id: '.$id.' has been deleted.'); $this-redirect(array('action'='index')); } } ? View: !-- File: /app/views/categories/add.ctp -- h1Add Post/h1 ?php echo $form-create(''); echo $form-input('category'); echo $form-end('Save Category'); ? Thanks in advance. -- Regards, Mohammad Arif Hossen Junior Web Developer United Group International(UGIBD) Mobile: +88 01714355911 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---
Re: Form data will not save in DB!
Please follow this code: if your model name Tax (Model name must be table names singular number) $this-data['Tax']['feildname']; $this-Tax-save($this-data); On Thu, May 7, 2009 at 7:56 AM, Dr. Loboto drlob...@gmail.com wrote: Key in data array should be same as model alias. If your model named Tax it have same alias Tax by default and require $this-data['Tax'] ['feildname']. On May 7, 2:41 am, paul...@gmail.com paul...@gmail.com wrote: I have a table taxes and I'm using the form helper and it is putting the form data into an array $this-data['Taxis']['feildname']. The problem is that when I call $this-Tax-save($this-data)); the insert sql statement doesn't have any of the values that was submitted via the form. Any ideas on what's going on and how to fix the issue? Thanks, jay P.S. using cakephp 1.2 -- Regards, Mohammad Arif Hossen Junior Web Developer United Group International(UGIBD) Mobile: +88 01714355911 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~--~~~~--~~--~--~---